 .form-container {
        background-color: white;
        border-radius: 10px;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
      }

      table,
      th,
      td {
        border: 1px solid #ddd;
        border-collapse: collapse;
        padding: 10px;
      }

      table {
        width: 100%;
        margin-bottom: 1rem;
        background-color: white;
      }

      th {
        background-color: var(--color-primary);
        color: white;
        font-weight: 600;
        text-align: left;
      }

      tr:nth-child(even) {
        background-color: #f8f9fa;
      }

      tr.selected {
        background-color: #e3f2fd !important;
      }

      input,
      select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
      }

      input:focus,
      select:focus {
        outline: 2px solid var(--color-primary-light);
        border-color: var(--color-primary);
      }

      .button-group {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        /* Centrar en móviles */
      }

      @media (max-width: 768px) {
        .button-group {
          flex-direction: column;
          gap: 0.5rem;
        }

        .button-group .btn {
          width: 100%;
          text-align: center;
        }
      }

      .results-container {
        background-color: white;
        border-radius: 10px;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }

      .back-link {
        display: inline-block;
        margin-bottom: 1rem;
      }

      .checkbox-column {
        width: 40px;
        text-align: center;
      }

      .edit-mode {
        background-color: #fff3cd !important;
        border: 2px solid #ffc107 !important;
      }

      @media (max-width: 768px) {
        .action-buttons {
          display: flex;
          flex-wrap: wrap;
          gap: 10px;
          justify-content: center;
        }

        .action-buttons .btn {
          width: 100%;
          margin: 0;
        }

        /* Barra de búsqueda responsiva */
        #search-participante {
          min-width: 100% !important;
          margin-bottom: 1rem;
        }
      }

      .btn-edit {
        background-color: #28a745;
        color: white;
      }

      .btn-edit:hover {
        background-color: #218838;
      }

      .btn-delete {
        background-color: #dc3545;
        color: white;
      }

      .btn-delete:hover {
        background-color: #c82333;
      }

      /* Estilos para el modal de evidencias */
      .modal {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: fixed;
        z-index: 1000;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        transition: opacity 0.2s ease;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow: hidden;
      }

      .modal-content {
        background-color: white;
        margin-top: 1%;
        padding: 0.5rem;
        border-radius: 12px;
        width: 99%;
        max-width: 1000px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        transform: translateY(10px);
        transition: transform 0.2s ease;
        will-change: transform;
        -webkit-overflow-scrolling: touch;
      }

      .modal.active .modal-content {
        transform: translateY(0);
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      @keyframes slideIn {
        from {
          transform: translateY(-50px);
          opacity: 0;
        }

        to {
          transform: translateY(0);
          opacity: 1;
        }
      }

      .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 1rem;
      }

      .close:hover {
        color: #000;
      }

      .upload-area {
        border: 2px dashed #ddd;
        border-radius: 8px;
        padding: 2rem;
        text-align: center;
        margin-bottom: 2rem;
        transition: all 0.3s ease;
        cursor: pointer;
      }

      .upload-area:hover {
        border-color: var(--color-primary);
        background-color: #f8f9ff;
      }

      .upload-area.dragover {
        border-color: var(--color-primary);
        background-color: #e3f2fd;
      }

      .evidence-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
      }

      .evidence-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .evidence-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      }

      .evidence-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        cursor: pointer;
      }

      .evidence-info {
        padding: 1rem;
      }

      .evidence-instructor {
        font-weight: bold;
        color: var(--color-primary);
        margin-bottom: 0.5rem;
      }

      .evidence-datetime {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
      }

      .evidence-location {
        color: #888;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
      }

      .evidence-coordinates {
        color: #999;
        font-size: 0.7rem;
        font-style: italic;
      }

      .btn-evidence {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .btn-evidence:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
      }

      .loading-spinner {
        border: 3px solid #f3f3f3;
        border-top: 3px solid var(--color-primary);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
        margin: 0 auto;
      }

      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }

        100% {
          transform: rotate(360deg);
        }
      }

      .evidence-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
      }

      .stat-item {
        text-align: center;
      }

      .stat-number {
        font-size: 2rem;
        font-weight: bold;
        color: var(--color-primary);
      }

      .stat-label {
        font-size: 0.9rem;
        color: #666;
      }

      .filter-controls {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        align-items: center;
      }

      .filter-controls select,
      .filter-controls input {
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        width: auto;
        min-width: 150px;
      }

      .image-modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
      }

      .image-modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        max-height: 90%;
      }

      .image-modal img {
        width: 100%;
        height: auto;
        border-radius: 8px;
      }

      .btn-delete-evidence {
        background-color: #dc3545;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.8rem;
        margin-top: 0.5rem;
      }

      .btn-delete-evidence:hover {
        background-color: #c82333;
      }

      .location-info {
        background-color: #f8f9fa;
        border-radius: 6px;
        padding: 0.75rem;
        margin-top: 1rem;
        border-left: 4px solid var(--color-primary);
      }

      .location-address {
        font-weight: 600;
        color: #333;
        margin-bottom: 0.25rem;
      }

      .location-coords {
        font-size: 0.8rem;
        color: #666;
      }

      /* Estilos para alertas de asistencia */
      .alerta-participante {
        color: #dc3545 !important;
        font-weight: bold !important;
        animation: parpadeo 1.5s infinite;
      }

      @keyframes parpadeo {

        0%,
        50% {
          opacity: 1;
        }

        51%,
        100% {
          opacity: 0.6;
        }
      }

      .fila-alerta {
        background-color: #fff5f5 !important;
        border-left: 4px solid #dc3545 !important;
      }

      .banner-alerta {
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
        padding: 1rem;
        border-radius: 6px;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .banner-alerta .icono {
        font-size: 1.2rem;
        animation: parpadeo 2s infinite;
      }

      #modalEvidencias {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease;
        position: fixed;
        inset: 0;
      }

      #modalEvidencias.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      #modalAsistencia {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease;
        position: fixed;
        inset: 0;
      }

      #modalAsistencia.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      /* Estilos responsivos adicionales */
      @media (max-width: 768px) {

        /* Contenedor de controles responsivo */
        div[style*="display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;"] {
          flex-direction: column !important;
          align-items: stretch !important;
          gap: 1rem !important;
        }

        /* Asegurar que los datos se muestren en móvil */
        #tablaResultado table td {
          display: block !important;
          text-align: right !important;
          padding-left: 50% !important;
          position: relative !important;
        }

        #tablaResultado table td:before {
          content: attr(data-label) ": " !important;
          position: absolute !important;
          left: 6px !important;
          width: 45% !important;
          text-align: left !important;
          font-weight: bold !important;
          color: var(--color-primary) !important;
        }

        #modalHistorialAsistencias .modal-content {
          max-height: 90vh;
          overflow-y: auto;
        }

        #lista-asistencia-historial table {
          width: 100%;
          border-collapse: collapse;
        }

        #lista-asistencia-historial th,
        #lista-asistencia-historial td {
          border: 1px solid #ddd;
          padding: 8px;
          text-align: left;
        }

        #lista-asistencia-historial th {
          background-color: #f8f9fa;
          font-weight: bold;
        }

        #evidencias-historial img:hover {
          opacity: 0.8;
          transform: scale(1.02);
          transition: all 0.2s ease;
        }
      }

      /*Stylo modeno para el form*/
      /* ===== ESTILOS GENERALES ===== */
      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        padding: 12px;
        font-family: Arial, sans-serif;
        background: #f4f6f9;
        color: #1e293b;
      }

      /* ===== CONTENEDOR ===== */
      .form-container {
        max-width: 1200px;
        margin: auto;
      }

      /* ===== TARJETAS ===== */
      .form-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 14px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
      }

      .form-card h2 {
        margin: 0 0 14px 0;
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
      }

      /* ===== GRID ===== */
      .form-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
      }

      .col-2 {
        grid-column: span 2;
      }

      /* ===== CAMPOS ===== */
      .form-group {
        display: flex;
        flex-direction: column;
      }

      .form-group label {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 4px;
        color: #475569;
      }

      .form-group input,
      .form-group select {
        width: 100%;
        height: 38px;
        padding: 6px 10px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 13px;
        background: #fff;
        transition: 0.2s;
      }

      .form-group input:focus,
      .form-group select:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
      }

      /* ===== CAMPOS GRANDES ===== */
      .full-width {
        grid-column: 1 / -1;
      }

      /* ===== BOTONES ===== */
      .button-group {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 10px;
      }

      .btn {
        border: none;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
      }

      .btn-primary {
        background: #2563eb;
        color: white;
      }

      .btn-primary:hover {
        background: #1d4ed8;
      }

      .btn-outline {
        background: white;
        border: 1px solid #cbd5e1;
        color: #334155;
      }

      /* ===== RESPONSIVE ===== */
      @media(max-width:768px) {
        body {
          padding: 8px;
        }

        .form-card {
          padding: 14px;
        }

        .form-grid {
          grid-template-columns: 1fr;
          gap: 10px;
        }

        .button-group {
          flex-direction: column;
        }

        .btn {
          width: 100%;
        }
      }
      
      
      
      .accordion-header{

    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:14px;

    border:none;
    border-radius:8px;

    background:#2f6fed;

    color:white;

    font-size:18px;

    cursor:pointer;

}

