/* =============================================================
   Automóviles Bacars — Arquetipo 05 (Mouse-Reactive Gradient),
   edición automoción: noche azul + faros amarillos.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 62%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 38%; }

:root {
  --bg:      #070B14;   /* noche azul casi negra */
  --bg-2:    #0B1322;
  --bg-3:    #101C33;
  --navy:    #142B57;
  --navy-2:  #1D3F80;
  --ink:     #F4F2EA;   /* casi blanco cálido */
  --mute:    #98A2B6;
  --dim:     #5B6680;
  --accent:  #FFD000;   /* amarillo faro */
  --accent-2:#FFE45C;
  --black:   #05070C;
  --line:    rgba(244, 242, 234, 0.10);
  --line-2:  rgba(244, 242, 234, 0.18);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: 16px;
  --maxw: 1440px;
  --radius: 18px;
  --header-h: 72px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--bg); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1; font-weight: 800; }
::selection { background: var(--accent); color: var(--black); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Grano sutil sobre todo el sitio */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: var(--black); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hl { color: var(--accent); }

.kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.kicker-num {
  display: inline-grid; place-items: center; min-width: 2.2em; height: 1.7em; padding: 0 .4em;
  border: 1px solid var(--line-2); border-radius: 99px; color: var(--accent);
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(2.3rem, 7.4vw, 6.4rem);
  letter-spacing: -0.035em;
  line-height: .95;
  margin-top: 1.25rem;
}
.section-lede { color: var(--mute); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 34rem; margin-top: 1.5rem; }

/* =============================================================
   5. Components
   ============================================================= */
/* Buttons */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 46px; padding: 0 1.25rem; border-radius: 99px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { height: 58px; padding: 0 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--black); box-shadow: 0 0 0 0 rgba(255, 208, 0, 0); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(255, 208, 0, .45); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.link-arrow {
  display: inline-flex; gap: .5rem; margin-top: 2rem; font-weight: 600; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }

/* Placeholders de imagen (se sustituirán por WebP en assets/img/) */
.ph {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
  padding: 1.1rem; border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 208, 0, .14), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, var(--navy) 0%, var(--bg-3) 55%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
}
.ph::before { /* marcas de encuadre */
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 18px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1.5px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 18px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 1.5px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 18px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 1.5px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 18px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1.5px 18px no-repeat;
  opacity: .7;
}
.ph-tag { position: relative; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ph-label { position: relative; font-size: .85rem; color: var(--mute); max-width: 26ch; line-height: 1.35; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Splash ---------- */
.splash { display: none; }
.js .splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; gap: 1.5rem; background: var(--bg);
  animation: splashOut .7s var(--ease-in) 1.25s forwards; /* red de seguridad CSS */
}
.splash.is-done { animation: splashOut .6s var(--ease-in) forwards; }
.splash-odo { display: flex; align-items: baseline; gap: .9rem; font-family: var(--mono); }
.splash-num { font-size: clamp(3rem, 10vw, 6rem); font-weight: 600; color: var(--accent); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.splash-unit { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.splash-bar { height: 2px; background: var(--line); overflow: hidden; }
.splash-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: splashBar 1.15s var(--ease-soft) forwards; }
@keyframes splashBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0); } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(7, 11, 20, .92); border-color: var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .header.is-scrolled { background: rgba(7, 11, 20, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
}
.header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; position: relative; z-index: 2; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: var(--black); font-family: var(--display); font-weight: 900; font-size: 1rem; letter-spacing: -.04em;
}
.brand-name { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; margin-left: .15em; }

.nav {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility .4s;
}
.nav.is-open { opacity: 1; visibility: visible; }
.nav-link {
  font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.03em;
  position: relative; width: max-content;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-top: 1rem; align-self: flex-start; }

.burger { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Sin JS el menú móvil no se puede abrir: lo mostramos en línea */
html:not(.js) .nav { position: static; opacity: 1; visibility: visible; flex-direction: row; flex-wrap: wrap; padding: 0; background: none; gap: 1rem; }
html:not(.js) .nav-link { font-size: .95rem; font-family: var(--sans); font-weight: 500; }
html:not(.js) .nav-cta { margin: 0; }
html:not(.js) .burger { display: none; }
html:not(.js) .header { position: absolute; height: auto; padding-block: 1rem; }
html:not(.js) .header-inner { flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 2.5rem) 0 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
}
.hero-gradient { /* firma: faros que siguen al cursor */
  position: absolute; inset: -10%; z-index: -3;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 208, 0, .38) 0%, rgba(255, 208, 0, .08) 18%, transparent 36%),
    radial-gradient(circle at calc(var(--mx) - 22%) calc(var(--my) + 18%), rgba(29, 63, 128, .9) 0%, transparent 42%),
    radial-gradient(circle at calc(100% - var(--mx)) calc(100% - var(--my)), rgba(20, 43, 87, .85) 0%, transparent 45%),
    var(--bg);
  filter: blur(40px) saturate(130%);
  transition: --mx 1.2s var(--ease-out), --my 1.2s var(--ease-out);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero-road { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); z-index: -1; overflow: hidden; }
.hero-road span {
  position: absolute; inset: 0; width: 200%;
  background: repeating-linear-gradient(90deg, var(--accent) 0 40px, transparent 40px 90px);
  animation: road 2.4s linear infinite; opacity: .7;
}
@keyframes road { to { transform: translateX(-90px); } }

.hero-inner { display: flex; flex-direction: column; gap: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 208, 0, .6); animation: pulse 2.2s infinite; }
.hero-meta .sep { color: var(--dim); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 208, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 208, 0, 0); } }

