/* ============================================================
   Ekho Kids — Hero de la landing (logIn/ekho-kids.html)
   Paleta tomada del ícono de marca: azul · verde · amarillo · rojo
   Fondo oscuro de alto contraste para que los colores resuenen.
   ============================================================ */

.ekk-hero {
    --ekk-blue:   #2d8cff;
    --ekk-green:  #2bc24e;
    --ekk-yellow: #ffc400;
    --ekk-red:    #ff4d4d;

    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 64px 24px 72px;
    color: #fff;
    background:
        radial-gradient(680px 420px at 88% 16%, rgba(43, 194, 78, .26), transparent 60%),
        radial-gradient(620px 380px at 96% 94%, rgba(255, 196, 0, .22), transparent 62%),
        radial-gradient(600px 400px at 3% 96%, rgba(255, 77, 77, .24), transparent 60%),
        radial-gradient(560px 400px at 0% 4%, rgba(45, 140, 255, .22), transparent 62%),
        linear-gradient(135deg, #161a2e 0%, #1d2238 48%, #14182b 100%);
}

/* Trama de puntos sutil sobre el panel */
.ekk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.ekk-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 36px;
    min-height: 440px;
}

/* ── Columna izquierda: marca + mensaje ──────────────────── */
.ekk-hero-left { max-width: 580px; }

.ekk-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.ekk-brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
    flex-shrink: 0;
}

.ekk-brand-name {
    font-family: 'Fredoka', 'Varela Round', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -.01em;
    color: #fff;
}

.ekk-brand-name b {
    font-weight: 700;
    background: linear-gradient(92deg,
        var(--ekk-blue) 0%, var(--ekk-green) 34%,
        var(--ekk-yellow) 66%, var(--ekk-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ekk-age {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 5px 12px;
    border-radius: 9999px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    align-self: center;
}

.ekk-hero-headline {
    font-family: 'Fredoka', 'Varela Round', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0 0 14px;
    color: #fff;
}

.ekk-hero-headline em {
    font-style: normal;
    color: var(--ekk-yellow);
}

.ekk-hero-sub {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 22px;
    max-width: 500px;
}

/* Chips de atributos */
.ekk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.ekk-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 9999px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}

.ekk-chip i { font-size: 13px; }
.ekk-chip--blue   i { color: var(--ekk-blue); }
.ekk-chip--green  i { color: var(--ekk-green); }
.ekk-chip--yellow i { color: var(--ekk-yellow); }
.ekk-chip--red    i { color: var(--ekk-red); }

/* ── Botones del hero ────────────────────────────────────── */
.ekk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ekk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 9999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.ekk-btn:hover { text-decoration: none; transform: translateY(-2px); }

.ekk-btn--primary {
    color: #fff;
    background: linear-gradient(92deg, var(--ekk-blue), var(--ekk-green));
    box-shadow: 0 8px 22px rgba(43, 194, 78, .32);
}
.ekk-btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(43, 194, 78, .4); }

.ekk-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
}
.ekk-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); }

.ekk-btn--link {
    color: rgba(255, 255, 255, .78);
    background: transparent;
    font-weight: 500;
}
.ekk-btn--link:hover { color: #fff; transform: none; text-decoration: underline; }

/* ── Columna derecha: animación de múltiples finales ─────── */
/* Escenario de tamaño fijo: libro, ramas y estrellas comparten
   el mismo sistema de coordenadas para que los puntos animados
   lleguen exactamente a cada estrella de final. */
.ekk-hero-anim {
    position: relative;
    z-index: 1;
    width: 380px;
    height: 360px;
    margin: 0 auto;
}

/* El libro (logo) como origen de la historia */
.ekk-book {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 240px;
    height: 240px;
    transform: translateX(-50%);
    object-fit: contain;
    border-radius: 26px;
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .45));
    animation: ekkBookFloat 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes ekkBookFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-12px); }
}

