/* WYME Studio · estilos
   Paleta Grafito y Celeste (repositorio wyme). Tipografía Inter variable, alojada en local. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca */
  --c-fondo: #F2F3F5;
  --c-tinta: #1B1D23;
  --c-celeste: #6FCBFF;
  --c-rosa: #FF6B8A;
  --c-papel: #FFFFFF;

  /* Derivados: un paso de tono, nunca líneas */
  --c-tono: #E4E6EA;
  --c-gris: #555B67;
  --c-tinta-2: #262932;
  --c-gris-osc: #A9AFBA;
  --c-celeste-2: #A8DFFF;
  --c-rosa-2: #FF94AB;

  /* Roles (se reasignan por capítulo) */
  --bg: var(--c-fondo);
  --fg: var(--c-tinta);
  --muted: var(--c-gris);
  --tone: var(--c-tono);
  --accent: var(--c-celeste);

  /* Tipo: cinco tamaños */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-display: clamp(40px, 6.6vw, 96px);
  --step-head: clamp(30px, 3.2vw, 46px);
  --step-lead: clamp(18px, 1.4vw, 20px);
  --step-body: 17px;
  --step-small: 15px;

  /* Espacio */
  --margin: clamp(16px, 2.4vw, 36px);
  --gutter: clamp(16px, 1.8vw, 28px);
  --section: clamp(88px, 9vw, 144px);
  --radius: 18px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --stagger-line: 90ms;
  --stagger-item: 70ms;
}

.theme-dark { --bg: var(--c-tinta); --fg: var(--c-fondo); --muted: var(--c-gris-osc); --tone: var(--c-tinta-2); }
.theme-light { --bg: var(--c-fondo); --fg: var(--c-tinta); --muted: var(--c-gris); --tone: var(--c-tono); }
.theme-accent { --bg: var(--c-celeste); --fg: var(--c-tinta); --muted: #1E3A4C; --tone: var(--c-celeste-2); }
.theme-campaign { --bg: var(--c-rosa); --fg: var(--c-tinta); --muted: #3D1620; --tone: var(--c-rosa-2); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-fondo);
  color: var(--c-tinta);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--c-celeste); color: var(--c-tinta); }
:focus-visible { outline: 3px solid var(--c-celeste); outline-offset: 3px; border-radius: 4px; }
.theme-accent :focus-visible, .theme-campaign :focus-visible { outline-color: var(--c-tinta); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--margin); top: -100px; z-index: 100;
  background: var(--c-celeste); color: var(--c-tinta); padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