.hero-title {
  font-family: var(--display); font-weight: 900; letter-spacing: -.055em; line-height: .84;
  font-size: clamp(3.5rem, 21vw, 13.5rem);
  display: flex; flex-direction: column;
}
.hero-title .line { display: block; overflow: hidden; padding-block: .02em .06em; margin-block: -.02em; }
.hero-title .line-in {
  display: inline-block; font-variation-settings: "wdth" 125;
  transition: color .4s var(--ease-out), font-variation-settings .8s var(--ease-out);
  background: linear-gradient(var(--accent), var(--accent)) 0 92% / 0 .12em no-repeat;
}
.hero-title .line-in.line-accent { color: var(--accent); font-variation-settings: "wdth" 100; font-weight: 900; }
.hero-title .line-sm .line-in { font-size: .42em; letter-spacing: -.03em; font-variation-settings: "wdth" 125; padding-left: .08em; }
.hero-title .line-accent { font-size: 1.12em; }
/* Firma tipográfica: la anchura respira al pasar el ratón */
@media (hover: hover) {
  .hero-title .line-in:hover { font-variation-settings: "wdth" 62; }
  .hero-title .line-in.line-accent:hover { font-variation-settings: "wdth" 72; }
}

.hero-bottom { display: grid; gap: 2.5rem; align-items: end; }
.hero-sub { font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--mute); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.hero-media { position: relative; --px: 0px; --py: 0px; transform: translate3d(var(--px), var(--py), 0); transition: transform .9s var(--ease-out); }
.hero-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,208,0,.06); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,11,20,.55)); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease-out); }
.hero-media:hover .hero-photo img { transform: scale(1.08); }

.plate {
  position: absolute; top: -14px; left: 18px; display: flex; height: 40px; border-radius: 6px; overflow: hidden;
  background: #F8F7F2; color: #111; border: 2px solid #111; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6);
  transform: rotate(-4deg);
}
.plate-eu { display: grid; place-items: center; width: 26px; background: #0B3AA8; color: #fff; font-size: .62rem; font-weight: 700; line-height: 1; padding-top: 2px; }
.plate-eu i { font-style: normal; color: var(--accent); font-size: .55rem; display: block; }
.plate-num { display: grid; place-items: center; padding: 0 .9rem; letter-spacing: .1em; font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }

.chip {
  --px: 0px; --py: 0px;
  position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 14px;
  background: rgba(11, 19, 34, .9); border: 1px solid var(--line-2); font-size: .82rem; font-weight: 500;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.7);
  transform: translate3d(var(--px), var(--py), 0); transition: transform .9s var(--ease-out);
  animation: bob 6s ease-in-out infinite;
}
@supports (backdrop-filter: blur(10px)) { .chip { background: rgba(11, 19, 34, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.chip svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chip b { color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.chip-a { right: 12px; top: 28%; }
.chip-b { left: -6px; bottom: 12%; animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -8px; } }

.seal { position: absolute; right: -14px; bottom: -34px; width: 118px; height: 118px; }
.seal-ring { transform-box: view-box; transform-origin: 100px 100px; animation: spin 18s linear infinite; }
.seal text { fill: var(--ink); font-family: var(--mono); font-size: 13.2px; letter-spacing: 2.2px; }
.seal .seal-core { font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: -1px; fill: var(--accent); }
@keyframes spin { to { rotate: 360deg; } }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 1.1rem .25rem 0; display: flex; flex-direction: column-reverse; gap: .2rem; }
.stat + .stat { border-left: 0; }
.stat dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.stat dd { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat small { font-size: .45em; color: var(--accent); margin-left: .2em; letter-spacing: 0; font-weight: 700; }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: var(--black); overflow: hidden; transform: rotate(-1.6deg) scale(1.04); margin-block: 1.5rem; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 1.6rem; padding: 1rem .8rem; flex-shrink: 0; }
.marquee-group span { font-family: var(--display); font-variation-settings: "wdth" 120; font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.8rem); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marquee-group i { font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(5rem, 14vw, 11rem) 0; }
.manifesto-inner { display: grid; gap: 2rem; }
.manifesto-text {
  font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 600;
  font-size: clamp(1.65rem, 4.3vw, 3.9rem); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch;
}
.manifesto-text .w { transition: color .5s var(--ease-out), opacity .5s var(--ease-out); }
.js .manifesto-text .w { color: var(--dim); opacity: .55; }
.js .manifesto-text .w.is-lit { color: var(--ink); opacity: 1; }
.js .manifesto-text .w.is-key.is-lit { color: var(--accent); }

/* ---------- Ventajas (filas desplegables) ---------- */
.ventajas { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.rows { border-top: 1px solid var(--line-2); }
.row { border-bottom: 1px solid var(--line-2); position: relative; }
.row summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem 1rem;
  padding: 1.5rem 0; position: relative; isolation: isolate;
}
.row summary::-webkit-details-marker { display: none; }
.row summary::before { /* hover invert */
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out);
}
.row-num { font-family: var(--mono); font-size: .8rem; color: var(--accent); transition: color .3s; }
.row-title {
  font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 800;
  font-size: clamp(1.25rem, 3.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.02; transition: color .3s, font-variation-settings .6s var(--ease-out);
}
.row-metric {
  grid-column: 2; grid-row: 2; justify-self: start;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
  padding: .3rem .65rem; border: 1px solid var(--line-2); border-radius: 99px; transition: color .3s, border-color .3s;
}
.row-icon { grid-column: 3; grid-row: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .5s var(--ease-out), border-color .3s, background-color .3s; }
.row-icon::before, .row-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.row-icon::after { rotate: 90deg; transition: rotate .5s var(--ease-out); }
.row[open] .row-icon::after { rotate: 0deg; }
.row[open] .row-icon { background: var(--accent); color: var(--black); border-color: var(--accent); }

@media (hover: hover) {
  .row summary:hover::before { transform: scaleY(1); }
  .row summary:hover .row-num,
  .row summary:hover .row-title { color: var(--black); }
  .row summary:hover .row-title { font-variation-settings: "wdth" 125; }
  .row summary:hover .row-metric { color: var(--black); border-color: rgba(5,7,12,.35); }
  .row summary:hover .row-icon { border-color: var(--black); color: var(--black); }
  .row[open] summary:hover .row-icon { background: var(--black); color: var(--accent); }
}
.row-body { display: grid; gap: 1.5rem; padding: 0 0 2rem; }
.row[open] .row-body { animation: rowIn .7s var(--ease-out); }
.row-body p { color: var(--mute); font-size: 1.05rem; max-width: 40rem; }
.ph-row { aspect-ratio: 16 / 10; max-height: 340px; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Comparativa ---------- */
.compare { padding: clamp(4rem, 10vw, 8rem) 0; background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.compare-inner { display: grid; gap: 3rem; align-items: center; }
.bars { display: grid; gap: 1.75rem; padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid var(--line-2); border-radius: 24px; background: rgba(16, 28, 51, .5); }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .65rem; font-size: .95rem; color: var(--mute); }
.bar-head b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bar-track { position: relative; height: 14px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar-new { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(152,162,182,.22) 0 6px, rgba(152,162,182,.08) 6px 12px); }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 24px rgba(255, 208, 0, .45); transition: transform 1.6s var(--ease-out); transform-origin: left; }
.js .bars:not(.is-in) .bar-fill { transform: scaleX(0); }
.bar:nth-child(2) .bar-fill { transition-delay: .12s; }
.bar:nth-child(3) .bar-fill { transition-delay: .24s; }
.bar:nth-child(4) .bar-fill { transition-delay: .36s; }
.bars-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .8rem; color: var(--mute); }
.bars-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.bars-legend i { width: 18px; height: 8px; border-radius: 99px; }
.lg-new { background: repeating-linear-gradient(135deg, rgba(152,162,182,.5) 0 3px, rgba(152,162,182,.2) 3px 6px); }
.lg-sm { background: var(--accent); }

/* ---------- Testimonios ---------- */
.testimonials { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.t-controls { display: none; align-items: center; gap: .6rem; }
.js .t-controls { display: flex; }
.t-count { font-family: var(--mono); font-size: .85rem; color: var(--mute); margin-right: .6rem; }
.t-count b { color: var(--accent); font-weight: 600; }
.t-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease-out); }
.t-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-btn:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }
.t-btn:active { transform: scale(.94); }

