/* Tipografías servidas desde el sitio (subconjunto latino, variables) */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/hanken-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("fonts/league-spartan-latin.woff2") format("woff2"); }

:root {
  --navy: #02084B;
  --ink: #00041F;
  --orange: #FF751F;
  --orange-hover: #FF8A40;
  --v1: #9DCD5A;
  --v2: #FFD230;
  --v3: #00FCFC;
  --paper: #F4F5F9;
  --white: #FFFFFF;
  --muted: #5B6285;
  --muted-on-dark: #A9AECB;
  --line: #DDE0EA;
  --wa: #15803D; /* verde WhatsApp oscurecido: texto blanco con contraste AA */

  --font-display: "League Spartan", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { accent-color: var(--orange); scroll-padding-top: 140px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
/* con width/height en el HTML (sin salto de diseño), el alto lo pone la proporción */
:where(img[width][height]) { height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
::selection { background: var(--orange); color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.req { color: #C2410C; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--orange); color: var(--navy); padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.skip-link:focus { top: 12px; }
#contenido:focus { outline: none; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; flex-direction: column; flex: none;
  font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 0.9;
  text-decoration: none; padding-bottom: 0.08em;
  color: var(--white); --ring: var(--orange); --core: var(--white);
}
.logo > span { display: flex; align-items: baseline; }
.logo-o { width: 0.78em; height: 1.061em; margin: -0.3em 0.03em 0; overflow: visible; }
.logo--neg { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa svg { width: 20px; height: 20px; }
.btn--add { background: var(--navy); color: var(--white); min-height: 40px; font-size: 14px; }
.btn--add.btn--primary { background: var(--orange); color: var(--navy); }
.btn--add.is-added { background: transparent; border-color: var(--navy); color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--orange-hover); }
  .btn--add:hover { background: #1A2166; }
  .btn--add.btn--primary:hover { background: var(--orange-hover); }
  .btn--add.is-added:hover { background: var(--paper); }
  .btn--wa:hover { background: #166534; }
}
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--sm svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--paper); } }

/* ---------- Header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); color: var(--white); }
.hdr-top { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 72px; }
.hdr-search { flex: 1; max-width: 640px; transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.hdr-search.is-hidden { opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; }
.quote-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px 0 16px;
  background: rgba(255,255,255,.08); color: var(--white);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color 160ms ease;
}
.quote-btn svg { width: 20px; height: 20px; }
.quote-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18); font-size: 13px;
}
.quote-count:not([data-n="0"]) { background: var(--orange); color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .quote-btn:hover { background: rgba(255,255,255,.14); } }

.cats-nav { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); }
.cats-nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats-nav-inner::-webkit-scrollbar { display: none; }
.cats-nav a {
  flex: none; display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 12px;
  color: var(--muted-on-dark); text-decoration: none; font-size: 14px; font-weight: 500;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color 160ms ease, box-shadow 160ms ease;
}
.cats-nav a[style]::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.cats-nav a:first-child { padding-left: 0; color: var(--white); font-weight: 700; }
.cats-nav-emp { margin-left: auto; color: var(--white) !important; }
@media (hover: hover) and (pointer: fine) { .cats-nav a:hover { color: var(--white); box-shadow: inset 0 -3px 0 var(--c, var(--orange)); } }

@media (max-width: 760px) {
  .hdr-top { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .hdr-search { order: 3; flex-basis: 100%; max-width: none; }
  .hdr-search.is-hidden { display: none; }
  .quote-btn-label { display: none; }
}

/* ---------- Search ---------- */
.search { position: relative; display: flex; align-items: center; }
.search input {
  width: 100%; min-height: 44px; padding: 0 52px 0 18px;
  font: inherit; font-size: 16px; color: var(--navy);
  background: var(--white); border: 2px solid transparent; border-radius: 999px;
}
.search input::placeholder { color: #7D84A6; }
.search input:focus { outline: none; border-color: var(--orange); }
.search > button:not(.btn) {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--orange); color: var(--navy); cursor: pointer;
}
.search > button svg { width: 18px; height: 18px; }
.suggest {
  position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); color: var(--navy);
  border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 40px rgba(2,8,75,.22);
}
.suggest a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 500;
}
.suggest a span { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.suggest li.is-active a { background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .suggest a:hover { background: var(--paper); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px);
}
.hero h1 { font-size: clamp(34px, 4.2vw, 58px); font-weight: 900; }
.hero h1 span { color: var(--orange); }
.hero-lead { margin: 12px auto 0; max-width: 60ch; font-size: clamp(16px, 1.4vw, 18px); color: var(--muted-on-dark); }
.hero-search { margin: clamp(24px, 3vw, 36px) 0 0; }
.hero-search .search-ico { position: absolute; left: 22px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.hero-search input { min-height: 64px; padding: 0 140px 0 56px; font-size: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-search .btn { position: absolute; right: 8px; min-height: 48px; padding: 0 26px; }
.hero-pop { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 12px; margin-top: 20px; font-size: 14px; color: var(--muted-on-dark); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.hero-chips a {
  font: inherit; cursor: pointer; background: transparent;
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  color: var(--white); text-decoration: none; font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .hero-chips a:hover { background: rgba(255,255,255,.1); border-color: var(--white); } }
@media (max-width: 560px) {
  .hero-search input { min-height: 56px; padding: 0 56px 0 48px; font-size: 16px; }
  .hero-search .search-ico { left: 16px; }
  .hero-search .btn { width: 44px; min-height: 44px; padding: 0; font-size: 0; right: 6px; }
  .hero-search .btn::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='m15.5 15.5 5 5' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='m15.5 15.5 5 5' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .hero-pop, .hero-chips { justify-content: flex-start; }
  .hero-chips li:nth-child(n+5) { display: none; }
}

/* ---------- Home · hero stack-spread de empresas (app.js → initSpread) ---------- */
.spread { position: relative; background: var(--navy); color: var(--white); padding: 0; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: #FF751F; }
.spread-stage { position: relative; padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 5vw, 64px); transition: --glow 600ms ease; }
.spread-stage::before, .spread-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* luces: un color de vertical por zona y una central que toma el color de la tarjeta bajo el puntero (app.js) */
.spread-stage::before {
  background:
    radial-gradient(ellipse 40% 36% at 50% 50%, color-mix(in srgb, var(--glow) 24%, transparent), transparent 72%),
    radial-gradient(ellipse 45% 55% at 0% 0%, color-mix(in srgb, var(--v1) 15%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 55% at 100% 0%, color-mix(in srgb, var(--v2) 12%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, color-mix(in srgb, var(--v3) 11%, transparent), transparent 70%);
}
/* cuadrícula de plano técnico; con puntero, se ilumina a su alrededor */
.spread-stage::after {
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at var(--mx, 50%) var(--my, 50%), #000, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 55% at var(--mx, 50%) var(--my, 50%), #000, transparent 75%);
}
.spread-head, .spread-deck { position: relative; z-index: 1; }
.spread-head { max-width: 760px; margin: 0 auto 32px; padding: 0 var(--gutter); text-align: center; }
.spread-head h1 { margin-top: 8px; }
.spread-head .hero-search { max-width: 680px; margin-left: auto; margin-right: auto; }
.spread-head .hero-pop, .spread-head .hero-chips { justify-content: center; }
.spread-deck { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
/* 9 empresas: 3 × 3 en tablet; en móvil, si sobra una, va a lo ancho */
@media (min-width: 700px) { .spread-deck { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 699px) { .spread-card:last-child:nth-child(odd) { grid-column: 1 / -1; } .spread-card:last-child:nth-child(odd) a { aspect-ratio: 2 / 1; } }
.spread-card { min-width: 0; }
.spread-card a {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; border-bottom: 4px solid var(--c); background: var(--ink);
  color: var(--white); text-decoration: none; box-shadow: 0 24px 50px rgba(0,4,31,.45);
  --ring: var(--c); --core: var(--white);
}
.spread-card img, .spread-card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.spread-card .ph { align-content: start; padding-top: 18%; }
.spread-card .ph svg { width: 40px; opacity: .55; }
.spread-card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,4,31,.92) 0%, rgba(0,4,31,.55) 42%, rgba(0,4,31,.08) 100%); transition: opacity 400ms ease; }
.spread-cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.spread-cap strong { display: flex; align-items: flex-start; gap: 7px; font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.spread-cap strong svg { width: 10px; height: 14px; flex: none; margin-top: 1px; }
.spread-svc { font-size: 12px; line-height: 1.3; color: #D4D7EA; }
.spread-more { margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--orange); }
.spread-card a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .spread-card a:hover img, .spread-card a:hover .ph { transform: scale(1.06); }
  .spread-card a:hover::after { opacity: .85; }
}
@media (max-width: 480px) { .spread-svc { display: none; } .spread-cap strong { font-size: 14px; } .spread-cap { left: 10px; right: 10px; bottom: 10px; } }

/* escritorio: al cargar, las tarjetas salen del montón y enmarcan frase y buscador (alto y tamaños en app.js) */
.spread.is-3d { height: var(--stage-h, calc(100svh - var(--hdr, 118px))); padding: 0; }
.spread.is-3d .spread-stage { position: relative; height: 100%; padding: 0; overflow: hidden; }
.spread.is-3d .spread-head { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(92%, 1000px); max-width: none; margin: 0; padding: 0; opacity: 0; will-change: transform, opacity; }
.spread.is-3d h1 { font-size: clamp(34px, min(3.4vw, 6.4vh), 60px); }
.spread.is-3d .hero-lead { margin-top: 10px; max-width: none; }
.spread.is-3d .hero-search { margin-top: 22px; }
.spread.is-3d .hero-pop { margin-top: 14px; }
.spread.is-3d .hero-chips li:nth-child(n+5) { display: none; }
.spread.is-tight .hero-pop { display: none; }
.spread.is-3d .spread-deck { position: absolute; z-index: 2; inset: 0; display: block; max-width: none; margin: 0; padding: 0; pointer-events: none; }
.spread.is-3d .spread-card { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: var(--z); }
.spread.is-3d .spread-card a { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); aspect-ratio: auto; pointer-events: auto; will-change: transform; }
.spread.is-3d .spread-cap { left: 18px; right: 18px; bottom: 16px; gap: 4px; }
.spread.is-3d .spread-cap strong { font-size: clamp(16px, 1.2vw, 21px); }
.spread.is-3d .spread-cap strong svg { width: 12px; height: 16px; }
.spread.is-3d .spread-svc { font-size: clamp(13px, .9vw, 15px); }
.spread.is-3d .spread-more { font-size: 13px; }

/* ---------- Category tiles ---------- */
.tiles-wrap { margin-top: clamp(40px, 5vw, 64px); }
.tiles-wrap h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; }
/* una categoría por empresa: 3 × 3, cada columna es una vertical */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
  position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden;
  border-radius: var(--radius); background: var(--ink); color: var(--white); text-decoration: none;
  box-shadow: 0 6px 20px rgba(2,8,75,.12);
}
.tile img, .tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,4,31,.88) 0%, rgba(0,4,31,.2) 55%, transparent 100%); }
.tile-label {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.15;
  border-bottom: 4px solid var(--c);
}
.tile-label small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted-on-dark); }
@media (hover: hover) and (pointer: fine) { .tile:hover img, .tile:hover .ph { transform: scale(1.05); } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .tiles { gap: 8px; } .tile { aspect-ratio: 1; } .tile-label { padding: 10px 12px 12px; } }

