/* Red Hat Display and Red Hat Text (OFL-1.1, Fontsource 5.3.0), served from /fonts */
@font-face {
  font-family: "Red Hat Display";
  src: url("/fonts/red-hat-display.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Text";
  src: url("/fonts/red-hat-text.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --soft: #f4f6f9;
  --ink: #0a1a33;
  --muted: #4a5a72;
  --line: #e2e7ee;
  --line-strong: #c9d2de;
  --blue: #1f5fbf;
  --red: #d62828;
  --red-press: #b51f1f;
  --navy: #0a1a33;
  --navy-2: #13284a;
  --focus: #1f5fbf;
  --green: #157a3f;
  --navy-muted: #b9c7de;

  --header-h: 68px;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Red Hat Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 112px);

  --t-small: .875rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --t-h1: clamp(2.375rem, 1.5rem + 3vw, 3.875rem);
  --t-h2: clamp(2rem, 1.1rem + 2.7vw, 4.25rem);
  --t-h3: 1.25rem;

  --section: clamp(88px, 10vw, 184px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  interpolate-size: allow-keywords;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

::selection { background: var(--red); color: #fff; }

html {
  accent-color: var(--red);
  caret-color: var(--red);
  scrollbar-color: var(--line-strong) var(--bg);
}

a { text-underline-offset: .22em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.icon-chev { transition: transform .25s var(--ease-out); }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  clip-path: inset(50%);
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { clip-path: none; }

.container {
  width: 100%;
  padding-inline: var(--gutter);
}

/* Type */

.h2 { font-size: var(--t-h2); }

.h3 { font-size: var(--t-h3); letter-spacing: -.01em; }

.lead {
  max-width: 36em;
  color: var(--muted);
  font-size: var(--t-lead);
  line-height: 1.55;
}

.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}

.btn:active { transform: scale(.97); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

.btn-block { width: 100%; }

.btn-red { background: var(--red); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }

.btn-ghost {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease-expo);
}

.btn-white { background: #fff; color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .btn-red:hover { background: var(--red-press); }
  .btn-dark:hover { background: var(--navy-2); }
  .btn-ghost:hover { border-color: var(--ink); color: #fff; }
  .btn-ghost:hover::before { transform: none; }
  .btn-white:hover { background: var(--soft); }
  .btn:hover .icon-chev,
  .text-link:hover .icon-chev,
  .wa-row:hover .icon-chev,
  .bar-link:hover .icon-chev { transform: translateX(4px); }
  .text-link:hover { color: var(--blue); }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

body.nav-open .site-header::before { background: var(--bg); }

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header { transition: border-color .25s ease, transform .5s var(--ease-expo); }

.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark { width: 30px; height: 30px; }

.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 28px; }

.nav-list { display: flex; gap: 4px; }

.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.nav-list a.is-active { color: var(--ink); background: var(--soft); }

@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover { color: var(--ink); }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon { width: 24px; height: 24px; }

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px clamp(20px, 4vw, 40px) 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s;
  }

  .nav-list { flex-direction: column; gap: 0; }

  .nav-list a {
    padding: 16px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.375rem;
    font-weight: 600;
  }

  .nav-list a.is-active { background: transparent; }

  .nav-cta { min-height: 52px; font-size: 1rem; }
}

/* Banner */

.banner {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  margin-top: calc(-1 * var(--header-h));
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}

.banner-media,
.banner-shade {
  position: absolute;
  inset: 0;
}

.banner-media { z-index: -2; }

/* Softened so the real sign reads as the place, not as a second logo
   behind ours; scaled a touch so the blur never shows its edges. */
.banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: blur(3px);
  scale: 1.06;
}

.banner-shade {
  z-index: -1;
  background: rgba(7, 18, 38, .74);
}

.banner-content {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  padding-inline: 20px;
  text-align: center;
}

.banner-logo {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.banner-mark {
  width: clamp(56px, 10vw, 136px);
  height: clamp(56px, 10vw, 136px);
  flex: none;
  color: #fff;
}

.banner-title { line-height: 0; }

/* Lettering drawn after the shop sign: round, even strokes, red "v" */
.wordmark {
  height: clamp(60px, 9.4vw, 144px);
  width: auto;
  overflow: visible;
  fill: none;
  stroke: #fff;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wordmark .wm-red { stroke: var(--red); }

.banner-sub {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(.875rem, .8rem + .4vw, 1.125rem);
  font-weight: 500;
  letter-spacing: .01em;
}

.banner-sub span { margin-inline: .5em; color: var(--red); }

.banner-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 40px);
  width: 44px;
  height: 64px;
  margin-left: -22px;
  display: grid;
  justify-items: center;
}

.banner-scroll span {
  position: relative;
  width: 2px;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
}

.banner-scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
}

@media (max-width: 560px) {
  .banner-logo { flex-direction: column; gap: 14px; }
  .wordmark { height: auto; width: min(86vw, 340px); }
  .banner-sub { max-width: 18em; line-height: 1.7; }
  .banner-sub span { margin-inline: .35em; }
}

/* Header over the banner */

.site-header.is-over { border-bottom-color: transparent; }

.site-header.is-over::before { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.site-header.is-over .brand,
.site-header.is-over .nav-toggle { color: #fff; }

@media (min-width: 901px) {
  .site-header.is-over .nav-list a { color: rgba(255, 255, 255, .82); }
  .site-header.is-over .nav-list a.is-active { color: #fff; background: rgba(255, 255, 255, .12); }
  .site-header.is-over .nav-cta { background: #fff; color: var(--ink); }
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .site-header.is-over .nav-list a:hover { color: #fff; }
}

.site-header::before { transition: background-color .3s ease; }

.site-header .brand,
.site-header .nav-list a,
.site-header .nav-cta { transition: color .3s ease, background-color .3s ease; }

/* Intro */

.intro { padding-block: clamp(80px, 10vw, 144px) clamp(8px, 2vw, 24px); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
}

.intro-title {
  max-width: 13em;
  font-size: clamp(2.5rem, 1.1rem + 4.2vw, 6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.038em;
}

.intro-side { display: grid; gap: 28px; padding-bottom: .4em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Calling is a phone gesture: on desktop the number lives in Contacto */
@media (min-width: 901px) {
  .actions [data-tel] { display: none; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 20px clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.facts dt,
.info dt { color: var(--muted); font-size: var(--t-small); }

.facts dd,
.info dd { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }

/* Open / closed, computed from the hours set in the panel */
.status dd { display: inline-flex; align-items: center; gap: 10px; }

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.status.is-open .status-dot { background: var(--green); }

.status.is-open .status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .actions .btn { flex: 1 1 100%; }
  .facts div:first-child { grid-column: 1 / -1; }
  .facts .status { grid-column: 1 / -1; }
}

.fact-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--blue);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.facts dd:has(.fact-link) { display: grid; justify-items: start; }

@media (hover: hover) and (pointer: fine) {
  .fact-link:hover .icon-chev { transform: translateX(4px); }
}

/* A notice from the panel replaces the open / closed line */
.status.is-notice .status-dot { background: var(--red); }

/* Index of services */

.index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--ink);
}

.index-item {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px 48px 28px 0;
  text-decoration: none;
}

.index-item + .index-item { padding-left: 24px; border-left: 1px solid var(--line); }

.index-title { font-family: var(--font-display); font-size: clamp(1.375rem, 1rem + 1.1vw, 2.125rem); font-weight: 700; letter-spacing: -.025em; }

.index-text { color: var(--muted); font-size: .9375rem; line-height: 1.45; }

.index-chev {
  position: absolute;
  top: 30px;
  right: 16px;
  width: 20px;
  height: 20px;
  color: var(--red);
  transition: transform .35s var(--ease-out);
}

.index-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--soft);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s var(--ease-expo);
}

@media (hover: hover) and (pointer: fine) {
  .index-item:hover::before { clip-path: inset(0); }
  .index-item:hover .index-chev { transform: translateX(6px); }
  .index-item:hover .index-title { color: var(--blue); }
  .index-title { transition: color .2s ease; }
}

@media (max-width: 900px) {
  .index { grid-template-columns: 1fr 1fr; }
  .index-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .index-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .index-item { padding-right: 36px; }
  .index-item + .index-item { padding-left: 16px; }
  .index-item:nth-child(3) { padding-left: 0; }
  .index-chev { right: 8px; }
}

/* Sections */

.section { padding-block: var(--section); }

.section-soft { background: var(--soft); }

.section-navy { background: var(--navy); color: #fff; }

.section-navy .lead { color: var(--navy-muted); }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 48px;
}

.section-head-row > div { display: grid; gap: 14px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

@media (max-width: 900px) {
  .split,
  .split-even { grid-template-columns: 1fr; }
}

/* Panels and forms */

.panel {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
}

.panel .h3 { margin-bottom: 8px; }

.panel-intro { margin-bottom: 26px; color: var(--muted); font-size: 1rem; }

.panel-white { background: #fff; color: var(--ink); }

.panel-navy { background: var(--navy); color: #fff; }

.panel-navy .panel-intro { color: var(--navy-muted); }

.panel-navy label { color: #fff; }

.panel-navy input { border-color: transparent; }

.panel-navy input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

.panel-navy .form-status.is-error { color: #ffb4ae; }

.panel-navy .form-status.is-ok { color: #9be3b4; }

#buscar-pieza { position: sticky; top: calc(var(--header-h) + 24px); }

@media (max-width: 900px) {
  #buscar-pieza { position: static; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.field { display: grid; gap: 6px; }

.field-full { grid-column: 1 / -1; }

@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
}

label { font-size: .9375rem; font-weight: 500; }

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea { resize: vertical; min-height: 92px; }

input::placeholder,
textarea::placeholder { color: #5f6e84; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 191, .18);
}

[aria-invalid="true"] { border-color: var(--red); }

.form-status { min-height: 1.4em; margin-bottom: 12px; font-size: .9375rem; }

.form-status:empty { min-height: 0; margin: 0; }

.form-status.is-error { color: #b51f1f; }

.form-status.is-ok { color: #157a3f; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot */

/* Repuestos: search */

.parts-search {
  position: relative;
  margin-bottom: 28px;
}

.parts-search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--muted);
  pointer-events: none;
}

.parts-search input {
  min-height: 56px;
  padding-left: 50px;
  border-radius: 999px;
  font-size: 1.0625rem;
}

.parts-search input::-webkit-search-cancel-button { cursor: pointer; }

.parts-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 24px;
  color: var(--muted);
}

.bars .bar[hidden] { display: none; }

/* Repuestos */

.bars { border-top: 1px solid var(--ink); }

.bar { border-bottom: 1px solid var(--line); }

.bar summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

.bar summary::-webkit-details-marker { display: none; }

.bar-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + .9vw, 2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  transition: color .2s ease, transform .35s var(--ease-out);
}

.bar-plus {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--muted);
  transition: transform .35s var(--ease-out), color .2s ease;
}

.bar[open] .bar-plus { transform: rotate(45deg); color: var(--red); }

@media (hover: hover) and (pointer: fine) {
  .bar summary:hover .bar-name { transform: translateX(6px); }
  .bar summary:hover .bar-plus { color: var(--ink); }
}

.bar::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}

.bar[open]::details-content { block-size: auto; }

.bar-panel { display: grid; gap: 18px; padding-bottom: 28px; }

.bar-img { width: 100%; max-width: 320px; border-radius: var(--radius-sm); }

.bar-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; color: var(--muted); }

.bar-items li { position: relative; padding-left: 18px; }

.bar-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

/* Taller, on the navy field */

.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(56px, 7vw, 96px);
}

.caps-title {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  font-size: 1.25rem;
}

.caps-list { display: grid; gap: 12px; color: var(--navy-muted); }

.caps-list li { display: flex; align-items: baseline; gap: 12px; }

.caps-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: translateY(-2px) rotate(45deg);
}

@media (max-width: 760px) {
  .caps { grid-template-columns: 1fr; }
}

.diag {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
}

@media (max-width: 900px) {
  .diag { grid-template-columns: 1fr; }
}

.symptoms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

.symptoms[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 6px; }

.symptom { position: relative; cursor: pointer; }

.symptom input {
  position: absolute;
  inset: 0;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.symptom span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}

.symptom:active span { transform: scale(.97); }

.symptom input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

.symptom input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .symptom:hover span { border-color: var(--ink); }
}

.diag-check {
  min-height: 3.2em;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 1px solid var(--red);
  color: var(--muted);
  font-size: 1rem;
}

.diag-check.is-swap { animation: swap .4s var(--ease-out); }

@keyframes swap {
  from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

.wa-preview {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.wa-preview-label { margin-bottom: 6px; color: var(--muted); font-size: var(--t-small); }

.wa-preview-text { white-space: pre-line; font-size: .9375rem; line-height: 1.5; }

/* Reparación: three steps joined by a line that draws with the scroll */

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-top: 36px;
}

.process::before,
.process::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.process::after { background: var(--red); transform-origin: left; }

.step { position: relative; display: grid; align-content: start; gap: 18px; }

.step::before {
  content: "";
  position: absolute;
  top: -41px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--bg);
}

.step-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  aspect-ratio: 4 / 3;
}

.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}

