/* General */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #343a40;
}

/* Imagen de Fondo */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Contenedor Principal de la Ficha */
.container.main-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    max-width: 900px;
    padding: 30px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}



/* Contenedor de Actividades (distinto del principal) */
.container.container-activity {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 900px;
    margin: 15px auto 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

/* Secciones dentro del formulario */
.form-section {
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.2em;
    color: #495057;
    margin-bottom: 15px;
    border-left: 3px solid #007bff;
    padding-left: 8px;
}

/* Títulos H2 (para "Ficha de Miembro" y "Actividades") */
h2 {
    text-align: center;
    color: #212529;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Grupos de Input (Filas del formulario) */
.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px 15px;
    /* Interlineado aumentado */
    margin-bottom: 15px;
    row-gap: 20px;
}

.input-group label {
    flex-basis: 100px;
    text-align: right;
    color: #555;
    font-weight: 500;
    font-size: 0.9em;
    padding-right: 8px;
    white-space: nowrap;
}

/* Ajuste para inputs de ancho completo */
.input-group.full-width-input label {
    flex-basis: 80px;
}

/* Estilos de Inputs Generales */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="textPeque"],
input[type="textMedio"]
input[type="phone"]
input[type="address"],
input[type="notes"],
.input-activity {
    /* No incluimos #activity-select aquí para manejarlo específicamente */
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #dcdfe4;
    border-radius: 6px;
    font-size: 0.95em;
    background-color: #fdfefe;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #495057;
    min-height: 38px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="textPeque"]:focus,
input[type="textMedio"]:focus,
input[type="phone"]:focus,
input[type="address"]:focus,
input[type="notes"]:focus,
#activity-select:focus,

.input-activity:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.2);
    outline: none;
    background-color: #fff;
}

/* Ajustes de ancho para inputs específicos */
input[type="textPeque"] {
    width: 50px;
    min-width: 50px;
    max-width: 70px;
}

input[type="textMedio"] {
    width: 75px;
    min-width: 75px;
    max-width: 75px;
}

input[type="number"] {
    width: 80px;
    min-width: 70px;
    max-width: 100px;
}


/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-right: 2px;
    margin-left: 2px;
    accent-color: #007bff;
    cursor: pointer;
}

input[type="checkbox-small"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
}

/* Botones Generales */
button,
input[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:active,
input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Colores y Estilos de Botones Específicos */
/* Botones de la barra superior */
.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

/* --- BOTONES IMPRIMIR EXCEL (Mantenidos en Azul) --- */
.button-excel-peque {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    width: 50px;  /* Ancho fijo */
    height: 20px; /* Altura fija */
    font-size: 0.8rem;
    padding: 0; /* Quita el padding si usas width/height fijos */
}


.button-excel,
#generic-export-button,
#boton-imprimir {
    background-color: #007bff !important;
    border: 1px solid #007bff !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
}

#generic-export-button:hover,
#boton-imprimir:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

#generic-export-button:disabled,
#boton-imprimir:disabled {
    background-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
}

/* --- FIN BOTONES IMPRIMIR EXCEL --- */


/* Botones inferiores de la ficha */
.action-buttons-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.buttonFee,
.buttonActivity,
.button-add-member {
    background-color: #007bff;
    padding: 8px 16px;
    width: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.buttonCard {
    width: auto;
    padding: 8px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.button-red {
    background-color: #dc3545;
}

.button-green {
    background-color: #28a745;
}

/* Color de los botones deshabilitados más visible */
button:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Contenedor de Actividades (input y botón) */
.input-group-activity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 15px;
}

.input-group-activity label {
    font-size: 0.9em;
}

input[type="textDni"] {
width: 25px;

    
}

input[type="numberDni"] {
width: 110px;
/*height: 16px;*/
    
}


/* sign-estilos.css */

.sign-body {
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    font-family: 'Inter', sans-serif

}

.sign-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    max-width: none;
    box-sizing: border-box;
}

