@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');



:root {

    --teal: #00B4C5;

    --teal-dark: #0096A6;

    --teal-glow: rgba(0, 180, 197, 0.18);

    --navy: #1A2744;

    --navy-mid: #243358;

    --yellow: #FFD84D;

    --yellow-soft: rgba(255, 216, 77, 0.12);

    --coral: #E05A44;

    --white: #F4F7FA;

    --card-bg: #ffffff;

    --text-muted: #6B7A99;

    --border: rgba(26, 39, 68, 0.1);

    --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.08);

    --shadow: 0 12px 40px rgba(26, 39, 68, 0.12);

    --shadow-lg: 0 24px 64px rgba(26, 39, 68, 0.16);
    --text-primary: var(--navy);
    --bg-secondary: var(--white);
}

[data-theme="dark"] {
    --white: #0E162C;
    --card-bg: #16223D;
    --navy: #e4ebf5;
    --navy-mid: #aab4c8;
    --text-muted: #8E9BAF;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --text-primary: #f0f4f8;
    --bg-secondary: #0a1024;
    --teal-glow: rgba(0, 180, 197, 0.25);
    --yellow-soft: rgba(255, 216, 77, 0.15);
}



*,
*::before,
*::after {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



body {

    font-family: 'DM Sans', sans-serif;

    background-color: var(--white);

    color: var(--navy);

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 24px;

    position: relative;

    overflow-x: hidden;

}



/* ── Fondo decorativo ── */

body::before {

    content: '';

    position: fixed;

    inset: 0;

    background:

        radial-gradient(ellipse 60% 50% at 15% 20%, rgba(0, 180, 197, 0.10) 0%, transparent 70%),

        radial-gradient(ellipse 50% 60% at 85% 80%, rgba(26, 39, 68, 0.07) 0%, transparent 70%),

        radial-gradient(ellipse 40% 40% at 80% 10%, rgba(255, 216, 77, 0.08) 0%, transparent 70%);

    pointer-events: none;

    z-index: 0;

}



body>* {
    position: relative;
    z-index: 1;
}



/* ── Animaciones ── */

@keyframes fadeInUp {

    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}



@keyframes shimmer {

    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }

}



@keyframes pulse-ring {

    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 180, 197, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 180, 197, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 180, 197, 0);
    }

}



/* ── Tarjeta principal ── */

.main-card {

    background: var(--card-bg);

    padding: 44px 40px 40px;

    border-radius: 24px;

    box-shadow: var(--shadow-lg);

    width: 100%;

    max-width: 460px;

    text-align: center;

    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;

    border: 1px solid var(--border);

    position: relative;

    overflow: hidden;

}



/* Acento superior de color */

.main-card::before {

    content: '';

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: linear-gradient(90deg, var(--teal), var(--yellow), var(--teal));

    background-size: 200% auto;

    animation: shimmer 3s linear infinite;

}



/* ── Logo ── */

.logo {

    width: 88px;

    height: auto;

    display: block;

    margin: 0 auto 24px;

    border-radius: 16px;

    box-shadow: 0 4px 16px rgba(0, 180, 197, 0.2);

}



/* ── Tipografía ── */

h1,
h2 {

    font-family: 'Syne', sans-serif;

    color: var(--navy);

    font-weight: 800;

    letter-spacing: -0.03em;

}



h1 {
    font-size: 2rem;
}



h2 {

    font-size: 1.6rem;

    margin-bottom: 28px;

}



.card-subtitle {

    font-size: 0.9rem;

    color: var(--text-muted);

    margin-top: -20px;

    margin-bottom: 28px;

    font-weight: 300;

}



/* ── Labels ── */

label {

    display: block;

    text-align: left;

    font-size: 0.78rem;

    font-weight: 600;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    color: var(--navy-mid);

    margin-bottom: 6px;

}



/* ── Inputs ── */

input[type="email"],

input[type="password"],

input[type="text"],

input[type="number"],

select,

textarea {

    width: 100%;

    padding: 13px 16px;

    margin-bottom: 20px;

    border: 1.5px solid var(--border);

    border-radius: 12px;

    font-family: 'DM Sans', sans-serif;

    font-size: 0.95rem;

    color: var(--navy);

    background: var(--white);

    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;

    -webkit-appearance: none;

}



input:focus,

select:focus,

textarea:focus {

    border-color: var(--teal);

    outline: none;

    background: var(--card-bg);
    color: var(--text-primary);

    box-shadow: 0 0 0 4px var(--teal-glow);

}



input::placeholder {
    color: #aab4c8;
}



/* ── Botón principal ── */

button,

.btn {

    padding: 14px 24px;

    background: var(--navy);


    border: none;

    border-radius: 12px;

    font-family: 'Syne', sans-serif;

    font-size: 0.95rem;

    font-weight: 700;

    letter-spacing: 0.02em;

    cursor: pointer;

    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;

    position: relative;

    overflow: hidden;

}



button::after {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);

    pointer-events: none;

}

form button {
    color: var(--white);
}

button:hover {

    background: var(--teal-dark);

    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(0, 180, 197, 0.3);

}



button:active {

    transform: translateY(0);

    box-shadow: none;

}



button:disabled {

    background: #c5ccd8;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;

}

/* Dark mode button fix */
[data-theme="dark"] button,
[data-theme="dark"] .btn {
    background: var(--navy);
}

[data-theme="dark"] button:hover,
[data-theme="dark"] .btn:hover {
    background: var(--teal-dark);
}

[data-theme="dark"] .btn-play-pill,
[data-theme="dark"] .btn-next {
    background: var(--teal);
    color: var(--black)
}

[data-theme="dark"] .btn-play-pill:hover,
[data-theme="dark"] .btn-next:hover {
    color: var(--white);
}