/* placeholder (sin foto) */
.ph {
  display: grid; place-items: center; align-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--navy), color-mix(in oklab, var(--navy) 70%, var(--c)));
  color: var(--muted-on-dark); font-size: 13px;
  --ring: var(--c); --core: var(--white);
}
.ph svg { width: 34px; height: auto; aspect-ratio: 100 / 136; opacity: .9; }

/* ---------- How it works ---------- */
.how { margin-top: 28px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.how-steps li { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; }
.how-steps li + li { border-left: 1px solid var(--line); }
.how-steps strong { font-family: var(--font-display); font-size: 17px; }
.how-steps span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } .how-steps li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) var(--gutter); }
.section h2, .band h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; }
.section-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-row .muted { max-width: 52ch; }
.link-more { font-weight: 700; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.band { background: var(--white); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
/* home: un destacado por empresa en 3 columnas (una por vertical) */
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--3 .card-media { aspect-ratio: 16 / 10; } }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; padding-bottom: 4px; }
.card-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.card-media.ph { background: linear-gradient(135deg, var(--navy), color-mix(in oklab, var(--navy) 70%, var(--c))); }
.card-emp {
  display: inline-flex; align-items: center; gap: 6px; margin: 14px 16px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  --ring: var(--c); --core: var(--navy);
}
.card-emp svg { width: 10px; height: 14px; }
.card h3 { margin: 6px 16px 0; font-size: 18px; font-weight: 700; line-height: 1.2; }
.card p { margin: 6px 16px 0; font-size: 14px; color: var(--muted); }
.card-foot { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; }
.card-type { font-size: 12px; color: var(--muted); }
.card-foot .btn { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: 0 10px 28px rgba(2,8,75,.1); transform: translateY(-2px); }
  .card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .card h3 { font-size: 15px; } .card p { display: none; } .card-type { display: none; } .card-emp { margin: 10px 12px 0; } .card h3 { margin: 4px 12px 0; } .card-foot { padding: 10px 12px 12px; } .btn--add { font-size: 13px; padding: 0 10px; } }

