/*
 * landing.css — Estilos de la landing pública (index.html).
 * El grueso del estilo viene de mood-ui; esto cubre accesibilidad (skip link,
 * focus-visible, sr-only), animaciones de scroll (.mood-reveal/.in-view) y el
 * acordeón de FAQ, que todavía no existen en la librería compartida — se
 * definen aquí, con el mismo prefijo mood-*, para no tocar libraries/mood-ui.
 */

:root {
    /* Reemplaza Montserrat por Fixture Expanded en todo lo que use
       --mood-font-display (headings, wordmark, nav, botones). El peso
       correcto (Bold/SemiBold/Medium) lo resuelve cada @font-face de
       fonts.css según el font-weight ya declarado en cada selector. */
    --mood-font-display: var(--mood-font-fixture-expanded);
}

body {
    font-family: var(--mood-font-base);
    background: var(--mood-neutral);
    color: var(--mood-text);
    margin: 0;
}

main {
    min-height: 60vh;
}

img,
picture,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Accesibilidad ===== */

.mood-skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--mood-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 var(--mood-border-radius) 0;
    transition: top 0.15s ease-in-out;
}

.mood-skip-link:focus {
    top: 0;
}

.mood-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--mood-primary);
    outline-offset: 2px;
}

#nav-links a[aria-current="page"] {
    color: var(--mood-primary);
    font-weight: 700;
}

/* ===== Animaciones de scroll (.mood-reveal) ===== */

.mood-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mood-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mood-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Navbar ===== */

.mood-navbar {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}

/* Fondo + blur solo después de salir del hero (ver script en navbar.html) */
.mood-navbar.scrolled {
    background: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .mood-navbar {
        transition: none;
    }
}

/* Distribución en 3 columnas: logo | enlaces centrados | acciones */
#landing-navbar .mood-container.navbar-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 1.5rem;
}

#landing-navbar .mood-brand {
    justify-self: start;
}

#landing-navbar .navbar-center-nav {
    justify-self: center;
}

#landing-navbar .navbar-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

#landing-navbar .mood-nav-links {
    gap: 2.5rem;
}

#landing-navbar .mood-nav-links a {
    color: var(--mood-light);
    font-size: 1rem;
}

#landing-navbar .mood-nav-links a[aria-current="page"] {
    color: var(--mood-primary-light);
}

#landing-navbar .mood-btn.text {
    color: var(--mood-light);
}

/* ===== Selector de idioma ===== */

.lang-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--mood-light);
    font-family: var(--mood-font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-dropdown-toggle .bi-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

#lang-dropdown.open .lang-dropdown-toggle .bi-chevron-down {
    transform: rotate(180deg);
}

#lang-dropdown .mood-dropdown-menu {
    top: calc(100% + 8px);
    min-width: 160px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--mood-shadow-lg);
}

#lang-dropdown .mood-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--mood-light);
    font-family: var(--mood-font-base);
    text-align: left;
}

#lang-dropdown .mood-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

#lang-dropdown .mood-dropdown-item[aria-current="true"] {
    color: var(--mood-primary-light);
    font-weight: 700;
}

/* Wordmark HYPER bicolor — reutilizado en navbar (.sm) y en el hero */
.hyper-wordmark {
    font-family: var(--mood-font-display);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-block;
}

/* Sin anidar bajo .hyper-wordmark a propósito: se reutilizan sueltos
   (ej. el <h2> "Flujo de HYPER") sin necesitar el wrapper completo. */
.accent-part {
    color: var(--mood-primary-light);
}

.light-part {
    color: #fff;
}

.hyper-wordmark.sm {
    font-size: 1.4rem;
}

/* ===== Hero ===== */

.landing-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 0 4rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(88, 99, 248, 0.45), transparent 45%),
        radial-gradient(circle at 85% 65%, rgba(55, 63, 187, 0.22), transparent 50%),
        var(--mood-neutral);
    text-align: center;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.landing-hero .mood-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Marcas decorativas × / + / o */
.hero-deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    object-fit: contain;
}

.hero-deco.deco-close {
    top: 22%;
    left: 3%;
    width: 56px;
    height: 56px;
}

.hero-deco.deco-plus {
    bottom: 16%;
    right: 4%;
    width: 72px;
    height: 72px;
}

.hero-deco.deco-o {
    bottom: 10%;
    left: 7%;
    width: 44px;
    height: 44px;
}

@media (max-width: 768px) {
    .hero-deco {
        display: none;
    }
}

.landing-hero .hyper-wordmark {
    font-size: clamp(3rem, 10vw, 7rem);
    margin: 0;
}

.hero-powered-by {
    margin: 1rem 0 3rem;
    font-family: var(--mood-font-display);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

/* Suelto a propósito, igual que .accent-part/.light-part — reutilizable
   fuera de .hero-powered-by (ej. la sección de prueba social, el footer). */
.oo-accent {
    color: var(--mood-accent);
}

.hero-video-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    background: #000;
}

.hero-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* ===== Secciones ===== */

