/* =====================================================================
   HORUS — Landing (estética editorial oscura, inspirada en IDEO,
   estructura de las mejores plataformas EdTech: hero + prueba social +
   categorías + cómo funciona + contenido destacado + features + CTA)
   ===================================================================== */

.hero-section { padding: 64px 0 40px; }
.main-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.08; color: var(--border-color); margin-bottom: 20px; letter-spacing: -.02em; }
.main-title span { color: var(--accent-lime); }

/* Buscador estilo "¿qué quieres aprender hoy?" */
.hero-buscador { display: flex; align-items: center; gap: 10px; background: var(--card-bg); border: 1px solid var(--linea); border-radius: 50px; padding: 6px 8px 6px 20px; max-width: 480px; }
.hero-buscador input { flex-grow: 1; background: transparent; border: none; color: var(--border-color); font-weight: 500; padding: 10px 0; }
.hero-buscador input:focus { outline: none; }
.hero-buscador input::placeholder { color: var(--texto-tenue); }
.hero-buscador button { flex-shrink: 0; }

/* ====== Hero derecho: tarjeta de video (abre el modal con el reproductor) ====== */
.hero-video-card {
    position: relative; width: 100%; aspect-ratio: 4 / 3.1; border-radius: var(--radio-lg);
    overflow: hidden; cursor: pointer; border: 1px solid var(--linea); background: var(--card-bg);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); transition: transform .25s ease, border-color .2s ease;
}
.hero-video-card:hover { transform: translateY(-4px); border-color: var(--linea-fuerte); }
.hero-video-card:focus-visible { outline: 2px solid var(--accent-lime); outline-offset: 4px; }

.hero-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-video-card:hover .hero-video-thumb { transform: scale(1.05); }

.hero-video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14, 17, 32, .15) 0%, rgba(14, 17, 32, .35) 55%, rgba(14, 17, 32, .92) 100%);
}

.hero-video-badge {
    position: absolute; top: 20px; left: 20px; display: flex; align-items: baseline; gap: 1px;
    background: rgba(14, 17, 32, .55); border: 1px solid rgba(255, 255, 255, .12);
    padding: 6px 14px; border-radius: 50px; backdrop-filter: blur(6px);
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .95rem;
}

.hero-video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 74px; height: 74px; border-radius: 50%; background: var(--accent-lime);
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #10131f;
    box-shadow: 0 0 0 0 rgba(215, 242, 76, .5); transition: transform .25s ease, box-shadow .6s ease;
    animation: pulso-play 2.6s ease-out infinite;
}
.hero-video-play i { margin-left: 4px; }
.hero-video-card:hover .hero-video-play { transform: translate(-50%, -50%) scale(1.08); }

@keyframes pulso-play {
    0% { box-shadow: 0 0 0 0 rgba(215, 242, 76, .45); }
    70% { box-shadow: 0 0 0 18px rgba(215, 242, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(215, 242, 76, 0); }
}

.hero-video-caption { position: absolute; left: 24px; right: 24px; bottom: 20px; }
.hero-video-tag {
    display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: #10131f; background: var(--accent-lime); padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
}
.hero-video-caption p { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: 0; }

/* ====== Barra de estadísticas ====== */
.stats-bar { padding: 36px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.stats-bar .stat-num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--accent-lime); line-height: 1; }
.stats-bar .stat-lbl { font-size: .78rem; color: var(--texto-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }

/* ====== Laboratorios: tarjetas de categoría ====== */
.modules-container { position: relative; z-index: 10; padding: 70px 0; }
.module-card { background-color: var(--card-bg); border: 1px solid var(--linea); border-radius: var(--radio-lg); padding: 32px 28px; height: 100%; text-decoration: none; display: block; transition: border-color .15s ease; }
.module-card:hover { border-color: var(--linea-fuerte); }
.module-card .module-icono { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #10131f; margin-bottom: 20px; }
.module-card h3 { font-weight: 600; font-size: 1.35rem; margin-bottom: 10px; color: var(--border-color); font-family: 'Space Grotesk', sans-serif; }
.module-card p { color: var(--texto-muted); font-size: .92rem; margin-bottom: 0; }

/* ====== Cómo funciona ====== */
.pasos-section { padding: 70px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.paso-item { text-align: center; padding: 0 12px; }
.paso-num { width: 40px; height: 40px; border-radius: 50%; background: var(--card-bg-alt); border: 1px solid var(--linea); color: var(--accent-lime); font-family: 'Space Grotesk', sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.paso-item h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; color: var(--border-color); }
.paso-item p { color: var(--texto-muted); font-size: .88rem; margin-bottom: 0; }

/* ====== Rutas destacadas ====== */
.content-section { padding: 70px 0; }

/* ====== Features (gamificación / IA / credenciales) ====== */
.features-section { padding: 70px 0; border-top: 1px solid var(--linea); }
.feature-card { display: flex; gap: 16px; padding: 8px 0; }
.feature-card .feature-icono { width: 46px; height: 46px; border-radius: 12px; background: var(--card-bg-alt); border: 1px solid var(--linea); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--accent-lime); flex-shrink: 0; }
.feature-card h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; color: var(--border-color); }
.feature-card p { color: var(--texto-muted); font-size: .88rem; margin-bottom: 0; }

/* ====== CTA final ====== */
.cta-final { padding: 70px 0 90px; text-align: center; }
.cta-final-card { background: linear-gradient(135deg, var(--card-bg), var(--card-bg-alt)); border: 1px solid var(--linea); border-radius: var(--radio-lg); padding: 56px 32px; }

/* ====== Minijuego (bonus, discreto) ====== */
.game-section { padding: 56px 0; border-top: 1px solid var(--linea); }
.game-board-container { background-color: var(--card-bg); border: 1px solid var(--linea); padding: 20px; border-radius: var(--radio-lg); }
.game-canvas { width: 100%; height: 240px; background-color: var(--card-bg-alt); position: relative; overflow: hidden; border-radius: var(--radio-md); cursor: crosshair; }
.game-target { position: absolute; width: 50px; height: 50px; background-color: var(--accent-lime); border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 1.6rem; cursor: pointer; user-select: none; }
.game-ui { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.score-box { background-color: var(--card-bg-alt); color: var(--border-color); padding: 8px 18px; font-weight: 700; font-size: 1rem; border-radius: 8px; font-family: 'Space Grotesk', sans-serif; }

/* ====== Tips y palabra rara ====== */
.tips-words-section { padding: 70px 0; border-top: 1px solid var(--linea); }
.tip-card, .word-card { background-color: var(--card-bg); border: 1px solid var(--linea); padding: 36px; border-radius: var(--radio-lg); }
.tip-icon { font-size: 2.2rem; margin-bottom: 16px; color: var(--accent-lime); display: inline-block; }
.word-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--accent-lime); margin-bottom: 6px; }

@media (max-width: 991px) {
    .hero-section { padding: 40px 0; }
    .hero-video-card { margin-top: 40px; aspect-ratio: 16 / 9; }
}
