/* Gestoría Tráfico Utebo — hoja de estilos
   Mundo visual: señalización de carretera española. Hitos kilométricos (blanco con remate granate),
   la línea discontinua del eje de la calzada y el blanco de las señales de orientación. */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Overpass";
  src: url("../fonts/overpass-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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 {
  --granate: #9a2239;
  --granate-deep: #7a1a2d;
  --granate-ink: #4a0f1b;
  --granate-tint: #fbedf0;
  --granate-line: #f0d0d8;
  --ink: #141414;
  --ink-2: #333333;
  --muted: #5b5b5b;
  --paper: #ffffff;
  --stone: #f2f1ef;
  --line: #e2e0dc;
  --asphalt: #1b1b1b;
  --whatsapp: #25d366;
  --whatsapp-deep: #1fb957;
  --whatsapp-ink: #0b2e1a;

  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px; --radius-lg: 12px;
  --header-h: 92px;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.85rem, 1.45rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
::selection { background: var(--granate); color: #fff; }
:focus-visible { outline: 3px solid var(--granate); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-granate :focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--stone { background: var(--stone); }
.icon { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.icon svg { width: 100%; height: 100%; display: block; }

/* Titulares de sección: el título lleva el peso, sin etiquetas encima */
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; margin: 0; }
.on-granate .head p, .on-dark .head p { color: rgba(255, 255, 255, 0.82); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: var(--radius);
  font-weight: 650; font-size: 1rem; letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 20px; height: 20px; }
.btn--granate { --bg: var(--granate); --bd: var(--granate); }
.btn--wa { --bg: var(--whatsapp); --bd: var(--whatsapp); --fg: var(--whatsapp-ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,0.7); }
@media (hover: hover) and (pointer: fine) {
  .btn--granate:hover { --bg: var(--granate-deep); --bd: var(--granate-deep); }
  .btn--wa:hover { --bg: var(--whatsapp-deep); --bd: var(--whatsapp-deep); }
  .btn--ghost:hover { --bg: var(--ink); --fg: #fff; }
  .btn--light:hover { --bg: var(--granate-tint); --bd: var(--granate-tint); }
  .btn--outline-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(4px); } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,0.25); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand { transform-origin: left center; transition: transform 300ms var(--ease-out); }
.brand img { height: 66px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 550; font-size: 0.98rem; color: var(--ink-2); border-radius: var(--radius); position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--granate); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out); }
.nav a[aria-current="page"]::after, .nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } .nav a:hover { color: var(--ink); } }
.header-cta { display: flex; gap: 8px; align-items: center; }
.header-cta .btn { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .nav, .header-cta .btn--ghost { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: 0; }
  .brand img { height: 56px; }
  .site-header .wrap { gap: 12px; }
  .nav.is-open { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 12px var(--gutter) 120px; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.is-open ul { flex-direction: column; gap: 0; }
  .nav.is-open a { font-size: 1.35rem; font-weight: 650; padding: 18px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .nav.is-open a::after { display: none; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand img { height: 50px; }
}

/* Barra fija inferior en móvil: llamar y WhatsApp siempre a un toque */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: grid; grid-template-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0,0,0,0.3); }
  .dock .btn { min-height: 52px; }
  body { padding-bottom: 76px; }
  .wa-float { display: none; }
}

/* Botón flotante de WhatsApp (escritorio) */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 55;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(18, 140, 70, 0.7);
  transition: transform 180ms var(--ease-out);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: translateY(-2px); } }

/* ---------- Hero de portada ---------- */
.hero { position: relative; color: #fff; background: var(--asphalt); isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; transform: scale(1.04); animation: hero-settle 2.4s var(--ease-out) both; }
@keyframes hero-settle { from { transform: scale(1.1); } to { transform: scale(1.04); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.55) 38%, rgba(10,10,10,0.08) 70%),
    linear-gradient(0deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0) 45%); }
