/* GameMediaX — estilos base del sitio público (requiere tokens.css) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }



html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%,   rgba(255,107,26,.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(60,40,120,.06)  0%, transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;        /* WCAG: mínimo 16px en mobile evita auto-zoom iOS */
    line-height: 1.6;
    min-height: 100dvh;     /* dvh en lugar de vh — más correcto en mobile */
    -webkit-font-smoothing: antialiased;
}

a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── SKIP LINK (accesibilidad teclado) ─── */
.skip-link {
    position: absolute; left: -9999px; top: 1rem;
    background: var(--orange); color: #fff;
    padding: .5rem 1rem; border-radius: 6px;
    font-size: .85rem; font-weight: 700; z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ─── FOCUS RINGS (accesibilidad teclado) ─── */
:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}
/* inputs manejan su propio focus */
.form-control:focus-visible,
.search-wrap input:focus-visible { outline: none; }

/* ─── KEYFRAMES ─── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slide-right {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 6px var(--orange); opacity: 1; }
    50%      { box-shadow: 0 0 14px var(--orange), 0 0 28px rgba(255,107,26,.5); opacity: .8; }
}

/* Clases de animación reutilizables */
.anim-fade-up   { animation: fade-up   var(--dur-slow) var(--ease-out) both; }
.anim-fade-in   { animation: fade-in   var(--dur-mid)  var(--ease-out) both; }
.anim-slide-right { animation: slide-right var(--dur-slow) var(--ease-out) both; }
.anim-scale-in  { animation: scale-in  var(--dur-slow) var(--ease-spring) both; }

/* Delays para stagger */
.anim-d1  { animation-delay:  60ms; }
.anim-d2  { animation-delay: 120ms; }
.anim-d3  { animation-delay: 180ms; }
.anim-d4  { animation-delay: 240ms; }
.anim-d5  { animation-delay: 300ms; }
.anim-d6  { animation-delay: 360ms; }
.anim-d7  { animation-delay: 420ms; }
.anim-d8  { animation-delay: 480ms; }

/* Respeto prefers-reduced-motion — deshabilita toda animación */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay:    0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── TOPBAR ─── */
.topbar {
    background: rgba(5,5,7,.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
    z-index: 300;
}
.topbar-inner {
    max-width: 1300px;
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: var(--text-muted);
}
.topbar a { color: var(--text-muted); transition: color var(--dur-fast); }
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.2rem; }
.topbar-lang {
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--text-muted);
}
.topbar-lang [data-lucide] { width: 12px; height: 12px; }

/* ─── HEADER ─── */
body > header {
    background: rgba(10,10,13,.75);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border-md);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: inset 0 -1px 0 var(--border-md), 0 1px 0 rgba(255,107,26,.06);
}
.header-inner {
    max-width: 1300px;
    margin: auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 1.5rem;
}

/* ─── LOGO ─── */
.logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.logo-plain  { color: var(--white); }
.logo-accent { color: var(--orange); text-shadow: 0 0 20px rgba(255,107,26,.5); }
.logo-dot {
    display: inline-block;
    width: 5px; height: 5px;
    background: var(--orange);
    border-radius: 50%;
    margin-left: 2px;
    vertical-align: super;
    box-shadow: 0 0 10px var(--orange), 0 0 20px rgba(255,107,26,.4);
    animation: pulse-dot 3s ease-in-out infinite;
}

/* ─── NAV ─── */
.primary-nav {
    display: flex;
    align-items: stretch;
    height: 60px;
    flex: 1;
}
.primary-nav a {
    display: flex;
    align-items: center;
    padding: 0 .9rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--text-dim);
    border-bottom: 2px solid transparent;
    transition: color var(--dur-fast), border-color var(--dur-fast);
    white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.active { color: var(--white); border-bottom-color: var(--orange); }