.step-body { display: grid; gap: 8px; }

.step-title { font-size: 1.375rem; letter-spacing: -.02em; }

.step p { color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .step:hover .step-photo img { transform: scale(1.04); }
}

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 48px; padding-top: 0; padding-left: 32px; }
  .process::before,
  .process::after { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; transform-origin: top; }
  .step::before { top: 0; left: -32px; }
}

/* Antes y después: drag to compare */

.compares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.compare figcaption { margin-top: 14px; font-weight: 600; }

.compare-stage {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(10, 26, 51, .55);
  transition: transform .2s var(--ease-out);
}

.compare-tag {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 26, 51, .72);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  pointer-events: none;
}

.compare-tag-before { left: 14px; }

.compare-tag-after { right: 14px; }

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare:has(.compare-range:focus-visible) .compare-handle::after { outline: 2px solid #fff; outline-offset: 4px; }

.compare:has(.compare-range:active) .compare-handle::after { transform: scale(.92); }

/* Empresas */

/* The photo opens the Empresas section edge to edge */
#empresas { padding-top: 0; }

/* Bleeds to both screen edges, past the gutter */
.wide-photo {
  overflow: hidden;
  margin: 0 calc(-1 * var(--gutter)) clamp(56px, 7vw, 112px);
  aspect-ratio: 21 / 8;
}

.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
  .wide-photo { aspect-ratio: 4 / 3; }
}