section, footer.site-footer { background: var(--bg); color: var(--fg); }
.wrap { width: 100%; padding-inline: var(--margin); margin-inline: auto; max-width: 1680px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.display {
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.head { font-size: var(--step-head); font-weight: 800; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.label-head { font-size: var(--step-lead); font-weight: 750; line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: var(--step-lead); line-height: 1.45; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font-size: var(--step-body); font-weight: 700; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--c-celeste); color: var(--c-tinta); }
.btn--ink { background: var(--c-tinta); color: var(--c-fondo); }
.btn--light { background: var(--c-fondo); color: var(--c-tinta); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.btn--block { width: 100%; }
.btn .arrow { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: #8AD6FF; }
  .btn--ink:hover { background: #31343D; }
  .btn--light:hover { background: #FFFFFF; }
  .btn:hover .arrow { transform: translateX(4px); }
}

.link {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- Cabecera (tinta por capítulo) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding-inline: var(--margin);
  background: var(--bg); color: var(--fg);
  transition: background-color 300ms ease, color 300ms ease, transform 360ms var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; letter-spacing: -0.02em; font-size: 17px; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand .band { fill: currentColor; }
.brand .m { fill: var(--c-celeste); }
.theme-accent.site-header .brand .m { fill: var(--c-fondo); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: var(--step-small); font-weight: 600; }
.site-nav a { text-decoration: none; padding-block: 12px; }
.site-nav a:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .site-nav a:not(.btn):hover { text-decoration-color: currentColor; } }
.site-header.theme-accent .btn--accent, .site-header.theme-campaign .btn--accent { background: var(--c-tinta); color: var(--c-fondo); }
@media (max-width: 760px) {
  .site-header { height: 64px; }
  .site-nav a.nav-optional { display: none; }
  .brand span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 112px var(--margin) clamp(28px, 5vh, 48px);
  overflow: clip;
}
.hero__title { align-self: center; margin: 0; }
.hero__logo-line { display: block; overflow: clip; padding-top: 2%; }
.hero__logo-line > span { display: block; }
.logo-mono {
  width: min(100%, calc((100svh - 400px) * 2.77));
  height: auto;
  overflow: visible;
}
.logo-mono .band { fill: var(--c-fondo); }
.logo-mono .m { fill: var(--c-celeste); }
.logo-mono .m-wrap { transform-box: view-box; }
.hero__foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end; padding-top: clamp(32px, 5vh, 56px);
}
.hero__claim {
  font-size: var(--step-head); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em;
}
.hero__claim .line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__claim [data-line] { display: block; }
.hero__claim .tone-accent { color: var(--c-celeste); }
.hero__aside { display: contents; }
.hero__claim { grid-column: 5 / span 4; }
.hero__aside-body { grid-column: 9 / span 4; display: grid; gap: 24px; justify-items: start; }
.hero__lead { max-width: 36ch; color: var(--fg); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

@media (max-width: 900px) {
  /* El tercio inferior queda libre para el aviso de cookies en la primera visita */
  .hero { padding-top: 88px; padding-bottom: clamp(160px, 24svh, 240px); grid-template-rows: auto auto; align-content: center; }
  .hero__title { align-self: start; }
  .logo-mono { width: 100%; }
  .hero__foot { grid-template-columns: 1fr; row-gap: 28px; }
  .hero__claim, .hero__aside-body { grid-column: 1 / -1; }
}

/* Entrada del hero: la banda sube, la M se sale */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(80ms + var(--i) * 110ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .logo-mono .m-wrap:not(.is-up) { transform: translateY(66px); }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Deriva del logo al salir del hero */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__drift { animation: hero-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes hero-drift { to { transform: translateY(-7%); } }
  }
}

/* ---------- Revelados al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  [data-lines] .line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
  [data-lines] .line > span { display: block; }
  .is-split .line > span { transform: translateY(110%); }
  .is-split.is-in .line > span { transform: none; transition: transform 800ms var(--ease-expo) calc(var(--i) * var(--stagger-line)); }
}

/* ---------- Intro: titular sobre el mapa con el camino hasta WYME ---------- */
.intro { padding-top: var(--section); overflow: clip; }
.intro__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; align-items: end; }
.intro__head h2 { grid-column: 1 / span 7; }
.intro__captions { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.intro__captions p { font-size: var(--step-body); line-height: 1.5; }
.intro__picture { margin-top: clamp(40px, 6vw, 72px); width: 100%; }

/* El mapa: manzanas en tinta, calles un paso más claras, la competencia en gris y WYME en celeste */
.camino { background: var(--c-tinta); color: var(--c-gris-osc); }
.camino__stage { aspect-ratio: 21 / 9; overflow: clip; }
.camino__map { width: 100%; height: 100%; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.camino__map * { pointer-events: none; }
.camino .map-street { fill: #2B2F38; }
.camino .map-block { fill: var(--c-tinta); }
.camino .map-plaza { fill: #1E262D; }
.camino .route-halo, .camino .route-line { fill: none; stroke: var(--c-celeste); stroke-linecap: round; stroke-linejoin: round; }
.camino .route-halo { stroke-opacity: 0.22; }
.camino .pin-body { fill: var(--c-gris); }
.camino .pin-dot { fill: var(--c-tinta); }
.camino .pin { transition: opacity 500ms var(--ease-out); }
.camino.is-focus .pin { opacity: 0.35; }
.camino .search-ring { fill: none; stroke: var(--c-fondo); }
.camino .wyme-ring { fill: none; stroke: var(--c-celeste); }
.camino .wyme-body, .camino .wyme-m { fill: var(--c-celeste); }
.camino .wyme-head { fill: var(--c-tinta); }
.camino .wyme-band { fill: var(--c-fondo); }
.camino .person-head, .camino .person-body { fill: var(--c-rosa); }
.camino .person-phone { fill: var(--c-celeste); }
@media (prefers-reduced-motion: no-preference) {
  /* Las chinchetas caen al entrar el mapa en pantalla, de la más cercana a WYME a la más lejana */
  .js .camino:not(.is-live) .pin__drop { opacity: 0; }
  .camino.is-live .pin__drop { animation: pin-drop 640ms var(--ease-expo) calc(var(--i) * 16ms) both; }
  @keyframes pin-drop { from { opacity: 0; transform: translateY(-40px); } }
}
.camino__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: clamp(12px, 1.6vw, 18px) var(--margin);
  font-size: var(--step-small); font-weight: 600; line-height: 1.3;
}
.camino__again {
  flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--c-fondo); color: var(--c-tinta); font-size: var(--step-small); font-weight: 700;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.camino__again:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .camino__again:hover { background: var(--c-celeste); } }
@media (max-width: 600px) { .camino__more { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  /* El recorte va dentro: un objetivo recortado del todo no dispara IntersectionObserver */
  .js .shutter .shutter-in { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); }
  .js .shutter.is-in .shutter-in { clip-path: inset(0); }
}
@media (max-width: 900px) {
  .intro__head h2, .intro__captions { grid-column: 1 / -1; }
  .intro__captions { grid-template-columns: 1fr; gap: 12px; }
  .camino__stage { aspect-ratio: 4 / 5; }
}

/* ---------- Destaca tu nombre (la cosa viva) ---------- */
.live { padding-block: var(--section); }
.live__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(32px, 4vw, 56px); align-items: end; }
.live__head { grid-column: 1 / span 8; }
.live__intro { grid-column: 9 / span 4; max-width: 36ch; }
.live__controls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; align-items: center; }
.live__controls .field { grid-column: 1 / span 4; }
.live__controls #sign-help, .live__controls .no-js-only { grid-column: 5 / span 4; }
.live__controls .btn { grid-column: 9 / span 4; justify-self: end; }
.field {
  display: grid; gap: 2px; padding: 12px 20px 10px; border-radius: var(--radius);
  background: var(--tone); color: var(--fg);
  transition: background-color var(--t-hover) ease;
}
.field label, .field .field__label { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; padding: 4px 0 6px; background: transparent; outline: none;
  font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.45; font-weight: 500; }
.field:focus-within { outline: 3px solid var(--fg); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--fg) 55%, transparent); }

.live__stage { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); }
.sign {
  --sign-size: 140px;
  position: relative; display: flex; justify-content: center; align-items: center; flex-wrap: nowrap;
  min-width: 0; width: 100%;
  min-height: calc(var(--sign-size) * 1.32);
  padding: calc(var(--sign-size) * 0.16) calc(var(--sign-size) * 0.32);
  margin-top: calc(var(--sign-size) * 0.5);
  border-radius: calc(var(--sign-size) * 0.32);
  background: var(--c-tinta);
  font-size: var(--sign-size); font-weight: 900; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
}
.sign__inner { display: flex; align-items: center; white-space: pre; }
.sign__l {
  display: inline-block; padding: 0 0.015em; border: 0; background: none; line-height: 1;
  color: var(--c-celeste); font: inherit; font-weight: 900; letter-spacing: inherit; text-transform: inherit;
  transition: color var(--t-hover) ease;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.sign__l.is-space { width: 0.32em; pointer-events: none; }
.sign__l.is-up { color: var(--c-fondo); transform: translateY(-0.52em); }
@media (hover: hover) and (pointer: fine) {
  .sign__l:not(.is-up):not(.is-space):hover { color: #9BDBFF; transform: translateY(-0.06em); transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
}
.no-js-only { display: none; }
html:not(.js) .js-only { display: none; }
html:not(.js) .no-js-only { display: block; }
@media (max-width: 900px) {
  .live__head, .live__intro { grid-column: 1 / -1; }
  .live__head { font-size: clamp(30px, 8.4vw, 64px); }
  .live__controls { grid-template-columns: 1fr; }
  .live__controls .field, .live__controls #sign-help, .live__controls .no-js-only, .live__controls .btn { grid-column: 1 / -1; justify-self: stretch; }
}

/* ---------- Servicios: placa cuadrada, texto escaso ---------- */
.showcase { padding-block: var(--section); }
.showcase__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: stretch; }
.plates { position: relative; aspect-ratio: 1 / 1; align-self: center; width: 100%; }
.plate {
  position: absolute; inset: 0; margin: 0; overflow: clip; border-radius: var(--radius);
  opacity: 0; visibility: hidden;
  transition: opacity 420ms var(--ease-out), visibility 0s linear 420ms;
}
.plate.is-active { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease-out), visibility 0s; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .plate > .plate__body { transform: scale(1.04); transition: transform 900ms var(--ease-expo); }
  .plate.is-active > .plate__body { transform: none; }
}
.plate__body { position: absolute; inset: 0; }
.plate figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 2; font-size: var(--step-small); font-weight: 600; }