.sign-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1f2937;
}

.sign-input-group {
    margin-bottom: 1.5rem;
}

.sign-label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    
}

.sign-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sign-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
}

.sign-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.sign-button-search {
    background-color: #2563eb;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    width: 175px;
    height: 50px;
    flex-shrink: 0;
    align-self: flex-start; 

}

.sign-button-search:hover {
    background-color: #1d4ed8;
}


.sign-subtitle {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}

.sign-document-list {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    /*height: 20rem;*/
    /*overflow-y: auto;*/
}

.sign-documents-container {
    flex: 1;
    background-color: #f9fafb;
    padding: 1rem;
}

.sign-signature-section {
    flex: 1;
    background-color: #ffffff;
    padding: 1rem;
    border-right: 1px solid #e5e7eb;
}

.sign-columns {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.sign-canvas-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.sign-canvas {
    border: 2px dashed #d1d5db;
    width: 100%;
    border-radius: 0.5rem;
    background-color: #ffffff;
    cursor: crosshair;
    touch-action: none;
}

.sign-button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sign-button-clear {
    background-color: #ef4444;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.sign-button-clear:hover {
    background-color: #dc2626;
}

.sign-button-save {
    background-color: #16a34a;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.sign-button-save:hover {
    background-color: #15803d;
}

.sign-message-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


svg {
    width: 32px !important;
    height: 32px !important;
}

.deshabilitado {
  pointer-events: none;
  /* Opcional: para dar un feedback visual de que está inactivo */
  opacity: 0.6;
  cursor: not-allowed;
}

.sign-horizontal-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}


.sign-input-with-label {
    display: flex;
    flex-direction: column;
}

.sign-input-button-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px; /* espacio entre input+botón y el label de abajo */
}

.sign-input-button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.sign-input-container {
    display: flex;
    flex-direction: column;
    width: 315px;
    position: relative;
}


.sign-below-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.sign-input-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sign-input-column {
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* evita que el input se reduzca si el contenedor se achica */
}

.page-container {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }                       
.content {
    flex: 1;
}
footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px;
}




/* --- SOLUCIÓN AFINADA PARA EL ICONO DESPLEGABLE EN activity-select --- */
#activity-select {
    /* Usamos el ID para máxima especificidad */
    flex-grow: 1;
    /* Mantenemos el tamaño actual que te gusta para la barra de actividad */
    max-width: 400px;
    min-width: 300px;
    min-height: 50px;

    color: #007bff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23007bff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 30px;

    border: 1px solid #dcdfe4;
    border-radius: 6px;
    font-size: 0.95em;
    background-color: #fdfefe;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Ocultar cualquier elemento (como <i> o <span>) que pudiera estar añadiendo otro icono
   directamente después del #activity-select o dentro del input-group-activity que no sea el select. */