.benefits { display: grid; gap: 28px; }

.benefits li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }

.benefit-mark { width: 22px; height: 22px; margin-top: 2px; color: var(--red); }

.benefit-title { margin-bottom: 4px; font-size: 1.125rem; }

.benefits p { color: var(--muted); }

/* Marcas: the names run past in large type */

.brands { padding-block: 0; }

.brands-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.brands-title { font-size: var(--t-h2); }

.brands-note { max-width: 30em; color: var(--muted); font-size: var(--t-lead); line-height: 1.5; }

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track { display: flex; width: max-content; }

.ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  margin: 0;
  padding: clamp(28px, 3.5vw, 52px) clamp(14px, 2vw, 36px);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.1rem + 5vw, 6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
}

.ticker-more { color: var(--muted); font-weight: 500; }

.ticker-mark { width: .45em; height: .45em; flex: none; color: var(--red); }

/* Consejos */

.tips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 0 clamp(24px, 3vw, 56px);
}

.tip {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
}

.tip::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(.16);
  transform-origin: left;
  transition: transform .8s var(--ease-expo);
}

.tip-title { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); letter-spacing: -.02em; }

.tip p { color: var(--muted); }

.tip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin-top: 4px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .tip:hover::before { transform: scaleX(1); }
  .tip-link:hover .icon-chev { transform: translateX(4px); }
}