/* ─── SEARCH ─── */
.search-wrap { position: relative; flex: 0 0 220px; }
.search-wrap input {
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-md);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: .85rem;
    padding: .5rem .9rem .5rem 2.2rem;
    transition: border-color var(--dur-mid), box-shadow var(--dur-mid), background var(--dur-mid);
}
.search-wrap input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow-sm), inset 0 0 12px rgba(255,107,26,.04);
    background: var(--glass-md);
}
.search-wrap input::placeholder { color: var(--text-muted); }
.search-icon {
    position: absolute; left: .7rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Lucide icon sizing */
[data-lucide] { width: 14px; height: 14px; stroke-width: 2; vertical-align: middle; flex-shrink: 0; }
.icon-sm [data-lucide] { width: 12px; height: 12px; }
.icon-md [data-lucide] { width: 16px; height: 16px; }
.icon-lg [data-lucide] { width: 18px; height: 18px; }

/* ─── SUBNAV ─── */
.subnav {
    background: linear-gradient(180deg, rgba(15,15,18,.95) 0%, rgba(10,10,13,.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.subnav-inner {
    max-width: 1300px; margin: auto; padding: 0 1.5rem;
    display: flex; overflow-x: auto; scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-inner a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .5rem .85rem;
    font-size: .75rem; font-weight: 600;
    color: var(--text-muted); white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--dur-fast), border-color var(--dur-fast);
}
.subnav-inner a:hover { color: var(--text); border-bottom-color: var(--border-md); }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .4rem; padding: .52rem 1.1rem; border-radius: 7px;
    font-family: inherit; font-size: .82rem; font-weight: 700;
    cursor: pointer; border: none; letter-spacing: .2px;
    transition: all var(--dur-mid); white-space: nowrap; line-height: 1;
    touch-action: manipulation; /* elimina delay de 300ms en mobile */
    user-select: none;
}
.btn-primary {
    background: linear-gradient(135deg, #ff7a2a 0%, #e04800 100%);
    color: #fff;
    box-shadow: 0 2px 14px rgba(255,107,26,.4), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c3e 0%, #f05200 100%);
    box-shadow: 0 4px 24px rgba(255,107,26,.55), inset 0 1px 0 rgba(255,255,255,.2);
    transform: translateY(-1px);
    color: #fff;
}
.btn-primary:active  { transform: scale(.97); }

.btn-ghost {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-md);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--glass-md); }

.btn-dark {
    background: linear-gradient(135deg, var(--bg4) 0%, var(--bg3) 100%);
    border: 1px solid var(--border-md);
    color: var(--text);
}
.btn-dark:hover { border-color: var(--border-orange); color: var(--white); }

.btn-danger { background: rgba(242,95,92,.12); border: 1px solid rgba(242,95,92,.3); color: var(--red); }
.btn-danger:hover { background: rgba(242,95,92,.22); color: var(--red); }
.btn-sm   { padding: .38rem .8rem; font-size: .76rem; border-radius: 6px; }
.btn-lg   { padding: .72rem 1.6rem; font-size: .88rem; border-radius: 8px; }
.btn-full { width: 100%; }

/* ─── LAYOUT ─── */
.page-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

/* ─── GLASS CARD ─── */
.card {
    background: linear-gradient(145deg, var(--glass-md) 0%, var(--glass) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-md);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, transparent 40%);
    pointer-events: none;
}
.card-body { padding: 1.2rem; position: relative; }

/* ─── GAME CARD ─── */
.game-card {
    background: linear-gradient(160deg, var(--bg3) 0%, var(--bg2) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    touch-action: manipulation;
    /* border/shadow rápido, transform con spring para rebote físico */
    transition:
        border-color var(--dur-mid),
        box-shadow var(--dur-mid),
        transform .45s var(--ease-spring);
    display: flex;
    flex-direction: column;
    position: relative;
}
/* Glow ambient que aparece en hover */
.game-card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 11px;
    background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255,107,26,.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--dur-mid);
    pointer-events: none;
    z-index: 0;
}
.game-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.025) 0%, transparent 30%);
    pointer-events: none;
    z-index: 1;
}
.game-card:hover {
    border-color: var(--border-orange);
    box-shadow:
        0 12px 40px rgba(0,0,0,.7),
        0 0 0 1px rgba(255,107,26,.15),
        0 0 30px rgba(255,107,26,.08),
        inset 0 1px 0 rgba(255,255,255,.06);
    transform: translateY(-6px);
}
.game-card:hover::before { opacity: 1; }
.game-card:active { transform: translateY(-2px) scale(.97); transition-duration: .1s; }