.t-stage { position: relative; padding: clamp(1.75rem, 5vw, 4rem); border-radius: 28px; border: 1px solid var(--line-2); background: linear-gradient(140deg, var(--bg-3), var(--bg-2) 60%); overflow: hidden; }
.t-stage::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 208, 0, .16), transparent 65%); pointer-events: none; }
.t-quote-mark { position: absolute; left: clamp(.8rem, 3vw, 2.5rem); top: -.18em; font-family: var(--display); font-weight: 900; font-size: clamp(10rem, 26vw, 22rem); line-height: 1; color: var(--accent); opacity: .14; pointer-events: none; }
.t-slides { position: relative; display: grid; gap: 3rem; }
.js .t-slides { gap: 0; }
.js .t-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), visibility .7s; }
.js .t-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.t-slide blockquote {
  font-family: var(--display); font-variation-settings: "wdth" 96; font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 3rem); line-height: 1.14; letter-spacing: -.025em; max-width: 30ch; position: relative;
}
.t-slide figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.t-slide figcaption b { display: block; font-weight: 600; }
.t-slide figcaption span { color: var(--mute); font-size: .92rem; }
.ph-avatar { width: 54px; height: 54px; padding: 0; border-radius: 50%; display: grid; place-items: center; justify-content: center; }
.ph-avatar::before { display: none; }
.ph-avatar span { font-family: var(--mono); font-size: .8rem; color: var(--accent) !important; }
.stars { margin-left: auto; color: var(--accent) !important; letter-spacing: .15em; font-size: 1rem !important; }
.t-progress { display: none; position: relative; height: 2px; background: var(--line); margin-top: 2.5rem; overflow: hidden; }
.js .t-progress { display: block; }
.t-progress span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.t-progress span.is-running { animation: tBar var(--t-dur, 7s) linear forwards; }
.t-stage:hover .t-progress span.is-running { animation-play-state: paused; }
@keyframes tBar { to { transform: scaleX(1); } }