/* ---------- Promo ---------- */
.promo {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  padding: 0; margin-bottom: clamp(40px, 6vw, 72px);
}
.promo-copy { background: var(--navy); color: var(--white); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius) 0 0 var(--radius); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.promo-copy h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; }
.promo-copy p:not(.eyebrow) { color: var(--muted-on-dark); }
.promo-copy .btn { align-self: flex-start; margin-top: 6px; }
/* las 3 verticales con sus empresas, todas con el mismo peso */
.promo-vs {
  display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 40px);
  background: var(--white); border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.promo-vs li { display: grid; grid-template-columns: 16px 1fr; gap: 6px 14px; padding: 18px 0; --ring: var(--c); --core: var(--navy); }
.promo-vs li + li { border-top: 1px solid var(--line); }
.promo-vs svg { width: 16px; height: 22px; grid-row: span 2; }
.promo-vs strong { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1.2; }
.promo-vs li > span { font-size: 15px; color: var(--muted); line-height: 1.5; }
.promo-vs a { color: var(--navy); font-weight: 500; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .promo-vs a:hover { text-decoration: underline; } }
@media (max-width: 820px) {
  .promo { grid-template-columns: 1fr; margin-left: var(--gutter); margin-right: var(--gutter); }
  .promo-copy { border-radius: var(--radius) var(--radius) 0 0; }
  .promo-vs { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
}

/* ---------- Empresa cards ---------- */
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.emp-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; min-height: 170px;
  background: var(--paper); border-radius: var(--radius); border-top: 4px solid var(--c);
  text-decoration: none; transition: background-color 160ms ease;
  --ring: var(--c); --core: var(--navy);
}
.emp-card-v { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.emp-card-v svg { width: 10px; height: 14px; }
.emp-card strong { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); overflow-wrap: anywhere; font-weight: 900; line-height: 1.05; }
.emp-card-lema { font-size: 14px; color: var(--muted); }
.emp-card-n { margin-top: auto; font-size: 14px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .emp-card:hover { background: color-mix(in oklab, var(--paper) 85%, var(--c)); } }