.game-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg4), var(--bg3));
    overflow: hidden;
}
.game-thumb img { width:100%; height:100%; object-fit:cover; transition: transform var(--dur-slow); }
.game-card:hover .game-thumb img { transform: scale(1.07); }
.game-thumb-placeholder {
    width:100%; height:100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg5) 0%, var(--bg3) 100%);
    font-size: 1.6rem;
}
.game-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(21,21,26,.7) 0%, transparent 50%);
    pointer-events: none;
}
.game-badge {
    position: absolute; top: .5rem; left: .5rem; z-index: 2;
    font-size: .65rem; font-weight: 700;
    padding: .18rem .5rem; border-radius: 4px;
    text-transform: uppercase; letter-spacing: .3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.badge-free { background: rgba(61,220,132,.15); color: var(--green);  border: 1px solid rgba(61,220,132,.3); }
.badge-sale { background: rgba(255,107,26,.2);  color: var(--orange); border: 1px solid rgba(255,107,26,.4); }
.badge-new  { background: rgba(120,140,255,.18);color: #a0aaff;       border: 1px solid rgba(120,140,255,.3); }
.badge-ea   { background: rgba(255,210,60,.12); color: var(--yellow); border: 1px solid rgba(255,210,60,.3); }

.game-info { padding: .8rem; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; }
.game-title {
    font-weight: 700; font-size: .9rem; color: var(--white);
    line-height: 1.3; margin-bottom: .2rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--dur-fast);
}
.game-card:hover .game-title { color: var(--orange); }
.game-dev { font-size: .75rem; color: var(--text-muted); margin-bottom: .6rem; }
.game-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.game-price { font-size: .92rem; font-weight: 800; color: var(--orange); }
.game-price.free { color: var(--green); }
.game-tags { display: flex; gap: .25rem; flex-wrap: wrap; }
.tag {
    font-size: .64rem; font-weight: 600;
    padding: .13rem .38rem; border-radius: 3px;
    background: var(--glass); color: var(--text-muted);
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

/* ─── SECTION HEADER ─── */
.section-hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .8px;
    color: var(--white);
    display: flex; align-items: center; gap: .5rem;
}
.section-title::before {
    content: '';
    display: block; width: 3px; height: 1em;
    background: linear-gradient(to bottom, #ff8a3a, var(--orange-dim));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--orange-glow);
}
.section-more {
    font-size: .73rem; font-weight: 600;
    color: var(--text-muted); letter-spacing: .2px;
    transition: color var(--dur-fast);
    display: inline-flex; align-items: center; gap: .25rem;
}
.section-more:hover { color: var(--orange); }

/* ─── GRIDS ─── */
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: .9rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block; font-size: .73rem; font-weight: 600;
    color: var(--text-dim); text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: .35rem;
}
.form-control {
    width: 100%;
    background: linear-gradient(145deg, var(--glass-md), var(--glass));
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-md);
    border-radius: 7px; color: var(--white);
    font-family: inherit; font-size: 1rem;
    padding: .62rem .9rem;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
    touch-action: manipulation;
}
.form-control:focus {
    outline: none; border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow-sm), inset 0 0 16px rgba(255,107,26,.03);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }

.check-row { display: flex; align-items: center; gap: .5rem; }
.check-row input[type=checkbox] { width:16px;height:16px;accent-color:var(--orange);cursor:pointer; }
.check-label { font-size: .85rem; color: var(--text-dim); cursor: pointer; }

/* ─── ALERTS ─── */
.alert {
    padding: .8rem 1rem .8rem 1.2rem; border-radius: 7px;
    margin-bottom: 1rem; font-size: .88rem;
    border-left: 3px solid; list-style: none;
    backdrop-filter: blur(8px);
}
.alert-error { background: rgba(220,50,50,.07); border-color: #dc3232; color: #ffaaaa; }

/* ─── DIVIDER ─── */
.or-divider {
    display: flex; align-items: center; gap: .8rem;
    margin: 1rem 0; color: var(--text-muted);
    font-size: .73rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
}
.or-divider::before, .or-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-md));
}
.or-divider::after { background: linear-gradient(90deg, var(--border-md), transparent); }

/* ─── OAUTH ─── */
.oauth-btn {
    width: 100%; display: flex; align-items: center; justify-content: center;
    gap: .6rem; padding: .6rem 1rem; border-radius: 7px;
    font-family: inherit; font-size: .82rem; font-weight: 600;
    cursor: pointer; border: 1px solid var(--border-md);
    transition: border-color var(--dur-fast), background var(--dur-fast);
    margin-bottom: .5rem;
    backdrop-filter: blur(8px);
    touch-action: manipulation;
}
.oauth-google { background: var(--glass-md); color: var(--white); }
.oauth-google:hover { border-color: var(--border-orange); background: var(--glass-bright); }
.oauth-github { background: rgba(22,27,34,.8); color: #e6edf3; border-color: rgba(48,54,61,.8); }
.oauth-github:hover { border-color: #555; background: rgba(22,27,34,1); }

/* ─── GLOW DIVIDER ─── */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,107,26,.08) 20%,
        rgba(255,107,26,.2) 50%,
        rgba(255,107,26,.08) 80%,
        transparent 100%
    );
    margin: 2rem 0;
    position: relative;
}
.glow-line::after {
    content: '';
    position: absolute; top: -2px; left: 30%; right: 30%; height: 5px;
    background: radial-gradient(ellipse, rgba(255,107,26,.15), transparent 70%);
}