.input-group-activity *:not(#activity-select):not(label)>i,
.input-group-activity *:not(#activity-select):not(label)>span,
.input-group-activity i:not([class*="delete-button"]):not([class*="trash"]),
.input-group-activity span:not([class*="delete-button"]):not([class*="trash"]) {
    display: none !important;
}

/* Ocultar cualquier pseudo-elemento que pudiera añadir iconos a los contenedores */
#activity-select::before,
#activity-select::after,
.input-group-activity::before,
.input-group-activity::after {
    content: none !important;
}


/* --- SOLUCIÓN AFINADA PARA EL ICONO DESPLEGABLE EN year-select --- */
#year-select {
    /* Usamos el ID para máxima especificidad */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Lo mantenemos grueso (alto) para que sea como el de actividad */
    min-height: 50px;
    /* Unifica con #activity-select */
}

/* Ocultar cualquier elemento (como <i> o <span>) que pudiera estar añadiendo otro icono
   directamente después del #year-select o dentro de su contenedor (si lo tiene). */
#year-select+i,
#year-select+span,
#year-select~i,
#year-select~span,
.input-group #year-select+*:not(label) i,
.input-group #year-select+*:not(label) span,
.input-group>i:not(#year-select):not(label),
.input-group>span:not(#year-select):not(label) {
    display: none !important;
}

/* Ocultar cualquier pseudo-elemento que pudiera añadir iconos al #year-select o su contenedor */
#year-select::before,
#year-select::after,
.input-group::before,
/* Si el input-group es el padre del año */
.input-group::after {
    content: none !important;
}

/* --- AJUSTE PARA EL BOTÓN "GUARDAR ACTIVIDAD" (#updateActivity) --- */
#updateActivity {
    background-color: #007bff !important;
    /* Mantenemos su color azul */
    color: white !important;
    padding: 8px 16px !important;
    min-height: 38px !important;
    font-size: 1.1em !important;
    /* *** Texto más grande aquí *** */
    border-radius: 6px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;

    /* *** Icono a la derecha y texto más grande *** */
    display: flex !important;
    /* Aseguramos que sea flexbox para ordenar */
    flex-direction: row-reverse !important;
    /* Mueve el icono a la derecha del texto */
    justify-content: center;
    /* Centra el contenido si hay espacio */
    align-items: center;
    /* Alinea verticalmente */
}

#updateActivity:hover {
    background-color: #0056b3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Icono dentro del botón #updateActivity */
#updateActivity i {
    font-size: 0.9em !important;
    /* Mantenemos el tamaño del icono como el del otro botón */
    color: white !important;
    font-weight: normal !important;
    /* Mantenemos el grosor */
    margin-right: 0 !important;
    /* Quitamos el margen a la derecha */
    margin-left: 6px !important;
    /* *** Añadimos margen a la izquierda del icono (que ahora está a la derecha del texto) *** */
}

/* --- AJUSTE DE TAMAÑO PARA EL BOTÓN DE LA IZQUIERDA (Limpiar o Buscar) --- */
/* Asumo que es el botón con ID 'clear-button' por la descripción anterior */
.input-container #clear-button {
    padding: 6px 8px;
    /* Reducimos el padding vertical y horizontal */
    font-size: 0.85em;
    /* Un poco más pequeño si se ve muy grande */
    height: 38px;
    /* Mantenemos la altura para que coincida con inputs */
    /* Resto de estilos permanecen */
    position: relative;
    left: 0;
    top: auto;
    transform: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    z-index: 5;
    background-color: #e9ecef;
    color: #6c757d;
    border-right: 1px solid #dcdfe4;
    flex-shrink: 0;
    margin-right: -1px;
}

.input-container #clear-button:hover {
    background-color: #dcdfe4;
}

/* --- CAMBIO PARA MÁS SEPARACIÓN DE LA LISTA DE SOCIOS --- */
/* Aumentamos el margen superior al título h2 para empujar la sección más abajo */
#h2ActivityMembers {
    margin-top: 40px;
    /* Mantenemos este margen para más separación */
    text-align: center;
    color: #212529;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

/* CAMBIO PARA MÁS SEPARACIÓN DE LA LISTA DE SOCIOS (aquí ya aplica) */
#ul-activity-member {
    /* Usamos el ID para ser súper específico */
    margin-top: 15px;
    /* Mantenemos este margen para el espacio entre el h2 y la lista */
    display: flex;
    /* <-- Importante: Asegura que los elementos hijos se dispongan en fila */
    flex-wrap: wrap;
    /* <-- Importante: Permite que los elementos salten de línea si no caben */
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #eef2f5;
    border-radius: 6px;
    background-color: #fdfdfd;
    list-style: none;
    padding-left: 0;
}