/* ---------- Catalog page ---------- */
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.filters { position: sticky; top: 140px; display: grid; gap: 24px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.filters label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; }
.filters label[style]::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-left: auto; }
.filters input { width: 18px; height: 18px; margin: 0; }
.catalog-head { margin-bottom: 20px; }
.catalog-head h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; }
@media (max-width: 820px) {
  .catalog { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .filters { position: static; grid-template-columns: 1fr 1fr; gap: 12px; }
  .filters ul { max-height: 160px; overflow-y: auto; }
}
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 48px 16px; background: var(--white); border-radius: var(--radius); --ring: var(--orange); --core: var(--navy); }
.empty p:first-of-type { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.iso-md { width: 40px; height: auto; aspect-ratio: 100 / 136; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 32px; }
.pdp-gallery { display: grid; gap: 12px; align-content: start; }
.pdp-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--white); }
.pdp-main.ph { font-size: 15px; }
.pdp-main.ph svg { width: 64px; }
.pdp-second { width: 100%; max-height: 360px; object-fit: contain; background: var(--white); border-radius: var(--radius); }
.pdp-emp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; font-size: 18px; text-decoration: none; --ring: var(--c); --core: var(--navy); }
.pdp-emp svg { width: 14px; height: 19px; }
.pdp-emp span { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); }
.pdp h1 { margin-top: 10px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; }
.pdp-lead { margin-top: 12px; font-size: 18px; color: var(--muted); }
.pdp-specs { margin: 22px 0; display: grid; gap: 8px; }
.pdp-specs li { display: flex; gap: 10px; align-items: baseline; }
.pdp-specs li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--c); transform: translateY(-1px); }
.pdp-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pdp-buy .btn--add { flex: 1; min-width: 220px; }
.pdp-info > .btn--wa { margin-top: 12px; width: 100%; min-height: 48px; }
.pdp-meta { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 14px; }
.pdp-meta div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.pdp-meta dt { font-weight: 700; }
.pdp-meta dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; cursor: pointer; border-radius: 50%; color: var(--navy); }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--lg button { width: 48px; height: 50px; }
@media (hover: hover) and (pointer: fine) { .stepper button:hover { background: var(--paper); } }