/* Placa web: maqueta de navegador (fragmento de interfaz) */
.plate--web .plate__body { background: var(--c-celeste); display: grid; place-items: center; padding: 9%; }
.mock-browser { width: 100%; border-radius: 14px; overflow: clip; background: var(--c-papel); color: var(--c-tinta); }
.mock-browser__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #E9ECF0; font-size: 13px; font-weight: 600; color: #3A3F49; }
.mock-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9CED6; display: block; }
.mock-browser__url { margin-left: 10px; flex: 1; padding: 5px 12px; border-radius: 999px; background: var(--c-papel); }
.mock-site { position: relative; }
.mock-site__nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 13px; font-weight: 700; }
.mock-site__nav span:last-child { padding: 6px 12px; border-radius: 999px; background: var(--c-tinta); color: var(--c-fondo); font-size: 12px; }
.mock-site__hero { position: relative; aspect-ratio: 16 / 10; overflow: clip; }
.mock-site__hero img { width: 100%; height: 100%; object-fit: cover; }
.mock-site__hero p { position: absolute; left: 0; bottom: 0; padding: 10px 16px 12px; max-width: 80%; background: var(--c-tinta); color: #fff; font-size: clamp(16px, 2vw, 26px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; border-top-right-radius: 12px; }
.mock-site__row { display: flex; gap: 10px; padding: 14px 18px 18px; }
.mock-site__row span { flex: 1; padding: 10px 12px; border-radius: 10px; background: #F2F3F5; font-size: 12px; font-weight: 700; }
.mock-site__row span:first-child { background: var(--c-celeste); }

/* Placa redes: teléfono con el reel */
.plate--redes .plate__body { background: var(--c-rosa); }
/* El alto sale de la placa (top/bottom) y el ancho de la proporción del reel (9:16): el vídeo se ve entero, sin recortes */
.phone {
  position: absolute; top: 6%; bottom: 13%; left: 50%; transform: translateX(-50%);
  box-sizing: content-box; aspect-ratio: 9 / 16;
  padding: clamp(6px, 0.7vw, 10px); border-radius: clamp(20px, 2.4vw, 34px);
  background: var(--c-tinta);
}
.phone video, .phone img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: clamp(14px, 1.8vw, 25px); background: var(--c-tinta); }
.plate--redes figcaption { left: 0; right: 0; bottom: 4%; text-align: center; color: var(--c-tinta); }

/* Placa marketing: vídeo cuadrado de tunegocio.com subiendo en Google (mismo fondo que su primer fotograma) */
.plate--marketing .plate__body { background: var(--c-fondo); }
.plate--marketing video { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate--marketing figcaption { left: 0; bottom: 0; padding: 10px 18px; background: var(--c-tinta); color: var(--c-fondo); border-top-right-radius: 12px; }

/* Placa interiorismo: el logo se construye como un edificio; abajo, la barra para recorrer la obra */
.plate--local .plate__body { background: var(--c-tinta-2); }
.obra { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.plate figcaption.obra__bar {
  left: 0; right: 0; bottom: 0; display: grid; gap: 4px;
  padding: 0 clamp(16px, 2.4vw, 24px) clamp(10px, 1.6vw, 16px); color: var(--c-gris-osc);
}
.obra__steps { display: flex; justify-content: space-between; }
.obra__steps .is-on { color: var(--c-celeste); }
.obra__range { width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.obra__range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #3A3F4B; }
.obra__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border: 0; border-radius: 50%; background: var(--c-celeste); }
.obra__range::-moz-range-track { height: 4px; border-radius: 2px; background: #3A3F4B; }
.obra__range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--c-celeste); }
.obra__range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--c-celeste); }