/* Preguntas frecuentes */

@media (min-width: 901px) {
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

.faq-head .text-link { justify-self: start; margin-top: 8px; }

.faq .bar-panel p { max-width: 40em; color: var(--muted); font-size: 1.0625rem; }

/* Contacto */

.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}

.social-link:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .social-link:hover { border-color: var(--ink); color: var(--blue); }
}


.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.info .status { grid-column: 1 / -1; }

.wa-list { border-top: 1px solid var(--ink); }

.wa-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.wa-row .icon:first-child { color: var(--green); }

.wa-row .icon-chev { margin-left: auto; color: var(--red); }

@media (hover: hover) and (pointer: fine) {
  .wa-row:hover { color: var(--blue); }
}

.map { display: grid; gap: 16px; }

.map iframe {
  width: 100%;
  height: clamp(340px, 42vw, 520px);
  border: 0;
  border-radius: var(--radius);
  background: var(--soft);
}

/* Closing footer on the navy field */

.site-footer {
  padding-block: clamp(72px, 9vw, 128px) 32px;
  background: var(--navy);
  color: #fff;
}

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.closing-title { font-size: var(--t-h2); }

.closing p { margin-top: 10px; color: var(--navy-muted); }

/* The mark sits on the lettering baseline, at x-height, as on the shop sign */
.footer-logo {
  --w: clamp(240px, 70vw, 640px);
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 2vw, 28px);
  width: fit-content;
  margin-block: clamp(48px, 7vw, 96px);
  color: #fff;
}