/* SVG de ramas que suben del libro hacia 3 finales */
.ekk-branch {
    position: absolute;
    bottom: 116px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 230px;
    overflow: visible;
    z-index: 1;
}

.ekk-branch-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 6 9;
    opacity: .5;
    animation: ekkDash 1.6s linear infinite;
}

@keyframes ekkDash { to { stroke-dashoffset: -30; } }

.ekk-branch-line.b1 { stroke: var(--ekk-blue); }
.ekk-branch-line.b2 { stroke: var(--ekk-green); }
.ekk-branch-line.b3 { stroke: var(--ekk-red); }

.ekk-branch-dot { filter: drop-shadow(0 0 5px currentColor); }
.ekk-branch-dot.d1 { color: var(--ekk-blue);  fill: var(--ekk-blue); }
.ekk-branch-dot.d2 { color: var(--ekk-green); fill: var(--ekk-green); }
.ekk-branch-dot.d3 { color: var(--ekk-red);   fill: var(--ekk-red); }

/* Nodos de final: estrellas que titilan */
.ekk-ending {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -50%);
    animation: ekkPop .7s cubic-bezier(.2, 1.4, .4, 1) backwards;
}

.ekk-ending.e1 { top: 18%; left: 14%; animation-delay: .2s; }
.ekk-ending.e2 { top: 9%;  left: 50%; animation-delay: .45s; }
.ekk-ending.e3 { top: 18%; left: 86%; animation-delay: .7s; }

@keyframes ekkPop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.ekk-star {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    animation: ekkTwinkle 2.4s ease-in-out infinite;
}

