/* ===== HERO NEON CITY ===== */
.main_hero {
    position: relative;
    min-height: 90vh;
    display: grid;
    align-items: end;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.main_hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .85) 0 30%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .9) 100%),
        linear-gradient(180deg, rgba(255, 229, 0, .12), rgba(255, 229, 0, .02)),
        url('../img/hero_home.jpg');
    background-size: cover;
    background-position: center;
    filter: saturate(0.9) contrast(1.05) brightness(.85)
}

.main_hero__wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(18px, 5vw, 48px)
}

/* ===== HERO SPLIT PANELS ===== */
.hero-split {
    display: flex;
    gap: 8px;
    padding: 8px;
    height: 90vh;
    min-height: 560px;
    background: #040404;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hero-split__track {
    display: flex;
    gap: 8px;
    width: 100%;
}

.hero-panel {
    position: relative;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: flex 700ms cubic-bezier(.2, .7, .2, 1), filter 500ms ease, transform 500ms ease;
    cursor: default;
    display: grid;
    align-items: end;
}

.hero-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.05);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .85) 78%);
    transition: opacity 400ms ease;
}

.hero-panel__content {
    position: relative;
    z-index: 2;
    padding: 26px;
    display: grid;
    gap: 10px;
    transform: translateY(14px);
    transition: transform 400ms ease, opacity 400ms ease;
    opacity: .85;
}

.hero-panel__tag {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--neo);
}

.hero-panel__title {
    margin: 0;
    font-size: clamp(20px, 2.1vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: -2px 0 0 rgba(255, 0, 100, 0.9), 2px 0 0 rgba(0, 255, 255, 0.9);
}

.hero-panel__desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    max-width: 280px;
}

.hero-panel__vertical {
    position: absolute;
    top: 18px;
    left: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: .18em;
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-shadow: -3px 0 0 rgba(255, 0, 100, 0.95), 3px 0 0 rgba(0, 255, 255, 0.95);
    opacity: .9;
    z-index: 2;
    transition: opacity 300ms ease;
}

.hero-panel__cta {
    position: absolute;
    top: 30px;
    right: 79px;
    z-index: 3;
    display: block;
    width: 250px;
    height: 72px;
    transform: rotate(15deg) translateX(80px);
}

.hero-panel__cta img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: none;
    transition: transform 200ms ease;
    transform-origin: center center;
}

.hero-panel__cta:hover img {
    transform: scale(1.12);
    animation: hero-cta-wiggle 0.45s ease-in-out;
}

@keyframes hero-cta-wiggle {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.06) rotate(4deg); }
    60% { transform: scale(1.1) rotate(-5deg); }
    85% { transform: scale(1.12) rotate(3deg); }
    100% { transform: scale(1.12) rotate(0deg); }
}

.hero-panel.is-active {
    flex: 3;
    transform: translateY(-4px);
    filter: drop-shadow(0 16px 50px rgba(0, 0, 0, .6));
}

.hero-panel.is-active .hero-panel__tag { color: var(--mag); }
.hero-panel.is-active .hero-panel__content { transform: translateY(0); opacity: 1; }
.hero-panel.is-active::after { opacity: .6; }
.hero-panel.is-active .hero-panel__vertical { opacity: 0; }
.hero-panel:not(.is-active) .hero-panel__content { opacity: 0; transform: translateY(24px); }

@media (max-width: 980px) {
    .hero-split {
        flex-direction: column;
        height: 70vh;
        min-height: 520px;
        padding: 10px;
    }

    .hero-split__track {
        flex-direction: column;
    }

    .hero-panel {
        min-height: 70vh;
        display: none;
        flex: none;
    }

    .hero-panel.is-active,
    .hero-panel:first-child {
        display: grid;
    }

    .hero-panel__content { padding: 20px; }
    .hero-panel__title { font-size: clamp(22px, 7vw, 32px); }
    .hero-panel__desc { font-size: 13px; }
    .hero-panel__vertical {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        top: 12px;
        left: 12px;
        font-size: 14px;
        letter-spacing: .14em;
    }
    .hero-panel:not(.is-active) .hero-panel__content { opacity: 1; transform: none; }
    .hero-panel.is-active .hero-panel__vertical { opacity: 1; }
    .hero-panel::after { opacity: 0; }
}

