/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --color-macho: #87ceeb;
    --color-hembra: #f04c6e;
    --color-primario: #119dbd;
    --color-secundario: #f04c6e;
    --transparencia-nav: 0.15;
    --transparencia-content: 0.85;
}

body {
    font-family: 'Lato', 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #119dbd, #f04c6e);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* NAVBAR GLASS */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}


/* Menu Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #119dbd, #f04c6e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Menú de Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.1rem;
}

/* FAB Buscar */
.fab-buscar {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #119dbd, #f04c6e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
}
.fab-buscar:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Búsqueda */
.search-container {
    position: relative;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(15px);
}

.search-box h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #119dbd;
    box-shadow: 0 0 0 2px rgba(17, 157, 189, 0.2);
}

.search-btn {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #119dbd, #f04c6e);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Efectos especiales */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* Contenedor de Bienvenida */
.contenedor-bienvenida {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 20px;
    transition: all 0.5s ease;
}

.contenedor-bienvenida.activo {
    display: flex;
}

.contenedor-bienvenida.oculto {
    display: none;
}

.bienvenida-content {
    text-align: center;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bienvenida-subtitulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5em;
    color: #6c6c6c;
    margin-bottom: 1em;
}

.bienvenida-texto {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
}

.btn-comenzar {
    background: linear-gradient(135deg, #119dbd, #f04c6e);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-comenzar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Contenedor del Formulario */
.contenedor-formulario {
    width: 100%;
    padding: 100px 20px 20px;
    display: none;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.contenedor-formulario.activo {
    display: flex;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.titulo-principal {
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 3.5em;
    margin: 10px 0;
    letter-spacing: 2px;
}

.subtitulo {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Formulario */
#formulario-mascota {
    background: rgb(255 255 255 / 20%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
}

.seccion-formulario {
    display: none;
    animation: fadeIn 0.5s ease;
}

.seccion-formulario.activa {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.titulo-seccion {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #f04c6e;
    padding-bottom: 10px;
}

/* Campos del formulario */
.campo-grupo {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.campo-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

.campo-grupo input,
.campo-grupo select,
.campo-grupo textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.campo-grupo input:focus,
.campo-grupo select:focus,
.campo-grupo textarea:focus {
    outline: none;
    border-color: #119dbd;
    box-shadow: 0 0 0 2px rgba(17, 157, 189, 0.2);
    background-color: white;
}

.campo-grupo textarea {
    min-height: 100px;
    resize: vertical;
}

/* Estilos para campos de archivo */
.label-archivo {
    margin-bottom: 10px !important;
}

.contenedor-archivo {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-archivo {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.boton-archivo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #555;
}

.boton-archivo:hover {
    background-color: #e9ecef;
    border-color: #119dbd;
    color: #119dbd;
}

.icono-archivo {
    font-size: 1.2em;
}

.nombre-archivo {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.mensaje-qr {
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(240, 76, 110, 0.1);
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #f04c6e;
}

/* Botones de navegación */
.botones-navegacion {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.btn-anterior,
.btn-siguiente,
.btn-omitir,
.btn-enviar {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-anterior {
    background-color: #6c757d;
    color: white;
}

.btn-anterior:hover {
    background-color: #5a6268;
}

.btn-siguiente {
    background-color: #119dbd;
    color: white;
}

.btn-siguiente:hover {
    background-color: #0e8aa8;
}

.btn-omitir {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.btn-omitir:hover {
    background-color: #f8f9fa;
}

.btn-enviar {
    background-color: #f04c6e;
    color: white;
}

.btn-enviar:hover {
    background-color: #e83e63;
}

/* Indicador de progreso */
.indicador-progreso {
    margin-top: 30px;
}

.progreso-barra {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progreso-llenado {
    height: 100%;
    background: linear-gradient(90deg, #119dbd, #f04c6e);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progreso-texto {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    color: #555;
}

/* Estados de validación */
.campo-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.mensaje-error {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: 500;
}

/* Previsualización de imagen */
.previsualizacion-imagen {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 8px;
    display: none;
}

/* Mejora para selects personalizados */
.campo-grupo select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Pre-filtro */
.pre-filtro-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.checkcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.checkcard {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.checkcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.checkcard.seleccionado {
    border-color: #119dbd;
    background: linear-gradient(135deg, #f8fdff, #e3f7fb);
}

/* Perfil por sexo */
.perfil-macho .header-perfil {
    border-bottom: 3px solid var(--color-macho);
}

.perfil-hembra .header-perfil {
    border-bottom: 3px solid var(--color-hembra);
}

.foto-perfil.macho {
    border-color: var(--color-macho);
}

.foto-perfil.hembra {
    border-color: var(--color-hembra);
}

/* Modal buscar móvil */
.modal-buscar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-buscar .contenido {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 12px 20px;
        z-index: 2000;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 2001;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        transition: all 0.3s ease-in-out;
        z-index: 1999;
    }
    
    .nav-menu.active {
        right: 2.5%;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        color: #333;
        justify-content: center;
        padding: 12px;
    }
    
    .nav-link span {
        display: inline-block;
    }
    
    .logo-text {
        display: none;
    }
    
    .search-box {
        width: 280px;
        right: -50px;
    }
    
    .contenedor-bienvenida,
    .contenedor-formulario {
        padding: 80px 15px 15px;
    }
    
    .bienvenida-content {
        padding: 30px 20px;
    }
    
    .bienvenida-subtitulo {
        font-size: 2em;
    }
    
    .bienvenida-texto {
        font-size: 1.1em;
    }
    
    .titulo-principal {
        font-size: 2.8em;
    }
    
    .subtitulo {
        font-size: 1.1em;
    }
    
    #formulario-mascota {
        padding: 20px;
    }
    
    .titulo-seccion {
        font-size: 1.7em;
    }
    
    .botones-navegacion {
        flex-direction: column;
    }
    
    .btn-anterior,
    .btn-siguiente,
    .btn-omitir,
    .btn-enviar {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .pre-filtro-container {
        padding: 20px;
    }
    
    .checkcards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .search-box {
        width: 250px;
        right: -80px;
    }
    
    .titulo-principal {
        font-size: 2.2em;
    }
    
    .subtitulo {
        font-size: 1em;
    }
    
    #formulario-mascota {
        padding: 15px;
    }
    
    .titulo-seccion {
        font-size: 1.5em;
    }
    
    .campo-grupo input,
    .campo-grupo select,
    .campo-grupo textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    .campo-grupo {
        margin-bottom: 15px;
    }
    
    .botones-navegacion {
        flex-direction: column-reverse;
    }
    
    .btn-omitir {
        order: -1;
        margin-bottom: 10px;
    }
}
/* Estilos para el pre-filtro */
.pre-filtro-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.checkcard {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.checkcard.seleccionado {
    border-color: #119dbd;
    background: linear-gradient(135deg, #f8fdff 0%, #e6f7ff 100%);
}

.checkcard.seleccionado::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #119dbd;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Mejoras para los checkboxes */
.checkbox-custom {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
    line-height: 1.4;
}

.checkbox-custom input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-custom:hover input ~ .checkbox-checkmark {
    border-color: #119dbd;
}

.checkbox-custom input:checked ~ .checkbox-checkmark {
    background-color: #119dbd;
    border-color: #119dbd;
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-custom input:checked ~ .checkbox-checkmark:after {
    display: block;
}

.checkbox-label {
    color: #333;
    font-size: 0.95em;
}

/* Mejoras para el toggle de seguro */
.toggle-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    width: fit-content;
}

.toggle-option {
    padding: 10px 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-option:first-child {
    border-right: 1px solid #ddd;
}

.toggle-option.seleccionado {
    background: #119dbd;
    color: white;
}

/* Estilos para modales */
.modal-buscar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    align-items: center;
    justify-content: center;
}

.modal-buscar .contenido {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .checkcards-grid {
        grid-template-columns: 1fr;
    }
    
    .pre-filtro-container {
        padding: 20px;
    }
}
/* ========== ESTILOS PARA CHECKBOXES PERSONALIZADOS ========== */
.checkbox-custom {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    user-select: none;
}

.checkbox-custom input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-custom:hover .checkbox-checkmark {
    border-color: #119dbd;
    background-color: #f8fdff;
}

.checkbox-custom input:checked ~ .checkbox-checkmark {
    background-color: #119dbd;
    border-color: #119dbd;
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-custom input:checked ~ .checkbox-checkmark:after {
    display: block;
}

.checkbox-label {
    line-height: 1.5;
    color: #444;
    font-size: 0.95em;
}

/* ========== ESTILOS PARA TOGGLE DE SEGURO ========== */
.toggle-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-option:hover {
    border-color: #119dbd;
    background-color: #f8fdff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 157, 189, 0.15);
}

.toggle-option.seleccionado {
    background: linear-gradient(135deg, #119dbd, #0e8aa8);
    color: white;
    border-color: #119dbd;
    box-shadow: 0 5px 15px rgba(17, 157, 189, 0.3);
}

.toggle-option i {
    font-size: 1.2em;
}

/* ========== ESTILOS PARA PRE-FILTRO ========== */
.checkcard {
    position: relative;
    transition: all 0.3s ease;
}

.checkcard:not(.seleccionado) {
    opacity: 0.6;
    background: #f5f5f5 !important;
}

.checkcard:not(.seleccionado):hover {
    opacity: 0.8;
}

.checkcard.seleccionado::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

.checkcard[data-seccion="basica"] {
    pointer-events: none;
    opacity: 1 !important;
    background: linear-gradient(135deg, #f8fdff, #e3f7fb) !important;
}

/* ========== SECCIONES OCULTAS ========== */
.seccion-formulario.oculta {
    display: none !important;
}

/* ========== MEJORAS VISUALES ADICIONALES ========== */
.campo-grupo {
    position: relative;
}

.campo-grupo label:not(.checkbox-custom):not(.label-archivo) {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

/* Input focus mejorado */
.campo-grupo input:focus,
.campo-grupo select:focus,
.campo-grupo textarea:focus {
    outline: none;
    border-color: #119dbd;
    box-shadow: 0 0 0 3px rgba(17, 157, 189, 0.1);
    background-color: white;
}

/* Botones mejorados */
.btn-siguiente,
.btn-anterior,
.btn-omitir,
.btn-enviar,
.btn-comenzar {
    position: relative;
    overflow: hidden;
}

.btn-siguiente::before,
.btn-anterior::before,
.btn-omitir::before,
.btn-enviar::before,
.btn-comenzar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-siguiente:active::before,
.btn-anterior:active::before,
.btn-omitir:active::before,
.btn-enviar:active::before,
.btn-comenzar:active::before {
    width: 300px;
    height: 300px;
}

/* Animación de carga para el formulario */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seccion-formulario.activa {
    animation: fadeInUp 0.5s ease;
}

/* Responsive para checkboxes */
@media (max-width: 768px) {
    .checkbox-custom {
        padding-left: 30px;
    }
    
    .checkbox-checkmark {
        height: 20px;
        width: 20px;
    }
    
    .checkbox-checkmark:after {
        left: 6px;
        top: 2px;
        width: 4px;
        height: 9px;
    }
    
    .toggle-group {
        flex-direction: column;
    }
    
    .toggle-option {
        width: 100%;
    }
}
/* ========== ESTILOS MEJORADOS PARA EL FILTRO ========== */

.checkcard[data-seccion="final"] {
    pointer-events: none;
    opacity: 1 !important;
    background: linear-gradient(135deg, #f0fff0, #e0ffe0) !important;
    border-color: #ffffff !important;
}

.checkcard[data-seccion="final"]::before {
    content: 'SIEMPRE INCLUIDO';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffffff;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
}




.seccion-formulario[data-tipo="final"] .titulo-seccion {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Estilos para mensajes informativos */
.mensaje-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.mensaje-info i {
    color: #2196f3;
    margin-right: 10px;
}

/* Mejoras responsive para el filtro */
@media (max-width: 768px) {
    .checkcard[data-seccion="final"]::before {
        position: relative;
        top: 0;
        right: 0;
        display: block;
        margin-bottom: 10px;
    }
}
/* FIX MENU HAMBURGUESA MÓVIL */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        gap: 15px;
    }
    
    .nav-menu.active {
        right: 5%;
    }
    
    .nav-link {
        color: #333;
        padding: 12px 16px;
        border-radius: 10px;
        justify-content: flex-start;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, #119dbd, #f04c6e);
        color: white;
    }
}

/* CAMPO ERROR */
.campo-error {
    border-color: #e74c3c !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ANIMACIÓN SLIDE DOWN */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MEJORAS RESPONSIVAS ADICIONALES */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .contenedor-formulario {
        width: 95%;
        padding: 25px;
    }

    .checkcards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .campo-grupo-doble {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .navbar {
        width: 95%;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    /* Layout principal */
    .contenedor-formulario {
        margin-top: 90px;
        width: 95%;
        padding: 15px;
        border-radius: 15px;
    }

    /* Elementos de texto */
    .titulo-seccion {
        font-size: 1.5em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    /* Grid y Cards */
    .checkcards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 15px 0;
    }

    .checkcard {
        padding: 15px;
        margin-bottom: 10px;
    }

    /* Botones */
    .btn-comenzar,
    .btn-siguiente,
    .btn-anterior,
    .btn-enviar {
        padding: 14px 20px;
        font-size: 1em;
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .botones-navegacion {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    /* Formularios */
    .campo-grupo {
        padding: 15px;
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="file"],
    textarea,
    select {
        font-size: 16px;
        padding: 12px 15px;
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Mejorar usabilidad táctil */
    button,
    input[type="submit"],
    .nav-link,
    .fab-buscar {
        min-height: 44px;
        min-width: 44px;
    }

    /* Labels y texto */
    label {
        font-size: 0.95em;
        margin-bottom: 8px;
        display: block;
    }

    /* Cards y contenedores */
    .card-info {
        padding: 15px;
        margin-bottom: 15px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 20px 15px;
    }

    /* Navegación */
    .nav-menu {
        padding: 15px;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 1em;
    }

    /* FAB Buscar */
    .fab-buscar {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    /* Modal de búsqueda */
    .modal-buscar .contenido {
        padding: 20px;
        width: 95%;
    }

    /* Ajustes de espaciado */
    .contenedor-bienvenida {
        padding: 80px 15px 15px;
    }

    /* Mejorar rendimiento */
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Mobile pequeño (max 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .navbar {
        width: 100%;
        top: 10px;
        border-radius: 15px;
    }

    .logo-text {
        font-size: 1.2em;
    }

    .contenedor-formulario {
        padding: 15px;
        margin-top: 90px;
    }

    .titulo-seccion {
        font-size: 1.3em;
    }

    .indicador-progreso {
        margin: 15px 0;
    }

    .progreso-texto {
        font-size: 0.85em;
    }

    /* Optimizar espacio de campos */
    .campo-grupo {
        margin-bottom: 15px;
    }

    /* Hacer botones más táctiles */
    button,
    .btn-comenzar,
    .btn-siguiente,
    .btn-anterior,
    .btn-enviar {
        min-height: 48px; /* Tamaño mínimo táctil recomendado */
        font-size: 0.95em;
    }

    /* Ajustar checkboxes y radio buttons */
    .checkbox-grupo label,
    .opciones-privacidad label {
        font-size: 0.9em;
    }
}

/* Mejoras para modo landscape en móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .contenedor-formulario {
        margin-top: 80px;
        margin-bottom: 20px;
    }

    .navbar {
        top: 10px;
        padding: 10px 20px;
    }

    .titulo-seccion {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .campo-grupo {
        margin-bottom: 12px;
    }
}

/* Animaciones mejoradas para interacciones */
.btn-comenzar:active,
.btn-siguiente:active,
.btn-anterior:active,
.btn-enviar:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Mejorar accesibilidad de focus */
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(17, 157, 189, 0.5);
    outline-offset: 2px;
}

/* Transiciones suaves para todos los elementos interactivos */
button,
input,
textarea,
select,
.checkcard,
.nav-link {
    transition: all 0.3s ease;
}

/* Modal de Términos Legales */
.modal-legal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-legal-contenido {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-legal-contenido h2 {
    color: #333;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.modal-legal-contenido h3 {
    color: #119dbd;
    font-family: 'Roboto', sans-serif;
    font-size: 1.3em;
    margin: 25px 0 15px;
    border-bottom: 2px solid rgba(17, 157, 189, 0.2);
    padding-bottom: 8px;
}

.modal-legal-contenido p, 
.modal-legal-contenido ul {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.modal-legal-contenido ul {
    padding-left: 20px;
}

.modal-legal-contenido li {
    margin-bottom: 8px;
}

.btn-cerrar-legal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    line-height: 1;
}

.btn-cerrar-legal:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.modal-legal-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.btn-aceptar-legal {
    background: linear-gradient(135deg, #119dbd, #f04c6e);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-aceptar-legal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .modal-legal-contenido {
        padding: 20px;
        width: 95%;
    }
    
    .modal-legal-contenido h2 {
        font-size: 1.8em;
    }
    
    .modal-legal-contenido h3 {
        font-size: 1.2em;
    }
    
    .btn-cerrar-legal {
        top: 15px;
        right: 15px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .botones-navegacion,
    .fab-search {
        display: none;
    }

    body {
        background: white;
    }

    .contenedor-formulario {
        box-shadow: none;
        background: white;
    }
}