/* Achedosol San Pedro de Alcántara
   - Radios: 28px en cajas y botones (forma de píldora). Esquinas anidadas concéntricas: radio interior = exterior - hueco.
   - z-index: 10 cabecera, 20 barra móvil, 30 menú.
   - Tema: html[data-theme] = light | dark. Lo pone el script del <head> antes de pintar (lo que eligió el visitante,
     guardado como achedosol-tema, o el ajuste del sistema). Los colores solo se definen aquí, como tokens.
   - Tacto: lo que se pulsa sobresale (--sheen + --lift; el naranja principal con brillo y halo), al pulsarlo baja 1px
     y la sombra pasa dentro (--press), y lo que se rellena está hundido (--sink). Tarjetas y fotos, planas. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
/* Arial ajustada a las medidas de Plus Jakarta: el texto no salta cuando llega la fuente */
@font-face { font-family: "Jakarta fallback"; font-weight: 100 500; src: local("Arial"), local("ArialMT"); size-adjust: 104.3%; ascent-override: 99.7%; descent-override: 21.1%; line-gap-override: 0%; }
@font-face { font-family: "Jakarta fallback"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 100.5%; ascent-override: 103.5%; descent-override: 21.9%; line-gap-override: 0%; }

:root {
  --blue: #0474bc;
  --blue-deep: #03598f;
  --blue-tint: #e6f1f8;
  --accent: #d6ff00;        /* lima limón neón: el botón que se pulsa (Pedir presupuesto) */
  --accent-deep: #c4ec00;
  --focus: #03598f;         /* anillo de foco: el lima no se vería sobre blanco */
  --star: #f28a1a;          /* estrellas de la nota de Google */
  --ink: #16202b;
  --ink-2: #25323f;
  --muted: #4d5c6b;
  --line: #d9e0e6;
  --bg: #ffffff;
  --bg-2: #f2f5f7;
  --ok: #1d8a55;
  --ok-soft: #e8f6ef;
  --ok-text: #125f3a;
  --err: #b42318;
  --err-soft: #fdecea;
  --surface: #fff;          /* tarjetas, campos y controles */
  --night: #16202b;         /* franja oscura en los dos temas: barra superior */
  --footer: #0474bc;        /* pie azul de marca */
  --footer-base: #03598f;   /* franja final del pie: el lima de la firma de Faro llega a 6,4:1 (sobre --footer, solo 4,3) */
  --sun: #ebcb1c;           /* amarillo del logo */
  --on-accent: #16202b;     /* texto sobre el lima, igual en los dos temas (14:1) */
  --blue-text: #03598f;     /* azul para texto e iconos sobre fondo claro o --blue-tint */
  --line-strong: #8796a5;   /* borde de los campos */
  --placeholder: #5c6b7a;
  --glass: rgb(255 255 255 / .72);
  --logo-plate: #fff;       /* los logos de marca se diseñaron para fondo claro */
  --sheen: linear-gradient(rgb(255 255 255 / 0), rgb(22 32 43 / .035));
  --lift: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -2px 0 rgb(22 32 43 / .05), 0 1px 2px rgb(22 32 43 / .1), 0 4px 12px -6px rgb(22 32 43 / .16);
  --press: inset 0 2px 4px rgb(22 32 43 / .16);
  --sink: inset 0 1px 2px rgb(22 32 43 / .08);
  --ease-draw: cubic-bezier(.65, 0, .35, 1); /* trazos que se dibujan: ritmo parejo, se ve el gesto */
  --tick-ring-dur: 900ms;
  --tick-mark-dur: 450ms;
  --tick-stagger: 180ms;
  --radius: 28px;
  --wrap: 1280px;
  --gut: 20px;
  --sans: "Plus Jakarta Sans", "Jakarta fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Jakarta fallback", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 14px 34px -18px rgb(19 44 66 / .35);
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue-tint: #10304a;
  --blue-text: #8cc8f0;
  --ink: #e9eef3;
  --ink-2: #c8d2dc;
  --muted: #a3b1be;
  --line: #2a3744;
  --line-strong: #5d6d7c;
  --placeholder: #93a1af;
  --bg: #0e141a;
  --bg-2: #131b23;
  --surface: #18222c;
  --night: #0a0f14;
  --focus: #d6ff00;
  --footer: #03598f;        /* más hondo en oscuro: menos brillo y el blanco gana contraste */
  --footer-base: #023e63;
  --glass: rgb(20 29 38 / .8);
  --ok: #4cd18f;
  --ok-soft: #12301f;
  --ok-text: #9be3bd;
  --err: #ff9b8f;
  --err-soft: #3a1714;
  --logo-plate: #f1f4f7;
  --shadow: 0 14px 34px -18px rgb(0 0 0 / .75);
  --sheen: linear-gradient(rgb(255 255 255 / .045), rgb(255 255 255 / 0));
  --lift: inset 0 1px 0 rgb(255 255 255 / .07), inset 0 -2px 0 rgb(0 0 0 / .25), 0 1px 2px rgb(0 0 0 / .5), 0 4px 12px -6px rgb(0 0 0 / .6);
  --press: inset 0 2px 4px rgb(0 0 0 / .45);
  --sink: inset 0 1px 3px rgb(0 0 0 / .35);
}