/* search */
.search {
    max-width: 680px;
    margin: 0 auto 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 229, 0, .05);
    border: 1px solid rgba(255, 229, 0, .45);
    border-radius: 12px;
    padding: 10px 12px
}

.search svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    opacity: .9
}

.search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--paper);
    font-size: 15px
}

.glitch-hero {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: lighten;
}

.scan-img-wrap,
.cover {
    position: relative;
}

.scan-img-wrap {
    position: relative;
    display: inline-block;
}

.scan-img-wrap img {
    display: block;
    position: relative;
    z-index: 1;
}

.scan-img-wrap .scan {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* HERO */
.hero {
    position: relative;
    border-bottom: 2px solid var(--yellow)
}

.hero__in {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 18px 48px
}

.eyebrow {
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--yellow)
}

h1 {
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.02;
    margin: .1em 0;
    font-weight: 1000
}

.subtitle {
    color: var(--muted)
}

.cta {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap
}


.btn--ghost {
    background: transparent;
    color: var(--paper)
}

.btn--ghost:hover {
    background: #111
}

.cover {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .12)
}

.cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cover .left {
    clip-path: polygon(0 0, 64% 0, 36% 100%, 0 100%)
}

.cover .right {
    clip-path: polygon(64% 0, 100% 0, 100% 100%, 36% 100%)
}

.scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .7) 0 2px, rgba(0, 0, 0, 0) 2px 4px)
}

.frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    outline: 2px solid var(--yellow);
    outline-offset: -10px;
    border-radius: 14px
}

/* STRIP / MARQUEE */
.strip {
    border-top: 2px solid var(--yellow);
    border-bottom: 2px solid var(--yellow);
    background: #0e0f13
}

.strip__in {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

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

    .reveal-left,
    .reveal-right {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

.track {
    display: inline-flex;
    gap: 48px;
    white-space: nowrap;
    padding: 10px 0;
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: .12em;
    min-width: 200%;
    animation: marq 22s linear infinite;
}

@keyframes marq {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* UNIVERSOS (dos banners anchos) */
.universos {
    background: #0b0c10;
    padding: 32px 0;
    border-top: 2px solid var(--yellow);
}

.hx {
    font-size: clamp(28px, 4.6vw, 44px);
    margin: 0 0 14px
}

.u-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px
}

.ubanner {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    overflow: hidden
}

.ubanner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05)
}

.ubody {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, transparent 0, #000 85%);
    padding: 16px
}

.utitle {
    font-weight: 1000;
    font-size: 22px
}

.usub {
    opacity: .9
}

.ucta {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid var(--yellow);
    background: var(--yellow);
    color: #111;
    font-weight: 900
}

.ucta--orbit {
    border-color: var(--orbit);
    background: var(--orbit)
}

/* EN PROGRESO (grid neutral) */
.working {
    background: #0e0f13;
    padding: 32px 0;
    border-top: 2px solid var(--yellow)
}

.feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.post {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02))
}

.post__media {
    position: relative;
    aspect-ratio: 16/10
}

.post__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.post__body {
    padding: 12px 14px
}

/* TECH INTRO */
.tech {
    background: #0b0c10;
    padding: 32px 0;
    border-top: 2px solid var(--yellow)
}

.tech__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: center
}

.panel {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    padding: 18px;
    background: #0e0f13
}

.panel h3 {
    margin: 0 0 8px
}

.go {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid var(--yellow);
    background: transparent
}

.go:hover {
    background: #111
}

@media (max-width:1080px) {
    .u-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:960px) {
    .hero__in {
        grid-template-columns: 1fr
    }

    .feed {
        grid-template-columns: 1fr
    }

    .tech__grid {
        grid-template-columns: 1fr
    }
}
