/* ===== Tokens (mismos colores del catálogo) ===== */
:root {
  color-scheme: light;
  --navy-950: #06213a;
  --navy: #0a2f50;
  --navy-2: #14405f;
  --navy-3: #1f5479;
  --red: #d01010;
  --red-dark: #a90d0d;
  --pink: #ff9f9f;
  --ink: #1b2a35;
  --muted: #5f6e79;
  --row: #f6f9fb;
  --line: #dde5ea;
  --line-2: #cbd7e1;
  --white: #fff;
  --row-2: #e9f0f5;
  --footer-bg: #041828;
  --ok-bg: #e8f5ec;
  --ok-ink: #1d5c33;
  --err-bg: #fdecec;
  --mark-bg: #fff2a8;
  --mark-ink: #5c4400;

  --font: 'Source Sans 3', 'Calibri', 'Carlito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 40px rgba(6, 33, 58, .14);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--red);
}
::selection { background: var(--navy); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section-brands :focus-visible, .section-dark :focus-visible, .site-footer :focus-visible, .legal-hero :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 12px 20px; }
.skip-link:focus { left: 0; }

/* Etiqueta en MAYÚSCULAS con tracking ancho: la firma tipográfica del catálogo */
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.kicker-pink { color: var(--pink); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; letter-spacing: .01em; border-radius: 999px; border: 2px solid transparent;
  padding: 12px 24px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.text-link { font-weight: 700; color: var(--red); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(6, 33, 58, .1); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: block; padding-block: 8px; }
.brand img { width: 168px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--navy);
  padding: 8px 14px; height: var(--header-h);
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover::after, .nav-areas.is-open .nav-areas-btn::after { transform: scaleX(1); }
.nav-areas-btn svg { transition: transform .2s var(--ease); }
.nav-areas.is-open .nav-areas-btn svg { transform: rotate(180deg); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.header-phone { padding: 12px 14px; margin: -12px -14px; }
.header-phone svg { width: 17px; height: 17px; color: var(--red); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mega menú de áreas (navegación por áreas) */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.nav-areas.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: repeat(4, 1fr) 1fr; gap: 40px; padding-block: 32px 36px; }
.mega-title {
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--navy);
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.mega-title:hover { color: var(--red); }
.mega-title-plain { border: 0; padding-bottom: 0; margin-bottom: 6px; }
.mega ul li a { display: block; padding: 5px 0; color: var(--muted); font-size: .98rem; }
.mega ul li a:hover { color: var(--navy); }
.mega-brands { background: var(--row); border-radius: 12px; padding: 22px; align-self: start; font-size: .95rem; color: var(--muted); }
.mega-brands .text-link { display: inline-block; margin-top: 10px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy) 60%, var(--navy-2) 100%);
  color: #fff;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px;
  padding-block: clamp(32px, 4.5vw, 56px) clamp(28px, 3.5vw, 44px);
}
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; max-width: 17ch; }
.hero-sub { margin-top: 22px; font-size: 1.2rem; color: rgba(255, 255, 255, .82); max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stage { position: relative; aspect-ratio: 1 / .8; width: 100%; max-width: 540px; justify-self: end; }
.hs { position: absolute; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hs-1 { width: 66%; right: 0; top: -6%; }
.hs-2 { width: 56%; left: -6%; bottom: -10%; }
.hs-3 { width: 44%; right: -2%; bottom: -12%; }

/* Franja de marcas dentro del hero, con la curva de la referencia */
.brandbar {
  position: relative; z-index: 2;
  background: #fff; color: var(--ink);
  border-top-left-radius: clamp(28px, 5vw, 64px);
  padding-block: 28px 32px;
}
.brandbar-label {
  text-align: center; font-size: .95rem; font-weight: 600; color: var(--muted);
  margin-bottom: 22px;
}
.brandbar-logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px 28px; align-items: center; }
.brandbar-logos li { display: flex; justify-content: center; }
.brandbar-logos img { width: 100%; max-width: 110px; max-height: 40px; object-fit: contain; }

/* ===== Secciones ===== */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; color: var(--navy); }
.section-head .lead { margin-top: 16px; }