/* Paso de página a página (View Transitions entre documentos; donde no hay soporte, se navega normal).
   La cabecera se queda quieta y la foto de una categoría vuela del mosaico de inicio a su ficha en Productos. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(*) { animation-duration: .4s; animation-timing-function: var(--ease); }
.topbar { view-transition-name: barra-superior; }
.header { view-transition-name: cabecera; }
/* Cambio de tema: el nuevo se revela en un círculo que crece desde el botón (solo mientras está .vt-theme) */
.vt-theme .topbar, .vt-theme .header { view-transition-name: none; }
.vt-theme::view-transition-old(root), .vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt-theme::view-transition-new(root) { animation: tema-circulo .55s var(--ease); }
@keyframes tema-circulo {
  from { clip-path: circle(0 at var(--theme-x, 100%) var(--theme-y, 0)); }
  to { clip-path: circle(150% at var(--theme-x, 100%) var(--theme-y, 0)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 3.9vw, 3.3rem); }
/* Párrafos sin una palabra sola en la última línea (los titulares ya van equilibrados) */
p, li, dd { text-wrap: pretty; }
/* Un componente con display propio nunca anula el atributo hidden */
[hidden] { display: none !important; }
/* Las fotos muestran un recuadro tintado mientras cargan, no un hueco */
.hero-media img, .tab-panel img, .tile img, .cat img, .mega-grid img, .pick img { background-color: var(--bg-2); }
h2 { font-size: 36px; }
h3 { font-size: 28px; font-weight: 600; line-height: 1.2; }
.cat h3, .perk h3, .steps h3 { font-size: 20px; }
.cat h2 { font-size: 20px; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: clamp(56px, 8vw, 104px); }
.tint { background: var(--bg-2); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.head { margin-bottom: clamp(28px, 4vw, 44px); }
.head .lead { margin-top: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--night); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 40; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 107px; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius); font: 600 1.02rem/1.1 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .15s var(--ease), translate .1s var(--ease); }
/* Equilibrio óptico: la caja de un icono es más ancha que su dibujo, así que ese lado lleva menos margen */
.btn:has(> .i:last-child) { padding-right: 18px; }
.btn:has(> .i:first-child) { padding-left: 18px; }
/* Todo botón baja 1px y recoge la sombra dentro mientras se pulsa */
.btn:active { translate: 0 1px; box-shadow: var(--press); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
/* Principal: brillo de claro a oscuro sobre el color (capa translúcida, así el hover sigue fundiendo el color de
   debajo), canto superior con luz, canto inferior en sombra, sombra de contacto y un halo de su propio lima */
.btn-primary {
  --btn-glow: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(rgb(255 255 255 / .14), rgb(0 0 0 / .08)) var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -2px 0 rgb(0 0 0 / .14), 0 1px 2px rgb(0 0 0 / .25), 0 8px 22px -8px var(--btn-glow);
}
.btn-primary:hover { background-color: var(--accent-deep); }
.btn-primary:active { box-shadow: inset 0 2px 4px rgb(0 0 0 / .22); }
/* Sobre fondo oscuro el lima ya brilla solo: el halo se queda en un toque de luz */
:root[data-theme="dark"] .btn-primary { --btn-glow: color-mix(in srgb, var(--accent) 30%, transparent); }
/* Secundario: la misma construcción en neutro y sin halo, para que el lima siga siendo el que se pulsa */
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--sheen) var(--surface); box-shadow: var(--lift); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:active { box-shadow: var(--press); }
/* Sobre el azul de la franja de visita */
.btn-light { border-color: rgb(255 255 255 / .6); color: #fff; background: linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .02)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 1px 2px rgb(0 0 0 / .2); }
.btn-light:hover { background: #fff; color: var(--blue-deep); }
.btn-light:active { box-shadow: inset 0 2px 4px rgb(0 0 0 / .25); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* Enlace terciario: el subrayado se dibuja al pasar el ratón (sin la flecha final) */
.link { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; color: var(--blue-text); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.link:hover, .link:focus-visible { background-size: 100% 2px; }
.link:has(> .i:last-child):hover, .link:has(> .i:last-child):focus-visible { background-size: calc(100% - 1.25em - 6px) 2px; }

/* Barra superior y cabecera */
.topbar { background: var(--night); color: #dfe6ec; font-size: .92rem; font-variant-numeric: tabular-nums; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; min-height: 38px; align-items: center; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-r { display: flex; gap: 22px; margin-left: auto; }
/* Botón de tema: luna en claro, sol en oscuro */
.theme-btn { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; margin-left: -8px; background: linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .02)); border: 1px solid rgb(255 255 255 / .22); border-radius: 50%; color: #fff; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); transition: border-color .2s, translate .1s var(--ease); }
.theme-btn:hover { border-color: rgb(255 255 255 / .5); }
/* Botones de 30 px en una barra de 38: la zona que responde al dedo llega a 44 de alto sin agrandar la barra */
.theme-btn, .lang summary, .link, .adj-del { position: relative; }
.theme-btn::after, .lang summary::after { content: ""; position: absolute; inset: -7px -5px; }
.link::after { content: ""; position: absolute; inset: -9px -4px; }
.adj-del::after { content: ""; position: absolute; inset: -5px; }
.theme-btn:active { translate: 0 1px; box-shadow: inset 0 2px 3px rgb(0 0 0 / .4); }
.theme-btn .i { width: 16px; height: 16px; }
.theme-moon, .theme-btn[aria-pressed="true"] .theme-sun { display: grid; place-items: center; }
.theme-sun, .theme-btn[aria-pressed="true"] .theme-moon { display: none; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8c98a4; }
.status[data-open="1"]::before { background: #3ecf8e; animation: latido 2.4s ease-out infinite; }
/* «Abierto ahora»: un pulso suave dice que es un dato en vivo */
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgb(62 207 142 / .55); } 70%, 100% { box-shadow: 0 0 0 7px rgb(62 207 142 / 0); } }
/* Barra alta arriba del todo (el logo grande cabe dentro) y compacta al hacer scroll. La cabecera reserva siempre el
   alto grande, así la página no salta; la franja que sobra al compactarse es transparente y deja pasar los clics. */
.header { --bar: 92px; --bar-s: 68px; --logo: 76px; --logo-s: 54px; position: sticky; top: 10px; z-index: 10; height: var(--bar); margin-block: 10px; pointer-events: none; }
.nav-bar { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--bar); padding: 0 10px 0 12px; pointer-events: auto; transition: height .3s var(--ease); }
.header.is-scrolled .nav-bar { height: var(--bar-s); }
/* Glass en un pseudoelemento: en .nav-bar encerraría el menú móvil (position: fixed) */
.nav-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 28px -18px rgb(19 44 66 / 0); transition: box-shadow .3s var(--ease); }
/* La sombra solo aparece al hacer scroll, cuando la barra flota sobre el contenido */
.header.is-scrolled .nav-bar::before { box-shadow: 0 12px 28px -18px rgb(19 44 66 / .45); }
:root[data-theme="dark"] .header.is-scrolled .nav-bar::before { box-shadow: 0 12px 28px -14px rgb(0 0 0 / .8); }
@media (prefers-reduced-transparency: reduce) { .nav-bar::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { flex: none; width: var(--logo); height: var(--logo); transition: width .3s var(--ease), height .3s var(--ease); }
.header.is-scrolled .brand img { width: var(--logo-s); height: var(--logo-s); }
.brand b { display: block; font: 700 1.1rem/1 var(--display); }
.brand span { display: block; font-size: .78rem; line-height: 1.2; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn), .has-mega > a { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 8px 13px; border-radius: 21px; font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav > a:not(.btn):hover, .has-mega:hover > a { background: var(--bg-2); }
.nav a[aria-current], .nav a[aria-current]:hover { background: var(--blue-tint) !important; color: var(--blue-text); font-weight: 600; }
.nav .btn { min-height: 46px; margin-left: 8px; padding-inline: 18px; font-size: .95rem; }
.caret { width: .9em; height: .9em; transition: transform .2s var(--ease); }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.mega { position: absolute; top: 100%; left: 0; right: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(2px) scale(.985); transform-origin: var(--mega-x, 50%) 0; transition: opacity .18s, transform .22s var(--ease), visibility .18s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-mega:not(.is-off):hover .mega, .has-mega:not(.is-off):focus-within .mega { opacity: 1; visibility: visible; transform: translateY(8px); }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.mega-grid a { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 16px; font-size: .88rem; font-weight: 500; line-height: 1.2; text-decoration: none; transition: background-color .15s; }
.mega-grid a:hover { background: var(--blue-tint); }
.mega-grid img { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 9px; }
.mega-foot { display: flex; gap: 22px; margin-top: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--line); font-size: .92rem; }
.burger { display: none; width: 46px; height: 46px; place-items: center; font-size: 22px; background: var(--sheen) var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer; box-shadow: var(--lift); transition: translate .1s var(--ease); }
.burger:active, .burger[aria-expanded="true"] { translate: 0 1px; box-shadow: var(--press); }

/* Hero de inicio */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(640px, calc(100dvh - 114px)); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 64px) clamp(36px, 5vw, 64px) max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
.hero-copy .lead { font-size: 1.22rem; }
.hero-media { position: relative; overflow: hidden; background: var(--blue-tint); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Datos prácticos: tarjeta bajo el hero, sin tocar la foto */
.facts { margin-top: 24px; }
.facts-card { display: grid; grid-template-columns: 1.1fr 1.05fr .95fr 1.2fr; padding: 10px; background: var(--blue); border-radius: var(--radius); box-shadow: 0 18px 36px -18px rgb(3 89 143 / .65); }
.facts-card li { position: relative; min-width: 0; }
.facts-card li + li::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px; background: rgb(255 255 255 / .28); }
.fact { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 18px; color: #fff; text-decoration: none; transition: background-color .2s; }
a.fact:hover { background: var(--blue-deep); }
.fact .ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--blue); font-size: 1.3rem; transition: transform .2s var(--ease); }
a.fact:hover .ico { transform: scale(1.06); }
.fact:has([data-open="1"]) .ico { color: var(--ok); }
.fact small { display: block; font-size: .78rem; font-weight: 500; color: #fff; }
.fact strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }

/* Mosaico de categorías */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; align-items: center; gap: 20px; min-height: 76px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.tile img { flex: none; width: 60px; height: 60px; object-fit: cover; border-radius: 14px; }
.tile:hover { border-color: var(--blue); background: var(--blue-tint); }
.tile h3 { font-size: 18px; line-height: 1.2; }

/* Selector profesional / particular */
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); box-shadow: var(--sink); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; max-width: 100%; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 20px; background: none; border: 0; border-radius: 24px; font: 600 1rem var(--sans); color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: linear-gradient(rgb(255 255 255 / .08), rgb(0 0 0 / .06)) var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 1px 2px rgb(0 0 0 / .2); }
.tabs button:active { translate: 0 1px; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.js .tab-panel:not([hidden]) { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.tab-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.checks { display: grid; gap: 12px; margin-block: 20px 26px; }
.checks li { display: flex; gap: 10px; }
/* Ticks: el aro se dibuja desde las 12 en el sentido del reloj, se rellena al cerrarse y detrás se traza el check.
   Los dos trazos llevan pathLength="1", así que no hace falta medirlos. La lista entera es la unidad: main.js le pone
   .is-ticked cuando se ve el 35% y --i (en el HTML) escalona cada punto. Los tiempos son tokens de :root. */
.checks svg { flex: none; width: 24px; height: 24px; margin-top: 2px; overflow: visible; }
.checks .anillo { fill: var(--blue-tint); stroke: var(--blue); stroke-width: 2; }
.checks .tick { fill: none; stroke: var(--blue-text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.checks li { cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .checks svg { --delay: calc(var(--i, 0) * var(--tick-stagger)); --mark-delay: calc(var(--delay) + var(--tick-ring-dur) * .8); }
  .js [data-ticks] :is(.anillo, .tick) { stroke-dasharray: 1 2; stroke-dashoffset: 1.05; }
  .js [data-ticks] .anillo { fill: transparent; stroke: var(--line-strong); transition: stroke-dashoffset var(--tick-ring-dur) var(--ease-draw) var(--delay), stroke calc(var(--tick-ring-dur) * .6) linear calc(var(--delay) + var(--tick-ring-dur) * .4), fill .3s ease calc(var(--delay) + var(--tick-ring-dur) * .85); }
  .js [data-ticks] .tick { transition: stroke-dashoffset var(--tick-mark-dur) var(--ease-draw) var(--mark-delay); }
  .js [data-ticks].is-ticked :is(.anillo, .tick) { stroke-dashoffset: 0; }
  .js [data-ticks].is-ticked .anillo { stroke: var(--blue); fill: var(--blue-tint); }
  .js [data-ticks].is-ticked li { cursor: pointer; }
}

/* Pasos */
.steps-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.steps-grid .sticky { position: sticky; top: 110px; }
.steps { display: grid; margin-top: 8px; }
.steps li { position: relative; padding: 0 0 34px 56px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 3px; background: var(--blue-tint); }
.steps li:last-child::before { display: none; }
.steps .ico { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 41px; height: 41px; border-radius: var(--radius); background: var(--blue); color: #fff; font-size: 1.1rem; }
.steps p { margin-top: 4px; color: var(--muted); }

/* Marcas */
.brands-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: slide 46s linear infinite; }
.marquee img { height: 44px; width: auto; max-width: 140px; object-fit: contain; }
@keyframes slide { to { transform: translateX(calc(-50% - 23px)); } }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-grid li { display: grid; place-items: center; height: 104px; padding: 16px 18px; background: var(--logo-plate); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .25s var(--ease); }
.brand-grid li:hover { border-color: var(--blue); transform: translateY(-2px); }
.brand-grid img { max-height: 58px; object-fit: contain; }

/* Visita */
.visit { background: var(--blue); color: #fff; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.visit p { color: #eaf3f9; margin-top: 12px; max-width: 50ch; }
.visit .btn-row { margin-top: 26px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 9px 12px; }
.hours tr[data-today] th, .hours tr[data-today] td { font-weight: 700; }
.hours-card { background: var(--surface); color: var(--ink); padding: 14px 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hours-card tr[data-today] { background: var(--blue-tint); }
.hours-plain { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.hours-plain tr[data-today] { background: var(--blue-tint); }

/* Cabecera de páginas interiores */
.page-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg-2); }
.page-hero .hero-copy { gap: 16px; }
.page-hero .hero-media { min-height: 340px; }
.page-head { background: var(--bg-2); padding-block: clamp(40px, 6vw, 72px); }
.page-head .lead { margin-top: 12px; }

/* Catálogo */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 7px 15px; background: var(--sheen) var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: 500 .98rem var(--sans); color: var(--ink); cursor: pointer; box-shadow: var(--lift); transition: background-color .2s, color .2s, border-color .2s, box-shadow .15s var(--ease), translate .1s var(--ease); }
.chips button:hover { border-color: var(--blue); }
.chips button:active { translate: 0 1px; box-shadow: var(--press); }
/* Activado: hundido en azul, como un interruptor */
.chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: inset 0 2px 4px rgb(0 0 0 / .28); }
.search { position: relative; flex: 1 1 240px; max-width: 320px; }
.search .i { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.search input { padding-left: 40px; }
.count { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 8px; padding: 22px; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .25s; }
.cat:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.cat:target { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.cat img { width: 64px; height: 64px; margin-bottom: 6px; object-fit: cover; border-radius: 14px; }
.cat p { color: var(--muted); flex: 1; }
.cat-links { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 10px; font-size: .98rem; }
.empty { display: grid; justify-items: start; gap: 10px; padding: 34px; background: var(--bg-2); border-radius: var(--radius); }

/* Ventajas y preguntas */
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(28px, 5vw, 64px); }
.perk { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 16px; }
.perk .ico { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--blue-tint); color: var(--blue-text); font-size: 1.15rem; }
.perk p { color: var(--muted); }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 18px; color: var(--muted); max-width: 68ch; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .98rem; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--sink); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: var(--sink), 0 0 0 3px rgb(4 116 188 / .3); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.hint { font-size: .9rem; color: var(--muted); }
.error { min-height: 0; font-size: .92rem; color: var(--err); font-weight: 500; }
.error:empty { display: none; }
/* Los errores entran con una transición corta en vez de aparecer de golpe */
.error:not(:empty) { animation: aviso .25s var(--ease); }
@keyframes aviso { from { opacity: 0; transform: translateY(-4px); } }
[aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--blue); }
.notice { display: flex; gap: 10px; padding: 14px 16px; background: var(--ok-soft); color: var(--ok-text); border-radius: var(--radius); }
.notice a { font-weight: 600; }
.contact-list { display: grid; gap: 16px; margin-top: 26px; }
.contact-list li { display: flex; gap: 12px; }
.contact-list .i { color: var(--blue); margin-top: 3px; }
/* Zona táctil de 44 px: el enlace crece por dentro con relleno y lo devuelve con margen negativo, sin mover nada */
.contact-list a { display: inline-block; padding-block: 11px; margin-block: -11px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: .92rem; }
.map { position: relative; display: grid; place-items: center; min-height: 380px; overflow: hidden; background: var(--blue-tint); border-radius: var(--radius); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .45s var(--ease); }
.map.is-cargado iframe { opacity: 1; }
.map-estado { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.map.is-cargando .map-load > :not(.map-estado):not(a) { display: none; }
.map-load { display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.map-load p { max-width: 42ch; color: var(--ink-2); }

/* Pie */
/* Pie azul de marca, todo el texto en blanco (4,9:1 sobre --footer claro, 7,3:1 en oscuro).
   Arriba, qué hacemos y el teléfono en grande (lo que más busca quien llama a una tienda); debajo, la web, el horario
   y la tienda, con iconos en amarillo del logo; «achedosol San Pedro» centrado; y al final, legal y firma. */
.footer { background: var(--footer); color: #fff; font-size: .98rem; }
.footer :focus-visible { outline-color: #fff; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding-block: 56px 36px; border-bottom: 1px solid rgb(255 255 255 / .3); }
.footer-tel { display: grid; justify-self: end; justify-items: end; gap: 4px; color: #fff; text-decoration: none; }
.footer-tel span { font: 700 clamp(2rem, 4.4vw, 3.2rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.footer-tel small { font-size: .92rem; }
.footer a.footer-tel:hover { text-decoration: none; color: var(--sun); }
/* Horario y tienda juntos, a la izquierda, bajo la descripción */
.footer-grid { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 32px clamp(56px, 8vw, 112px); padding-block: 36px 40px; }
.footer h2 { font: 600 1.1rem var(--display); color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer li { margin-bottom: 7px; }
.footer-brand p { max-width: 34ch; font-size: 1.05rem; }
/* Legal a la izquierda y la firma de Faro a la derecha, en una línea; en pantallas estrechas, todo centrado debajo de la marca */
.footer-low { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; justify-content: space-between; padding-block: 16px; font-size: .92rem; }
.footer-base { background: var(--footer-base); }
.footer-marca { display: block; width: min(360px, 72%); height: auto; margin: 0 auto 40px; }
.footer h2 { display: flex; align-items: center; gap: 8px; }
.footer h2 .i, .footer-contact .i { color: var(--sun); }
.footer h2 .i { width: 1.2em; height: 1.2em; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .i { width: 1.15em; height: 1.15em; }
/* La dirección ocupa dos líneas y lleva a «Cómo llegar» en Google Maps: su icono se queda a la altura de la primera */
.footer-contact li:first-child a { align-items: flex-start; }
.footer-contact li:first-child .i { margin-top: .15em; }
/* Firma de Faro en el lima neón de los botones: texto, faro y haz. El cristal, al encenderse, en blanco: sobre el
   faro lima, una luz del mismo color no se distinguiría */
.footer .faro-firma { --faro-luz: #fff; --faro-haz: 214 255 0; --faro-fuerza: .85; color: var(--accent); }
.footer .faro-firma__pre { opacity: 1; }
/* Enlaces que en móvil (sin «hover») parecerían texto: subrayado suave siempre, entero al pasar o pulsar */
.contact-list a, .footer-contact a span, .footer-legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color .2s; }
.contact-list a:hover, .footer-contact a:hover span, .footer-legal a:hover, .contact-list a:active, .footer-legal a:active { text-decoration-color: currentColor; }
.footer .faro-firma__nombre { text-shadow: 0 0 12px rgb(214 255 0 / .35); }
.footer .faro-firma__faro svg { filter: drop-shadow(0 0 4px rgb(214 255 0 / .45)); }
.footer a.faro-firma:hover { color: var(--accent); }

/* Barra de acciones en móvil: llamar, cómo llegar y presupuesto al alcance del pulgar. Aparece al pasar la primera
   sección (que ya tiene sus botones) y se aparta cuando asoma la franja final del pie, así nunca tapa la firma. */
.mobilebar { display: none; }

/* WhatsApp flotante, abajo a la derecha. Verde algo más hondo que el de la marca: el icono blanco llega a 3:1.
   En móvil sube por encima de la barra de acciones cuando esta aparece; en escritorio, al llegar al final del pie,
   se aparta hacia arriba para no tapar la firma. */
.wa { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 19; transition: transform .35s var(--ease), background-color .2s, translate .1s var(--ease), opacity .25s, visibility .25s; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: linear-gradient(rgb(255 255 255 / .16), rgb(0 0 0 / .06)) #1da851; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 0 rgb(0 0 0 / .12), 0 2px 4px rgb(0 0 0 / .2), 0 10px 24px -8px rgb(29 168 81 / .7); }
.wa .i { width: 30px; height: 30px; }
.wa:hover { background-color: #178f45; }
.wa:active { translate: 0 1px; box-shadow: inset 0 2px 4px rgb(0 0 0 / .25); }
@media (min-width: 861px) { .wa.en-pie { transform: translateY(-64px); } }
@media (max-width: 860px) {
  .wa { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .wa.sobre-barra, html:not(.js) .wa { transform: translateY(-70px); }
  /* Mientras se rellena el formulario, se aparta: taparía «Continuar» y quien está ahí ya nos está escribiendo */
  .wa.en-form { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media print { .wa { display: none; } }

/* Aparición al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar-mail { display: none; }
  .burger { display: grid; }
  .nav { position: fixed; inset: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 4px; padding: 84px var(--gut) 24px; background: var(--bg); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav > a:not(.btn), .has-mega > a { display: flex; width: 100%; min-height: 0; padding: 14px 4px; border-radius: 0; font: 600 1.5rem var(--display); border-bottom: 1px solid var(--line); background: none !important; }
  .nav a[aria-current] { color: var(--blue-deep); }
  .mega, .caret { display: none; }
  .nav .btn { margin: 16px 0 0; min-height: 52px; }
  .burger[aria-expanded="true"] { position: relative; z-index: 31; }
  .facts-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-card li:nth-child(3)::before { display: none; }
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-tel { justify-self: start; justify-items: start; }
  .footer-marca { width: min(260px, 72%); margin-bottom: 28px; }
  /* Hueco para el botón de WhatsApp: al llegar al final queda debajo de la firma, sin taparla */
  .footer-low { padding-bottom: 88px; }
  /* Sin JS la barra está siempre a la vista y reserva su sitio; con JS se aparta al llegar al pie */
  html:not(.js) body { padding-bottom: 68px; }
  .hero, .page-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 32px var(--gut); }
  .hero-media, .page-hero .hero-media { min-height: 0; aspect-ratio: 16 / 10; order: 2; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { gap: 12px; }
  .tile { gap: 8px; min-height: 64px; padding: 10px 8px; }
  .tile img { width: 40px; height: 40px; border-radius: 10px; }
  .tile h3 { min-width: 0; font-size: 13px; }
  .tab-panel, .steps-grid, .visit-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-grid .sticky { position: static; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; padding: 8px max(12px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); transition: transform .35s var(--ease), opacity .25s var(--ease), visibility .35s; }
  .js .mobilebar:not(.is-shown) { opacity: 0; visibility: hidden; transform: translateY(24px); pointer-events: none; }
  .mobilebar a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px; padding: 6px 4px; background: var(--sheen) var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--lift); color: var(--ink); font-weight: 650; font-size: .8rem; white-space: nowrap; text-decoration: none; transition: box-shadow .15s var(--ease), translate .1s var(--ease); }
  .mobilebar .i { width: 1.35em; height: 1.35em; }
  .mobilebar a:active { translate: 0 1px; box-shadow: var(--press); }
  /* La misma construcción que el botón principal, sin halo (la barra va pegada al borde) */
  .mobilebar a:last-child { background: linear-gradient(rgb(255 255 255 / .14), rgb(0 0 0 / .08)) var(--accent); border-color: var(--accent-deep); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -2px 0 rgb(0 0 0 / .14), 0 1px 2px rgb(0 0 0 / .25); }
  .mobilebar a:last-child:active { box-shadow: inset 0 2px 4px rgb(0 0 0 / .22); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar-r a:not(.topbar-tel) { display: none; }
  .header { --bar: 76px; --bar-s: 62px; --logo: 62px; --logo-s: 48px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .field { grid-column: 1 / -1; }
  .facts { margin-top: 16px; }
  .facts-card { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .facts-card li + li::before { display: block; left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .fact { padding: 10px; }
  .btn-row .btn { flex: 1 1 100%; }
  .tabs { display: flex; }
  .tabs button { flex: 1; justify-content: center; padding-inline: 8px; }
  .search { max-width: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { padding-top: 40px; }
  /* Enlaces del pie con altura de dedo */
  .footer-grid a, .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer li { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; gap: 24px 36px; }
  .marquee-track [aria-hidden] { display: none; }
}

/* Con el menú abierto, la cabecera queda por encima de la barra móvil */
.header:has(.nav.open) { z-index: 31; }

/* En móvil el teléfono ya está en la barra inferior */
@media (max-width: 560px) { .topbar-r { display: none; } }

/* Formulario por pasos. Campos con radio 14px; opciones con el radio general. */
/* El titular ocupa todo el ancho: horario y tarjeta empiezan a la misma altura */
.contact-grid { row-gap: 0; }
.quote-head { grid-column: 1 / -1; }
.quote-col { min-width: 0; }
#formulario > h2 { margin-bottom: 8px; }
.quote-intro { color: var(--muted); margin-bottom: 22px; }
.quote, .quote-done { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote input:not([type="checkbox"]):not([type="radio"]), .quote textarea { border-radius: 14px; }
.quote fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.quote legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .98rem; }
.quote-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.quote-track li { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--muted); transition: border-color .3s, color .3s; }
.quote-track span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); font-size: .82rem; transition: background-color .3s, color .3s; }
.quote-track li[data-state="done"], .quote-track li[aria-current] { border-color: var(--blue); color: var(--ink); }
.quote-track li[data-state="done"] span, .quote-track li[aria-current] span { background: var(--blue); color: #fff; }
.quote-step { display: grid; gap: 22px; }
.js .quote-step:not([hidden]) { animation: fade .35s var(--ease); }
.quote-step h3 { font-size: 22px; outline: 0; }
.quote .form { gap: 18px; }
.quote-hp { position: absolute; left: -9999px; }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input, .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg { position: relative; font-weight: 500; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--sheen) var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: .95rem; cursor: pointer; box-shadow: var(--lift); transition: background-color .2s, color .2s, border-color .2s, box-shadow .15s var(--ease), translate .1s var(--ease); }
.seg:hover span { border-color: var(--blue); }
.seg:active span { translate: 0 1px; box-shadow: var(--press); }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: inset 0 2px 4px rgb(0 0 0 / .28); }
.seg input:focus-visible + span, .pick input:focus-visible ~ span:last-child { outline: 3px solid var(--focus); outline-offset: 2px; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 16px; font-size: .9rem; font-weight: 500; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s; }
.pick img, .pick-other { flex: none; width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.pick-other { display: grid; place-items: center; background: var(--bg-2); color: var(--muted); font-weight: 700; }
.pick-ico { display: none; width: 22px; height: 22px; color: var(--blue-text); }
.pick:hover { border-color: var(--blue); }
.pick:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
/* Al elegir una categoría aparece un check que rebota: confirma la elección sin depender solo del color */
.pick { padding-right: 30px; }
.pick::after { content: ""; position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.pick:has(input:checked)::after { opacity: 1; transform: none; }
.field-foot { display: flex; justify-content: space-between; gap: 16px; }
.field-foot .hint:last-child { flex: none; font-variant-numeric: tabular-nums; }
.quote-tip { display: flex; gap: 10px; padding: 12px 14px; background: var(--bg-2); border-radius: 14px; font-size: .92rem; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--muted); }
.quote-review { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; padding: 14px 16px; background: var(--bg-2); border-radius: 14px; font-size: .92rem; }
.quote-review dt { font-weight: 600; }
.quote-review dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.quote-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.quote-nav [data-back] { margin-right: auto; }
.btn[aria-busy="true"] { opacity: .85; pointer-events: none; cursor: progress; }
/* Cargando: un aro que gira (con menos movimiento se queda quieto, y el texto ya lo dice) */
.spin { flex: none; width: 1.05em; height: 1.05em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(1turn); } }
/* Copiado: aparece un check que rebota */
.btn.is-ok::before { content: ""; flex: none; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; animation: rebote .4s cubic-bezier(.34, 1.56, .64, 1); }
/* Cada archivo nuevo entra con un pequeño desplazamiento; los que ya estaban no se mueven */
.adj-list li.is-nuevo { animation: entra .3s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.quote-fail { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; background: var(--err-soft); color: var(--err); border-radius: 14px; font-size: .94rem; }
.quote-done { display: grid; justify-items: start; gap: 12px; outline: 0; animation: fade .4s var(--ease); }
/* El check de enviado da un pequeño rebote */
.quote-done > .i { width: 40px; height: 40px; color: var(--ok); animation: rebote .5s cubic-bezier(.34, 1.56, .64, 1) .1s backwards; }
@keyframes rebote { from { transform: scale(.4); opacity: 0; } }
.quote-done h3 { font-size: 24px; }
.quote-done .btn-row { margin-top: 6px; }
button.link { padding: 0; background: none; border-top: 0; border-inline: 0; font: 600 1rem var(--sans); cursor: pointer; }
@media (max-width: 560px) {
  .quote, .quote-done { padding: 20px 16px; }
  .quote-track li { font-size: 0; gap: 0; }
  .quote-track li[aria-current] { font-size: .82rem; gap: 6px; }
  .pick { min-height: 50px; padding: 8px 10px; font-size: .8rem; }
  /* La foto no cabe: en su lugar, el icono de la categoría, encima del nombre para que este tenga todo el ancho */
  .pick { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px; padding: 10px 10px 11px; }
  .pick img, .pick-other { display: none; }
  .pick-ico { display: block; width: 21px; height: 21px; }
  .quote-nav .btn { flex: 1; }
}

.footer a.faro-firma:hover { text-decoration: none; }
/* El texto de la firma se alinea con el borde; el fondo que aparece al pasar el ratón sobresale por su relleno */
.footer-low .faro-firma { margin-right: -1em; }
/* Con tres enlaces legales, en neerlandés y portugués la línea necesita unos 860 px */
@media (max-width: 900px) {
  .footer-low { flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
  .footer-legal { justify-content: center; }
  .footer-low .faro-firma { margin: 0; min-height: 44px; }
}
/* «Website ontworpen door Faro Estudio» no cabe entero en 320 px */
@media (max-width: 360px) { .footer-low .faro-firma { font-size: .8rem; } }

@media (max-width: 860px) { .contact-grid { row-gap: 32px; } .quote-head { margin-bottom: -32px; } }

/* Navegación en portátiles pequeños: una sola línea, también en el subtítulo */
.brand span { white-space: nowrap; }
/* Justo por encima del menú hamburguesa, en francés y español el menú no deja sitio al subtítulo (el logo ya dice San Pedro) */
@media (min-width: 1081px) and (max-width: 1139px) { .brand span { display: none; } }
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav > a:not(.btn), .has-mega > a { padding-inline: 9px; font-size: .88rem; }
  .nav .btn { margin-left: 4px; padding-inline: 14px; font-size: .9rem; }
}

/* Opiniones de Google */
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-block: 11px; margin-block: -11px; color: var(--ink); font-size: .92rem; text-decoration: none; }
.rating:hover strong { text-decoration: underline; }
.google-g { width: 18px; height: 18px; flex: none; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .i { width: 16px; height: 16px; }
aside .rating { margin-top: 18px; }
/* Logos enlazados a su catálogo */
.brand-grid a { display: grid; place-items: center; width: 100%; height: 100%; }

/* Páginas legales */
.legal { max-width: 74ch; color: var(--ink-2); }
.legal h2 { margin: 30px 0 10px; font-size: 22px; }
.legal h3 { margin: 22px 0 8px; font-size: 18px; }
.legal p, .legal ul { margin-bottom: 14px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue-text); }
.legal code { font-size: .9em; }
/* Tabla de cookies: en móvil se desliza en horizontal en vez de estrujar las columnas */
.legal-tabla { margin: 6px 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { background: var(--bg-2); color: var(--ink); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal-fecha { margin-top: 28px; color: var(--muted); font-size: .92rem; }
/* En móvil, cada fila de la tabla es una ficha con sus etiquetas */
@media (max-width: 640px) {
  .legal-tabla { overflow: visible; border: 0; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; min-width: 0; }
  .legal thead { display: none; }
  .legal tr { margin-bottom: 12px; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
  .legal td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; padding: 8px 0; }
  .legal tr td:last-child { border-bottom: 0; }
  .legal td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* Icono de la hamburguesa centrado: sin esto el span en línea lo desplaza hacia arriba */
.burger { padding: 0; line-height: 0; border-radius: 50%; }
.burger span { display: grid; place-items: center; }
.burger .i { width: 24px; height: 24px; }


/* Adjuntos del formulario */
.adj-input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; opacity: 0; }
.drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: 16px; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--blue-tint); }
.drop:has(+ .adj-input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop .i { width: 24px; height: 24px; color: var(--blue); }
.drop b { display: block; font-weight: 600; font-size: .96rem; }
.drop small { display: block; font-size: .84rem; font-weight: 400; color: var(--muted); }
.adj-list { display: grid; gap: 6px; }
.adj-list:empty { display: none; }
.adj-list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; background: var(--bg-2); border-radius: 12px; font-size: .9rem; }
.adj-list img, .adj-doc { flex: none; display: grid; place-items: center; width: 40px; height: 40px; object-fit: cover; border-radius: 9px; background: var(--blue-tint); color: var(--blue-text); font-size: .68rem; font-weight: 700; }
.adj-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adj-size { flex: none; color: var(--muted); font-size: .8rem; }
.adj-del { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--ink-2); cursor: pointer; }
.adj-del:hover { background: var(--line); }
.adj-recuerda { width: 100%; padding: 12px 14px; background: var(--blue-tint); border-radius: 14px; font-size: .92rem; overflow-wrap: anywhere; }
.adj-recuerda ul { margin-top: 4px; padding-left: 1.1em; list-style: disc; }
/* Un nombre de archivo largo se recorta en vez de ensanchar el formulario */
.quote-step { grid-template-columns: minmax(0, 1fr); }
.quote-step > *, .quote .field, .adj-list, .adj-list li { min-width: 0; }
.quote-done [data-share]:not([hidden]) + [data-copy] { background: transparent; border-color: var(--ink); }

/* Marcas conectadas con sus catálogos */
.marquee a { display: block; flex: none; }
.brand-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.brand-tools .count { margin: 0; }
.brand-grid li { height: 122px; padding: 12px 14px; }
.brand-grid a { grid-template-rows: minmax(0, 1fr) auto; gap: 6px; text-decoration: none; }
.brand-grid a img { align-self: center; }
.b-doc { padding: 3px 9px; background: var(--blue-tint); border-radius: 999px; color: var(--blue-text); font-size: .78rem; font-weight: 700; line-height: 1.2; }
.brand-grid a:hover .b-doc { background: var(--blue); color: #fff; }

.brand-tools { scroll-margin-top: 110px; }

/* Buscador de marcas */
.brand-tools .search { flex: 1 1 220px; max-width: 300px; }
.brand-empty { margin: 0 0 18px; padding: 18px 20px; background: var(--bg-2); border-radius: var(--radius); }

.quote-nojs { margin: 0 0 1rem; padding: .9rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink); }
.quote-nojs a { color: var(--blue-text); font-weight: 600; }

/* Cinta de marcas: se para al pasar el ratón o al tocarla, para poder pulsar un logo.
   En oscuro cada logo va sobre una placa clara, porque se diseñaron para fondo blanco. */
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
:root[data-theme="dark"] .marquee img { box-sizing: content-box; padding: 8px 12px; background: var(--logo-plate); border-radius: 12px; }

/* Iconos azules que en oscuro necesitan un tono más claro para leerse */
:root[data-theme="dark"] :is(.contact-list .i, .drop .i, .map-load .i) { color: var(--blue-text); }
:root[data-theme="dark"] .faq summary::after { color: var(--blue-text); }

/* Selector de idioma, en la barra superior. Lleva a la misma página en el otro idioma. */
.topbar { position: relative; z-index: 11; }
.lang { position: relative; flex: none; margin-left: -8px; }
.lang summary { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 8px; background: linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .02)); border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .02em; cursor: pointer; list-style: none; transition: border-color .2s, translate .1s var(--ease); }
.lang summary::-webkit-details-marker { display: none; }
.flag-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.flag { flex: none; width: 21px; height: 14px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgb(22 32 43 / .14); }
.lang summary .flag { box-shadow: 0 0 0 1px rgb(255 255 255 / .28); }
:root[data-theme="dark"] .lang-menu .flag { box-shadow: 0 0 0 1px rgb(255 255 255 / .2); }
.lang summary:hover { border-color: rgb(255 255 255 / .5); }
.lang summary:active, .lang[open] summary { translate: 0 1px; box-shadow: inset 0 2px 3px rgb(0 0 0 / .4); }
/* Panel con radio 16 y 6 de relleno: las opciones llevan 10 (esquinas concéntricas) */
/* Sale del botón: crece desde su esquina superior derecha y baja un poco, en vez de subir hacia él */
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transform-origin: top right; animation: desde-boton .2s var(--ease); }
@keyframes desde-boton { from { opacity: 0; transform: translateY(-4px) scale(.95); } }
.topbar .lang-menu a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 10px; border-radius: 10px; color: var(--ink); font-size: .95rem; text-decoration: none; }
.topbar .lang-menu a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.topbar .lang-menu a[aria-current] { background: var(--blue-tint); color: var(--blue-text); font-weight: 600; }
@media (max-width: 560px) { .lang { margin-left: auto; } }

/* Palabras largas (alemán, neerlandés): se cortan con guion según el idioma de la página en vez de salirse de la caja */
.tile h3, .cat h2, .pick span, .mega-grid span, .perk h3, .steps h3, .faq summary, .chips button, .quote-track li { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 560px) { h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; } }