/* ---------- Empresa page ---------- */
.emp-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  background: var(--navy);
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 6px solid var(--c);
}
.emp-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.emp-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,4,31,.94) 0%, rgba(0,4,31,.82) 50%, rgba(0,4,31,.45) 100%); }
.emp-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.emp-hero h1 .w > span { display: inline-block; }
/* entrada (app.js → initEmpIntro): pila de fotos al centro; el resto espera oculto hasta que se abre el fondo */
.emp-intro { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.emp-intro img {
  position: absolute; left: 50%; top: 50%; width: clamp(200px, 26vw, 340px); aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; box-shadow: 0 24px 50px rgba(0,4,31,.55); transform: translate(-50%, -50%); opacity: 0;
}
.js .emp-hero.is-intro .emp-hero-bg, .js .emp-hero.is-intro .emp-hero-shade, .js .emp-hero.is-intro .emp-hero-inner > :not(h1) { opacity: 0; }
.js .emp-hero.is-intro h1 .w > span { transform: translateY(110%); }
.emp-hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: calc(760px + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--maxw)) / 2)); }
/* placas de logo (app.js → logoPlaca): blanca; azul para logos hechos para fondo oscuro */
.spread-logo, .emp-logo, .emp-card-logo, .mega-ico.has-logo { display: inline-flex; align-items: center; justify-content: center; background: var(--white); border-radius: 8px; }
.spread-logo.is-dark, .emp-logo.is-dark, .emp-card-logo.is-dark, .mega-ico.has-logo.is-dark { background: var(--navy); }
/* sin max-width en %: dentro de una placa que se ajusta al contenido, el logo colapsaría a ancho 0 */
.spread-logo img, .emp-logo img, .emp-card-logo img { display: block; height: 100%; width: auto; }
.mega-ico.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.spread-logo { position: absolute; z-index: 1; top: 10px; left: 10px; height: 34px; padding: 4px 7px; box-shadow: 0 6px 16px rgba(0,4,31,.35); }
.spread.is-3d .spread-logo { top: 14px; left: 14px; height: 44px; padding: 5px 9px; }
@media (max-width: 480px) { .spread-logo { top: 8px; left: 8px; height: 28px; padding: 3px 6px; } }
.emp-logo { height: 76px; padding: 8px 12px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.emp-logo.is-dark { height: 96px; padding: 0; background: none; box-shadow: none; }
.emp-card-logo { align-self: flex-start; height: 40px; margin-bottom: 4px; padding: 5px 8px; border: 1px solid var(--line); }
.mega-ico.has-logo { width: 76px; padding: 4px 6px; border: 1px solid var(--line); }
.emp-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; max-width: 22ch; }
.emp-endorse { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-on-dark); --ring: var(--v3); --core: var(--white); }
.emp-endorse svg { width: 12px; height: 16px; }
.emp-hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; max-width: 18ch; }
.emp-desc { font-size: 18px; color: #D4D7EA; max-width: 58ch; }
.emp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.emp-cov { font-size: 14px; color: var(--muted-on-dark); }
.emp-cov a { color: var(--white); }
.emp-pending { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,210,48,.15); color: var(--v2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 500; font-size: 14px; cursor: pointer; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Drawer (cotización) ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--white); color: var(--navy);
  display: flex; flex-direction: column;
}
.drawer:not([open]) { display: none; }
.drawer::backdrop { background: rgba(0,4,31,.55); }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: slide-in 280ms var(--ease-out); }
  .drawer[open]::backdrop { animation: fade-in 280ms ease; }
}
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; font-weight: 900; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.drawer-intro { font-size: 14px; color: var(--muted); }
.drawer-empty { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; --ring: var(--orange); --core: var(--navy); }
.drawer-empty p:first-of-type { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.drawer-empty .btn { margin-top: 8px; }
.q-group h3 {
  display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 4px;
  font-size: 16px; font-weight: 900; border-bottom: 3px solid var(--c);
  --ring: var(--c); --core: var(--navy);
}
.q-group h3 svg { width: 11px; height: 15px; }
.q-group h3 span { margin-left: auto; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); }
.q-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.q-thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; object-fit: cover; }
.q-thumb.ph svg { width: 16px; }
.q-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.q-info a { font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none; }
.q-tag { font-size: 12px; color: var(--muted); }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; bottom: -24px; background: var(--white); padding: 12px 0 0; }
.back { align-self: flex-start; }
.q-form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--navy); background: var(--white);
  border: 1px solid #C3C8D8; border-radius: 10px; padding: 10px 12px; min-height: 46px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,117,31,.3); }