.hero__inner { min-height: min(92svh, 880px); display: grid; grid-template-rows: 1fr auto; padding-top: clamp(56px, 10vh, 120px); }
.hero__copy { max-width: 780px; align-self: center; }
.hero__cred { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.hero__cred .icon { width: 20px; height: 20px; color: #fff; }
.hero h1 { font-size: var(--step-4); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.hero h1 .l2 { display: block; font-weight: 350; letter-spacing: -0.02em; color: rgba(255,255,255,0.92); margin-top: 0.12em; }
.hero__lead { font-size: var(--step-1); line-height: 1.45; max-width: 600px; margin: 26px 0 34px; color: rgba(255,255,255,0.88); }

/* Ruta en 4 pasos: hitos kilométricos sobre la calzada */
.route { position: relative; margin-top: clamp(40px, 7vh, 72px); background: #fff; color: var(--ink); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 28px clamp(20px, 3vw, 40px) 30px; box-shadow: 0 -18px 40px -24px rgba(0,0,0,0.5); }
.route__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.route__title { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.route__note { font-size: var(--step--1); color: var(--muted); }
.route__track { position: relative; }
.route__steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.route__road { position: absolute; left: 0; right: 0; top: 21px; height: 6px; background: var(--ink); border-radius: 3px; overflow: hidden; }
.route__road::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 14px, transparent 14px 26px); opacity: 0.85; }
.route__fill { position: absolute; inset: 0; background: var(--granate); transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform 900ms var(--ease-in-out); }
.route__step { position: relative; padding-right: 20px; cursor: pointer; }
.hito { position: relative; z-index: 1; width: 48px; height: 48px; margin-bottom: 20px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; line-height: 1; transition: background-color 350ms ease, border-color 350ms ease, color 350ms ease, box-shadow 350ms var(--ease-out), transform 350ms var(--ease-out); }
.route__step h3 { font-size: 1.12rem; line-height: 1.2; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; transition: color 300ms ease; }
.route__step p { font-size: 0.95rem; color: var(--muted); margin: 0; line-height: 1.45; }
.route__step .icon { width: 22px; height: 22px; color: var(--granate); margin-bottom: 8px; }
.route__step.is-done .hito { background: var(--ink); color: #fff; }
.route__step.is-active .hito { background: var(--granate); border-color: var(--granate); color: #fff; box-shadow: 0 0 0 7px var(--granate-tint); transform: scale(1.06); }
.route__step.is-active h3 { color: var(--granate); }
.route__pause { border: 0; background: none; padding: 6px; margin: -6px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); }
.route__pause:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero__inner { min-height: auto; padding-top: 48px; }
  .hero::before { background: linear-gradient(0deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.35) 100%); }
  .hero__copy { padding-bottom: 8px; }
  .route { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px 20px 12px; }
  .route__steps { grid-template-columns: 1fr; }
  .route__road { left: 17px; right: auto; top: 10px; bottom: 30px; width: 6px; height: auto; }
  .route__road::before { left: 2px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #fff 0 14px, transparent 14px 26px); }
  .route__fill { transform-origin: top; transform: scaleY(var(--progress, 0)); }
    .route__step { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 0 0 22px; }
  .hito { grid-row: span 3; margin: 0; width: 40px; height: 40px; font-size: 0.95rem; }
  .route__step .icon { display: none; }
  .route__top { flex-direction: column; gap: 4px; margin-bottom: 20px; }
}

/* ---------- Franja de credenciales ---------- */
.creds { border-bottom: 1px solid var(--line); background: #fff; }
.creds ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding-block: 22px; }
.creds li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.98rem; color: var(--ink-2); }
.creds .icon { color: var(--granate); width: 22px; height: 22px; }

/* ---------- Servicios: panel de destinos ---------- */
.switch { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--stone); border-radius: 999px; padding: 5px; position: relative; margin-bottom: 28px; }
.switch__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: var(--ink); border-radius: 999px; transition: transform 320ms var(--ease-out); }
.switch[data-view="pro"] .switch__thumb { transform: translateX(100%); }
.switch button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 0.98rem; cursor: pointer; color: var(--ink-2); transition: color 250ms ease; white-space: nowrap; }
.switch button[aria-pressed="true"] { color: #fff; }
@media (max-width: 520px) { .switch { display: grid; width: 100%; } .switch button { padding: 12px 8px; font-size: 0.9rem; white-space: normal; line-height: 1.2; } }

.dest { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dest li { display: flex; }
.dest a { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 24px; text-decoration: none; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); position: relative; transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms var(--ease-out); }
.dest__icon { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--granate-tint); color: var(--granate); display: grid; place-items: center; margin-bottom: 6px; transition: background-color 250ms ease, color 250ms ease; }
.dest__icon .icon { width: 28px; height: 28px; }
.dest__name { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.dest__name small { display: block; font-size: 0.92rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.dest__desc { color: var(--ink-2); margin: 0; line-height: 1.5; font-size: 0.98rem; flex: 1; }
.dest__go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; font-weight: 650; font-size: 0.95rem; color: var(--granate); }
.dest__go::before { content: "Ver trámite"; }
.dest__go .icon { width: 20px; height: 20px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .dest a:hover { border-color: var(--granate); box-shadow: 0 18px 36px -24px rgba(74, 15, 27, 0.45); transform: translateY(-3px); }
  .dest a:hover .dest__icon { background: var(--granate); color: #fff; }
  .dest a:hover .dest__go .icon { transform: translateX(4px); }
}
.dest a:active { transform: scale(0.985); }
[data-view="p"] [data-for="pro"], [data-view="pro"] [data-for="p"] { display: none; }
@media (max-width: 1000px) { .dest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .dest { grid-template-columns: 1fr; gap: 14px; } .dest a { padding: 22px 20px 18px; } }
.dest-foot { margin-top: 28px; color: var(--muted); }

/* ---------- Para quién: dos carriles ---------- */
.lanes { display: grid; grid-template-columns: 1fr 1fr; }
.lane { position: relative; display: grid; grid-template-rows: auto 1fr; }
.lane__img { aspect-ratio: 16 / 10; overflow: hidden; }
.lane__img img { width: 100%; height: 100%; object-fit: cover; }
.lane__body { padding: clamp(32px, 4.5vw, 64px); display: grid; align-content: start; gap: 18px; }
.lane h2 { font-size: var(--step-3); }
.lane p { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.lane ul { list-style: none; display: grid; gap: 10px; margin: 6px 0 10px; }
.lane li { display: flex; gap: 12px; align-items: flex-start; }
.lane li .icon { width: 20px; height: 20px; margin-top: 4px; }
.lane--p { background: var(--stone); }
.lane--p li .icon { color: var(--granate); }
.lane--pro { background: var(--granate); color: #fff; }
.lane--pro p { color: rgba(255,255,255,0.88); }
@media (max-width: 900px) { .lanes { grid-template-columns: 1fr; } }

/* ---------- Cifras: cuentakilómetros ---------- */
.odo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.odo__claims { display: grid; gap: 28px; }
.odo__claim h3 { font-size: var(--step-1); margin-bottom: 6px; }
.odo__claim p { color: var(--muted); margin: 0; }
.odo__figs { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.fig { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 12px 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.fig__num { font-size: clamp(3rem, 2rem + 4.5vw, 6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; color: var(--granate); font-variant-numeric: tabular-nums; }
.fig__label { font-size: var(--step-1); font-weight: 600; line-height: 1.25; }
.fig__label span { display: block; font-size: 0.95rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .odo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fig { grid-template-columns: 1fr; } }

.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.why-grid .odo__claim { padding: 28px 28px 28px 0; }
.why-grid .odo__claim + .odo__claim { padding-left: 28px; border-left: 1px solid var(--line); }
.odo__claim > .icon { width: 30px; height: 30px; color: var(--granate); margin-bottom: 14px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } .why-grid .odo__claim:nth-child(3) { padding-left: 0; border-left: 0; } .why-grid .odo__claim { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } .why-grid .odo__claim + .odo__claim { padding-left: 0; border-left: 0; } }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.plate { position: sticky; top: calc(var(--header-h) + 24px); border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.plate__cap { height: 14px; background: var(--granate); }
.plate__body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; }
.plate__name { font-size: var(--step-3); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.plate__role { font-size: var(--step-1); font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.plate__num { display: flex; align-items: baseline; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.plate__num strong { font-size: 2.6rem; font-weight: 800; color: var(--granate); letter-spacing: -0.03em; line-height: 1; }
.plate__num span { color: var(--muted); font-size: 0.95rem; line-height: 1.3; }
.plate__seal { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.plate__seal img { width: 56px; height: auto; }
.about__text > p:first-child { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.about__text p { color: var(--ink-2); }
.facts { list-style: none; display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-weight: 700; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .plate { position: static; } }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 2px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; font-weight: 650; font-size: var(--step-1); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform 250ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
.faq details > div p:last-child { margin: 0; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--granate); } }

/* ---------- Contacto ---------- */
.contact { background: var(--granate); color: #fff; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); }
.contact h2 { font-size: var(--step-3); margin-bottom: 18px; }
.contact__lead { font-size: var(--step-1); line-height: 1.45; color: rgba(255,255,255,0.88); margin-bottom: 34px; }
.cinfo { list-style: none; display: grid; border-top: 1px solid rgba(255,255,255,0.28); }
.cinfo li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.28); }
.cinfo .icon { width: 24px; height: 24px; margin-top: 2px; }
.cinfo small { display: block; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.cinfo a { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.cinfo a:hover { text-decoration: underline; }
.pending { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.16); }

.form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; }
.form h3 { font-size: var(--step-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 650; font-size: 0.95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #c9c6c1; border-radius: var(--radius); background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--granate); box-shadow: 0 0 0 3px rgba(154, 34, 57, 0.2); }
.field input::placeholder, .field textarea::placeholder { color: #8a8782; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: 0.88rem; font-weight: 600; min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1.5px solid #c9c6c1; border-radius: var(--radius); cursor: pointer; font-weight: 550; }
.seg input { accent-color: var(--granate); width: 18px; height: 18px; }
.seg label:has(input:checked) { border-color: var(--granate); background: var(--granate-tint); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.check input { accent-color: var(--granate); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form__legal { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0; }
.form__status { font-weight: 650; margin: 0; }
.form__status[data-state="ok"] { color: #13703a; }
.form__status[data-state="error"] { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row, .seg { grid-template-columns: 1fr; } }

/* ---------- Cierre (llamada final) ---------- */
.closing { background: var(--asphalt); color: #fff; position: relative; overflow: hidden; }
.closing::after { content: ""; position: absolute; left: 0; right: 0; bottom: 34px; height: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0 40px, transparent 40px 72px); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(56px, 8vw, 96px) clamp(76px, 9vw, 116px); }
.closing h2 { font-size: var(--step-3); max-width: 20ch; }
.closing p { color: rgba(255,255,255,0.8); margin: 12px 0 0; font-size: var(--step-1); }

/* ---------- Pie ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 34ch; }
.site-footer h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--granate); text-decoration: underline; }
.seals { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seal { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.85rem; line-height: 1.35; max-width: 300px; }
.seal img { height: 64px; width: auto; }
.seal strong { display: block; color: var(--ink); font-size: 0.92rem; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 30px; color: var(--muted); font-size: 0.86rem; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */
.phero { position: relative; color: #fff; background: var(--asphalt); isolation: isolate; overflow: hidden; }
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.6) 45%, rgba(10,10,10,0.25) 100%); }
.phero--plain { background: var(--granate); }
.phero--plain::before { display: none; }
.phero .wrap { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 104px); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.phero h1 { font-size: var(--step-4); max-width: 17ch; letter-spacing: -0.03em; }
.phero__lead { font-size: var(--step-1); line-height: 1.45; max-width: 640px; margin: 22px 0 32px; color: rgba(255,255,255,0.9); }
.phero__icon { width: 64px; height: 64px; border: 1.5px solid rgba(255,255,255,0.8); border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 24px; }
.phero__icon .icon { width: 32px; height: 32px; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: var(--step-2); margin: 56px 0 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: var(--step-1); margin: 28px 0 8px; }
.prose p { color: var(--ink-2); }
.prose p.intro { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; display: grid; gap: 10px; }
.prose ul { list-style: none; }
.prose ul { gap: 0; border-top: 1px solid var(--line); }
.prose ul li { position: relative; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose ol { padding-left: 0; list-style: none; counter-reset: s; }
.prose ol li { counter-increment: s; position: relative; padding-left: 50px; min-height: 36px; color: var(--ink-2); }
.prose ol li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.cases { display: grid; gap: 0; border-top: 2px solid var(--ink); margin-bottom: 1.4em; }
.case { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.case strong { font-size: 1.05rem; }
.case p { margin: 0; }
@media (max-width: 640px) { .case { grid-template-columns: 1fr; gap: 4px; } }
.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 1.4em; font-size: 0.97rem; }
.tbl th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 12px 12px 12px 0; }
.tbl td { border-bottom: 1px solid var(--line); padding: 14px 12px 14px 0; vertical-align: top; color: var(--ink-2); }
.callout { background: var(--granate-tint); border-radius: var(--radius-lg); padding: 24px 26px; margin: 8px 0 1.4em; }
.callout p:last-child { margin: 0; }
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 1.4em; }
.aud > div { border: 1.5px solid var(--ink); border-radius: var(--radius-lg); padding: 22px 24px; }
.aud > div:last-child { background: var(--granate); border-color: var(--granate); color: #fff; }
.aud > div:last-child p { color: rgba(255,255,255,0.9); }
.aud h3 { margin: 0 0 8px; font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.aud h3 .icon { width: 22px; height: 22px; }
.aud p { margin: 0; }
@media (max-width: 640px) { .aud { grid-template-columns: 1fr; } }

.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.box { border: 1.5px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; }
.box__cap { height: 10px; background: var(--granate); }
.box__body { padding: 24px; display: grid; gap: 14px; }
.box h2, .box h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.box p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.box .btn { width: 100%; }
.box ul { list-style: none; display: grid; gap: 0; }
.box li a { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 0.95rem; }
.box li:last-child a { border-bottom: 0; }
.box li a:hover { color: var(--granate); }
.box li .icon { width: 18px; height: 18px; color: var(--granate); }
.box--hours { background: var(--stone); border-color: var(--stone); }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }

.related { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.related a { display: grid; gap: 10px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.related .icon { width: 28px; height: 28px; color: var(--granate); }
.related strong { font-size: 1.2rem; letter-spacing: -0.01em; }
.related span { color: var(--muted); font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) { .related a:hover strong { color: var(--granate); } }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } .related a + a { padding-left: 0; border-left: 0; } }

/* Documentos para descargar */
.docs { border-top: 2px solid var(--ink); margin-bottom: 48px; }
.docs h2 { font-size: var(--step-2); padding: 26px 0 8px; }
.doc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.doc .icon { width: 28px; height: 28px; color: var(--granate); }
.doc strong { display: block; font-size: 1.08rem; }
.doc span { color: var(--muted); font-size: 0.95rem; }
.doc__soon { font-size: 0.86rem; font-weight: 650; color: var(--muted); text-align: right; }
.doc__soon a { color: #13703a; }
@media (max-width: 640px) { .doc { grid-template-columns: 36px 1fr; } .doc > :last-child { grid-column: 2; text-align: left; } }

.legal { max-width: 78ch; }
.legal h2 { font-size: var(--step-2); margin: 44px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 1em; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--line); margin: 0 0 1em; }
.legal dt, .legal dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal dt { font-weight: 700; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dt { border-bottom: 0; padding-bottom: 0; } }
mark.todo { background: #fff3c4; color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* Aparición al hacer scroll: visible por defecto, solo se anima si hay JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
  .route__fill, .hito { transition: none; }
}

@media (max-width: 760px) { .wa-float { display: none; } }

/* =========================================================
   v4: buscador, mosaico de servicios con foto, detalles
   ========================================================= */

/* Detalle de carretera sobre los títulos de sección: tres trazos del eje */
.head h2::before, .about__text > h2::before {
  content: ""; display: block; width: 58px; height: 4px; margin-bottom: 22px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--granate) 0 14px, transparent 14px 22px);
}
.on-granate .head h2::before, .lane--pro h2::before { background: repeating-linear-gradient(90deg, #fff 0 14px, transparent 14px 22px); }

/* ---------- Buscador de trámites ---------- */
.search { position: relative; width: 100%; max-width: 620px; }
.search__box { position: relative; display: flex; align-items: center; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -22px rgba(0,0,0,0.55); border: 1.5px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease; }
.search__box:focus-within { border-color: var(--granate); box-shadow: 0 0 0 4px rgba(154, 34, 57, 0.22), 0 18px 40px -22px rgba(0,0,0,0.55); }
.search__box > .icon { position: absolute; left: 18px; width: 22px; height: 22px; color: var(--granate); pointer-events: none; }
.search input { width: 100%; min-height: 60px; border: 0; background: transparent; padding: 0 18px 0 52px; font-size: 1.08rem; color: var(--ink); border-radius: var(--radius-lg); }
.search input:focus { outline: none; }
.search input::placeholder { color: #75716b; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search__list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; list-style: none; background: #fff; color: var(--ink); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(0,0,0,0.35); padding: 6px; max-height: min(60vh, 420px); overflow-y: auto; transform-origin: top; animation: pop 180ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.search__list[hidden] { display: none; }
.search__opt a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; }
.search__opt .ic { width: 40px; height: 40px; border-radius: var(--radius); background: var(--granate-tint); color: var(--granate); display: grid; place-items: center; }
.search__opt .ic .icon { width: 20px; height: 20px; }
.search__opt strong { display: block; font-weight: 650; line-height: 1.25; }
.search__opt span.s { display: block; font-size: 0.88rem; color: var(--muted); }
.search__opt .go { width: 18px; height: 18px; color: var(--muted); }
.search__opt[aria-selected="true"] a, .search__opt a:hover { background: var(--stone); }
.search__opt mark { background: none; color: var(--granate); font-weight: 750; }
.search__empty { padding: 14px 12px; font-size: 0.97rem; color: var(--ink-2); }
.search__empty a { color: #13703a; font-weight: 700; }
.search__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.search__chips span { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-right: 2px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-decoration: none; background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.28); transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: #fff; color: var(--ink); } }
.hero__search { margin: 30px 0 22px; }
.hero__search label.visually-hidden + .search { margin-top: 0; }

/* Buscador en la cabecera */
.search-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; color: var(--ink-2); transition: border-color 200ms ease, color 200ms ease; }
.search-toggle .icon { width: 20px; height: 20px; color: var(--granate); }
@media (hover: hover) and (pointer: fine) { .search-toggle:hover { border-color: var(--granate); color: var(--ink); } }
.search-panel { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 45; background: var(--stone); border-bottom: 1px solid var(--line); padding: 20px 0 24px; box-shadow: 0 20px 40px -30px rgba(0,0,0,0.45); animation: pop 200ms var(--ease-out); }
.search-panel[hidden] { display: none; }
.search-panel .search { max-width: 760px; }
.search-panel .search__box { box-shadow: none; border-color: var(--line); }
@media (max-width: 1080px) { .search-toggle > span:not(.icon) { display: none; } .search-toggle { width: 48px; height: 48px; padding: 0; justify-content: center; } }
@media (max-width: 560px) { .search-toggle { margin-left: auto; } .menu-toggle { margin-left: 0; } }

/* ---------- Mosaico de servicios con foto ---------- */
.bento { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento > li { display: flex; }
.bento > li.is-wide { grid-column: span 2; }
.bento > li.is-band { grid-column: 1 / -1; }
.tile { flex: 1; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: border-color 250ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out); }
.tile__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.is-wide .tile__img { aspect-ratio: 16 / 7.4; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%); }
.tile__badge { position: relative; z-index: 1; margin: -30px 0 0 24px; width: 60px; height: 60px; border-radius: var(--radius-lg); background: var(--granate); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(74, 15, 27, 0.6); }
.tile__badge .icon { width: 28px; height: 28px; }
.tile__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 24px 22px; flex: 1; }
.tile__name { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.tile__sub { font-size: 0.9rem; font-weight: 600; color: var(--granate); line-height: 1.35; }
.tile__desc { color: var(--ink-2); margin: 0; line-height: 1.5; font-size: 0.98rem; flex: 1; }
.tile__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 650; font-size: 0.95rem; color: var(--ink); }
.tile__go .icon { width: 20px; height: 20px; color: var(--granate); transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--granate); box-shadow: 0 26px 50px -30px rgba(74, 15, 27, 0.55); transform: translateY(-4px); }
  .tile:hover .tile__img img { transform: scale(1.05); }
  .tile:hover .tile__go .icon { transform: translateX(5px); }
}
.tile:active { transform: scale(0.99); }
/* Banda de patinetes: sin foto, fondo granate con el trazo de carretera */
.tile--band { flex-direction: row; align-items: center; gap: 28px; padding: 30px 0 30px clamp(24px, 4vw, 44px); min-height: 260px; background: var(--granate); border-color: var(--granate); color: #fff; position: relative; }
.tile--band::after { display: none; content: ""; position: absolute; right: 0; top: 50%; width: 22%; height: 4px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 26px, transparent 26px 44px); pointer-events: none; }
.tile--band .tile__badge { margin: 0; flex: none; width: 72px; height: 72px; background: #fff; color: var(--granate); }
.tile--band .tile__badge .icon { width: 36px; height: 36px; }
.tile--band .tile__body { padding: 0; position: relative; z-index: 1; max-width: 560px; }
.tile--band .tile__sub { color: rgba(255,255,255,0.85); }
.tile--band .tile__desc { color: rgba(255,255,255,0.92); }
.tile--band .tile__go { border-top-color: rgba(255,255,255,0.3); color: #fff; align-self: flex-start; }
.tile--band .tile__go .icon { color: #fff; }
.tile__new { display: inline-block; margin-left: 10px; vertical-align: middle; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--granate); letter-spacing: 0.02em; }
@media (hover: hover) and (pointer: fine) { .tile--band:hover { border-color: var(--granate-deep); background: var(--granate-deep); } }
@media (max-width: 1100px) { .tile--band::after { display: none; } }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > li.is-wide { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 16px; } .bento > li.is-wide { grid-column: auto; }
  .is-wide .tile__img { aspect-ratio: 16 / 10; }
  .tile--band { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
  .tile--band::after { display: none; }
}

/* ---------- Sobre mí con foto del despacho ---------- */
.about--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.about__media { position: relative; }
.about__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.about__media .plate { position: absolute; right: -28px; bottom: -36px; width: min(340px, 82%); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45); }
.about--photo .about__text { padding-top: 12px; }
@media (max-width: 900px) {
  .about--photo { grid-template-columns: 1fr; }
  .about__media > img { aspect-ratio: 4 / 3; }
  .about__media .plate { position: relative; right: auto; bottom: auto; width: auto; margin: -60px 16px 0; }
}

/* ---------- Preguntas con imagen ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-wrap__media { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-wrap__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.faq-wrap__media p { margin: 20px 0 0; font-size: var(--step-1); line-height: 1.4; font-weight: 600; }
.faq-wrap__media p a { color: #13703a; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap__media { position: static; } .faq-wrap__media img { aspect-ratio: 16 / 9; } }

/* ---------- Marca de agua en contacto ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; left: -180px; bottom: -220px; background: url("../img/mark-white.svg") no-repeat center / contain; opacity: 0.07; pointer-events: none; }

/* ---------- Datos rápidos en páginas de servicio ---------- */
.facts-bar { background: #fff; border-bottom: 1px solid var(--line); }
.facts-bar ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-bar li { display: flex; gap: 14px; align-items: center; padding: 22px 24px 22px 0; }
.facts-bar li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts-bar .icon { width: 40px; height: 40px; padding: 9px; border-radius: var(--radius-lg); background: var(--granate-tint); color: var(--granate); }
.facts-bar strong { display: block; font-size: 1rem; line-height: 1.25; }
.facts-bar span.s { display: block; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 800px) { .facts-bar ul { grid-template-columns: 1fr; } .facts-bar li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .facts-bar li { padding: 16px 0; } }

.tile__side { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; overflow: hidden; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.tile__side img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; transition: transform 700ms var(--ease-out); }
.tile--band .tile__body { max-width: min(560px, 52%); }
@media (hover: hover) and (pointer: fine) { .tile--band:hover .tile__side img { transform: scale(1.05); } }
@media (max-width: 800px) {
  .tile--band { flex-direction: column; align-items: flex-start; padding: 0 0 24px; gap: 18px; }
  .tile__side { position: relative; width: 100%; aspect-ratio: 16 / 9; clip-path: none; order: -1; }
  .tile--band .tile__badge { margin: -54px 0 0 24px; position: relative; z-index: 1; }
  .tile--band .tile__body { max-width: none; padding: 0 24px; }
}

/* ---------- v5: logo con zoom, servicios con icono, preguntas agrupadas ---------- */
@media (hover: hover) and (pointer: fine) { .brand:hover { transform: scale(1.04); } }
.brand.is-zooming { animation: logo-zoom 520ms var(--ease-out) both; }
@keyframes logo-zoom { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1.08); opacity: 0.85; } }
@media (max-width: 760px) { :root { --header-h: 76px; } }

.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.svc-grid > li { display: flex; }
.svc { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 22px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: border-color 250ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out); }
.svc__icon { width: 64px; height: 64px; border-radius: var(--radius-lg); background: var(--granate-tint); color: var(--granate); display: grid; place-items: center; margin-bottom: 8px; transition: background-color 250ms ease, color 250ms ease, transform 300ms var(--ease-out); }
.svc__icon .icon { width: 32px; height: 32px; }
.svc__name { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; }
.svc__sub { font-size: 0.86rem; font-weight: 600; color: var(--granate); line-height: 1.35; }
.svc__desc { color: var(--ink-2); font-size: 0.93rem; line-height: 1.5; flex: 1; }
.svc__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 650; font-size: 0.93rem; }
.svc__go .icon { width: 18px; height: 18px; color: var(--granate); transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { border-color: var(--granate); box-shadow: 0 26px 50px -30px rgba(74, 15, 27, 0.5); transform: translateY(-4px); }
  .svc:hover .svc__icon { background: var(--granate); color: #fff; transform: scale(1.06); }
  .svc:hover .svc__go .icon { transform: translateX(5px); }
}
.svc:active { transform: scale(0.99); }
@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .svc { padding: 20px 16px 18px; } }
@media (max-width: 480px) { .svc-grid { grid-template-columns: 1fr; } }

.faq-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.faq-nav__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 600; color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease; }
.faq-nav__item .icon { width: 22px; height: 22px; color: var(--granate); }
@media (hover: hover) and (pointer: fine) { .faq-nav__item:hover { background: var(--granate-tint); color: var(--ink); } }
.faq-groups { display: grid; gap: 64px; max-width: 900px; }
.faq-group h2 { display: flex; align-items: center; gap: 14px; font-size: var(--step-2); margin-bottom: 18px; }
.faq-group h2 .icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-lg); background: var(--granate-tint); color: var(--granate); }
.faq-group__more { margin: 18px 0 0; }
@media (max-width: 900px) {
  .faq-page { grid-template-columns: 1fr; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-nav__item { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.9rem; }
  .faq-nav__item .icon { width: 18px; height: 18px; }
}
.faq-link { margin-top: 48px; }
.nav a, .search-toggle, .header-cta .btn { white-space: nowrap; }
.nav a { padding: 10px 10px; }
.nav a::after { left: 10px; right: 10px; }
@media (max-width: 1540px) { .search-toggle > span:not(.icon) { display: none; } .search-toggle { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 1240px) { .nav a { padding: 10px 7px; font-size: 0.94rem; } .nav a::after { left: 7px; right: 7px; } .site-header .wrap { gap: 14px; } }

/* ---------- v6: logo en tarjeta que sobresale y se encoge al hacer scroll ---------- */
.site-header .wrap { align-items: flex-start; }
.site-header .wrap > :not(.brand) { align-self: center; }
.brand { position: relative; z-index: 2; margin-top: 12px; padding: 14px 20px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 0 14px 34px -18px rgba(0,0,0,0.45); transform-origin: left top; transition: transform 420ms var(--ease-out), box-shadow 300ms ease, border-color 300ms ease; }
.brand img { height: 96px; }
.brand { padding: 16px 22px; }
.site-header.is-scrolled .brand { transform: translateY(-6px) scale(0.5); box-shadow: 0 8px 20px -14px rgba(0,0,0,0.35); }
@media (hover: hover) and (pointer: fine) { .brand:hover { transform: scale(1.03); } .site-header.is-scrolled .brand:hover { transform: translateY(-6px) scale(0.53); } }
.brand.is-zooming { animation: none; }
@media (max-width: 1080px) { .brand { padding: 10px 14px; margin-top: 10px; border-radius: var(--radius-lg); } .brand img { height: 64px; } .site-header.is-scrolled .brand { transform: translateY(-4px) scale(0.7); } }
@media (max-width: 560px) { .brand { padding: 8px 12px; } .brand img { height: 52px; } .site-header.is-scrolled .brand { transform: translateY(-4px) scale(0.78); } }
@media (prefers-reduced-motion: reduce) { .brand { transition: none; } }

/* ---------- Aviso de cookies ---------- */
.cookies { position: fixed; left: 24px; bottom: 24px; z-index: 70; width: min(440px, calc(100% - 48px)); background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: 0 24px 50px -24px rgba(0,0,0,0.45); animation: pop 300ms var(--ease-out); }
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 14px; font-size: 0.93rem; color: var(--ink-2); line-height: 1.5; }
.cookies p strong { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.cookies__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies .btn { min-height: 46px; }
@media (max-width: 760px) { .cookies { left: 12px; right: 12px; width: auto; bottom: 88px; } }

@media (max-width: 1320px) { .brand img { height: 80px; } .brand { padding: 12px 18px; } .site-header.is-scrolled .brand { transform: translateY(-6px) scale(0.6); } }

.search-toggle, .header-cta, .menu-toggle { flex: none; }
@media (max-width: 1340px) {
  .menu-toggle { margin-left: 0; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.is-open { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 12px var(--gutter) 120px; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.is-open ul { flex-direction: column; gap: 0; }
  .nav.is-open a { font-size: 1.35rem; font-weight: 650; padding: 18px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .nav.is-open a::after { display: none; }
  .search-toggle { margin-left: auto; }
}

/* ---------- v7: cabecera en dos líneas (buscador arriba, menú abajo), sin WhatsApp ---------- */
:root { --header-h: 118px; }
.site-header .wrap { height: auto; min-height: var(--header-h); }
.header-main { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; min-height: var(--header-h); }
.header-main .nav { margin-left: 0; }
.header-main .nav ul { gap: 2px; }
.header-top .search { width: 380px; }
.header-top .search__box { box-shadow: none; border-color: var(--line); border-radius: var(--radius-lg); background: var(--stone); }
.header-top .search__box:focus-within { background: #fff; }
.header-top .search input { min-height: 42px; font-size: 0.95rem; padding-left: 42px; }
.header-top .search__box > .icon { left: 14px; width: 18px; height: 18px; }
.header-top .search__list { left: auto; width: 460px; }
@media (min-width: 981px) {
  .nav { display: block !important; }
  .menu-toggle, .search-toggle { display: none !important; }
}
@media (max-width: 1240px) and (min-width: 981px) { .header-top .search { width: 320px; } .brand img { height: 72px; } .brand { padding: 12px 16px; } }
@media (max-width: 980px) {
  :root { --header-h: 84px; }
  .header-main { min-height: 0; margin-left: auto; }
  .header-top { display: none; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .search-toggle { display: inline-flex; margin-left: 0; width: 48px; height: 48px; padding: 0; justify-content: center; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .site-header .wrap { align-items: center; gap: 10px; }
  .brand { align-self: flex-start; }
}
@media (max-width: 760px) { :root { --header-h: 76px; } }
@media (min-width: 981px) { .search-panel { display: none !important; } }
@media (max-width: 980px) { .brand img { height: 60px; } .brand { padding: 10px 14px; margin-top: 10px; border-radius: var(--radius-lg); } .site-header.is-scrolled .brand { transform: translateY(-4px) scale(0.72); } }
@media (max-width: 560px) { .brand img { height: 46px; } .brand { padding: 8px 12px; } .site-header.is-scrolled .brand { transform: translateY(-4px) scale(0.8); } }

/* ---------- v8: logo sin tarjeta, dentro de la franja; buscador bajo el menú ---------- */
.site-header .wrap { align-items: center; }
.brand, .site-header.is-scrolled .brand { margin-top: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; align-self: center; transform-origin: left center; }
.brand img { height: 84px; }
.site-header.is-scrolled .brand { transform: scale(0.82); }
@media (hover: hover) and (pointer: fine) { .brand:hover { transform: scale(1.03); } .site-header.is-scrolled .brand:hover { transform: scale(0.85); } }
.header-main { gap: 10px; padding-block: 12px; }
@media (max-width: 1240px) and (min-width: 981px) { .brand img { height: 68px; } .brand { padding: 0; } }
@media (max-width: 980px) { .brand img { height: 56px; } .brand, .site-header.is-scrolled .brand { padding: 0; margin: 0; } .site-header.is-scrolled .brand { transform: scale(0.9); } }
@media (max-width: 560px) { .brand img { height: 46px; } }
.site-header { background: #fff; }

/* ---------- Submenú de Servicios ---------- */
.nav .has-sub { position: relative; }
.nav .has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
.nav .caret { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.nav .sub { list-style: none; position: absolute; left: -12px; top: 100%; z-index: 60; min-width: 360px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.35); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transform-origin: top left; transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms; }
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav .has-sub:hover .caret, .nav .has-sub:focus-within .caret { transform: rotate(180deg); }
.nav .sub a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius); font-size: 0.95rem; color: var(--ink); }
.nav .sub a::after { display: none; }
.nav .sub a:hover { background: var(--stone); }
.sub__ic { width: 40px; height: 40px; border-radius: var(--radius-lg); background: var(--granate-tint); color: var(--granate); display: grid; place-items: center; }
.sub__ic .icon { width: 20px; height: 20px; }
.nav .sub strong { display: block; font-weight: 650; line-height: 1.25; }
.sub__s { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); line-height: 1.3; margin-top: 2px; }
@media (max-width: 980px) {
  .nav.is-open .sub { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; border: 0; box-shadow: none; padding: 0 0 8px 8px; }
  .nav.is-open .sub a { font-size: 1.05rem; font-weight: 550; padding: 10px 4px; border-bottom: 0; }
  .nav.is-open .caret { display: none; }
}
@media (max-width: 980px) { .nav.is-open .has-sub > a { display: flex; } }

/* Escritorio: el menú nunca adopta el estilo de móvil, aunque quede abierto al redimensionar */
@media (min-width: 981px) {
  .nav.is-open { position: static; inset: auto; padding: 0; border: 0; overflow: visible; background: none; }
  .nav.is-open ul:not(.sub) { flex-direction: row; gap: 2px; }
  .nav.is-open > ul > li > a { font-size: 0.98rem; font-weight: 550; padding: 10px; border-bottom: 0; color: var(--ink-2); }
}
/* Móvil: servicios plegados, se abren al tocar */
@media (max-width: 980px) {
  .nav.is-open .sub { display: none; }
  .nav.is-open .has-sub.is-expanded .sub { display: grid; }
  .nav.is-open .caret { display: inline-flex; width: 22px; height: 22px; margin-left: auto; }
  .nav.is-open .has-sub.is-expanded .caret { transform: rotate(180deg); }
}
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.linklike:hover { color: var(--granate); text-decoration: underline; }
.legal .tbl { font-size: 0.92rem; }
@media (max-width: 640px) { .legal .tbl { display: block; overflow-x: auto; } }
.cookies__btns { grid-template-columns: 1fr 1fr 1fr; }
.cookies .btn { padding: 0 10px; font-size: 0.92rem; }
.cookies__cfg { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.cookies__cfg[hidden] { display: none; }
.cookies__opt { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }
.cookies__opt input { accent-color: var(--granate); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.cookies__opt strong { display: block; color: var(--ink); }
.cookies__save { width: 100%; }
@media (max-width: 380px) { .cookies__btns { grid-template-columns: 1fr 1fr; } .cookies__btns [data-consent="aceptada"] { grid-column: 1 / -1; } }

/* v22 · auditoría: áreas táctiles de 44 px en pantallas táctiles */
@media (pointer: coarse) {
  .chip { min-height: 44px; }
  .route__pause { min-height: 44px; padding: 10px 12px; margin: -10px -12px; }
  .link-arrow { min-height: 44px; }
  .site-footer li a, .footer__legal a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* v22 · pulido de movimiento (Emil Kowalski) */
/* Las sugerencias aparecen al teclear: sin animación, se abren al instante */
.search__list { animation: none; }
/* Aparición al hacer scroll: más corta y con menos recorrido */
.js .reveal { transform: translateY(12px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
/* Logo: respuesta más ágil */
.brand { transition: transform 240ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease; }
/* Desplegable de Servicios: entra rápido, sale aún más rápido */
.nav .sub { transform: translateY(4px) scale(0.98); transition: opacity 120ms ease, transform 160ms var(--ease-out), visibility 0s linear 160ms; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 0s; }
/* Menú y buscador móviles: entrada breve en lugar de aparecer de golpe */
@media (max-width: 980px) {
  .nav.is-open, .search-panel:not([hidden]) { animation: drop-in 220ms var(--ease-out); }
}
/* Pulsación táctil en enlaces-tarjeta pequeños */
.chip, .search-toggle, .menu-toggle, .faq-nav__item, .nav .sub a { transition-property: transform, background-color, color, border-color; transition-duration: 160ms; transition-timing-function: var(--ease-out); }
.chip:active, .search-toggle:active, .menu-toggle:active, .faq-nav__item:active { transform: scale(0.97); }
/* Movimiento reducido: se conservan los fundidos, se quitan los desplazamientos */
@media (prefers-reduced-motion: reduce) {
  .cookies { animation: fade 200ms ease; }
  .nav .sub { transform: none; }
  .nav.is-open, .search-panel:not([hidden]) { animation: fade 200ms ease; }
  .tile:hover, .svc:hover, .dest a:hover, .brand:hover, .wa-float:hover { transform: none; }
  .tile:hover .tile__img img, .tile--band:hover .tile__side img { transform: none; }
  .switch__thumb { transition-duration: 0ms; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   v24 · Cambios de la clienta (octubre 2026)
   ========================================================= */

/* ---------- Cabecera en una línea: logo en tarjeta que sobresale ---------- */
:root { --header-h: 92px; --brand-y: 0px; --brand-s: 1; }
.site-header .wrap { height: var(--header-h); min-height: var(--header-h); align-items: center; }
.header-main { flex-direction: row; align-items: center; gap: 22px; padding-block: 0; min-height: 0; }
.header-main .nav ul { gap: 4px; }
.header-main .nav > ul > li > a { font-size: 1.02rem; font-weight: 600; padding: 10px 12px; color: var(--ink); }
.header-top .search { width: 300px; }
.header-top .search__list { width: 420px; }

.site-header .brand {
  position: relative; z-index: 3; align-self: flex-start; margin-top: 12px; padding: 14px 22px;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 22px 44px -26px rgba(20, 20, 20, 0.6);
  transform-origin: left top; transform: translateY(var(--brand-y)) scale(var(--brand-s));
  transition: transform 340ms var(--ease-out), box-shadow 240ms ease;
}
.site-header .brand img { display: block; height: 104px; width: auto; }
/* Al bajar, la tarjeta se encoge hasta caber en la franja blanca (como en la web de referencia) */
.site-header.is-scrolled { --brand-y: -4px; --brand-s: 0.62; }
.site-header.is-scrolled .brand { margin-top: 12px; padding: 14px 22px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 0 10px 22px -16px rgba(20, 20, 20, 0.5); transform: translateY(var(--brand-y)) scale(var(--brand-s)); }
@media (max-width: 980px) { .site-header.is-scrolled .brand { margin-top: 10px; padding: 10px 14px; } }
@media (max-width: 560px) { .site-header.is-scrolled .brand { padding: 8px 12px; } }
@media (hover: hover) and (pointer: fine) {
  .site-header .brand:hover, .site-header.is-scrolled .brand:hover { transform: translateY(calc(var(--brand-y) + 2px)) scale(calc(var(--brand-s) * 1.04)); box-shadow: 0 28px 50px -24px rgba(20, 20, 20, 0.6); }
}
.site-header .brand:active, .site-header.is-scrolled .brand:active { transform: translateY(var(--brand-y)) scale(calc(var(--brand-s) * 0.95)); transition-duration: 120ms; }
/* Al pulsar: rebote corto antes de ir a la portada */
.site-header .brand.is-pop { animation: logo-pop 460ms var(--ease-out); }
@keyframes logo-pop {
  0% { transform: translateY(var(--brand-y)) scale(calc(var(--brand-s) * 0.92)); }
  55% { transform: translateY(var(--brand-y)) scale(calc(var(--brand-s) * 1.08)); }
  100% { transform: translateY(var(--brand-y)) scale(var(--brand-s)); }
}
@media (max-width: 1240px) and (min-width: 981px) {
  .site-header .brand img { height: 88px; }
  .header-top .search { width: 240px; }
  .header-main { gap: 14px; }
}
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .site-header .brand { margin-top: 10px; padding: 10px 14px; }
  .site-header .brand img { height: 64px; }
  .site-header.is-scrolled { --brand-y: -4px; --brand-s: 0.72; }
}
@media (max-width: 560px) {
  .site-header .brand { padding: 8px 12px; }
  .site-header .brand img { height: 54px; }
  .site-header.is-scrolled { --brand-s: 0.8; }
}
/* Espacio para la tarjeta del logo en las cabeceras de página */
.phero .wrap { padding-top: max(clamp(48px, 8vw, 104px), 96px); }
@media (max-width: 980px) { .phero .wrap { padding-top: max(clamp(48px, 8vw, 104px), 64px); } }

/* ---------- WhatsApp flotante: justo debajo del menú, a la derecha ---------- */
.wa-float { top: calc(var(--header-h) + 18px); bottom: auto; right: var(--gutter); z-index: 40; }
@media (max-width: 760px) {
  .wa-float { display: grid; width: 54px; height: 54px; top: calc(var(--header-h) + 14px); right: 14px; }
  .wa-float .icon { width: 28px; height: 28px; }
  .dock { display: none; }
  body { padding-bottom: 0; }
  .cookies { bottom: 12px; }
}

/* ---------- Hero ---------- */
.hero__inner { min-height: min(80svh, 760px); grid-template-rows: 1fr; padding-top: clamp(104px, 15vh, 160px); padding-bottom: clamp(56px, 9vh, 104px); }
.hero__lead strong { display: block; margin-top: 6px; color: #fff; font-weight: 700; }
@media (max-width: 860px) { .hero__inner { padding-top: 72px; padding-bottom: 56px; } }

/* ---------- Franja granate en movimiento ---------- */
.ticker { background: var(--granate); color: #fff; overflow: hidden; padding-block: clamp(18px, 2.2vw, 26px); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__list { list-style: none; display: flex; flex: none; }
.ticker li { display: inline-flex; align-items: center; gap: 14px; padding-left: 40px; font-size: clamp(1.2rem, 0.95rem + 1vw, 1.75rem); font-weight: 750; letter-spacing: -0.015em; white-space: nowrap; line-height: 1.2; }
.ticker li .icon { width: 1.15em; height: 1.15em; flex: none; }
.ticker li::after { content: ""; width: 7px; height: 7px; margin-left: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker__track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; width: auto; justify-content: center; }
  .ticker__list { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .ticker__list[aria-hidden] { display: none; }
  .ticker li { font-size: 1.1rem; padding-inline: 18px; }
  .ticker li::after { display: none; }
}

/* ---------- Recuadro de los 4 pasos ---------- */
.steps { padding-block: clamp(56px, 7vw, 96px); }
.steps .route { margin-top: 0; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px) clamp(32px, 3.5vw, 44px); box-shadow: 0 30px 60px -44px rgba(20, 20, 20, 0.4); }
.steps .route__title { font-size: var(--step-2); line-height: 1.15; margin: 0; }
.steps .route__top { align-items: center; margin-bottom: 40px; }
.route__step h3 .icon { width: 22px; height: 22px; margin: 0; color: var(--granate); flex: none; }
@media (min-width: 861px) {
  .route__road { left: 12.5%; right: 12.5%; top: 29px; }
  .route__step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
  .hito { width: 64px; height: 64px; margin: 0 0 24px; font-size: 1.65rem; }
  .route__step h3 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.18rem; margin-bottom: 8px; }
  .route__step p { max-width: 30ch; }
}
@media (max-width: 860px) {
  .steps .route { border-radius: var(--radius-lg); padding: 24px 20px 8px; }
  .steps .route__top { align-items: flex-start; margin-bottom: 24px; }
  .route__road { left: 21px; top: 12px; bottom: 40px; }
  .route__step { grid-template-columns: 48px 1fr; }
  .hito { width: 48px; height: 48px; font-size: 1.2rem; }
  .route__step h3 { display: flex; align-items: center; gap: 8px; }
  .route__step h3 .icon { display: inline-flex; width: 20px; height: 20px; }
}

/* ---------- Tarjetas de servicios ---------- */
.head--svc { max-width: 920px; margin-inline: auto; text-align: center; }
.head--svc h2::before { margin-inline: auto; }
.head--svc h2 { font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.015em; }
.svc-grid > li { position: relative; }
.svc { align-items: center; text-align: center; gap: 12px; padding: 34px 20px 30px; transition: transform 280ms var(--ease-out), box-shadow 280ms ease, border-color 200ms ease; }
.svc__icon { width: 76px; height: 76px; margin: 0 0 6px; }
.svc__icon .icon { width: 40px; height: 40px; }
.svc__name { color: var(--ink); font-size: 1.32rem; }
.svc__sub { color: var(--granate); font-size: 0.95rem; font-weight: 600; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .svc-grid > li:hover { z-index: 2; }
  .svc:hover { transform: scale(1.06); border-color: var(--granate); box-shadow: 0 30px 56px -30px rgba(74, 15, 27, 0.5); }
  .svc:hover .svc__icon { transform: none; }
}
.dest-foot { margin-top: 40px; text-align: center; font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.dest-foot a { color: var(--granate); }
@media (max-width: 760px) { .svc { padding: 24px 14px 22px; } .svc__icon { width: 64px; height: 64px; } .svc__icon .icon { width: 34px; height: 34px; } }

/* ---------- Franja granate: argumentos a la izquierda, formulario a la derecha ---------- */
.contact__grid { align-items: start; }
.contact__claims h2 { font-size: var(--step-3); margin-bottom: 30px; max-width: 16ch; }
.claim { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.claim:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.claim h3 { font-size: var(--step-1); font-weight: 750; margin-bottom: 8px; color: #fff; }
.claim p { margin: 0; color: rgba(255, 255, 255, 0.9); line-height: 1.55; max-width: 52ch; }
.form__head h2 { font-size: var(--step-2); line-height: 1.15; color: var(--ink); margin: 0; }
.form__head p { margin: 6px 0 0; font-size: var(--step-1); font-weight: 700; color: var(--granate); }

/* ---------- Franja negra: logo en blanco, lema y WhatsApp ---------- */
.closing .wrap { display: grid; justify-items: start; gap: 18px; padding-block: clamp(48px, 6vw, 80px) clamp(84px, 9vw, 116px); }
.closing__logo { display: block; height: clamp(64px, 7vw, 96px); width: auto; }
.closing h2 { font-size: var(--step-3); margin: 8px 0 6px; max-width: none; }

/* ---------- Pie en 4 columnas con mapa ---------- */
.footer__grid { grid-template-columns: minmax(220px, 1.15fr) 1fr 1fr 1fr; align-items: start; }
.footer__map iframe { display: block; width: 100%; aspect-ratio: 1 / 1; border: 0; border-radius: var(--radius-lg); background: var(--stone); }
.footer__map p { margin: 10px 0 0; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__map { max-width: 380px; } }

/* ---------- Documentos: dos formas de firmar ---------- */
.sign-opt h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 4px; }
.sign-opt h3 .icon { width: 22px; height: 22px; color: var(--granate); }
.sign-opt p { margin: 0; }
.sign-opt + .sign-opt { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 480px) {
  .svc { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; row-gap: 4px; align-items: center; text-align: left; padding: 18px 16px; }
  .svc__icon { grid-row: span 2; width: 60px; height: 60px; margin: 0; }
  .svc__icon .icon { width: 30px; height: 30px; }
  .svc__name { font-size: 1.18rem; align-self: end; }
  .svc__sub { align-self: start; font-size: 0.9rem; }
}
/* Columnas fijas por debajo del WhatsApp flotante */
.aside, .faq-nav { top: calc(var(--header-h) + 96px); }

/* v26 · Mapa de Google en el pie: recuadro con botón hasta que hay consentimiento */
.footer__map-frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--stone); border: 1px solid var(--line); }
.footer__map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; aspect-ratio: auto; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; background: repeating-linear-gradient(135deg, var(--stone) 0 18px, #ecebe8 18px 36px); }
.map-consent > .icon { width: 34px; height: 34px; color: var(--granate); }
.map-consent p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.45; max-width: 26ch; }
.map-consent p strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.map-consent .btn { min-height: 44px; padding: 0 18px; font-size: 0.92rem; background: #fff; }
.footer__map-frame.is-loaded .map-consent { display: none; }
.footer__map p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 12px 0 0; font-size: 0.9rem; }
.footer__map p strong { font-weight: 650; color: var(--ink); }
.footer__map p a { color: var(--granate); }

/* v27 · Pie: «Para ti» y «Contacto» en la misma columna, columna de información legal, sellos centrados */
.footer__stack { display: grid; gap: 32px; }
.site-footer .linklike { color: var(--ink-2); font-size: inherit; text-align: left; }
.seals { justify-content: center; }
.footer__legal { justify-content: center; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .seals { justify-content: flex-start; } }

/* v28 · Franja negra: logo y lema a la izquierda, WhatsApp a la derecha */
.closing .wrap { grid-template-columns: 1fr auto; column-gap: 32px; align-items: center; }
.closing__logo, .closing h2 { grid-column: 1; }
.closing .btn--wa { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; }
@media (max-width: 700px) {
  .closing .wrap { grid-template-columns: 1fr; }
  .closing .btn--wa { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* =========================================================
   v29 · Cambios de la clienta (22 oct. 2026)
   ========================================================= */

/* Cabecera de servicio: el nombre del servicio, igual que en el menú y en la portada */
.phero__svc { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.phero__svc .phero__icon { margin: 0; flex: none; }
.phero__svc > span:last-child { display: grid; gap: 2px; font-size: 0.98rem; line-height: 1.35; color: rgba(255, 255, 255, 0.85); }
.phero__svc strong { font-size: var(--step-1); font-weight: 750; letter-spacing: -0.01em; color: #fff; }

/* Bloque informativo dentro de una página (p. ej. situación durante una baja temporal) */
.note { background: var(--stone); border-radius: var(--radius-lg); padding: 24px 26px 10px; margin: 8px 0 1.4em; }
.note h3 { margin: 0 0 6px; font-size: var(--step-1); }
.prose .note ul { border-top: 0; }
.prose .note li:last-child { border-bottom: 0; }
.prose ul ul { border-top: 0; margin: 10px 0 0; padding-left: 18px; }
.prose ul ul li { padding: 6px 0 6px 16px; border-bottom: 0; }
.prose ul ul li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 6px; border-radius: 50%; background: var(--granate); }
.prose p.small { font-size: 0.92rem; color: var(--muted); }

/* Documentos para descargar */
.docs-title { font-size: var(--step-2); margin-bottom: 18px; }
.docs-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.doc { transition: background-color 200ms ease, box-shadow 200ms ease, padding 200ms var(--ease-out); }
.doc__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--granate-tint); }
.doc .doc__ic .icon { width: 24px; height: 24px; color: var(--granate); }
.doc__txt strong { margin-bottom: 2px; }
.doc__dl { min-height: 44px; padding: 0 16px; gap: 8px; white-space: nowrap; font-size: 0.95rem; }
.doc .doc__dl .icon { width: 18px; height: 18px; color: currentColor; }
.doc .doc__dl span { color: inherit; font-size: inherit; }
.doc__dl small { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.doc:target { background: var(--granate-tint); box-shadow: inset 3px 0 0 var(--granate); padding-inline: 14px; }
.doc--empty { display: block; color: var(--muted); }
.docs-note { margin-top: 22px; color: var(--ink-2); }
@media (max-width: 640px) {
  .doc { grid-template-columns: 44px minmax(0, 1fr); }
  .doc__dl { grid-column: 2; justify-self: start; }
}

/* Conócenos: foto de Shabnam y su presentación */
.about__media > img.about__photo { object-position: 50% 18%; }
@media (max-width: 900px) { .about__media > img.about__photo { aspect-ratio: 1 / 1; object-position: 50% 12%; } }
.about__text h2 { font-size: var(--step-2); margin: 44px 0 12px; }
.about__list { list-style: none; margin: 0 0 1em; padding: 0; border-top: 1px solid var(--line); }
.about__list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.about__list strong { color: var(--ink); }
.about__close { margin-top: 32px; padding-left: 18px; border-left: 3px solid var(--granate); font-size: var(--step-1); line-height: 1.5; font-weight: 600; color: var(--ink) !important; }
/* La tarjeta de credenciales va bajo la foto, montada sobre la chaqueta y sin tapar la cara */
.about--photo .about__media .plate { position: relative; right: auto; bottom: auto; width: min(380px, 88%); margin: -96px 24px 0 auto; }
.about--photo .plate__name { font-size: var(--step-2); }
.plate__seal strong { display: block; color: var(--ink); }
@media (max-width: 900px) { .about--photo .about__media .plate { width: auto; margin: -56px 16px 0; } }
/* v30 · La tarjeta de credenciales ocupa el mismo ancho que la foto */
.about--photo .about__media .plate { width: 100%; margin: 16px 0 0; top: auto; box-shadow: none; }
@media (max-width: 900px) { .about--photo .about__media .plate { width: 100%; margin: 14px 0 0; } }

/* v32 · Menú con 5 apartados (Home, Servicios, Documentos, Conócenos, Contacto): el buscador se estrecha para que todo quepa */
@media (max-width: 1400px) and (min-width: 981px) { .header-top .search { width: 240px; } }
@media (max-width: 1240px) and (min-width: 981px) {
  .header-top .search { width: 190px; }
  .header-main .nav > ul > li > a { padding: 10px 8px; font-size: 0.97rem; }
  .header-main { gap: 12px; }
}
@media (max-width: 1080px) and (min-width: 981px) {
  .header-top .search { width: 150px; }
  .site-header .brand img { height: 76px; }
  .header-main .nav > ul > li > a { padding: 10px 6px; font-size: 0.94rem; }
}

/* v33 · Si no cabe en una línea (pantallas de 981 a 1240 px), el buscador baja a una segunda línea bajo el menú */
@media (max-width: 1240px) and (min-width: 981px) {
  :root { --header-h: 116px; }
  .header-main { flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
  .header-main .nav > ul > li > a { padding: 8px 10px; font-size: 1rem; }
  .header-top .search { width: 360px; }
  .header-top .search input { min-height: 40px; }
  .site-header .brand img { height: 92px; }
  .site-header.is-scrolled { --brand-s: 0.72; }
}
/* En dos líneas el menú queda más a la derecha: el desplegable de Servicios se abre hacia la izquierda */
@media (max-width: 1240px) and (min-width: 981px) {
  .header-main .nav > ul { position: relative; }
  .header-main .nav .has-sub { position: static; }
  .nav .sub { left: auto; right: 0; top: calc(100% + 4px); }
  .nav .sub::before { left: 0; right: 0; top: -16px; height: 16px; }
}