.showcase__text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tab {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--tone); color: var(--fg); font-size: var(--step-body); font-weight: 650;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--c-celeste); color: var(--c-tinta); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { background: #343844; } }
.panel h3 { font-size: var(--step-head); font-weight: 800; line-height: 1; letter-spacing: -0.045em; max-width: 14ch; }
.panel p { margin-top: 28px; max-width: 38ch; }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) > * { animation: rise 520ms var(--ease-out) both; }
  .panel:not([hidden]) > p { animation-delay: 70ms; }
}
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cell {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; padding: 0 24px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.cell:active { transform: scale(0.98); }
.cell--accent { background: var(--c-celeste); color: var(--c-tinta); }
.cell--tone { background: var(--tone); color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .cell--accent:hover { background: #8AD6FF; }
  .cell--tone:hover { background: #343844; }
  .cell:hover .arrow { transform: translateX(4px); }
}
.cell .arrow { transition: transform var(--t-ui) var(--ease-out); }
@media (max-width: 900px) {
  .showcase__grid { grid-template-columns: 1fr; min-height: 0; }
  .showcase__text { gap: 32px; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
}

/* ---------- Todo lo que incluye: columnas de nombres ---------- */
.index { padding-block: var(--section); }
.index__lead { max-width: 46ch; margin-top: 20px; margin-bottom: clamp(48px, 6vw, 88px); }
/* Cuatro columnas de servicios y la quinta para la descripción */
.index__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gutter); position: relative; }
.index__group h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 1.25em; }
.index__group ul { list-style: none; }
.index__group li { font-size: 17px; line-height: 1.25; padding-block: 0.22em; color: var(--muted); transition: color var(--t-hover) ease; cursor: default; }
.index__group li:focus-visible { color: var(--fg); }
.index__group .sum { display: none; }
.index__desc {
  grid-column: 5; grid-row: 1; align-self: start;
  font-size: 17px; line-height: 1.4; color: var(--fg); min-height: 3em;
}
.index__desc strong { display: block; font-weight: 750; }
@media (hover: hover) and (pointer: fine) {
  .index__group li:hover { color: var(--fg); }
}
@media (prefers-reduced-motion: no-preference) {
  .index__desc.is-swapping > * { animation: rise 260ms var(--ease-out) both; }
}
@media (max-width: 900px) {
  .index__grid { grid-template-columns: 1fr; row-gap: 44px; }
  .index__group { grid-column: 1 / -1; }
  .index__group li { font-size: 18px; line-height: 1.4; }
  .index__group .sum { display: block; margin-top: 14px; color: var(--muted); }
  .index__desc { display: none; }
}

/* ---------- Proceso: hoja de ruta en un tique ---------- */
.process { padding-block: var(--section); }
.process__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; align-items: start; }
.process__text { grid-column: 1 / span 5; display: grid; gap: 28px; }
.process__text p { max-width: 32ch; }
.slip-wrap { grid-column: 7 / span 5; }
.slip {
  max-width: 480px; padding: 32px 32px 56px;
  background: var(--c-papel); color: var(--c-tinta);
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96.67% 100%, 93.33% calc(100% - 14px), 90% 100%, 86.67% calc(100% - 14px), 83.33% 100%, 80% calc(100% - 14px), 76.67% 100%, 73.33% calc(100% - 14px), 70% 100%, 66.67% calc(100% - 14px), 63.33% 100%, 60% calc(100% - 14px), 56.67% 100%, 53.33% calc(100% - 14px), 50% 100%, 46.67% calc(100% - 14px), 43.33% 100%, 40% calc(100% - 14px), 36.67% 100%, 33.33% calc(100% - 14px), 30% 100%, 26.67% calc(100% - 14px), 23.33% 100%, 20% calc(100% - 14px), 16.67% 100%, 13.33% calc(100% - 14px), 10% 100%, 6.67% calc(100% - 14px), 3.33% 100%, 0 calc(100% - 14px));
}
.slip__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 8px; }
.slip__top svg { width: 120px; height: auto; }
.slip__top svg .band { fill: var(--c-tinta); }
.slip__top svg .m { fill: var(--c-celeste); }
.slip__top span { font-size: var(--step-small); font-weight: 600; color: var(--c-gris); text-align: right; }
.slip h3 { font-size: 17px; font-weight: 800; margin-top: 28px; margin-bottom: 6px; letter-spacing: -0.01em; }
.slip__row { display: flex; align-items: baseline; gap: 10px; padding-block: 6px; font-size: var(--step-body); }
.slip__row span:first-child { flex: 0 1 auto; }
.slip__row .dots { flex: 1 1 24px; min-width: 24px; height: 4px; align-self: center; margin-top: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='4'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%231B1D23'/%3E%3C/svg%3E") 0 50% / 10px 4px repeat-x; opacity: 0.55; }
.slip__row span:last-child { flex: none; font-weight: 700; }
/* Casilla para marcar: el tique es una lista de pasos, no de plazos */
.slip__row .tick { width: 14px; height: 14px; border: 2px solid var(--c-tinta); border-radius: 3px; align-self: center; margin-top: 2px; }
.slip__total {
  display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 32px -32px 0; padding: 0 32px;
  background: var(--c-tinta); color: var(--c-papel); font-weight: 800;
}
.slip__total .dots { flex: 1; height: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='4'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23FFFFFF'/%3E%3C/svg%3E") 0 50% / 10px 4px repeat-x; opacity: 0.6; }
.slip__note { margin-top: 18px; font-size: var(--step-small); color: var(--c-gris); }
@media (prefers-reduced-motion: no-preference) {
  .js .slip { transform: translateY(-40px); clip-path: inset(0 0 100% 0); transition: transform 1100ms var(--ease-expo), clip-path 1100ms var(--ease-in-out); }
  .js .slip-wrap.is-in .slip { transform: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96.67% 100%, 93.33% calc(100% - 14px), 90% 100%, 86.67% calc(100% - 14px), 83.33% 100%, 80% calc(100% - 14px), 76.67% 100%, 73.33% calc(100% - 14px), 70% 100%, 66.67% calc(100% - 14px), 63.33% 100%, 60% calc(100% - 14px), 56.67% 100%, 53.33% calc(100% - 14px), 50% 100%, 46.67% calc(100% - 14px), 43.33% 100%, 40% calc(100% - 14px), 36.67% 100%, 33.33% calc(100% - 14px), 30% 100%, 26.67% calc(100% - 14px), 23.33% 100%, 20% calc(100% - 14px), 16.67% 100%, 13.33% calc(100% - 14px), 10% 100%, 6.67% calc(100% - 14px), 3.33% 100%, 0 calc(100% - 14px)); }
  .js .slip .slip__row, .js .slip h3, .js .slip .slip__total { opacity: 0; transform: translateY(8px); transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out); transition-delay: calc(240ms + var(--r, 0) * 45ms); }
  .js .slip-wrap.is-in .slip .slip__row, .js .slip-wrap.is-in .slip h3, .js .slip-wrap.is-in .slip .slip__total { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .process__text, .slip-wrap { grid-column: 1 / -1; }
  .slip { max-width: none; padding: 26px 22px 52px; }
  .slip__total { margin-inline: -22px; padding-inline: 22px; }
  .slip__row { font-size: var(--step-small); }
}

/* ---------- Quiénes somos: monogramas como el logo, una letra baja y otra sube ---------- */
.team { padding-block: var(--section); }
.team__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; align-items: end; }
.team__head h2 { grid-column: 1 / span 7; }
.team__head .lead { grid-column: 8 / span 5; max-width: 40ch; }
.team__list { list-style: none; display: grid; gap: clamp(56px, 6vw, 96px); margin-top: clamp(56px, 7vw, 112px); }
.person { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; align-items: center; }
/* Mismo alto para los tres: la banda crece con las letras, como en el logo */
.mono { grid-column: 1 / span 4; height: clamp(140px, 15vw, 224px); width: auto; max-width: 100%; overflow: visible; }
.mono .band { fill: var(--c-fondo); }
.mono .l { fill: var(--c-celeste); }
.mono__up, .mono__down { transform-box: view-box; }
.person__name { grid-column: 5 / span 4; }
.person__name h3 { font-size: var(--step-head); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.person__role { margin-top: 12px; color: var(--c-celeste); font-weight: 650; }
.person__bio { grid-column: 9 / span 4; max-width: 38ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .mono .mono__up:not(.is-up) { transform: translateY(66px); }
  .js .mono .mono__down:not(.is-up) { transform: translateY(-66px); }
}
@media (max-width: 900px) {
  .team__head h2, .team__head .lead, .mono, .person__name, .person__bio { grid-column: 1 / -1; }
  .mono { height: 120px; }
}

/* ---------- Preguntas: titular ancho, preguntas sangradas ---------- */
.faq { padding-block: var(--section); }
.faq__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(48px, 6vw, 80px); }
.faq__items { grid-column: 5 / -1; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); transition: background-color var(--t-ui) ease; margin-inline: -24px; padding: 14px 24px; }
.faq details[open] { background: var(--tone); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  list-style: none; cursor: pointer; padding-block: 8px;
  font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.chev { flex: none; width: 16px; height: 16px; position: relative; transition: transform var(--t-ui) var(--ease-out); }
.chev::before, .chev::after { content: ""; position: absolute; top: 7px; width: 10px; height: 2px; background: currentColor; border-radius: 2px; }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { max-width: 52ch; padding: 6px 0 12px; font-size: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: rise 320ms var(--ease-out) both; }
}
@media (hover: hover) and (pointer: fine) { .faq details:not([open]):hover { background: color-mix(in srgb, var(--tone) 55%, transparent); } }
@media (max-width: 900px) {
  .faq__items { grid-column: 1 / -1; }
  .faq details { margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); border-radius: 0; }
}