.field [aria-invalid="true"] { border-color: #DC2626; }
.form-error { color: #B91C1C; font-size: 14px; min-height: 1.2em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 20px;
  width: min(520px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 14px 18px; border-radius: 12px;
  background: var(--ink); color: var(--white); font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  transition: transform 260ms var(--ease-out), opacity 200ms ease, visibility 0s linear 260ms;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.toast .link-btn { color: var(--orange); flex: none; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: var(--muted-on-dark); padding: 48px 0 24px; font-size: 14px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.ftr-grid > div p { margin-top: 16px; max-width: 34ch; }
.ftr nav { display: flex; flex-direction: column; gap: 6px; }
.ftr h2 { font-size: 15px; color: var(--white); margin-bottom: 6px; }
.ftr nav a { text-decoration: none; padding: 2px 0; }
@media (hover: hover) and (pointer: fine) { .ftr nav a:hover { color: var(--white); } }
.ftr-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
@media (max-width: 720px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > div { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ajustes */
.q-info .stepper { align-self: flex-start; }
.cats-nav a { padding: 0 10px; }
/* menú de categorías: desvanecido y flecha solo hacia donde hay más (app.js → catsEdges) */
.cats-nav-box { position: relative; }
.cats-nav-box.can-next .cats-nav-inner { --m: linear-gradient(to right, #000 calc(100% - 72px), transparent); }
.cats-nav-box.can-prev .cats-nav-inner { --m: linear-gradient(to right, transparent, #000 72px); }
.cats-nav-box.can-prev.can-next .cats-nav-inner { --m: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
.cats-nav-box[class*="can-"] .cats-nav-inner { -webkit-mask-image: var(--m); mask-image: var(--m); }
.cats-arrow {
  display: none; place-items: center; position: absolute; z-index: 1; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28); background: var(--navy); color: var(--white);
  transition: background-color 160ms ease, color 160ms ease;
}
.cats-arrow svg { width: 7px; height: 11px; }
.cats-arrow--prev { left: calc(var(--gutter) - 4px); }
.cats-arrow--next { right: calc(var(--gutter) - 4px); }
.can-prev .cats-arrow--prev, .can-next .cats-arrow--next { display: grid; }
.cats-arrow:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .cats-arrow:hover { background: var(--white); color: var(--navy); } }

/* ---------- Home · por qué cotizar con el grupo ---------- */
.trust { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0; margin-bottom: clamp(40px, 6vw, 72px); }
.trust h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-stats li { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; }
.trust-stats li::before { content: ""; width: 28px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--orange); }
.trust-stats li + li { border-left: 1px solid var(--line); }
.trust-stats strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.trust-stats span { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.trust-stats p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .trust-stats li:nth-child(3) { border-left: 0; }
  .trust-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.trust-sub { margin: clamp(32px, 4vw, 48px) 0 16px; font-size: 20px; font-weight: 900; }
.trust-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .trust-works { grid-template-columns: 1fr 1fr; gap: 10px; } }
.trust-works a {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px;
  background: var(--ink); color: var(--white); text-decoration: none; --ring: var(--c); --core: var(--white);
}
.trust-works .ph { position: absolute; inset: 0; transition: transform 700ms var(--ease-out); }
.trust-works .ph svg { width: 48px; opacity: .5; margin-bottom: 18%; }
.trust-works img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.trust-works a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,4,31,.88) 0%, rgba(0,4,31,0) 58%); }
.trust-works span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.trust-works small { display: flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: #D4D7EA; }
.trust-works small svg { width: 9px; height: 12px; flex: none; }
.trust-works a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .trust-works a:hover img, .trust-works a:hover .ph { transform: scale(1.05); } }

/* ---------- Autorización de datos y política ---------- */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); }
.consent input[aria-invalid="true"] { outline: 2px solid #DC2626; outline-offset: 2px; }
.consent a { color: var(--navy); font-weight: 700; }
.legal { max-width: 760px; padding-top: 24px; padding-bottom: 72px; }
.legal h1 { margin-top: 16px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; }
.legal h2 { margin-top: 32px; font-size: 20px; font-weight: 900; }
.legal ul { margin-top: 12px; padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.legal-pending { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #FFF7DB; border: 1px solid var(--v2); }
.ftr-legal a { color: inherit; }

/* ---------- Ficha de producto · barra fija en móvil ---------- */
.pdp-bar { display: none; }
@media (max-width: 860px) {
  .pdp-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,4,31,.12);
    transform: translateY(110%); transition: transform 260ms var(--ease-out);
  }
  .pdp-bar.is-shown { transform: none; }
  .pdp-bar p { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
  .pdp-bar strong { font-size: 14px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar .btn { flex: none; min-height: 46px; padding: 0 18px; }
  body:has(.pdp-bar) .ftr { padding-bottom: 96px; }
  body:has(.pdp-bar.is-shown) .toast { bottom: 84px; }
}

.chip--q { margin-top: 10px; }
.drawer { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ---------- Mega menú: Nuestras empresas ---------- */
.mega-trigger {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.28);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.mega-trigger .chev { width: 11px; height: 7px; transition: transform 200ms var(--ease-out); }
.mega-trigger[aria-expanded="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.mega-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .mega-trigger:not([aria-expanded="true"]):hover { background: rgba(255,255,255,.1); border-color: var(--white); } }
.mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
  background: var(--white); color: var(--navy);
  border-radius: 0 0 20px 20px; box-shadow: 0 24px 48px rgba(0,4,31,.35);
  max-height: calc(100dvh - 130px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 28px; padding-bottom: 12px; }
.mega-col { padding: 0 clamp(16px, 2.4vw, 36px); --ring: var(--c); --core: var(--navy); }
.mega-col:first-child { padding-left: 0; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1.1; box-shadow: inset 0 -3px 0 var(--c); }
.mega-head svg { width: 14px; height: 19px; flex: none; }
.mega-co { display: flex; gap: 14px; padding: 14px 0; }
.mega-co + .mega-co { border-top: 1px solid var(--line); }
.mega-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--c); border-radius: 50%; background: color-mix(in oklab, var(--white) 88%, var(--c)); }
.mega-ico svg { width: 14px; height: 19px; }
.mega-co h3 { font-size: 16px; font-weight: 900; line-height: 1.15; margin-bottom: 6px; }
.mega-co ul { display: grid; gap: 1px; margin-bottom: 8px; }
.mega-co li { position: relative; padding-left: 13px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.mega-co li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--c); }
.mega-more { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--font-display); font-weight: 700; font-size: 14px; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mega-foot { padding-bottom: 18px; }
.mega-foot a { font-size: 14px; font-weight: 500; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .mega-more:hover { color: #B24800; } .mega-foot a:hover { color: var(--navy); } }
@media (max-width: 860px) {
  .mega-grid { grid-template-columns: 1fr; padding-top: 12px; }
  .mega-col, .mega-col:first-child { padding: 0 0 8px; }
  .mega-col + .mega-col { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
@media (max-width: 760px) { .mega { max-height: calc(100dvh - 150px); } }

/* ---------- Tema WordPress ---------- */
/* escritorio con JS: el hero espera a que tienda.js arme el montón (sin parpadeo de la cuadrícula) */
@media (min-width: 1100px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .js .spread:not(.is-3d) { height: calc(100svh - var(--hdr, 118px)); overflow: hidden; }
  .js .spread:not(.is-3d) .spread-stage { visibility: hidden; }
}
.field input[type="file"] { padding: 10px; font-size: 14px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done-wa { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; }
.done-wa .btn { width: 100%; }
.filters-go { margin-top: 12px; }
.js .filters-go { display: none; }
.not-found { padding: clamp(48px, 8vw, 96px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; --ring: var(--orange); --core: var(--navy); }
.not-found .search { width: min(560px, 100%); }
.legal h2 { margin-top: 28px; font-size: 22px; }
.legal h3 { margin-top: 18px; font-size: 18px; }
.legal p, .legal ul, .legal ol { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ol { list-style: decimal; padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.emp-empty { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.ftr-contact a { color: inherit; }
.legal .contact-main { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.legal .contact-list { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 10px; }
.contact-list li { display: grid; gap: 2px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; }
.contact-list li + li { margin-top: 0; }
.contact-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.contact-links a { font-weight: 700; }