/* ===== Áreas (tabs) ===== */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.tab {
  text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px 22px; position: relative;
  display: grid; grid-template-columns: 1fr; row-gap: 2px;
  color: var(--muted);
  transition: background-color .2s var(--ease);
}
.tab:hover { background: var(--row); }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-name { font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.tab-desc { font-size: .95rem; }
.panel { padding-top: 40px; }
.js .panel[hidden] { display: none; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

.cats { display: grid; gap: 4px; }
.cat {
  padding: 16px 20px; border-radius: 12px; cursor: pointer; position: relative;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.cat h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.cat p { color: var(--muted); margin-top: 4px; font-size: 1rem; }
.cat-brand { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.cat:hover { background: var(--row); }
.cat.is-active { background: var(--row); border-color: var(--navy-3); }

.stage {
  position: sticky; top: calc(var(--header-h) + 24px);
  aspect-ratio: 1 / .9; border-radius: 28px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, #fff 0%, var(--row) 60%, var(--row-2) 100%);
  border: 1px solid var(--line);
}
/* Recuadro de tamaño fijo: la foto se ajusta dentro y nunca lo estira (las verticales se reducen más) */
.stage img {
  position: absolute; inset: 0; margin: auto;
  max-width: 82%; max-height: 82%; width: auto; height: auto; object-fit: contain;
  transition: opacity .25s var(--ease), transform .35s var(--ease); filter: drop-shadow(0 22px 26px rgba(6, 33, 58, .18));
}
.stage.is-portrait img { max-height: 70%; }

/* Foto dentro de la categoría: solo se usa en vista compacta (ver @media 900px) */
.cat-photo { display: none; }
@keyframes photo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stage img.is-swapping { opacity: 0; transform: translateY(8px) scale(.98); }

.panel-brands {
  margin-top: 40px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 16px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.panel-brands-label { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.panel-brands ul { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.panel-brands img { height: 34px; width: auto; max-width: 130px; object-fit: contain; }

/* ===== Marcas ===== */
.section-brands { background: linear-gradient(170deg, var(--navy-950), var(--navy) 70%); color: #fff; }
.section-brands h2 { color: #fff; }
.section-head-light .lead { color: rgba(255, 255, 255, .78); }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand-card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: opacity .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, .25); }
@media (min-width: 1101px) { .brand-grid > .brand-card:nth-last-child(-n+2) { grid-column: span 2; } }
.brand-logo { height: 64px; display: flex; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.brand-logo img { max-height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.brand-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--row); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; }
.brand-featured { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; padding-block: 30px; }
.brand-featured .brand-logo { border: 0; padding: 0; height: auto; flex: 0 0 240px; }
.brand-featured .brand-logo img { max-height: 110px; max-width: 100%; }
.brand-featured p { font-size: 1.1rem; color: var(--ink); }
.brand-featured .tags { flex: 0 0 auto; justify-content: flex-end; max-width: 260px; }

/* ===== Nosotros ===== */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy .lead { margin: 18px 0 30px; }
.values { display: grid; gap: 4px; }
.values li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.values li:last-child { border-bottom: 0; }
.value-icon { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--row); border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); }
.value-icon svg { width: 24px; height: 24px; }
.values h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.values p { color: var(--muted); margin-top: 3px; }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 7vw, 80px); padding-top: 40px; border-top: 1px solid var(--line); }
.numbers > div { padding-left: 24px; border-left: 1px solid var(--line-2); }
.numbers dt { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; color: var(--navy); line-height: 1; }
.numbers dd { margin-top: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ===== Contacto ===== */
.section-dark { background: var(--navy-950); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: rgba(255, 255, 255, .78); margin-top: 16px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 32px; display: grid; gap: 8px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
/* el ícono se centra con la primera línea: relleno del enlace + mitad de la diferencia con el alto de línea */
.contact-list svg { width: 22px; height: 22px; color: var(--pink); flex: 0 0 22px; margin-top: calc(.5rem + (1.1rem * 1.6 - 22px) / 2); }
.contact-list div { display: grid; gap: 0; }
.contact-list a { font-size: 1.1rem; line-height: 1.6; font-weight: 600; padding-block: .5rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--pink); }

.contact-form { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--row);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(10, 47, 80, .12); }
.form-note { font-size: .88rem; color: var(--muted); text-align: center; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; font-weight: 600; text-align: center; border-radius: 10px; padding: 12px 14px; }
.form-status.is-info { background: var(--row); color: var(--navy); }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.form-status.is-error { background: var(--err-bg); color: var(--red-dark); }
.btn:disabled { opacity: .7; cursor: progress; }
.form-note a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Páginas legales ===== */
.legal-hero { background: linear-gradient(160deg, var(--navy-950), var(--navy)); color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.legal-date { margin-top: 10px; color: rgba(255, 255, 255, .72); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { list-style: disc; padding-left: 1.3em; margin-bottom: 14px; display: grid; gap: 4px; }
.legal-body a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pendiente { background: var(--mark-bg); color: var(--mark-ink); padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .72); padding-top: 56px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { width: 170px; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.footer-col h3 { color: #fff; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; padding: 10px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px; font-size: .88rem; display: grid; gap: 8px; }
.footer-legal { max-width: 80ch; opacity: .8; font-size: .85rem; }

/* ===== Animación de entrada ===== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes float-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .hs { animation: float-in .9s var(--ease) both; }
.js .hs-2 { animation-delay: .12s; }
.js .hs-3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .mega-brands { display: none; }
  .mega-inner { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .header-phone span { display: none; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .brandbar-logos { grid-template-columns: repeat(6, 1fr); }
  :root { --header-h: 68px; }
  .brand img { width: 140px; }
  .header-inner { gap: 12px; }
  .header-actions .btn { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions { margin-left: auto; }

  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-link { height: auto; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); justify-content: space-between; font-size: 1.1rem; }
  .nav-link::after { display: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; }
  .nav-areas.is-open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 18px; padding: 14px 0 6px; }
  .mega-brands { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .hero-stage { max-width: 440px; justify-self: center; margin-top: 8px; }

  .tabs { grid-template-columns: 1fr; border-bottom: 0; gap: 8px; }
  .tab { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
  .tab::after { display: none; }
  .tab[aria-selected="true"] { border-color: var(--red); background: var(--row); }
  .panel-grid { grid-template-columns: 1fr; gap: 28px; }
  .stage { display: none; }
  .cat.is-active .cat-photo {
    display: block; width: 100%; height: 240px; object-fit: contain; margin: 14px 0 12px; padding: 16px;
    border-radius: 18px; border: 1px solid var(--line);
    background: radial-gradient(70% 70% at 50% 45%, #fff 0%, var(--row) 60%, var(--row-2) 100%);
    animation: photo-in .3s var(--ease);
  }

  .brand-featured { flex-direction: column; align-items: flex-start; gap: 16px; }
  .brand-featured .brand-logo { flex: none; width: 220px; }
  .brand-featured .tags { justify-content: flex-start; max-width: none; }
  .about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .numbers { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brandbar-logos { grid-template-columns: repeat(4, 1fr); gap: 18px 10px; }
  .brand-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; }
  .brand-card { padding: 18px 16px 16px; gap: 12px; }
  .brand-card p { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .brand-card .brand-logo { height: 52px; padding-bottom: 12px; }
  .brand-card .brand-logo img { max-width: 100%; }
  .brand-featured .brand-logo { height: auto; padding-bottom: 0; }
  .brand-featured .brand-logo img { max-height: 72px; }
  .brand-featured { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 16px; }
  .brand-featured .brand-logo { flex: none; width: 200px; }
  .brand-featured .tags { justify-content: flex-start; max-width: none; }
  .field-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .panel-brands { padding: 18px; }
}

/* Teléfonos pequeños: logos más grandes, el último queda centrado */
@media (max-width: 420px) {
  .brandbar-logos { grid-template-columns: repeat(3, 1fr); }
  .brandbar-logos li:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* Celular en horizontal: el encabezado ya no se queda fijo y ocupa menos */
@media (max-height: 520px) and (max-width: 950px) {
  :root { --header-h: 56px; }
  html { scroll-padding-top: 8px; }
  .site-header { position: relative; }
  .brand img { width: 120px; }
  .hero-inner { padding-block: 20px 16px; }
  .hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.2rem); }
  .hero-sub { margin-top: 12px; font-size: 1.05rem; }
  .hero-cta { margin-top: 18px; }
}

/* Pantallas grandes: todo crece un poco para no verse pequeño */
@media (min-width: 1700px) {
  html { font-size: 112.5%; }
  :root { --container: 1360px; }
}
@media (min-width: 2200px) {
  html { font-size: 125%; }
  :root { --container: 1560px; }
}