/* Estilos para cada elemento de la lista (los iconos de actividad) */
.list-horizontal li {
    background-color: #eaf6ff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    /* <-- Asegura que el contenido interno de cada li también se alinee */
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    white-space: nowrap;
    font-size: 1.1em;
    flex-shrink: 0;
    /* <-- Evita que los elementos se contraigan */
    flex-grow: 0;
    /* <-- Evita que los elementos se expandan */
    width: auto;
    /* <-- Permite que el ancho sea el necesario por el contenido */
}

/* Tamaño de los iconos en las listas de actividades */
.list-horizontal li i {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Color para los iconos de borrar en las listas */
.delete-button {
    width: 28px;
    height: 28px;
    font-size: 0.9em;
    color: #dc3545;
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button:hover {
    color: #c82333;
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Sección de Búsqueda Superior */
.navbar-search {
    min-height: 56px;
    position: relative;
    z-index: 1000;
}

.navbar-search .input-group {
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    height: 100%;
    width: 100%;
    justify-content: space-between;
}

.input-container {
    max-width: 100% !important;
    flex-grow: 5 !important;
    min-width: 400px !important;
    display: flex;
    align-items: center;
    position: relative;
    order: 1;
    padding: 0;
}

/* Campo de búsqueda */
.input-find {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.95em;
    width: 100% !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    min-height: 38px;
    border-left: none;
}

/* Fondo blanco para las sugerencias de búsqueda */
.suggestions-list {
    max-height: 200px;
    width: 100%;
    left: 0;
    top: calc(100% + 5px);
    position: absolute;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow-y: auto;
}

.suggestions-list li {
    padding: 10px 12px;
    font-size: 0.9em;
    color: #343a40;
    cursor: pointer;
}

.suggestions-list li:hover {
    background-color: #f0f0f0;
}

/* Agrupación de botones de acción en la cabecera */
.action-buttons {
    gap: 8px;
    margin-left: 15px;
    order: 0;
    flex-shrink: 0;
}

.action-buttons button i {
    margin-right: 4px;
}

.action-buttons button {
    padding: 8px 16px;
    font-size: 0.9em;
    white-space: nowrap;
}


    .switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 34px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0;
      right: 0; bottom: 0;
      background-color: #ccc;
      transition: .4s;
      border-radius: 34px;
    }

    .slider:before {
      position: absolute;
      content: "No";
      height: 26px;
      width: 26px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      color: black;
      text-align: center;
      line-height: 26px;
      font-size: 12px;
      transition: .4s;
      border-radius: 50%;
    }

    input:checked + .slider {
      background-color: #4CAF50;
    }

    input:checked + .slider:before {
      transform: translateX(26px);
      content: "Sí";
    }

        .loading-overlay{
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    }

    .loading-content{
        text-align:center
    }

    .loading-spinner{
        border: 8px solid #f3f3f3;
        border-top: 8px solid #3498db;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
        margin: auto;
    }

    .loading-text{
        margin-top: 15px;
        font-size: 1.2em;
    }

    @keyframes spin {
         0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

  



  #spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
  }

  .lds-dual-ring {
    display: inline-block;
    width: 64px;
    height: 64px;
  }

  .lds-dual-ring:after {
    content: " ";
    display: block;
    width: 46px;
    height: 46px;
    margin: 1px;
    border-radius: 50%;
    border: 5px solid #0078d4;
    border-color: #0078d4 transparent #0078d4 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
  }

  @keyframes lds-dual-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }




/* --- ESTILO PARA LA FECHA DEL MENÚ (#fecha) --- */
#fecha {
    /* Usamos el ID exacto para la fecha */
    color: #ffffff !important;
    /* Texto blanco */
    background-color: #004085 !important;
    /* Un azul aún más oscuro para el fondo */
    padding: 8px 15px !important;
    /* Ajusta el padding según necesites */
    border-radius: 5px !important;
    /* Ligeramente redondeado */
    font-size: 0.9em !important;
    /* Ajusta el tamaño de fuente */
    display: inline-block !important;
    /* Para que el padding y el fondo funcionen correctamente */
    margin: 5px !important;
    /* Un pequeño margen si está dentro de un contenedor flexible */
}


