/* --- RESET & BASICS --- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important; /* Bloquea el scroll nativo */
    background: #27503b;
    font-family: 'Livvic', sans-serif !important;
    color: #ffffff;
}

/* --- LOGO HERENCIA --- */
.hero-logo {
    display: inline-block;
    width: 300px;
    height: 100px;
    background-image: url('https://content.app-us1.com/b99RL6/2026/02/13/36cead21-c105-49d0-bc9b-1b482daade1c.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 2rem;
}

.hero-final-logo{
    background-image: url('https://reset.hormonavida.com/assets/hv.jpg') !important;
}

/* --- PROGRESS BAR --- */
.progress-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100;
    text-align: center;
}
#progress-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}
.progress-bar-container {
    width: 100%;
    max-width: 600px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* --- SLIDER SYSTEM --- */
.quiz-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide {
    position: absolute;
    top: 0;
    left: 100%; /* Por defecto están a la derecha */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    visibility: hidden;
}
.slide.active {
    left: 0;
    opacity: 1;
    visibility: visible;
}
.slide.prev {
    left: -100%; /* Los que ya pasaron se van a la izquierda */
    opacity: 0;
    visibility: hidden;
}

/* --- CONTENT WRAPPER --- */
.content-wrap {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    max-height: 90vh; /* Deja espacio para la barra de progreso */
    overflow-y: auto; /* Por si el contenido es muy alto en móviles */
}
.content-wrap::-webkit-scrollbar { display: none; } /* Ocultar scrollbar visualmente */

h1.hero-title { font-size: 2.5rem; font-weight: 400; }
h2.question-title { font-size: 2rem; font-weight: 600; margin-bottom: 30px; }
.subtitle { font-size: 1.2rem; font-weight: 300; opacity: 0.8; }
.mt-4 { margin-top: 2rem; }

/* --- BOTONES DE OPCIÓN (QUIZ) --- */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.options-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 700px; /* Un poco más ancho para que quepan bien las 2 columnas */
}

.full-width-btn {
    grid-column: span 2;
}

.option-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 12px 15px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Livvic', sans-serif;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.3;
}
.option-btn:hover { background: rgba(255, 255, 255, 0.2); }
.option-btn.selected {
    background: #b0c8bb;
    color: #1f4a33;
    border-color: #b0c8bb;
    font-weight: 600;
}

/* --- BOTONES DE NAVEGACIÓN --- */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
    gap: 20px;
}
.nav-btn, .cta-btn-green {
    background-color: #ffffff;
    color: #27503b;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-family: 'Livvic', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    flex: 1;
}
.btn-back {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}
.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- SUSURROS (MICRO-REASSURANCE) --- */
.whisper-msg {
    margin-bottom: 15px;
    font-style: italic;
    font-size: 1.15rem;
    color: #b0c8bb; 
    opacity: 0; /* Solo opacidad, el espacio ya está reservado en el DOM */
    transform: translateY(-10px); /* Animación suave desde arriba */
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* Eliminado el height: 0 y el overflow: hidden para evitar el salto brusco */
}
.whisper-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- CUSTOM FORM --- */
.custom-form {
    text-align: left;
    width: 100%;
}
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1.1rem;
}
.input-group input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: 'Livvic', sans-serif;
    font-size: 1.1rem;
    box-sizing: border-box;
    transition: all 0.3s;
}
.input-group input::placeholder {
    color: rgba(255,255,255,0.6);
}
.input-group input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255,255,255,0.2);
}

/* Spinner para el botón de envío */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* --- PANTALLA FINAL (Inspiración Clínica) --- */

/* Sobrescribimos el fondo verde solo para esta pantalla */
.slide.final-slide {
    background: #ffffff; 
    color: #1f4a33; 
    align-items: flex-start; /* Para que el contenido empiece arriba y permita scroll */
    overflow-y: auto; /* Habilita el scroll si la pantalla es pequeña */
    padding-top: 40px;
}

.final-wrap {
    max-width: 660px;
    margin: 0 auto;
    padding-bottom: 60px;
    text-align: center; /* Cambiamos a centrado para que haga juego con el logo */
}

/* Oscurecemos el logo para que resalte en el fondo blanco */
.final-slide .hero-logo.dark-logo {
    height: 125px;
    margin: auto;
    background-position: center;
    display: block;
}

.final-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #1f4a33;
    line-height: 1.2;
}

.final-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #4a5d52;
}

.final-cta {
    display: block; /* Para centrarlo mejor */
    margin: 30px auto 30px auto;
    padding: 18px 40px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    background: #27503b !important;
    color: #fff !important;
}

.final-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1f4a33;
}

.final-image {
    width: 100%;
    border-radius: 16px; /* Bordes redondeados como en la captura */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    object-fit: cover;
    margin: 0 auto; 
}

/* Responsivo para la pantalla final */
@media (min-width: 768px) {
    .hide-laptop{display: none;}
}
@media (max-width: 768px) {
    .hide-phone{display: none;}
    .slide.final-slide { padding-top: 20px; }
    .final-title { font-size: 2rem; }
    .final-subtitle { font-size: 1.5rem; }
    .final-wrap { padding: 0 20px 40px 20px; }
    .final-slide .hero-logo.dark-logo { margin: 0 auto 1.5rem auto; background-position: center; }
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
    h1.hero-title { font-size: 1.8rem; margin-top: 0px;}
    h2.question-title { font-size: 1.5rem; margin-top: 0px;}
    .subtitle{font-size: 1rem;}
    .option-btn { font-size: 1rem; padding: 7px 15px; }
    #lead-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0px 10px;
    }

    /* El tercer campo (Phone) ocupa toda la fila */
    #lead-form .input-group:nth-of-type(3) {
        grid-column: span 2;
    }

    /* Elementos full width */
    #lead-form .checkbox-group,
    #lead-form button {
        grid-column: span 2;
    }
}
/* --- CHECKBOX DE CONSENTIMIENTO --- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 22px; /* Un poco más grande para ser fácil de tocar en móviles */
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0; /* Evita que el checkbox se aplaste si el texto es muy largo */
}

.checkbox-group label {
    font-size: 0.85rem !important; /* Letra más pequeña para textos legales */
    font-weight: 400 !important;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85); /* Un blanco ligeramente apagado */
    cursor: pointer;
    margin-bottom: 0 !important;
}

/* Estilo visual para cuando el botón está deshabilitado por el checkbox */
#submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #1f4a33; /* Mantiene el color base pero apagado */
}