.ekk-ending.e1 .ekk-star { background: var(--ekk-blue);   animation-delay: .0s; }
.ekk-ending.e2 .ekk-star { background: var(--ekk-yellow); color: #5a4500; animation-delay: .8s; }
.ekk-ending.e3 .ekk-star { background: var(--ekk-red);    animation-delay: 1.6s; }

@keyframes ekkTwinkle {
    0%, 100% { transform: scale(1);    box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
    50%      { transform: scale(1.12); box-shadow: 0 6px 22px rgba(255, 255, 255, .25); }
}

.ekk-ending-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 9px;
    border-radius: 9999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
}

/* Chispas flotantes */
.ekk-spark {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 1;
    opacity: .85;
    animation: ekkSpark 5s ease-in-out infinite;
}
.ekk-spark.s1 { top: 24%; left: 30%; background: var(--ekk-green);  animation-delay: 0s; }
.ekk-spark.s2 { top: 38%; left: 70%; background: var(--ekk-yellow); animation-delay: 1.2s; width: 6px; height: 6px; }
.ekk-spark.s3 { top: 10%; left: 62%; background: var(--ekk-blue);   animation-delay: 2.1s; width: 5px; height: 5px; }
.ekk-spark.s4 { top: 52%; left: 22%; background: var(--ekk-red);    animation-delay: 3s; width: 6px; height: 6px; }

@keyframes ekkSpark {
    0%, 100% { transform: translateY(0) scale(1);      opacity: .35; }
    50%      { transform: translateY(-14px) scale(1.3); opacity: .95; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
    .ekk-hero { padding: 44px 22px 52px; }
    .ekk-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        gap: 8px;
        min-height: 0;
    }
    .ekk-hero-left { max-width: none; margin: 0 auto; order: 2; }
    .ekk-brand, .ekk-chips, .ekk-actions { justify-content: center; }
    .ekk-hero-sub { margin-left: auto; margin-right: auto; }
    /* Escala todo el escenario para conservar la alineación */
    .ekk-hero-anim { order: 1; transform: scale(.88); transform-origin: center bottom; }
}

@media (max-width: 576px) {
    .ekk-brand { flex-wrap: wrap; }
    .ekk-brand-name { font-size: 32px; }
    .ekk-brand-logo { width: 56px; height: 56px; }
    .ekk-hero-anim { transform: scale(.66); margin-top: -40px; }
    .ekk-btn { font-size: 15px; padding: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .ekk-book, .ekk-branch-line, .ekk-star, .ekk-spark, .ekk-ending, .ekk-about-logo { animation: none; }
}

/* ============================================================
   TEMA DE LA LANDING — alineado con el header de Ekho Kids
   Todo va scopeado a .ekk-page (body) para NO afectar las otras
   páginas que comparten styleIntro.css.
   ============================================================ */
.ekk-page {
    --ekk-blue:   #2d8cff;
    --ekk-green:  #2bc24e;
    --ekk-yellow: #ffc400;
    --ekk-red:    #ff4d4d;
    --ekk-ink:    #1d2238;
    --ekk-grad: linear-gradient(92deg, var(--ekk-blue) 0%, var(--ekk-green) 38%, var(--ekk-yellow) 70%, var(--ekk-red) 100%);
}

/* ── Navbar más bajo y limpio ────────────────────────────── */
.ekk-page .navbar {
    padding: .45rem 6%;
    background: #fff;
    border-bottom: 1px solid #eef0f5;
    min-height: 0;
}
.ekk-page .navbar .ekho-logo,
.ekk-page .navbar .logo a {
    font-family: 'Fredoka', 'Varela Round', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    background: var(--ekk-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
/* Selector de idioma en barra blanca */
.ekk-page .navbar .language-button {
    background: #f4f6fb;
    border: 1px solid #e6e9f2;
    color: var(--ekk-ink);
    padding: 6px 16px;
    min-width: 0;
}
.ekk-page .navbar .language-button:hover {
    background: #eef1f8;
    box-shadow: 0 6px 16px rgba(29, 34, 56, .12);
}
.ekk-page .hamburger div { background: var(--ekk-ink); }

/* ── Títulos de sección (Fredoka + acento multicolor) ────── */
.ekk-page .section-title h2,
.ekk-page .ekho-kids-h3 {
    font-family: 'Fredoka', 'Varela Round', sans-serif;
    color: var(--ekk-ink) !important;
    letter-spacing: -.01em;
}
.ekk-page .section-title:after { background: var(--ekk-grad); }

/* ── "Qué es Ekho Kids": logo en el panel ────────────────── */
.ekk-page .ekk-about-media { box-shadow: none; border-radius: 24px; overflow: hidden; }
.ekk-page .ekk-about-media .video-placeholder {
    aspect-ratio: 4 / 3;
    padding: 28px;
    background:
        radial-gradient(420px 260px at 85% 16%, rgba(43, 194, 78, .28), transparent 60%),
        radial-gradient(380px 240px at 6% 92%, rgba(255, 77, 77, .26), transparent 60%),
        linear-gradient(135deg, #161a2e 0%, #1d2238 55%, #14182b 100%);
    border-radius: 24px;
}
.ekk-page .ekk-about-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 22px;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4));
    animation: ekkFloatY 6s ease-in-out infinite;
}

@keyframes ekkFloatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ── Planes / precios ────────────────────────────────────── */
.ekk-page .plan-card {
    background: #fff;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 3px rgba(29, 34, 56, .05);
}
.ekk-page .plan-card.featured {
    background: linear-gradient(180deg, #f3f9ff 0%, #f1fbf3 100%);
    border: 1.5px solid rgba(45, 140, 255, .35);
    box-shadow: 0 12px 28px rgba(45, 140, 255, .14);
}
.ekk-page .plan-header h3 { font-family: 'Fredoka', sans-serif; color: var(--ekk-ink); }
.ekk-page .plan-price { color: var(--ekk-ink); }
.ekk-page .plan-features li { border-bottom: 1px solid #eef0f5; }
.ekk-page .check-icon { color: var(--ekk-green); font-weight: 700; }
.ekk-page .plan-badge { background: var(--ekk-grad); }
.ekk-page .featured-button,
.ekk-page .plan-button.featured-button {
    background: linear-gradient(92deg, var(--ekk-blue), var(--ekk-green));
    border: none;
    box-shadow: 0 6px 18px rgba(43, 194, 78, .3);
}
.ekk-page .featured-button:hover {
    background: linear-gradient(92deg, var(--ekk-blue), var(--ekk-green));
    box-shadow: 0 10px 24px rgba(43, 194, 78, .4);
}

/* ── Toggle de periodo (mensual/anual) ───────────────────── */
.ekk-page .toggle-label.active,
.ekk-page #paymentPeriodSwitch:checked ~ #annuallyLabel,
.ekk-page .toggle-label-nursery.active,
.ekk-page #paymentPeriodSwitchNursery:checked ~ #annuallyLabelNursery { color: var(--ekk-green); }
.ekk-page #paymentPeriodSwitch:checked + .toggle-switch,
.ekk-page #paymentPeriodSwitchNursery:checked + .toggle-switch-nursery { background: var(--ekk-green); }

/* Banner de descuento, en tono kids */
.ekk-page .alert-info {
    background: #fff8e1;
    border: 1px solid #ffe49a;
    color: #8a6d00;
}

/* ── Footer alineado con el header ───────────────────────── */
.ekk-page .footer {
    position: relative;
    background:
        radial-gradient(600px 360px at 90% 10%, rgba(43, 194, 78, .16), transparent 60%),
        radial-gradient(560px 360px at 4% 96%, rgba(255, 77, 77, .14), transparent 60%),
        linear-gradient(135deg, #161a2e 0%, #1d2238 55%, #14182b 100%);
}
.ekk-page .footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--ekk-grad);
}
.ekk-page .footer-logo {
    font-family: 'Fredoka', sans-serif;
    background: var(--ekk-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ekk-page .social-link { background: rgba(45, 140, 255, .16); color: #7cc0ff; }
.ekk-page .social-link:hover { background: var(--ekk-blue); color: #fff; }

/* ============================================================
   MODAL DE LOGIN — estilo Ekho Kids, más ancho y con scroll
   para que los botones nunca queden ocultos.
   ============================================================ */
.ekk-page #loginModal .modal-dialog {
    max-width: 600px;
    margin: 1.2rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 2.4rem);
}
.ekk-page #loginModal .login-container {
    width: 100%;
    max-width: 600px;
    max-height: 94vh;
    overflow-y: auto;
    padding: 2rem 2.4rem !important;
    border-radius: 24px;
    border-top: 5px solid var(--ekk-green);
    box-shadow: 0 24px 60px rgba(20, 24, 43, .35);
}
.ekk-page #loginModal .login-header { margin-bottom: 1rem; }
.ekk-page #loginModal .login-header h1 {
    font-family: 'Fredoka', sans-serif;
    color: var(--ekk-ink);
}
.ekk-page #loginModal .login-form { gap: .85rem; }
.ekk-page #loginModal .input-login {
    border-radius: 12px;
    padding: .7rem .9rem;
}
.ekk-page #loginModal .input-login:focus {
    border-color: var(--ekk-green) !important;
    box-shadow: 0 0 0 3px rgba(43, 194, 78, .15);
}
.ekk-page #loginModal .forgot-password { color: var(--ekk-blue); }
.ekk-page #loginModal .submit-button {
    background: linear-gradient(92deg, var(--ekk-blue), var(--ekk-green));
    border-radius: 9999px;
    padding: .8rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 6px 18px rgba(43, 194, 78, .3);
}
.ekk-page #loginModal .submit-button:hover { filter: brightness(1.03); }
.ekk-page #loginModal .v2-btn-google { border-radius: 9999px; }
.ekk-page #loginModal .signup-link a { color: var(--ekk-blue); font-weight: 600; }

@media (max-width: 576px) {
    .ekk-page #loginModal .login-container { padding: 1.4rem 1.4rem !important; }
}