.accordion-body{

    margin-top:12px;

}

.collapsed{

    display:none;

}


/* ====== ESCRITORIO ====== */
#tablaResultado table{
    width:100%;
    border-collapse:collapse;
}

#tablaResultado th,
#tablaResultado td{
    padding:12px;
    border-bottom:1px solid #e5e5e5;
}

#tablaResultado thead{
    background:#1976d2;
    color:#fff;
}

/* ====== MÓVIL ====== */
@media (max-width:768px){

    #tablaResultado table,
    #tablaResultado thead,
    #tablaResultado tbody,
    #tablaResultado th,
    #tablaResultado td,
    #tablaResultado tr{
        display:block;
    }

    #tablaResultado thead{
        display:none;
    }

    #tablaResultado tr{
        margin-bottom:15px;
        border-radius:10px;
        background:#fff;
        box-shadow:0 2px 8px rgba(0,0,0,.12);
        padding:10px;
    }

    #tablaResultado td{
        display:flex;
        justify-content:space-between;
        align-items:center;
        border:none;
        padding:8px 10px;
        text-align:right;
    }

    #tablaResultado td::before{
        content:attr(data-label);
        font-weight:bold;
        color:#555;
        text-align:left;
    }

    #tablaResultado .checkbox-column{
        justify-content:center;
        padding-bottom:15px;
    }

    #tablaResultado .checkbox-column::before{
        content:"Seleccionar";
    }
}

.participante-card {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    padding: 16px;
    margin-bottom: 18px;
    transition: all 0.2s ease;
}

.participante-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.card-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    accent-color: #2f55d4;
}

.dato {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    gap: 12px;
}

.dato:last-child {
    border-bottom: none;
}

.dato span {
    font-weight: 600;
    color: #555;
    flex: 1;
}

.dato strong {
    flex: 1;
    text-align: right;
    color: #222;
    word-break: break-word;
}