/* -- Media Queries para Responsividad -- */

/* Pantallas pequeñas (móviles) */
@media (max-width: 768px) {

    .container.main-content,
    .container.container-activity {
        padding: 15px 10px;
        margin: 10px auto;
    }

    h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .form-section h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .input-group {
        gap: 15px 8px;
        /* Interlineado reducido para móviles */
        margin-bottom: 10px;
    }

    .input-group label {
        font-size: 0.85em;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="textPeque"],
    input[type="textMedio"],
    input[type="phone"],
    input[type="address"],
    input[type="notes"],
    #activity-select,
    /* También para móviles */
    .input-activity {
        padding: 8px 10px;
        font-size: 0.9em;
        min-height: 35px;
    }

    input[type="checkbox"] {
        width: 16px;
        height: 16px;
        
    }



    /* Botones de la Topbar */
    .navbar-search {
        min-height: auto;
        padding-bottom: 10px;
        display: flex;
        flex-direction: column;
    }

    .navbar-search .input-group {
        flex-direction: column;
        gap: 8px;
        height: auto;
        width: 100%;
        justify-content: center;
    }

    .input-container {
        max-width: unset !important;
        width: 100%;
        order: 1;
        padding: 0;
        margin-top: 5px;
        flex-grow: 1 !important;
        min-width: unset !important;
    }

    .input-find {
        width: 100% !important;
        padding-left: 12px;
        border-radius: 6px !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-left: none !important;
    }

    .input-container #clear-button {
        position: relative;
        left: 0;
        top: auto;
        transform: none;
        height: 35px;
        padding: 5px 8px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
        margin-right: -1px;
    }

    .action-buttons {
        gap: 8px;
        margin-left: 0;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        order: 0;
        margin-bottom: 15px;
    }

    .action-buttons button {
        width: 48%;
        padding: 8px 10px;
        font-size: 0.85em;
    }

    /* Botones inferiores de la ficha */
    .action-buttons-bottom {
        gap: 8px;
        margin-top: 15px;
        padding-top: 10px;
        flex-direction: column;
    }

    .buttonFee,
    .buttonCard {
        width: 100%;
        padding: 8px 15px;
        font-size: 0.85em;
    }

    #h2ActivityMembers {
        margin-top: 30px;
        /* Ajuste para móviles */
    }

    #ul-activity-member {
        /* Aseguramos la separación también en móviles */
        margin-top: 15px;
        gap: 8px;
        padding: 10px;
        max-height: 180px;
        list-style: none;
        padding-left: 0;
    }

    .list-horizontal li {
        font-size: 0.9em;
        padding: 6px 10px;
        width: auto;
    }

    /* Reducir tamaño de icono en móvil */
    .list-horizontal li i {
        font-size: 0.75em;
        width: 18px;
    }

    .delete-button {
        width: 24px;
        height: 24px;
        font-size: 0.8em;
    }

    .suggestions-list {
        top: calc(100% + 5px);
        width: calc(100% - 20px);
        left: 10px;
    }

    .background-image {
        opacity: 0.01;
    }
}

/* Pantallas medianas (tabletas) */
@media (min-width: 769px) and (max-width: 1024px) {

    .container.main-content,
    .container.container-activity {
        width: 92%;
        padding: 25px;
    }

    .input-group label {
        flex-basis: 90px;
    }

    .input-group.full-width-input label {
        flex-basis: 70px;
    }

    .list-horizontal {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        grid-template-columns: none;
    }

    .list-horizontal li {
        width: auto;
    }

    .input-container {
        max-width: 100% !important;
        flex-grow: 4 !important;
        min-width: 350px !important;
    }

    .action-buttons button {
        padding: 9px 16px;
        font-size: 0.9em;
    }







}