/* ---------- Contacto ---------- */
.contact { position: relative; padding: clamp(4rem, 10vw, 8rem) 0; overflow: hidden; isolation: isolate; }
.contact-glow { position: absolute; z-index: -1; width: 900px; height: 900px; left: -300px; bottom: -500px; border-radius: 50%; background: radial-gradient(circle, rgba(29, 63, 128, .75), transparent 62%); filter: blur(30px); }
.contact-inner { display: grid; gap: 3rem; align-items: start; }
.contact-title { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 900; font-size: clamp(2.4rem, 5.4vw, 5.4rem); letter-spacing: -.045em; line-height: .92; margin-top: 1.25rem; }
.big-link { display: block; margin-top: 2.5rem; width: max-content; max-width: 100%; }
.big-link + .big-link { margin-top: 1.5rem; }
.big-link-label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: .3rem; }
.big-link-value {
  font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; padding-bottom: .1em;
  transition: background-size .6s var(--ease-out), color .3s; overflow-wrap: anywhere;
}
.big-link-sm .big-link-value { font-size: clamp(1.15rem, 2.4vw, 1.9rem); }
.big-link:hover .big-link-value { background-size: 100% 3px; color: var(--accent); }
.contact-facts { display: grid; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-facts li { display: grid; gap: .1rem; }
.contact-facts b { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.contact-facts span { color: var(--mute); }

.form { position: relative; padding: clamp(1.4rem, 3.5vw, 2.75rem); border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); }
.form-body { display: grid; gap: 1rem; transition: opacity .5s var(--ease-out), filter .5s; }
.form-title { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: .5rem; }
.field-row { display: grid; gap: 1rem; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; padding: 1.45rem 1rem .55rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg);
  outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field textarea { min-height: 110px; }
.field > span { position: absolute; left: 1rem; top: 1.05rem; color: var(--mute); font-size: .95rem; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 208, 0, .14); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-.6rem) scale(.74); color: var(--accent); }
.form.was-validated .field input:invalid { border-color: #FF6B5A; }

.chips { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.chips legend { font-size: .85rem; color: var(--mute); margin-bottom: .6rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips label span { display: inline-block; padding: .55rem 1rem; border-radius: 99px; border: 1px solid var(--line-2); font-size: .88rem; transition: background-color .3s, color .3s, border-color .3s; }
.chips label:hover span { border-color: var(--accent); }
.chips input:checked + span { background: var(--accent); color: var(--black); border-color: var(--accent); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.range { display: grid; gap: .75rem; margin-top: .5rem; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--mute); }
.range output { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.range input { --p: 25.9%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p), var(--bg-3) var(--p)); outline: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 5px solid var(--accent); cursor: grab; box-shadow: 0 0 0 6px rgba(255, 208, 0, .15); }
.range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 5px solid var(--accent); cursor: grab; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--mute); cursor: pointer; margin-top: .25rem; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg); display: grid; place-items: center; margin-top: 1px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--black); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -1px; }
.form.was-validated .check input:invalid { border-color: #FF6B5A; }
.form-error { min-height: 1.2em; font-size: .85rem; color: #FF8A7A; }

.form-sent { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; gap: .75rem; padding: 2rem; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility .6s; }
.form-sent svg { width: 84px; height: 84px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-sent circle { stroke-dasharray: 152; stroke-dashoffset: 152; }
.form-sent path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-sent h3 { font-family: var(--display); font-variation-settings: "wdth" 115; font-size: 2.2rem; letter-spacing: -.03em; }
.form-sent p { color: var(--mute); max-width: 24ch; }
.form.is-sent .form-body { opacity: 0; filter: blur(6px); pointer-events: none; }
.form.is-sent .form-sent { opacity: 1; visibility: visible; }
.form.is-sent .form-sent circle { animation: draw 1s var(--ease-out) .2s forwards; }
.form.is-sent .form-sent path { animation: draw .6s var(--ease-out) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; gap: 2rem; }
.footer-claim { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--mute); }
.footer-nav a { transition: color .3s; }
.footer-nav a:hover { color: var(--accent); }
.footer-word {
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; letter-spacing: -.06em; line-height: .8;
  font-size: min(6vw, 8.4rem); white-space: nowrap; margin: 3rem 0 1.5rem;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  background: linear-gradient(90deg, var(--accent), var(--accent)) 0 0 / 0 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.2s var(--ease-out);
}
.footer-word:hover { background-size: 100% 100%; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--dim); }
.footer-bottom a:hover { color: var(--ink); }

/* =============================================================
   7. Effects — reveals y entrada del hero
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Entrada del hero, solo CSS (no depende del JS) */
.js .hero-title .line-in { animation: lineUp 1.2s var(--ease-out) both; }
.js .hero-title .line:nth-child(1) .line-in { animation-delay: 1.35s; }
.js .hero-title .line:nth-child(2) .line-in { animation-delay: 1.45s; }
.js .hero-title .line:nth-child(3) .line-in { animation-delay: 1.55s; }
.js .hero-title .line:nth-child(4) .line-in { animation-delay: 1.65s; }
.js .hero-meta, .js .hero-copy, .js .hero-stats { animation: fadeUp 1s var(--ease-out) 1.75s both; }
.js .hero-media { animation: mediaIn 1.4s var(--ease-out) 1.6s both; }
@keyframes lineUp { from { transform: translateY(105%) rotate(4deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
@keyframes mediaIn { from { opacity: 0; clip-path: inset(18% 0 18% 0 round 22px); } to { opacity: 1; clip-path: inset(-60px -60px -60px -60px); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  :root { --gutter: 24px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .row-metric { grid-column: auto; grid-row: auto; justify-self: end; }
  .row summary { grid-template-columns: 3rem 1fr auto auto; }
  .row-icon { grid-column: auto; grid-row: auto; }
  .seal { width: 140px; height: 140px; }
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid var(--line); padding-left: 1.25rem; }
  .row-body { grid-template-columns: 1fr 1fr; align-items: start; padding-left: 4rem; }
  .footer-top { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 960px) {
  :root { --gutter: 48px; --header-h: 84px; }
  .burger { display: none; }
  .nav { position: static; opacity: 1; visibility: visible; flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: none; }
  .nav-link { font-family: var(--sans); font-variation-settings: normal; font-weight: 500; font-size: .92rem; letter-spacing: 0; color: var(--mute); transition: color .3s; }
  .nav-link:hover { color: var(--ink); }
  .nav-link::after { height: 1px; bottom: -4px; }
  .nav-cta { margin: 0 0 0 .5rem; }
  .hero-inner { display: grid; grid-template-columns: 1.12fr .88fr; column-gap: 3.5rem; row-gap: 2rem; align-items: center; }
  .hero-meta { grid-column: 1 / -1; }
  .hero-bottom { display: contents; }
  .hero-title { grid-column: 1; grid-row: 2; font-size: clamp(4rem, 11.5vw, 13.5rem); }
  .hero-copy { grid-column: 1; grid-row: 3; }
  .hero-media { grid-column: 2; grid-row: 2 / span 2; align-self: center; }

  .compare-inner { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .contact-copy { position: sticky; top: calc(var(--header-h) + 2rem); }
}
@media (min-width: 1280px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; column-gap: 4rem; }
}

/* =============================================================
   9. Reduced motion — solo efectos INTRUSIVOS
   (fades, hovers y contadores se mantienen)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-road span, .seal-ring, .chip, .marquee-track { animation-duration: 0s; animation-iteration-count: 1; }
  .marquee-track { animation: none; }
  .hero-media, .chip { transition: none; }
}

/* =============================================================
   10. Bacars — marca, catálogo y ficha
   ============================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.u-link { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* ---------- Marca / logo ---------- */
.brandshow { padding: clamp(5rem, 12vw, 10rem) 0 clamp(3rem, 8vw, 6rem); }
.brandshow-inner { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.logo-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; border-radius: 28px; overflow: hidden; isolation: isolate; background: #000;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 80px -20px rgba(255, 208, 0, .18);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .8s var(--ease-out);
}
.logo-card img { width: 100%; height: auto; }
.logo-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 228, 92, .28), transparent 45%); opacity: 0; transition: opacity .5s; }
.logo-card:hover .logo-shine { opacity: 1; }
.logo-card::after { /* barrido de luz al aparecer */
  content: ""; position: absolute; inset: -20%; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  transform: translateX(-120%);
}
.logo-wrap.is-in .logo-card::after { animation: shine 1.8s var(--ease-out) .5s forwards; }
@keyframes shine { to { transform: translateX(120%); } }
.brandshow-copy .manifesto-text { margin-top: 1.5rem; max-width: 24ch; font-size: clamp(1.5rem, 3.3vw, 3rem); }
.rating-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 2rem; padding: .75rem 1.2rem; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(16, 28, 51, .6); font-size: .9rem; color: var(--mute); }
.rating-pill b { color: var(--ink); font-family: var(--display); font-size: 1.1rem; }
.rating-stars { color: var(--accent); letter-spacing: .12em; }

/* ---------- Catálogo ---------- */
.catalog { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.catalog .section-head-row { align-items: flex-end; }
.catalog .section-head-row .section-lede { margin-top: 0; }
.filters {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem; margin-bottom: 1.75rem; border-radius: 20px;
  background: rgba(11, 19, 34, .94); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -25px rgba(0,0,0,.8);
}
@supports (backdrop-filter: blur(10px)) { .filters { background: rgba(11, 19, 34, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); } }
.search { position: relative; display: block; grid-column: 1 / -1; }
.filters .seg { grid-column: 1 / -1; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 46px; padding: 0 1rem 0 2.6rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); outline: none; transition: border-color .3s, box-shadow .3s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 208, 0, .14); }
.seg { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex-shrink: 0; height: 40px; padding: 0 1rem; border-radius: 12px; font-size: .88rem; font-weight: 500; color: var(--mute); border: 1px solid transparent; transition: background-color .3s, color .3s, border-color .3s; }
.seg button:hover { color: var(--ink); border-color: var(--line-2); }
.seg button.is-on { background: var(--accent); color: var(--black); font-weight: 600; }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid var(--mute); border-width: 0 1.5px 1.5px 0; translate: 0 -70%; rotate: 45deg; pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; height: 46px; padding: 0 2.4rem 0 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; outline: none; }
.select select:focus { border-color: var(--accent); }
.filters-count { display: none; font-size: .85rem; color: var(--mute); white-space: nowrap; padding: 0 .5rem; }
.filters-count b { color: var(--accent); font-family: var(--display); font-size: 1.15rem; }
html:not(.js) .filters { display: none; }