/* ─── FOOTER ─── */
footer {
    background: linear-gradient(180deg, var(--bg2) 0%, #050507 100%);
    border-top: 1px solid var(--border-md);
    margin-top: 4rem;
    position: relative;
}
footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,107,26,.15), transparent);
}
.footer-inner {
    max-width: 1300px; margin: auto;
    padding: 2.5rem 1.5rem 1.5rem;
    display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: .5px; display: inline-block; margin-bottom: .7rem;
}
.footer-logo .plain { color: var(--white); }
.footer-logo .acc   { color: var(--orange); text-shadow: 0 0 20px rgba(255,107,26,.4); }
.footer-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.7; max-width: 270px; }
footer h5 {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .8px; color: var(--text-muted); margin-bottom: .8rem;
}
footer ul  { list-style: none; }
footer li  { margin-bottom: .38rem; }
footer li a {
    font-size: .82rem; color: var(--text-dim);
    transition: color var(--dur-fast);
    display: inline-flex; align-items: center; gap: .4rem;
}
footer li a:hover { color: var(--white); }
footer li a [data-lucide] { width: 12px; height: 12px; opacity: .6; }
.footer-bottom {
    max-width: 1300px; margin: 0 auto; padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    font-size: .73rem; color: var(--text-muted);
}

/* ─── NAV: estado activo, badge, menú móvil ─── */
.primary-nav a[aria-current="page"] { color: var(--orange); }
.nav-bell { display:inline-flex; align-items:center; gap:.3rem; position:relative; }
.nav-badge { position:absolute; top:-5px; right:-6px; background:var(--orange); color:#000; font-size:.6rem; font-weight:800;
             min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 3px; }
.nav-badge.static { position:static; display:inline-flex; margin-left:auto; }
.nav-burger { display:none; background:none; border:1px solid var(--border-md); color:var(--text); border-radius:8px;
              width:38px; height:38px; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
.nav-burger svg { width:20px; height:20px; }
.mnav-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:900; }
.mnav { position:fixed; top:0; left:0; bottom:0; width:min(84vw,320px); background:var(--bg2); border-right:1px solid var(--border-md);
        z-index:901; overflow-y:auto; padding:1rem; animation:mnavIn .18s ease-out; }
.mnav[hidden], .mnav-overlay[hidden] { display:none; }
@keyframes mnavIn { from { transform:translateX(-100%); } to { transform:none; } }
.mnav-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.mnav-head .nav-burger { display:inline-flex; }
.mnav-links { display:flex; flex-direction:column; gap:.15rem; }
.mnav-links a { display:flex; align-items:center; gap:.7rem; padding:.7rem .6rem; border-radius:8px; color:var(--text); font-weight:600; font-size:.95rem; text-decoration:none; }
.mnav-links a:hover, .mnav-links a[aria-current="page"] { background:var(--glass-md); color:var(--orange); }
.mnav-links a svg { width:18px; height:18px; flex-shrink:0; }
.mnav-sep { height:1px; background:var(--border-md); margin:.8rem 0; }
@media (prefers-reduced-motion: reduce) { .mnav { animation:none; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .search-wrap { flex: 1 1 160px; min-width: 0; }
    .hide-md { display: none; }
    .primary-nav a { padding: 0 .65rem; }
}
@media (max-width: 960px) {
    .primary-nav { display: none; }
    .nav-burger { display: inline-flex; }
    .header-inner { gap: .6rem; }
}
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 900px) {
    .grid-5 { grid-template-columns: repeat(3,1fr); }
    .grid-4 { grid-template-columns: repeat(3,1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .grid-5,.grid-4,.grid-3 { grid-template-columns: repeat(2,1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .primary-nav { display: none; }
    .search-wrap { flex: 1; }
    .topbar { display: none; } /* en mobile, la cuenta y los links viven en el menú lateral */
    .nav-burger { display: inline-flex; }
    .hide-sm { display: none; }
    .header-inner { gap: .5rem; }
}
