@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Special+Gothic+Condensed+One&display=swap');

:root {
    --black: #000;
    --white: #fff;
    --red: #ba251d;
    --red-light: #f04c40;
    --font: "Special Gothic Condensed One", sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer
}

/* ========================= NAVBAR ========================= */
.site-header {
    /* Estado oscuro (sobre el hero) */
    --nav-bg: rgba(12, 12, 12, .55);
    --nav-fg: #fff;
    --nav-muted: rgba(255, 255, 255, .72);
    --nav-line: rgba(255, 255, 255, .12);
    --panel-bg: rgba(14, 14, 14, .94);
    --panel-card: rgba(255, 255, 255, .05);
    --nav-shadow: 0 10px 30px rgba(0, 0, 0, .35);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: 16px;
    pointer-events: none;
    transition: padding .45s var(--ease);
    transform: translateY(-130%);
    opacity: 0;
}

.site-header.is-ready {
    animation: navIn .9s var(--ease) .1s forwards
}

@keyframes navIn {
    to {
        transform: none;
        opacity: 1
    }
}

/* Estado blanco al hacer scroll */
.site-header.is-scrolled {
    --nav-bg: rgba(255, 255, 255, .97);
    --nav-fg: #111;
    --nav-muted: #3a3a3a;
    --nav-line: rgba(0, 0, 0, .1);
    --panel-bg: #fff;
    --panel-card: #f4f4f4;
    --nav-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    padding-top: 10px;
}

.nav {
    pointer-events: auto;
    position: relative;
    width: min(92%, 1400px);
    height: 74px;
    margin: 0 auto;
    padding: 0 18px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 999px;
    background: var(--nav-bg);
    color: var(--nav-fg);
    border: 1px solid var(--nav-line);
    box-shadow: var(--nav-shadow);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease, height .45s var(--ease);
}

.is-scrolled .nav {
    height: 64px
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0
}

.logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: height .45s var(--ease), transform .3s var(--ease)
}

.is-scrolled .logo img {
    height: 40px
}

.logo:hover img {
    transform: scale(1.05)
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1
}

.logo-name {
    font-size: 1.5rem;
    letter-spacing: -.01em
}

.logo-sub {
    font-size: .95rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red-light);
    transition: color .4s
}

.is-scrolled .logo-sub {
    color: var(--red)
}

/* Enlaces */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 1.2rem;
    color: var(--nav-muted);
    transition: color .25s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-expanded="true"] {
    color: var(--nav-fg)
}

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-link[aria-expanded="true"]::after {
    transform: scaleX(1)
}

.nav-link:focus-visible,
.btn-cta:focus-visible,
.burger:focus-visible,
.mega a:focus-visible,
.m-link:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 8px
}

.chev {
    transition: transform .35s var(--ease)
}

.nav-link[aria-expanded="true"] .chev {
    transform: rotate(180deg)
}

/* Botón principal */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}

.btn-cta svg {
    transition: transform .3s var(--ease)
}

.btn-cta:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(186, 37, 29, .4)
}

.btn-cta:hover svg {
    transform: translateX(4px)
}

/* ===== Menú de productos (escritorio) ===== */
.mega {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.1fr;
    gap: 12px;
    padding: 22px;
    border-radius: 28px;
    background: var(--panel-bg);
    color: var(--nav-fg);
    border: 1px solid var(--nav-line);
    box-shadow: var(--nav-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.985);
    transform-origin: top center;
    transition: opacity .3s ease, transform .45s var(--ease), visibility 0s linear .45s, background .4s, color .4s;
}

.mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s
}

.mega-col {
    padding: 18px;
    border-radius: 18px;
    background: var(--panel-card);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s ease, transform .5s var(--ease), background .4s;
}

.mega.is-open .mega-col {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * 70ms + 80ms)
}

.mega-col h3 {
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 4px
}

.mega-col .desc {
    font-size: 1.05rem;
    color: var(--nav-muted);
    margin-bottom: 12px;
    line-height: 1.2
}

