/* ══ HERO — Claro y Oscuro ══════════════════════════════════════════ */

body {
    background-color: var(--bg-body);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* El hero usa las variables del tema para adaptarse al modo */
#body-inicio {
    background-color: var(--bg-body);
    color: var(--text-color);
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glow radial de fondo (visible principalmente en modo oscuro) */
#body-inicio::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -8%;
    width: 65vw;
    height: 90vh;
    background: radial-gradient(ellipse at center,
            var(--brand-violet-glow) 0%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Etiqueta superior ───────────────────────────────────────────── */
.estrategia {
    font-size: 0.65rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--brand-violet);
    margin: 0;
    padding: 2rem clamp(1.5rem, 6vw, 6rem) 0;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.15s forwards;
    position: relative;
    z-index: 1;
}

/* ── Fila principal del hero ─────────────────────────────────────── */
#hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem clamp(1.5rem, 6vw, 6rem) 4rem;
    position: relative;
    z-index: 1;
    min-height: 82vh;
}

/* ── Columna IZQUIERDA: solo texto ───────────────────────────────── */
#hero-left {
    flex: 1 1 360px;
    max-width: 60em;
}

#hero-left h1 {
    font-size: clamp(2.2rem, 4.2vw, 4.8rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-color);
    margin: 0 0 1.2rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.3s forwards;
}

#hero-left h2 {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0;
    max-width: 480px;
    line-height: 1.88;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.45s forwards;
}

.subtitulo {
    font-weight: 400;
}

/* ── Columna DERECHA: mockup arriba + CTA abajo ──────────────────── */
#hero-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    width: clamp(280px, 40vw, 510px);
    align-self: stretch;
    /* ocupa toda la altura de la fila */
}

/* ── Browser mockup ──────────────────────────────────────────────── */
#hero-browser-wrap {
    width: 100%;
    position: relative;
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
    flex: 1 1 auto;
    align-content: center;
}

/* Modo CLARO */
.browser-mockup {
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(108, 99, 255, 0.15),
        0 24px 60px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Modo OSCURO */
body.dark-mode .browser-mockup {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 0 0 1px rgba(108, 99, 255, 0.25),
        0 32px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(108, 99, 255, 0.12);
}

.browser-topbar {
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85em 1em;
    display: flex;
    align-items: center;
    gap: 0.45em;
    transition: background 0.3s ease;
    flex-direction: row-reverse;
}

body.dark-mode .browser-topbar {
    background: #1c1c1c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dot {
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    display: inline-block;
}

.dot-r {
    background: #ff5f57;
}

.dot-y {
    background: #febc2e;
}

.dot-g {
    background: #28c840;
}

.browser-address {
    margin-right: auto;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.28em 1em;
    font-size: 0.8em;
    color: var(--text-secondary);
    flex: 1;
    max-width: 58%;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.3s ease;
}

body.dark-mode .browser-address {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
}

.browser-body {
    padding: 1.1em;
    display: flex;
    flex-direction: column;
    gap: 0.85em;
}

/* Barra de navegación simulada */
.brow-nav {
    height: 1.4em;
    background: var(--brand-violet-subtle);
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 0.6em;
    gap: 0.6em;
}

.brow-nav::before,
.brow-nav::after {
    content: '';
    display: block;
    height: 0.45em;
    border-radius: 2px;
    background: var(--border-color);
}

.brow-nav::before {
    width: 14%;
}

.brow-nav::after {
    width: 28%;
}

/* Hero simulado */
.brow-hero {
    padding: 1em;
    background: var(--bg-drop-zone);
    border-radius: 6px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    transition: background 0.3s ease;
}

body.dark-mode .brow-hero {
    background: rgba(255, 255, 255, 0.03);
}

.brow-headline {
    height: 1em;
    width: 76%;
    background: linear-gradient(90deg, #6C63FF, #8B85FF);
    border-radius: 3px;
    opacity: 0.8;
}

.brow-sub {
    height: 0.58em;
    width: 55%;
    background: var(--border-color);
    border-radius: 3px;
}

.brow-btn {
    height: 1.55em;
    width: 28%;
    background: var(--brand-violet-gradient);
    border-radius: 3px;
    margin-top: 0.3em;
    box-shadow: 0 0 10px var(--brand-violet-glow);
}

.brow-cards {
    display: flex;
    gap: 0.6em;
}

.brow-card {
    flex: 1;
    height: 3em;
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: background 0.3s ease;
}

body.dark-mode .brow-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Halo detrás del mockup */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(ellipse, var(--brand-violet-glow) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}

/* ── CTA (parte inferior derecha) ────────────────────────────────── */
#contenedor-cta {
    align-self: flex-end;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.8s forwards;
}

.hero-cta {
    display: inline-block;
    background: var(--brand-violet-gradient);
    color: #fff;
    border: none;
    padding: 14px 34px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 28px var(--brand-violet-glow);
    white-space: nowrap;
}

.hero-cta:hover {
    opacity: 0.85;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--brand-violet-glow);
}

/* ══ LOGOS STRIP ════════════════════════════════════════════════════ */
#logos-strip {
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.1rem clamp(1.5rem, 6vw, 6rem);
    overflow-x: auto;
    scrollbar-width: none;
    opacity: 0;
    animation: fadeUp 0.8s ease 1s forwards;
    transition: background 0.3s ease, border-color 0.3s ease;
}

#logos-strip::-webkit-scrollbar {
    display: none;
}

.logos-label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.logos-track {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.tech-badge {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: default;
}

.tech-badge:hover {
    border-color: var(--brand-violet);
    color: var(--brand-violet);
    background: var(--brand-violet-subtle);
}

/* ══ ANIMACIONES ════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ══ RESPONSIVE ═════════════════════════════════════════════════════ */

/* Tablet: columnas apiladas */
@media (max-width: 1020px) {
    .hero-glow {
        top: 0%;
        left: 30%;
    }

    #body-inicio::before {
        top: 30%;
        right: 14%;
    }

    #hero-row {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 2.5rem;
        min-height: auto;
        padding: 3rem clamp(1.5rem, 5vw, 4rem) 3.5rem;
    }

    #hero-left {
        max-width: 100%;
        max-height: 15em;
    }

    #hero-right {
        width: 100%;
        max-width: 480px;
        flex-direction: column;
        align-items: flex-start;
        align-self: auto;
        gap: 2rem;
    }

    #hero-browser-wrap {
        flex: 1;
    }

    #contenedor-cta {
        align-self: baseline;
        flex-shrink: 0;
    }
}

/* Móvil grande */
@media (max-width: 768px) {
    .estrategia {
        padding-top: 1.5rem;
    }

    #hero-left h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    #hero-left h2 {
        font-size: 0.9rem;
    }

    .hero-cta {
        padding: 12px 26px;
        font-size: 0.74rem;
    }

    #logos-strip {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    #hero-right {
        flex-direction: column;
        align-items: flex-start;
    }

    #contenedor-cta {
        align-self: flex-start;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    #hero-row {
        padding: 2rem 1.2rem 2.5rem;
    }

    #hero-left h1 {
        font-size: clamp(1.6rem, 8.5vw, 2.2rem);
    }

    .hero-glow {
        top: 20%;
        left: 30%;
    }

    #body-inicio::before {
        top: 60%;
        right: -20%;
        height: 20em;
        width: 30em;
    }


    .logos-label {
        display: none;
    }
}