/* Variante secundaria */

.btn-secondary {

    background: transparent;

    color: var(--teal);

    border: 1.5px solid var(--teal);

    margin-top: 10px;

}



.btn-secondary:hover {

    background: var(--teal-glow);

    color: var(--teal-dark);

    box-shadow: none;

}



/* Variante acento amarillo */

.btn-accent {

    background: var(--yellow);

    color: var(--navy);

}



.btn-accent:hover {

    background: #f5cc3a;

    box-shadow: 0 8px 24px rgba(255, 216, 77, 0.35);

}



/* ── reCAPTCHA wrapper ── */

.recaptcha-wrapper {

    display: flex;

    justify-content: center;

    margin-bottom: 20px;

}



/* ── Mensaje de error ── */

.alert-error {

    color: var(--coral);

    background: #fff5f3;

    padding: 12px 16px;

    border-radius: 10px;

    border: 1.5px solid rgba(224, 90, 68, 0.25);

    font-size: 0.88rem;

    text-align: left;

    margin-bottom: 20px;

    display: flex;

    align-items: center;

    gap: 8px;

}



.alert-error::before {

    content: '⚠';

    font-size: 1rem;

    flex-shrink: 0;

}



/* ── Mensaje de éxito ── */

.alert-success {

    color: #1a7a4a;

    background: #f0fdf6;

    padding: 12px 16px;

    border-radius: 10px;

    border: 1.5px solid rgba(26, 122, 74, 0.2);

    font-size: 0.88rem;

    margin-bottom: 20px;

}



/* ── Divider ── */

.divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 4px 0 20px;

    color: var(--text-muted);

    font-size: 0.8rem;

}



.divider::before,

.divider::after {

    content: '';

    flex: 1;

    height: 1px;

    background: var(--border);

}



/* ── Links ── */

a {

    color: var(--teal);

    text-decoration: none;

    font-weight: 500;

    transition: color 0.2s;

}



a:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}



.card-footer {

    margin-top: 24px;

    font-size: 0.88rem;

    color: var(--text-muted);

}



/* ── AI greeting ── */

#ai-greeting {

    background: var(--teal);

    border-left: 4px solid var(--coral);

    color: var(--navy);

    padding: 16px;

    border-radius: 12px;

    font-style: italic;

    font-size: 0.92rem;

    margin: 0 0 24px;

    text-align: left;

    line-height: 1.6;

}



/* ── Badge / chip ── */

.badge {

    display: inline-block;

    padding: 3px 10px;

    border-radius: 20px;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;

    background: var(--yellow-soft);

    color: #9a7a00;

    border: 1px solid rgba(255, 216, 77, 0.4);

}



/* ── Tarjeta de sesión / lista ── */

.session-card {

    background: var(--white);

    border: 1.5px solid var(--border);

    border-radius: 14px;

    padding: 18px 20px;

    text-align: left;

    margin-bottom: 12px;

    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;

    cursor: pointer;

}



.session-card:hover {

    border-color: var(--teal);

    box-shadow: 0 4px 16px var(--teal-glow);

    transform: translateY(-2px);

}



.session-card h3 {

    font-family: 'Syne', sans-serif;

    font-size: 1rem;

    font-weight: 700;

    margin-bottom: 4px;

}



.session-card p {

    font-size: 0.82rem;

    color: var(--text-muted);

}



/* ── Pantalla de juego / progreso ── */

.progress-bar-wrapper {

    background: #e8edf5;

    border-radius: 99px;

    height: 8px;

    overflow: hidden;

    margin: 12px 0;

}



.progress-bar-fill {

    height: 100%;

    background: linear-gradient(90deg, var(--teal), #00d4e8);

    border-radius: 99px;

    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);

}



/* ── Opciones de respuesta ── */

.answer-option {

    display: block;

    width: 100%;

    padding: 14px 18px;

    margin-bottom: 10px;

    background: var(--white);

    border: 1.5px solid var(--border);

    border-radius: 12px;

    font-family: 'DM Sans', sans-serif;

    font-size: 0.95rem;

    color: var(--navy);

    text-align: left;

    cursor: pointer;

    transition: all 0.2s;

}



.answer-option:hover {

    border-color: var(--teal);

    background: #eefcfd;

    transform: translateX(4px);

}



.answer-option.correct {

    border-color: #1a7a4a;

    background: #f0fdf6;

    color: #1a7a4a;

}



.answer-option.incorrect {

    border-color: var(--coral);

    background: #fff5f3;

    color: var(--coral);

}



/* ── Score display ── */

.score-display {

    font-family: 'Syne', sans-serif;

    font-size: 3rem;

    font-weight: 800;

    color: var(--navy);

    letter-spacing: -0.04em;

    line-height: 1;

}



.score-display span {

    font-size: 1.2rem;

    color: var(--text-muted);

    font-weight: 400;

}



/* ── Responsive ── */

@media (max-width: 520px) {

    .main-card {

        padding: 32px 24px 28px;

        border-radius: 20px;

    }



    h2 {
        font-size: 1.4rem;
    }

}






/* ── LP NAV (Global Component) ── */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: rgba(13, 20, 32, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    width: 100%;
}

.lp-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.lp-nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.lp-nav-logo span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.lp-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--teal, #00B4C5);
    color: #fff !important;
    border-radius: 99px;
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.lp-nav-cta:hover {
    background: #0096a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 180, 197, 0.4);
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.container--narrow {
    max-width: 979px;
}

.container--wide {
    max-width: 1200px;
}

.nav-link {
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: 'Syne', sans-serif;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff !important;
}

@media (max-width: 768px) {
    .lp-nav {
        padding: 12px 20px;
    }

    .lp-nav-logo span {
        display: none;
    }
}