.cars { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.car {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out);
}
.car:hover { transform: translateY(-6px); border-color: rgba(255, 208, 0, .45); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255, 208, 0, .12); }
.car.is-hidden { display: none; }
.js .car.is-entering { animation: carIn .7s var(--ease-out) both; }
@keyframes carIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.car-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.car-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); }
.car-media .car-alt { opacity: 0; }
@media (hover: hover) {
  .car:hover .car-media img { transform: scale(1.06); }
  .car:hover .car-media .car-alt { opacity: 1; }
}
.car-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(7,11,20,.7)); pointer-events: none; }
.car-badge, .car-count { position: absolute; z-index: 2; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 8px; }
.car-badge { top: 12px; left: 12px; background: rgba(7, 11, 20, .8); border: 1px solid var(--line-2); color: var(--ink); }
.car-badge-c { color: #7ADFA0; border-color: rgba(122, 223, 160, .4); }
.car-badge-b { color: var(--accent); border-color: rgba(255, 208, 0, .4); }
.car-count { right: 12px; bottom: 12px; color: var(--ink); background: rgba(7, 11, 20, .65); }
.car-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.25rem; }
.car-make { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.car-title { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: 1.65rem; letter-spacing: -.03em; line-height: 1; margin-top: .3rem; }
.car-version { color: var(--mute); font-size: .88rem; margin-top: .35rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.car-specs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.car-specs li { font-size: .78rem; padding: .3rem .6rem; border-radius: 8px; background: rgba(244, 242, 234, .06); color: var(--ink); }
.car-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.25rem; }
.car-price { display: grid; line-height: 1.1; }
.car-price b { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 900; font-size: 1.75rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.car-price span { font-size: .78rem; color: var(--mute); margin-top: .2rem; }
.car-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; height: 40px; padding: 0 1rem; border-radius: 99px; border: 1px solid var(--line-2); font-size: .85rem; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.car:hover .car-cta { background: var(--accent); color: var(--black); border-color: var(--accent); }
.cars-empty { text-align: center; color: var(--mute); padding: 3rem 0; }
.cars-empty button { color: var(--accent); text-decoration: underline; }
.catalog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; border: 1px dashed var(--line-2); }
.catalog-foot p { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.catalog-foot .hero-actions { margin-top: 0; }

/* ---------- Ficha (modal) ---------- */
.modal { margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); width: min(1180px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(3, 5, 10, .82); }
@supports (backdrop-filter: blur(6px)) { .modal::backdrop { background: rgba(3, 5, 10, .6); backdrop-filter: blur(8px); } }
.modal[open] { animation: modalIn .55s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-inner { position: relative; display: grid; max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 60px 140px -40px #000; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(7, 11, 20, .8); border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.modal-close:hover { background: var(--accent); color: var(--black); }
.modal-close svg, .m-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal-gallery { min-width: 0; }
.modal-stage { position: relative; aspect-ratio: 4 / 3; background: #000; overflow: hidden; }
.modal-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.modal-stage img.is-swapping { opacity: .2; }
.m-nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(7, 11, 20, .7); border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.m-nav:hover { background: var(--accent); color: var(--black); }
.m-prev { left: 12px; } .m-next { right: 12px; }
.m-counter { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: .75rem; padding: .3rem .6rem; border-radius: 8px; background: rgba(7, 11, 20, .7); }
.modal-thumbs { display: flex; gap: .5rem; padding: .75rem; overflow-x: auto; scrollbar-width: thin; }
.modal-thumbs button { flex-shrink: 0; width: 84px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .3s, border-color .3s; }
.modal-thumbs button.is-on, .modal-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: clamp(1.25rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.modal-title { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; line-height: .95; margin-top: .4rem; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1.5rem; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.modal-specs div { background: var(--bg-2); padding: .8rem 1rem; }
.modal-specs dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.modal-specs dd { font-weight: 600; margin-top: .15rem; }
.modal-price { display: grid; margin-top: 1.5rem; }
.modal-price b { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.modal-price span { color: var(--mute); font-size: .9rem; margin-top: .35rem; }
.modal-actions { display: grid; gap: .6rem; margin-top: 1.5rem; }
.modal-actions .link-arrow { margin-top: .75rem; justify-self: start; font-size: .9rem; }

/* ---------- Ventajas con fotos reales / opiniones / pie ---------- */
.row-img { width: 100%; aspect-ratio: 16 / 10; max-height: 340px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-2); }
.t-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .85rem; color: var(--accent); background: linear-gradient(160deg, var(--navy), var(--bg-3)); border: 1px solid var(--line-2); flex-shrink: 0; }
.footer-brand { display: flex; align-items: center; gap: 1.25rem; }
.footer-brand img { width: 120px; height: auto; border-radius: 12px; border: 1px solid var(--line-2); }

@media (min-width: 540px) {
  .cars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .filters { position: sticky; top: calc(var(--header-h) + 10px); }
}
@media (min-width: 960px) {
  .brandshow-inner { grid-template-columns: 1fr 1fr; }
  .cars { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: minmax(200px, 1fr) auto 190px 210px auto; align-items: center; }
  .filters .search, .filters .seg { grid-column: auto; }
  .filters-count { display: block; }
  .modal-inner { grid-template-columns: 1.35fr 1fr; overflow: hidden; }
  .modal-info { overflow-y: auto; max-height: calc(100dvh - 24px); }
}
@media (min-width: 1600px) {
  .cars { grid-template-columns: repeat(4, 1fr); }
}
.contact-inner > *, .brandshow-inner > *, .compare-inner > * { min-width: 0; }
.big-link-sm { width: auto; }

/* ---------- Redes sociales ---------- */
.social { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.social-title { margin-top: 2.5rem; margin-bottom: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.social-link {
  display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .8rem .95rem; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(16, 28, 51, .45);
  transition: border-color .3s, background-color .3s, transform .5s var(--ease-out);
}
.social-link:hover { border-color: var(--accent); background: rgba(255, 208, 0, .08); transform: translateY(-3px); }
.social-link svg, .nav-social svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-link svg .fill, .nav-social svg .fill { fill: var(--accent); }
.social-link span { display: grid; min-width: 0; line-height: 1.2; }
.social-link b { font-weight: 600; font-size: .92rem; }
.social-link small { font-size: .75rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-footer { margin-top: 2.5rem; }
.nav-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.nav-social a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
.nav-social a:hover { border-color: var(--accent); background: rgba(255, 208, 0, .08); }
html:not(.js) .nav-social { display: none; }
@media (min-width: 720px) {
  .social-footer { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .nav-social { display: none; }
}
/* Con el menú abierto, la cabecera no puede tener desenfoque ni desplazamiento:
   si no, el menú a pantalla completa queda encerrado dentro de ella */
.header.menu-open { transform: none; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending .btn-primary { opacity: .7; pointer-events: none; }

/* =============================================================
   11. Portada con las letras del logo
   ============================================================= */
.hero-title-logo { font-family: "Felipa", Georgia, serif; font-weight: 400; letter-spacing: .01em; line-height: .98; text-transform: uppercase; }
.hero-title-logo .line { padding-block: .1em .06em; margin-block: -.04em; }
.hero-title-logo .line:first-child { padding-top: .12em; }
.hero-title .logo-word {
  font-family: "Felipa", Georgia, serif; font-variation-settings: normal; font-weight: 400;
  font-size: .5em; letter-spacing: .02em;
  background: linear-gradient(180deg, #FFF8B8 0%, #FFE600 34%, #F5C400 58%, #FFE98A 78%, #FFF6C4 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .03em 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 .25em rgba(255, 208, 0, .18));
  padding: .3em .1em .06em 0; margin-top: -.3em;
}
.hero-title .logo-word-big { font-size: 1.02em; letter-spacing: .03em; line-height: .9; }
@media (hover: hover) { .hero-title .logo-word:hover { font-variation-settings: normal; color: transparent; } }
/* Brillo que recorre las letras, como el reflejo del logo */
.logo-word { position: relative; }
.js .logo-word { background-image: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%), linear-gradient(180deg, #FFF8B8 0%, #FFE600 34%, #F5C400 58%, #FFE98A 78%, #FFF6C4 100%);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0;
  animation: lineUp 1.2s var(--ease-out) both, logoShine 2.4s var(--ease-out) 2.6s 1 forwards; }
.js .hero-title .line:nth-child(1) .logo-word { animation-delay: 1.35s, 2.6s; }
.js .hero-title .line:nth-child(2) .logo-word { animation-delay: 1.48s, 2.9s; }
@keyframes logoShine { to { background-position: -60% 0, 0 0; } }

.hero-title-logo .logo-tag-line { font-size: .19em; line-height: 1.3; margin-top: .5em; padding-block: .1em; }
.logo-tag-line .line-in { display: inline-flex; align-items: center; gap: .35em; background: none; }
.logo-swoosh { display: inline-block; width: 3.2em; height: .14em; border-radius: 99px; background: linear-gradient(90deg, #E7B8E6, #7B5CC8 45%, #2B3DA8); }
.logo-tag { font-family: "Permanent Marker", "Arial Black", sans-serif; font-weight: 400; letter-spacing: .03em; color: #FFE600; text-shadow: 0 .06em 0 rgba(0,0,0,.6); transform: skewX(-6deg); }
.js .hero-title .line:nth-child(3) .line-in { animation-delay: 1.65s; }

/* =============================================================
   12. Financiación
   ============================================================= */
.finance { position: relative; padding: clamp(4rem, 10vw, 8rem) 0; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, transparent, var(--bg-2) 15%, var(--bg-2) 85%, transparent); }
.finance-glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -320px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 208, 0, .14), transparent 60%); }
.finance-inner { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.finance-inner > * { min-width: 0; }
.finance-points { display: grid; gap: .75rem; margin: 2rem 0; }
.finance-points li { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(7, 11, 20, .45); }
.finance-points b { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.04em; color: var(--accent); min-width: 4.2ch; line-height: 1; }
.finance-points span { color: var(--mute); }

/* =============================================================
   13. Tasación
   ============================================================= */
.appraisal { position: relative; padding: clamp(4rem, 10vw, 8rem) 0; }
.appraisal-inner { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.appraisal-inner > * { min-width: 0; }
.appraisal-claim {
  margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-radius: 16px; max-width: 34rem;
  background: var(--accent); color: var(--black);
  font-family: var(--display); font-variation-settings: "wdth" 105; font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2;
  box-shadow: 0 20px 50px -20px rgba(255, 208, 0, .5);
}
.appraisal-claim b { font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.steps { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; counter-reset: s; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps li > span { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-family: var(--display); font-weight: 900; font-size: 1.1rem; }
.steps b { font-weight: 600; font-size: 1.05rem; }
.steps p { color: var(--mute); font-size: .95rem; margin-top: .15rem; }
.form-appraisal .field input[type=number] { -moz-appearance: textfield; }
.form-appraisal .field input::-webkit-outer-spin-button, .form-appraisal .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* =============================================================
   14. Opiniones: notas y muro
   ============================================================= */
.scores { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.score { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .75rem; padding: .85rem 1.1rem; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(16, 28, 51, .5); transition: border-color .3s, transform .5s var(--ease-out); }
.score:hover { border-color: var(--accent); transform: translateY(-2px); }
.score b { grid-row: span 2; font-family: var(--display); font-weight: 900; font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; }
.score .stars { margin: 0; font-size: .85rem !important; }
.score small { color: var(--mute); font-size: .8rem; }
.stars i { font-style: normal; color: var(--dim); }
.wall-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin: clamp(3rem, 7vw, 5rem) 0 1.5rem; }
.wall-head h3 { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.wall-head p { color: var(--mute); font-size: .9rem; }
.wall { columns: 1; column-gap: 1rem; }
.rv { break-inside: avoid; display: grid; gap: .75rem; margin-bottom: 1rem; padding: 1.25rem; border-radius: 20px; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease-out); }
.rv:hover { border-color: rgba(255, 208, 0, .35); transform: translateY(-3px); }
.rv header { display: flex; align-items: center; gap: .75rem; }
.rv header div { display: grid; line-height: 1.2; min-width: 0; }
.rv header b { font-weight: 600; }
.rv header small { color: var(--mute); font-size: .78rem; }
.rv .t-avatar { width: 40px; height: 40px; font-size: .75rem; }
.rv-src { margin-left: auto; flex-shrink: 0; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .5rem; border-radius: 6px; border: 1px solid var(--line-2); color: var(--mute); }
.rv-wp .rv-src { color: #5FE3C0; border-color: rgba(95, 227, 192, .35); }
.rv-cn .rv-src { color: #FF8F7A; border-color: rgba(255, 143, 122, .35); }
.rv .stars { margin: 0; font-size: .9rem !important; }
.rv p { font-size: .95rem; line-height: 1.55; }
.rv .rv-car { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--accent); }
.js .wall-clip.is-collapsed { max-height: 980px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.wall-more { display: flex; justify-content: center; margin-top: 1.5rem; }

@media (min-width: 720px) {
  .wall { columns: 2; }
}
@media (min-width: 960px) {
  .finance-inner { grid-template-columns: 1fr 1fr; }
  .appraisal-inner { grid-template-columns: 1fr 1fr; }
  .appraisal-copy { position: sticky; top: calc(var(--header-h) + 2rem); }
  .wall { columns: 3; }
}

.finance .section-title, .appraisal .section-title { font-size: clamp(2.3rem, 5.4vw, 5.4rem); }

/* ---------- Financiación (sin calculadora) ---------- */
.finance-side { display: grid; gap: 1rem; }
.finance-side .finance-points { margin: 0; }
.finance-note { font-size: .82rem; color: var(--dim); line-height: 1.45; }
.finance-side .hero-actions { margin-top: .5rem; }

/* ---------- Mapa ---------- */
.map-card { margin-top: 2rem; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.map-head { padding: 1.1rem 1.25rem .9rem; }
.map-address { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.35rem); letter-spacing: -.02em; line-height: 1.2; }
.map-frame { position: relative; aspect-ratio: 16 / 10; background: var(--bg-3); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.95) contrast(.95); }
.map-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line); }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem 1.25rem 1.25rem; }
.map-actions .btn svg { fill: none; stroke: currentColor; }

/* ---------- Fotos en la tasación ---------- */
.upload { position: relative; display: grid; gap: .75rem; cursor: pointer; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg); transition: border-color .3s, background-color .3s; }
.upload:hover .upload-box, .upload input:focus-visible + .upload-box { border-color: var(--accent); background: rgba(255, 208, 0, .05); }
.upload-box svg { width: 28px; height: 28px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }
.upload-box span { display: grid; line-height: 1.3; }
.upload-box b { font-weight: 600; font-size: .95rem; }
.upload-box small { color: var(--mute); font-size: .8rem; }
.upload-thumbs { display: none; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.upload.has-files .upload-thumbs { display: grid; }
.upload-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }

/* ---------- Opiniones en un solo bloque ---------- */
.testimonials .section-head { margin-bottom: 1.25rem; }
.wall-note { color: var(--mute); font-size: .9rem; margin-bottom: 1.5rem; }

/* ---------- Mapa a lo ancho (contacto) ---------- */
.map-wide { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); }
.map-wide .map-frame { aspect-ratio: 4 / 3; }
.map-info { position: relative; z-index: 2; padding: 1.5rem; display: grid; gap: .9rem; }
.map-info .kicker { color: var(--accent); }
.map-info .pin { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; }
.map-name { font-family: "Felipa", Georgia, serif; text-transform: uppercase; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; color: #FFE600; letter-spacing: .02em; }
.map-info .map-address { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -.02em; line-height: 1.25; }
.map-facts { display: grid; gap: .6rem; padding: .9rem 0; border-block: 1px solid var(--line); }
.map-facts li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.map-facts b { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 400; padding-top: .15rem; }
.map-facts a:hover { color: var(--accent); }
.map-info .map-actions { padding: 0; }

@media (min-width: 960px) {
  .map-wide .map-frame { aspect-ratio: auto; height: clamp(440px, 52vw, 560px); }
  .map-info {
    position: absolute; top: 50%; left: clamp(1.5rem, 3vw, 2.5rem); translate: 0 -50%; width: min(400px, 40%);
    padding: 1.75rem; border-radius: 22px; background: rgba(11, 19, 34, .94); border: 1px solid var(--line-2);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  }
  @supports (backdrop-filter: blur(10px)) { .map-info { background: rgba(11, 19, 34, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
}

/* Final de contacto → pie: sin hueco doble y sin franja de color cortada */
.contact { padding-bottom: clamp(2rem, 5vw, 4rem); }
.contact-glow { bottom: auto; top: 0; height: 700px; width: 700px; left: -320px; }
.footer { padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 0; }
.footer > .container { border-top: 1px solid var(--line); padding-top: clamp(2rem, 5vw, 3.5rem); }
.contact { padding-bottom: clamp(1.25rem, 3vw, 3rem); }
.footer { padding-top: clamp(1.5rem, 3vw, 3rem); }
.footer > .container { padding-top: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 720px) {
  .footer-top { grid-template-columns: auto 1fr; gap: 2rem 3rem; }
  .footer-nav { justify-content: flex-end; }
  .footer-claim { white-space: nowrap; }
}

/* ---------- Logo en la portada ---------- */
.hero-logo { background: #000; }
.hero-logo::after { display: none; }
.hero-logo img { transform: none; }
.hero-media:hover .hero-logo img { transform: none; }
.hero-logo.logo-card::after { display: block; } /* barrido de luz */
.js .hero-logo.logo-card::after { animation: shine 1.8s var(--ease-out) 2.4s forwards; }
/* Etiquetas en los bordes del logo, sin tapar su texto */
.chip-a { top: -18px; right: 16px; }
.chip-b { bottom: -20px; left: 16px; }
.hero-media { margin-block: 18px 22px; }

/* ---------- Quiénes somos (frase) ---------- */
.about { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(1rem, 3vw, 2rem); }
.about-inner { display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.about .manifesto-text { max-width: 30ch; margin-inline: auto; font-size: clamp(1.55rem, 3.6vw, 3.2rem); }
/* 5 redes: en dos columnas, la última ocupa todo el ancho */
.social .social-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .social-footer { grid-template-columns: repeat(5, 1fr); }
  .social-footer .social-link:last-child:nth-child(odd) { grid-column: auto; }
}

/* Barra de filtros en portátiles medianos: dos filas para que quepa todo */
@media (min-width: 960px) and (max-width: 1279px) {
  .filters { grid-template-columns: 1fr 190px 210px auto; }
  .filters .search { grid-column: 1; grid-row: 1; }
  .filters .seg { grid-column: 1 / -1; grid-row: 2; }
}