/* ---------- Contacto: cupón para recortar ---------- */
.contact { padding-block: clamp(96px, 10vw, 140px); }
.coupon {
  --notch: 15px;
  position: relative;
  display: grid; grid-template-columns: 46fr 54fr;
  margin-inline: auto; max-width: 1340px;
  border-radius: var(--radius);
  background: var(--c-celeste); color: var(--c-tinta);
  -webkit-mask: radial-gradient(circle var(--notch) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: máscara de las muescas del cupón, no un relleno */
          mask: radial-gradient(circle var(--notch) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore */
  --tone: var(--c-celeste-2); --fg: var(--c-tinta); --muted: #1E3A4C;
}
.coupon__stub { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px, 4vw, 56px); }
.coupon__stub::after { content: ""; position: absolute; top: 28px; bottom: 28px; right: -3px; width: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='14'%3E%3Ccircle cx='3' cy='7' r='2.6' fill='%23F2F3F5'/%3E%3C/svg%3E") 50% 0 / 6px 14px repeat-y; }
.coupon__stub h2 { font-size: var(--step-display); font-weight: 800; line-height: 0.9; letter-spacing: -0.055em; }
.coupon__stub h2 .dot { color: var(--c-fondo); }
.coupon__stub > p { max-width: 30ch; }
.contact-list { list-style: none; display: grid; gap: 6px; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; }
.contact-list a { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; padding-block: 4px; }
.contact-list svg { width: 22px; height: 22px; flex: none; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; } }
.coupon__card { display: flex; align-items: center; gap: 16px; }
.coupon__card img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; transform: rotate(-4deg); transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .coupon__card:hover img { transform: rotate(0deg) scale(1.04); } }