.landing-section {
    padding: 4.5rem 0;
}

/* ===== ¿Qué es HYPER? ===== */

.hyper-about {
    background: var(--mood-neutral);
    color: #fff;



}

.section-title-lg {
    font-family: var(--mood-font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    text-align: center;
    color: #fff;
    margin: 0 0 2.5rem;
}

.section-title-lg .accent-lime {
    color: var(--mood-accent);
}

.hyper-about-visual {
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
}

.hyper-about-visual img {
    width: 80%;
    margin: auto;
}

.hyper-about-text {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Prueba social ===== */

.hyper-social-proof {
    position: relative;
    overflow: hidden;
    background: var(--mood-neutral);
    text-align: center;
}

.social-proof-deco {
    position: absolute;
    pointer-events: none;
}

.deco-diamond {
    top: -70px;
    left: -70px;
    width: 220px;
    height: 220px;
    border: 3px solid var(--mood-accent);
    transform: rotate(45deg);
    opacity: 0.6;
}

.deco-ring-outer {
    top: -120px;
    right: -160px;
    width: 480px;
    height: 480px;
    border: 1.5px solid rgba(88, 99, 248, 0.35);
    border-radius: 50%;
}

.deco-ring-inner {
    top: -40px;
    right: -60px;
    width: 320px;
    height: 320px;
    border: 1.5px solid rgba(88, 99, 248, 0.5);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .social-proof-deco {
        display: none;
    }
}

.hyper-social-proof .section-title-lg {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3.5rem;
}

.brand-logos-heading {
    position: relative;
    z-index: 1;
    font-family: var(--mood-font-display);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0 0 2rem;
}

.brand-logos-list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem 3rem;
}

/* filter fuerza cualquier logo (a color o negro) a blanco puro, para que
   coincida con el resto sin tener que recolorear cada archivo a mano. */
.brand-logos-list img {
    height: 32px;
    width: auto;
    max-width: 140px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ===== Footer ===== */

.site-footer {
    /* Mismo degradado que .landing-hero, para cerrar la página con la
       misma identidad visual con la que abre. */
    background:
        radial-gradient(circle at 15% 20%, rgba(88, 99, 248, 0.45), transparent 45%),
        radial-gradient(circle at 85% 65%, rgba(55, 63, 187, 0.22), transparent 50%),
        var(--mood-neutral);
    padding-top: 3rem;
}

.site-footer {

    .mood-container-p4 {
        padding: 5px 100px;
    }

}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.footer-countries {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    font-family: var(--mood-font-display);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.footer-countries li:not(:last-child)::after {
    content: '|';
    margin-left: 0.75rem;
    opacity: 0.5;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.footer-copyright {
    margin: 2rem 0 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Flujo de HYPER (círculos superpuestos) ===== */

.hyper-flow {
    background: var(--mood-neutral);
    color: #fff;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 340px;
    margin: 80px 30px;
}

/*
 * Geometría (evita que el 1er y 3er círculo también se solapen entre sí,
 * que fue el bug reportado — el anillo exterior era demasiado grande para
 * la distancia entre centros):
 *   distancia entre centros (= ancho de .flow-step, sin gap)  = 340px
 *   anillo interior (340 > 320)  → NO se solapa con el vecino, deja aire
 *   anillo exterior (340 < 480)  → SÍ se solapa con el vecino inmediato
 *   no-adyacentes (680 > 480)    → nunca se solapan entre sí
 */
.flow-step-outer-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(88, 99, 248, 0.35);
    border-radius: 50%;
    pointer-events: none;
}

.flow-step-inner-ring {
    position: relative;
    z-index: 1;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1.5px solid rgba(88, 99, 248, 0.75);
    background: rgba(5, 5, 6, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
}

.flow-step-inner-ring h3 {
    font-family: var(--mood-font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--mood-primary-light);
    margin: 0 0 0.85rem;
}

.flow-step-inner-ring p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
        padding: 7rem 0 3rem;
    }

    .landing-section {
        padding: 3rem 0;
    }

    .hyper-flow {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .flow-diagram {
        flex-direction: column;
        gap: 2.5rem;
    }

    .flow-step {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .flow-step-outer-ring {
        width: 320px;
        height: 320px;
    }

    .flow-step-inner-ring {
        width: 260px;
        height: 260px;
        padding: 1.75rem;
    }

    #landing-navbar .mood-container.navbar-grid {
        grid-template-columns: 1fr;
        row-gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #landing-navbar .mood-brand,
    #landing-navbar .navbar-center-nav,
    #landing-navbar .navbar-actions {
        justify-self: center;
    }

    #landing-navbar .mood-nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    #landing-navbar .navbar-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hy-chat-bubble {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
        font-size: 0.7rem;
    }
}

/* ===== Globo de chat/ayuda (fijo, sitewide) ===== */

.hy-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--mood-font-display);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: var(--mood-shadow-lg);
    transition: transform 0.2s ease;
}

.hy-chat-bubble:hover {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .hy-chat-bubble {
        transition: none;
    }
}