.footer-mark { width: calc(var(--w) * .16); height: calc(var(--w) * .16); flex: none; margin-bottom: calc(var(--w) * -.006); }

.footer-word { width: var(--w); height: auto; overflow: visible; stroke: #fff; }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-info { display: grid; gap: 6px; color: var(--navy-muted); font-size: .9375rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 24px 64px; }

.footer-links ul { display: grid; align-content: start; gap: 10px; }

.footer-links a {
  color: var(--navy-muted);
  font-size: .9375rem;
  text-decoration: none;
  transition: color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: #fff; }
}

.footer-bottom {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: var(--navy-muted);
  font-size: .8125rem;
}

.credits a { color: inherit; }

.site-footer :focus-visible { outline-color: #fff; }

/* WhatsApp float */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 26, 51, .2); /* taste-skill-ignore: floating button needs separation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.96);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s;
}

.wa-float svg { width: 28px; height: 28px; }

.wa-float.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s;
}

.wa-float:active { transform: scale(.95); }

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  /* Blocks rise a little; headings also come into focus */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-expo) var(--d, 0ms);
  }

  .js .reveal-line {
    opacity: 0;
    transform: translateY(.35em);
    filter: blur(8px);
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-expo), filter .9s var(--ease-out);
  }

  .js .reveal.is-visible,
  .js .reveal-line.is-visible { opacity: 1; transform: none; filter: none; }

  /* Headings split into words; each word rises out of its own line */
  .js .reveal-line.is-split { opacity: 1; transform: none; filter: none; }

  .reveal-line .w {
    display: inline-block;
    overflow: hidden;
    padding-bottom: .1em;
    margin-bottom: -.1em;
    vertical-align: top;
  }

  .reveal-line .w > span {
    display: inline-block;
    transform: translateY(108%) rotate(4deg);
    transform-origin: 0 100%;
    transition: transform 1.1s var(--ease-expo) calc(var(--i, 0) * 55ms);
  }

  .reveal-line.is-visible .w > span { transform: none; }

  /* Lists inside a revealed block arrive one line after another */
  .js .caps-group li,
  .js .benefits li > div {
    opacity: 0;
    translate: 0 10px;
    transition: opacity .6s var(--ease-out), translate .8s var(--ease-expo);
  }

  .js .caps-group.is-visible li,
  .js .benefits li.is-visible > div { opacity: 1; translate: 0 0; }

  .js .caps-group li:nth-child(2) { transition-delay: 60ms; }
  .js .caps-group li:nth-child(3) { transition-delay: 120ms; }
  .js .caps-group li:nth-child(4) { transition-delay: 180ms; }
  .js .caps-group li:nth-child(5) { transition-delay: 240ms; }
  .js .caps-group li:nth-child(6) { transition-delay: 300ms; }

  /* Opened accordion items fall into place */
  .bar[open] .bar-items li,
  .bar[open] .bar-link { animation: rise .55s var(--ease-expo) both; }

  .bar[open] .bar-items li:nth-child(2) { animation-delay: 40ms; }
  .bar[open] .bar-items li:nth-child(3) { animation-delay: 80ms; }
  .bar[open] .bar-items li:nth-child(4) { animation-delay: 120ms; }
  .bar[open] .bar-link { animation-delay: 160ms; }

  /* The footer lettering writes itself, as on the banner */
  .js .footer-word {
    clip-path: inset(0 100% 0 0);
    filter: blur(8px);
    transition: clip-path 1.4s var(--ease-in-out) .15s, filter 1s var(--ease-out) .15s;
  }

  .js .footer-logo.is-visible .footer-word { clip-path: inset(0 0 0 0); filter: blur(0); }

  .js .footer-mark {
    opacity: 0;
    transform: rotate(-90deg) scale(.8);
    transition: opacity .6s var(--ease-out), transform 1.4s var(--ease-expo);
  }

  .js .footer-logo.is-visible .footer-mark { opacity: 1; transform: none; }

  .ticker-track { animation: ticker 42s linear infinite; }

  .ticker:hover .ticker-track { animation-play-state: paused; }

  @keyframes ticker {
    to { transform: translateX(-50%); }
  }

  .js .tip::before { transform: scaleX(0); }

  .js .tip.is-visible::before { transform: scaleX(.16); transition-delay: calc(var(--d, 0ms) + .3s); }

  @media (hover: hover) and (pointer: fine) {
    .js .tip.is-visible:hover::before { transform: scaleX(1); transition-delay: 0s; }
  }

  .status.is-open .status-dot::after { animation: ping 2.4s var(--ease-out) infinite; }

  @keyframes ping {
    0% { transform: scale(1); opacity: .55; }
    70%, 100% { transform: scale(2.8); opacity: 0; }
  }

  /* Images open from the bottom edge while settling from a slight zoom */
  .js .reveal-img img {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.18);
    transition: clip-path 1.2s var(--ease-expo) var(--d, 0ms), transform 1.6s var(--ease-expo) var(--d, 0ms);
  }

  .js .reveal-img.is-visible img { clip-path: inset(0); transform: none; }

  /* Banner intro: the photo opens from a horizontal slit, the mark draws
     itself, the letters rise out of their line, then the rest follows. */
  .js .banner-media {
    animation: slit 1.5s var(--ease-in-out) both;
  }

  .js .banner-media img {
    animation: settle 2.6s var(--ease-expo) both;
    will-change: transform;
  }

  .js .banner-shade { animation: fade 1.2s ease .2s both; }

  .js .mark-c {
    stroke-dasharray: 1;
    animation: draw 1.3s var(--ease-in-out) .55s both;
  }

  .js .mark-chev {
    stroke-dasharray: 1;
    animation: draw .8s var(--ease-out) 1.2s both;
  }

  /* The lettering wipes in from the left, coming into focus */
  .js .wordmark {
    animation: wipe 1.3s var(--ease-in-out) .75s both;
  }

  @keyframes wipe {
    from { clip-path: inset(0 100% 0 0); filter: blur(10px); opacity: .4; }
    60% { filter: blur(0); opacity: 1; }
    to { clip-path: inset(0 0 0 0); filter: blur(0); opacity: 1; }
  }

  .js .banner-sub { animation: rise 1s var(--ease-expo) 1.65s both; }

  .js .banner-scroll { animation: fade .8s ease 1.8s both; }

  .js .banner-scroll span::after { animation: drip 2.2s var(--ease-in-out) 2.2s infinite; }

  @keyframes slit {
    from { clip-path: inset(49.5% 0 49.5% 0); }
    to { clip-path: inset(0); }
  }

  @keyframes settle {
    from { transform: scale(1.3); }
    to { transform: none; }
  }

  @keyframes draw {
    0% { stroke-dashoffset: 1; opacity: 0; }
    12% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes drip {
    0% { transform: translateY(-100%); }
    55% { transform: translateY(0); }
    100% { transform: translateY(100%); }
  }

  /* Scroll-linked, run by the compositor where supported: the logo lifts
     away and the shade clears, leaving the real sign on screen. */
  @supports (animation-timeline: scroll()) {
    .js .banner-content {
      animation: lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 30vh;
    }

    .js .banner-media {
      animation: slit 1.5s var(--ease-in-out) both, drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 100vh;
    }

    .js .banner-scroll {
      animation: fade .8s ease 1.8s both, vanish linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 20vh;
    }

    .wide-photo img {
      animation: pan linear both;
      animation-timeline: view();
    }

    /* Navy fields open from a card to the full screen width as they arrive */
    .section-navy,
    .site-footer {
      animation: widen linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }

    @keyframes widen {
      from { clip-path: inset(0 var(--gutter) round 28px); }
      to { clip-path: inset(0 0 round 0); }
    }

    /* Photos drift inside their frames */
    .step-photo img {
      animation: inner-drift linear both;
      animation-timeline: view();
    }

    @keyframes inner-drift {
      from { translate: 0 -5%; scale: 1.12; }
      to { translate: 0 5%; scale: 1.12; }
    }

    /* Each step dot fills as the line reaches it */
    .step::before {
      animation: dot-fill linear both;
      animation-timeline: view();
      animation-range: entry 40% entry 90%;
    }

    @keyframes dot-fill {
      to { background: var(--red); }
    }

    /* The wide photo starts inset and opens to both edges */
    .wide-photo {
      animation: widen-photo linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    @keyframes widen-photo {
      from { clip-path: inset(0 var(--gutter) round var(--radius)); }
      to { clip-path: inset(0 0 round 0); }
    }

    /* The repair line draws as the three steps scroll through */
    .process { view-timeline: --process block; }

    .process::after {
      animation: grow-x linear both;
      animation-timeline: --process;
      animation-range: entry 10% cover 50%;
    }

    @media (max-width: 860px) {
      .process::after { animation-name: grow-y; animation-range: entry 0% cover 70%; }
    }

    @keyframes grow-x {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    @keyframes grow-y {
      from { transform: scaleY(0); }
      to { transform: scaleY(1); }
    }

    .js .wide-photo.reveal-img img { transform: none; transition-property: clip-path; }

    @keyframes lift {
      to { opacity: 0; transform: translateY(6vh) scale(.98); }
    }

    @keyframes drift {
      to { transform: translateY(22vh); }
    }

    @keyframes vanish {
      to { opacity: 0; }
    }

    @keyframes pan {
      from { translate: 0 -6%; scale: 1.14; }
      to { translate: 0 6%; scale: 1.14; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track { width: auto; }
  .ticker-group { flex-wrap: wrap; row-gap: 16px; white-space: normal; padding-inline: var(--gutter); }
  .ticker-group + .ticker-group { display: none; }
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