.coupon__form { display: grid; gap: 10px; padding: clamp(32px, 4vw, 56px); align-content: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { border: 0; padding: 0; margin: 0 0 6px; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.chips__set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--c-celeste-2); font-weight: 650; font-size: var(--step-small);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip input:checked + span { background: var(--c-tinta); color: var(--c-fondo); }
.chip input:focus-visible + span { outline: 3px solid var(--c-tinta); outline-offset: 2px; }
.chip input:active + span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):hover + span { background: #C4EAFF; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; font-size: var(--step-small); line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--c-tinta); }
.check a { font-weight: 700; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: campo trampa oculto */
.form-status { min-height: 1.5em; font-weight: 650; }
.form-status.is-error { color: #7A0F27; }
.field.is-invalid { outline: 3px solid #B0183A; outline-offset: 2px; }
.field__error { font-size: var(--step-small); font-weight: 600; color: #7A0F27; }
.rgpd { font-size: var(--step-small); line-height: 1.5; color: var(--muted); }
.rgpd summary { cursor: pointer; font-weight: 650; color: var(--fg); padding-block: 6px; }
.rgpd dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin-top: 8px; }
.rgpd dt { font-weight: 700; color: var(--fg); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.coupon__done { display: none; padding: clamp(32px, 4vw, 56px); align-content: center; gap: 20px; }
.coupon__done h3 { font-size: var(--step-head); font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; }
.coupon.is-sent .coupon__form { display: none; }
.coupon.is-sent .coupon__done { display: grid; }
@media (prefers-reduced-motion: no-preference) {
  .coupon.is-sent .coupon__done > * { animation: rise 600ms var(--ease-out) both; }
  .coupon.is-sent .coupon__done > *:nth-child(2) { animation-delay: 80ms; }
  .coupon.is-sent .coupon__done > *:nth-child(3) { animation-delay: 160ms; }
}
@media (max-width: 900px) {
  .contact { padding-inline: 12px; }
  .coupon {
    grid-template-columns: 1fr;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--cut, 46%), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--cut, 46%), #0000 98%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore */
            mask: radial-gradient(circle var(--notch) at 0 var(--cut, 46%), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--cut, 46%), #0000 98%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore */
  }
  .coupon__stub::after { top: auto; bottom: -3px; left: 24px; right: 24px; width: auto; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6'%3E%3Ccircle cx='7' cy='3' r='2.6' fill='%23F2F3F5'/%3E%3C/svg%3E") 0 50% / 14px 6px repeat-x; }
  .form-row { grid-template-columns: 1fr; }
  .field input, .field textarea { font-size: 17px; }
}

/* ---------- Pie: el nombre primero ---------- */
.site-footer { padding: clamp(64px, 8vw, 112px) 0 32px; overflow: clip; }
.footer-logo { width: 100%; height: auto; overflow: visible; }
.footer-logo .band { fill: var(--c-fondo); }
.footer-logo .m { fill: var(--c-celeste); }
@media (prefers-reduced-motion: no-preference) {
  .js .footer-logo .m-wrap:not(.is-up) { transform: translateY(66px); }
}
.footer-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; margin-top: 72px; }
.places { grid-column: 1 / span 5; list-style: none; display: grid; gap: 6px; }
.places a { font-size: var(--step-head); font-weight: 750; letter-spacing: -0.035em; line-height: 1.2; color: var(--c-celeste); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .places a:hover { text-decoration-color: currentColor; } }
.footer-links { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px var(--gutter); font-size: var(--step-small); }
.footer-links h3 { font-size: var(--step-small); font-weight: 750; margin-bottom: 12px; color: var(--fg); }
.footer-links ul { list-style: none; display: grid; gap: 4px; }
.footer-links a, .footer-links button { color: var(--muted); text-decoration: none; padding: 4px 0; background: none; border: 0; text-align: left; font-size: var(--step-small); transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover, .footer-links button:hover { color: var(--fg); } }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 96px; font-size: var(--step-small); color: var(--muted); }
.footer-legal p { max-width: 90ch; }
.footer-legal a { color: inherit; }
@media (max-width: 900px) {
  .places, .footer-links { grid-column: 1 / -1; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-legal { margin-top: 64px; }
}

/* ---------- Banner y preferencias de cookies ---------- */
.cookie-banner {
  position: fixed; left: var(--margin); bottom: var(--margin); z-index: 80;
  width: min(460px, calc(100vw - 2 * var(--margin)));
  padding: 24px; border-radius: var(--radius);
  background: var(--c-tinta); color: var(--c-fondo);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: el banner flota sobre la página */
  --tone: var(--c-tinta-2); --fg: var(--c-fondo); --muted: var(--c-gris-osc);
}
.cookie-banner[hidden] { display: none; }
.cookie-pill { display: none; }
.cookie-banner.is-min { left: auto; right: var(--margin); width: auto; padding: 0; background: none; box-shadow: none; } /* taste-skill-ignore: quita la sombra */
.cookie-banner.is-min .cookie-full { display: none; }
.cookie-banner.is-min .cookie-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--c-tinta); color: var(--c-fondo); font-size: var(--step-small); font-weight: 700;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: control flotante */
  transition: transform var(--t-press) var(--ease-out);
}
.cookie-banner.is-min .cookie-pill:active { transform: scale(0.97); }
.cookie-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-celeste); }
.cookie-banner h2 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.cookie-banner p { font-size: var(--step-small); line-height: 1.5; color: var(--c-gris-osc); }
.cookie-banner p a { color: var(--c-fondo); font-weight: 650; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.cookie-actions .btn { min-height: 46px; padding: 0 16px; font-size: var(--step-small); }
.cookie-actions .btn--wide { grid-column: 1 / -1; }
.btn--tone { background: var(--c-tinta-2); color: var(--c-fondo); }
@media (hover: hover) and (pointer: fine) { .btn--tone:hover { background: #343844; } }
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner:not([hidden]) { animation: rise 420ms var(--ease-out) 600ms both; }
}

.cookie-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--c-fondo); color: var(--c-tinta);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: diálogo modal */
}
.cookie-dialog::backdrop { background: rgba(27, 29, 35, 0.6); }
.cookie-dialog form { padding: 28px; display: grid; gap: 18px; }
.cookie-dialog h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; }
.cookie-dialog p { font-size: 15px; color: var(--c-gris); }
.cookie-cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--c-tono); }
.cookie-cat h3 { font-size: 17px; font-weight: 750; }
.cookie-cat p { grid-column: 1 / -1; font-size: 14px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #B9BEC7; transition: background-color var(--t-hover) ease; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
.switch input:checked + span { background: var(--c-tinta); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { background: #6B7280; }
.switch input:focus-visible + span { outline: 3px solid var(--c-celeste); outline-offset: 2px; }
.cookie-dialog .cookie-actions { margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .cookie-dialog[open] { animation: dialog-in 260ms var(--ease-out); }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
}

/* ---------- Páginas legales ---------- */
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding-inline: var(--margin); background: var(--c-tinta); color: var(--c-fondo); }
.legal-header .brand .band { fill: var(--c-fondo); }
.legal-main { padding: clamp(56px, 8vw, 120px) var(--margin) var(--section); }
.legal-main .legal-head { max-width: 1100px; margin: 0 auto clamp(40px, 5vw, 72px); }
.legal-main .legal-head h1 { font-size: clamp(44px, 6vw, 88px); font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; }
.legal-main .legal-head p { margin-top: 20px; color: var(--c-gris); }
.legal-body { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: 24px; display: grid; gap: 4px; font-size: 15px; }
.legal-toc a { color: var(--c-gris); text-decoration: none; padding: 4px 0; }
.legal-toc a:hover { color: var(--c-tinta); }
.legal-toc strong { font-size: 15px; margin-bottom: 6px; }
.prose { max-width: 70ch; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 56px 0 16px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 750; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose table, .prose dl { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #D5D8DE; }
.prose th { background: var(--c-tono); font-weight: 700; }
.prose .data { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; padding: 20px 22px; border-radius: 14px; background: var(--c-tono); }
.prose .data dt { font-weight: 700; }
.todo { background: #FFE38A; color: var(--c-tinta); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.legal-footer { padding: 40px var(--margin); background: var(--c-tinta); color: var(--c-gris-osc); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-footer a, .legal-footer button { color: inherit; text-decoration: none; background: none; border: 0; padding: 4px 0; font-size: 15px; }
.legal-footer a:hover, .legal-footer button:hover { color: var(--c-fondo); }
.legal-footer a[aria-current="page"] { color: var(--c-fondo); font-weight: 700; }
@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding: 18px 20px; border-radius: 14px; background: var(--c-tono); }
  .prose .data { grid-template-columns: 1fr; gap: 2px; }
  .prose .data dd { margin-bottom: 10px; }
}

@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .cookie-banner.is-min { left: auto; right: 12px; }
  .cookie-banner h2 { margin-bottom: 4px; }
  .cookie-banner p { font-size: 14px; line-height: 1.45; }
  .cookie-banner .cookie-actions { grid-template-columns: 1fr 1fr 1fr; margin-top: 14px; }
  .cookie-banner .cookie-actions .btn--wide { grid-column: auto; }
  .cookie-banner .cookie-actions .btn { min-height: 44px; padding: 0 8px; }
}