.mega-col ul {
    list-style: none;
    display: grid;
    gap: 2px
}

.mega-col a {
    display: block;
    padding: 6px 0;
    font-size: 1.12rem;
    color: var(--nav-muted);
    transition: color .2s, transform .3s var(--ease)
}

.mega-col a:hover {
    color: var(--red);
    transform: translateX(6px)
}

.mega-feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: 18px;
    background: var(--red);
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s ease, transform .5s var(--ease);
}

.mega.is-open .mega-feature {
    opacity: 1;
    transform: none;
    transition-delay: 420ms
}

.mega-feature h3 {
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.05
}

.mega-feature p {
    font-size: 1.1rem;
    line-height: 1.25;
    margin-top: 8px;
    opacity: .92
}

.mega-feature a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 1.15rem;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    width: max-content;
    transition: transform .3s var(--ease)
}

.mega-feature a:hover {
    transform: translateX(4px)
}

/* ===== Móvil ===== */
.burger {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    position: relative;
    border: 1px solid var(--nav-line);
    transition: border-color .3s
}

.burger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .4s var(--ease), opacity .2s, top .4s var(--ease)
}

.burger span:nth-child(1) {
    top: 16px
}

.burger span:nth-child(2) {
    top: 22px
}

.burger span:nth-child(3) {
    top: 28px
}

.burger[aria-expanded="true"] span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg)
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
}

.burger[aria-expanded="true"] span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg)
}

.mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100svh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border-radius: 26px;
    background: var(--panel-bg);
    color: var(--nav-fg);
    border: 1px solid var(--nav-line);
    box-shadow: var(--nav-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .45s var(--ease), visibility 0s linear .45s, background .4s, color .4s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s
}

.m-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    font-size: 1.35rem;
    text-align: left;
    color: var(--nav-fg);
    transition: background .25s
}

.m-link:hover,
.m-link.is-active {
    background: var(--panel-card)
}

.m-link.is-active {
    color: var(--red)
}

.m-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s var(--ease)
}

.m-sub.is-open {
    grid-template-rows: 1fr
}

.m-sub>div {
    overflow: hidden
}

.m-sub ul {
    list-style: none;
    padding: 4px 0 8px 16px;
    margin: 0 0 4px 16px;
    border-left: 2px solid var(--red)
}

.m-sub a {
    display: block;
    padding: 10px 12px;
    font-size: 1.15rem;
    color: var(--nav-muted)
}

.m-sub a:hover {
    color: var(--red)
}

.m-cta {
    margin-top: 8px;
    justify-content: center;
    width: 100%;
    padding: 16px
}

/* Escalonado de entrada del menú móvil */
.mobile-menu .m-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .45s var(--ease)
}

.mobile-menu.is-open .m-item {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * 55ms + 100ms)
}

@media (max-width:1100px) {
    .nav-link {
        padding: 10px 11px
    }

    .mega {
        grid-template-columns: repeat(2, 1fr)
    }

    .mega-feature {
        grid-column: 1 / -1
    }
}

@media (max-width:960px) {

    .nav-links,
    .nav>.btn-cta,
    .mega {
        display: none
    }

    .burger {
        display: block
    }

    .nav {
        height: 66px;
        padding: 0 12px 0 16px
    }

    .logo img {
        height: 38px
    }

    .logo-name {
        font-size: 1.3rem
    }

    .logo-sub {
        font-size: .85rem
    }
}

@media (max-width:380px) {
    .logo-text {
        display: none
    }
}

@media (min-width:961px) {
    .mobile-menu {
        display: none
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        transition-delay: 0s !important
    }

    html {
        scroll-behavior: auto
    }
}

/* ===== Secciones de prueba (borra esto al integrar) ===== */
.demo {
    min-height: 100vh;
    display: grid;
    place-items: center;
    font-size: 3rem;
    padding: 40px
}

.demo.light {
    background: #efefef;
    color: #111
}