/* Taller Los Aromos (negocio ficticio) — demo de ANVAR Studio */
:root {
  --asfalto: #262B2F;
  --asfalto-2: #343A3F;
  --asfalto-3: #4A5257;
  --hormigon: #E8E8E3;
  --hormigon-2: #DCDCD5;
  --papel: #FBFBF8;
  --blanco: #FFFFFF;
  --tinta: #1F2427;
  --tinta-2: #565E63;
  --tinta-3: #656C70;
  --linea: #D3D2CB;
  --linea-2: #E6E5DF;
  --freno: #C4321C;
  --freno-press: #A82A17;
  --freno-soft: #F8E3DE;
  --ambar: #F2B01E;
  --ambar-press: #DE9E0C;
  --ambar-soft: #FCEFCB;
  --ok: #2E7D4A;
  --ok-soft: #E2F1E6;
  --studio: #16163A;
  --studio-cobalt: #3346F0;
  --studio-accent: #AEB7FF;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-panel: 14px;
  --r-card: 10px;
  --r-btn: 8px;
  --r-field: 8px;

  --sh-1: 0 1px 1px rgba(31, 36, 39, .06), 0 2px 6px -2px rgba(31, 36, 39, .08);
  --sh-2: 0 1px 2px rgba(31, 36, 39, .06), 0 8px 20px -10px rgba(31, 36, 39, .22), 0 24px 48px -28px rgba(31, 36, 39, .30);
  --sh-ticket: 0 1px 2px rgba(31, 36, 39, .08), 0 14px 30px -14px rgba(31, 36, 39, .34);

  --gutter: clamp(16px, 4vw, 40px);
  --top-h: 108px;
  --ease-out: cubic-bezier(.22, .8, .32, 1);
  --spring: cubic-bezier(.2, .9, .3, 1.2);

  --z-fab: 20;
  --z-top: 30;
  --z-skip: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--freno); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .sec-dark :focus-visible, .footer :focus-visible { outline-color: var(--ambar); }
.studio :focus-visible, .demo-strip :focus-visible { outline-color: var(--studio-accent); }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: var(--z-skip);
  background: var(--asfalto); color: #fff; padding: 12px 18px; border-radius: var(--r-btn);
  text-decoration: none; font-weight: 600;
  transform: translateY(-180%);
  transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px;
  border: 0; border-radius: var(--r-btn);
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn-sm { --bh: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { --bh: 54px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-red {
  background: var(--freno); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(31, 36, 39, .25), 0 6px 14px -8px rgba(196, 50, 28, .8);
}
.btn-amber {
  background: var(--ambar); color: var(--tinta);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(31, 36, 39, .2);
}
.btn-dark { background: var(--asfalto); color: #fff; box-shadow: 0 1px 2px rgba(31, 36, 39, .3); }
.btn-ghost { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
@media (hover: hover) {
  .btn-red:hover { background: var(--freno-press); }
  .btn-amber:hover { background: var(--ambar-press); }
  .btn-dark:hover { background: var(--asfalto-2); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--tinta-3); }
}

/* ---------- Franja demo + header ---------- */
.topbar { position: sticky; top: 0; z-index: var(--z-top); }
.demo-strip {
  background: var(--studio); color: #fff;
  font-size: 13.5px; line-height: 1.35; text-align: center;
  padding: 7px var(--gutter);
}
.demo-strip p { max-width: 60em; margin-inline: auto; }
.demo-strip-txt { margin-right: 10px; }
.demo-strip a {
  color: var(--studio-accent); font-weight: 600; text-underline-offset: 3px;
  padding-block: 4px; margin-block: -4px;
}
@media (hover: hover) { .demo-strip a:hover { color: #fff; } }

.header {
  background: rgba(251, 251, 248, .96);
  box-shadow: 0 1px 0 var(--linea-2), 0 6px 16px -14px rgba(31, 36, 39, .5);
}
@supports (backdrop-filter: blur(8px)) {
  .header { background: rgba(251, 251, 248, .86); backdrop-filter: saturate(1.4) blur(10px); }
}
.header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { flex: none; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-a { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .01em; line-height: .95; }
.logo-b { font-size: 13px; font-weight: 600; color: var(--tinta-2); margin-top: 3px; }

.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--tinta-2);
  border-radius: var(--r-btn);
  transition: color .15s ease, background-color .15s ease;
}
@media (hover: hover) { .nav a:hover { color: var(--tinta); background: var(--hormigon); } }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--r-btn); position: relative;
}
.menu-ico { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; }
.menu-ico i { display: block; width: 22px; height: 2.5px; background: var(--tinta); border-radius: 2px; transition: transform .2s var(--ease-out); }
.menu-btn[aria-expanded="true"] .menu-ico i:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--papel); box-shadow: 0 12px 24px -12px rgba(31, 36, 39, .35), 0 1px 0 var(--linea-2) inset;
    padding: 8px var(--gutter) 16px;
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .18s ease, transform .18s var(--ease-out), visibility 0s linear .18s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .18s ease, transform .2s var(--ease-out), visibility 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { width: 100%; min-height: 50px; font-size: 17px; color: var(--tinta); }
  .header { position: relative; }
}
@media (max-width: 640px) {
  .demo-strip { font-size: 13px; padding-block: 6px; }
  .header-in { min-height: 60px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-a { font-size: 24px; }
  .logo-b { font-size: 12.5px; }
  .hero { padding-top: 32px; }
}
@media (max-width: 400px) {
  /* solo el ícono a la vista; el texto sigue para lectores de pantalla (con display:none el botón quedaba sin nombre) */
  .header-cta .btn span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .header-cta .btn { padding: 0 12px; }
  .header-in { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--asfalto);
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .075) 1.6px, transparent 2.2px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  color: #fff;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-place {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; color: var(--ambar);
}
.hero-place::before { content: ""; width: 26px; height: 4px; background: var(--ambar); border-radius: 2px; }
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.1rem, 7.6vw, 6.2rem); line-height: .9; letter-spacing: -.005em;
  margin-top: 16px; max-width: 11ch;
}
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19.5px); color: #D7DADB; max-width: 34em; }
.promesas { margin-top: 30px; display: grid; gap: 12px; }
.promesas li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16.5px; }
.promesas .i { color: var(--ambar); }

.ficha {
  background: var(--papel); color: var(--tinta);
  border-radius: var(--r-panel); padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 30px 60px -30px rgba(0, 0, 0, .7);
  position: relative;
}
.ficha::before {
  /* cinta de marcaje */
  content: ""; position: absolute; left: 24px; right: 24px; top: -6px; height: 12px; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, var(--ambar) 0 12px, var(--asfalto) 12px 24px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.ficha-t { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; margin-bottom: 18px; }
.ficha .field + .field { margin-top: 16px; }
.ficha .btn { margin-top: 22px; }
.ficha-foot { margin-top: 14px; font-size: 14px; color: var(--tinta-2); text-align: center; }

/* ---------- Campos ---------- */
.field label, .field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.opt { font-weight: 500; color: var(--tinta-3); }
.help { margin-top: 7px; font-size: 14px; color: var(--tinta-2); }
.err { margin-top: 7px; font-size: 14.5px; font-weight: 600; color: var(--freno); display: flex; gap: 6px; align-items: flex-start; }
.err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--freno); color: #fff; font-size: 12px; font-weight: 800; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2.5px solid var(--tinta-2); border-bottom: 2.5px solid var(--tinta-2); transform: rotate(45deg);
  pointer-events: none;
}
select, textarea, .track-form input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 17px; line-height: 1.35;
  background: var(--blanco); border: 0; border-radius: var(--r-field);
  box-shadow: inset 0 0 0 1.5px var(--linea);
  transition: box-shadow .15s ease;
}
select { appearance: none; padding-right: 44px; cursor: pointer; }
textarea { resize: vertical; min-height: 76px; }
select:focus-visible, textarea:focus-visible, .track-form input:focus-visible { outline: none; box-shadow: inset 0 0 0 2.5px var(--tinta); }
[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--freno) !important; }

/* Patente chilena */
.plate {
  position: relative; display: block;
  background: var(--blanco);
  border-radius: 9px;
  box-shadow: inset 0 0 0 3px var(--tinta), inset 0 0 0 5px var(--blanco), inset 0 0 0 6px #B9B8B0, 0 2px 0 #B9B8B0;
  padding: 18px 30px 8px;
  transition: box-shadow .15s ease;
}
.plate-top {
  position: absolute; top: 6px; left: 0; right: 0; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--tinta-2);
  padding-left: .32em;
}
.plate-input, .plate-txt {
  display: block; width: 100%; border: 0; background: transparent; padding: 0;
  text-align: center; font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 5vw, 50px); line-height: 1.05; letter-spacing: .06em;
  color: var(--tinta); text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.plate-input::placeholder { color: #C3C3BB; }
.plate-input:focus { outline: none; }
.plate:focus-within { box-shadow: inset 0 0 0 3px var(--tinta), inset 0 0 0 5px var(--blanco), inset 0 0 0 6px #B9B8B0, 0 2px 0 #B9B8B0, 0 0 0 3px var(--papel), 0 0 0 6px var(--freno); }
.plate.is-invalid { box-shadow: inset 0 0 0 3px var(--freno), inset 0 0 0 5px var(--blanco), inset 0 0 0 6px #B9B8B0, 0 2px 0 #B9B8B0; }
.plate-bolt { position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -1px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #A9A8A0 70%); box-shadow: 0 0 0 1px #9A998F; }
.plate-bolt.l { left: 12px; }
.plate-bolt.r { right: 12px; }
.plate-sm { padding: 16px 26px 6px; }
.plate-sm .plate-input, .plate-sm .plate-txt { font-size: 38px; }
.plate-xs { padding: 13px 12px 3px; border-radius: 7px; min-width: 112px; }
.plate-xs .plate-top { top: 4px; font-size: 8px; }
.plate-xs .plate-txt { font-size: 26px; letter-spacing: .04em; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-concrete { background: var(--hormigon); }
.sec-dark { background: var(--asfalto); color: #fff; }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 640px; }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.sec-head-row > div:first-child { max-width: 600px; }
.sec h2, .faq-wrap h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: .95; letter-spacing: 0;
}
.lead { margin-top: 14px; font-size: 18px; color: var(--tinta-2); max-width: 36em; }
.sec-dark .lead { color: #C9CDCF; }

/* Selector de tamaño */
.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--hormigon); border-radius: 11px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  min-height: 42px; padding: 0 16px; border: 0; background: transparent; cursor: pointer;
  border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--tinta-2); white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg button[aria-checked="true"] { background: var(--blanco); color: var(--tinta); box-shadow: 0 1px 2px rgba(31, 36, 39, .14), 0 2px 6px -2px rgba(31, 36, 39, .16); }
@media (hover: hover) { .seg button:not([aria-checked="true"]):hover { color: var(--tinta); } }

.board-ctx { font-size: 15px; font-weight: 600; color: var(--tinta-2); margin-bottom: 10px; min-height: 1.6em; }
.board { border-top: 3px solid var(--tinta); }
.board-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 160px 150px; gap: 8px 24px; align-items: center;
  padding: 20px 0; box-shadow: 0 1px 0 var(--linea);
}
.board-name { font-weight: 700; font-size: 19px; line-height: 1.25; }
.board-det { margin-top: 4px; font-size: 15.5px; color: var(--tinta-2); max-width: 46em; }
.board-time { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 500; color: var(--tinta-2); }
.board-time .i { width: 18px; height: 18px; }
.board-price { text-align: right; line-height: 1; }
.board-from { display: block; font-size: 13px; font-weight: 600; color: var(--tinta-3); margin-bottom: 4px; min-height: 1em; }
.board-amt { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: .01em; }
.board-add { justify-self: end; min-width: 140px; }
.board-add[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1.5px rgba(46, 125, 74, .4); }
.board-add .chk { display: none; }
.board-add[aria-pressed="true"] .chk { display: block; }

/* ---------- Cotizador ---------- */
.cot { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(20px, 3vw, 36px); align-items: start; }
.cot-steps { display: grid; gap: 16px; }
.step {
  background: var(--papel); border-radius: var(--r-panel); padding: clamp(18px, 2.6vw, 28px);
  box-shadow: var(--sh-1);
}
.step legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; margin-bottom: 18px;
}
.step legend + * { clear: both; }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 50%; background: var(--asfalto); color: var(--ambar);
  font-family: var(--display); font-size: 19px; font-weight: 800;
}
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; align-items: start; }
.field-stack { display: grid; gap: 14px; }

.checks { display: grid; gap: 8px; margin-bottom: 18px; }
.chk-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 13px 16px; min-height: 58px; border-radius: var(--r-card);
  background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--linea-2);
  cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease;
}
.chk-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk-box {
  width: 26px; height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--tinta-3);
  display: grid; place-items: center; transition: background-color .15s ease, box-shadow .15s ease;
}
.chk-box svg { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .2s var(--spring); }
.chk-row input:checked ~ .chk-box { background: var(--asfalto); box-shadow: none; color: #fff; }
.chk-row input:checked ~ .chk-box svg { opacity: 1; transform: none; }
.chk-row:has(input:checked) { box-shadow: inset 0 0 0 2px var(--asfalto); }
.chk-row:has(input:focus-visible) { outline: 3px solid var(--freno); outline-offset: 2px; }
.chk-name { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.chk-time { display: block; font-size: 14px; font-weight: 500; color: var(--tinta-2); }
.chk-price { font-weight: 700; font-size: 17px; }
@media (hover: hover) { .chk-row:hover { box-shadow: inset 0 0 0 1.5px var(--tinta-3); } .chk-row:has(input:checked):hover { box-shadow: inset 0 0 0 2px var(--asfalto); } }

.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mod {
  position: relative; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 16px; border-radius: var(--r-card); background: var(--blanco);
  box-shadow: inset 0 0 0 1.5px var(--linea-2); cursor: pointer;
  transition: box-shadow .15s ease;
}
.mod input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mod:has(input:checked) { box-shadow: inset 0 0 0 2px var(--asfalto); }
.mod:has(input:focus-visible) { outline: 3px solid var(--freno); outline-offset: 2px; }
.mod-body { display: grid; gap: 2px; }
.mod-t { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.mod-d { font-size: 14.5px; color: var(--tinta-2); line-height: 1.4; }
.mod-p { font-weight: 700; white-space: nowrap; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 6px; margin: -3px -3px 10px; scrollbar-width: thin; }
.day {
  flex: none; display: grid; justify-items: center; gap: 0; min-width: 70px; padding: 9px 10px;
  border: 0; border-radius: var(--r-card); background: var(--blanco); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--linea-2);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.day-w { font-size: 13.5px; font-weight: 600; color: var(--tinta-2); line-height: 1.2; }
.day-n { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.day[aria-checked="true"] { background: var(--asfalto); color: #fff; box-shadow: none; }
.day[aria-checked="true"] .day-w { color: var(--ambar); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  min-height: 48px; border: 0; border-radius: var(--r-btn); background: var(--blanco); cursor: pointer;
  font-weight: 700; font-size: 16.5px; box-shadow: inset 0 0 0 1.5px var(--linea-2);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.slot[aria-checked="true"] { background: var(--ambar); box-shadow: inset 0 0 0 2px var(--ambar-press); }
.slot[aria-disabled="true"] { cursor: not-allowed; color: var(--tinta-3); background: transparent; text-decoration: line-through; text-decoration-thickness: 2px; box-shadow: inset 0 0 0 1.5px var(--linea-2); }
@media (hover: hover) {
  .day:not([aria-checked="true"]):hover, .slot:not([aria-checked="true"]):not([aria-disabled="true"]):hover { box-shadow: inset 0 0 0 1.5px var(--tinta-3); }
}
.slot-note { margin-top: 10px; font-size: 14px; color: var(--tinta-2); }

/* Orden de trabajo */
.ticket-col { position: sticky; top: calc(var(--top-h) + 16px); }
.ticket {
  --perf: radial-gradient(circle at 10px 0, transparent 6px, #000 6.5px);
  background: var(--blanco); border-radius: 4px 4px 0 0; padding: 26px 24px 30px;
  box-shadow: var(--sh-ticket);
  position: relative;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 10px 10px, transparent 6px, #000 6.5px) bottom / 20px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 10px 10px, transparent 6px, #000 6.5px) bottom / 20px 10px repeat-x;
}
.ticket:focus { outline: none; }
.ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(-45deg, var(--ambar) 0 10px, var(--asfalto) 10px 20px);
}
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ticket h3 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.ticket-no { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--tinta-2); }
.ticket-car { margin-top: 16px; padding-bottom: 14px; font-weight: 600; font-size: 16px; border-bottom: 2px dashed var(--linea); }
.ticket-car.is-empty { color: var(--tinta-3); font-weight: 500; }

.lines { padding: 10px 0; min-height: 64px; }
.line {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 15.5px;
  animation: line-in .22s var(--ease-out);
}
.line-n { font-weight: 500; }
.line-dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #C9C8C1; transform: translateY(-4px); }
.line-p { font-weight: 700; white-space: nowrap; }
.line-empty { color: var(--tinta-3); font-size: 15px; padding: 14px 0; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }

.ticket-meta { margin: 0; padding: 12px 0; border-top: 2px dashed var(--linea); display: grid; gap: 6px; }
.ticket-meta div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.ticket-meta dt { color: var(--tinta-2); }
.ticket-meta dd { margin: 0; font-weight: 600; text-align: right; }
.ticket-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 14px; border-top: 3px solid var(--tinta);
}
.ticket-total span { font-weight: 700; font-size: 17px; }
.ticket-total strong { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; letter-spacing: .01em; }
.ticket-abono { margin-top: 8px; font-size: 14.5px; color: var(--tinta-2); }
.ticket-abono strong { color: var(--tinta); }
.ticket-actions { display: grid; gap: 10px; margin-top: 20px; }
.ticket-msg { margin-top: 12px; font-size: 15px; font-weight: 600; min-height: 0; }
.ticket-msg:empty { display: none; }
.ticket-msg.is-warn { color: var(--freno); }
.ticket-msg.is-ok { color: var(--ok); }
.ticket-fine { margin-top: 14px; font-size: 13.5px; color: var(--tinta-2); line-height: 1.45; }
.ticket.is-flash { animation: flash .6s var(--ease-out); }
@keyframes flash { 30% { box-shadow: var(--sh-ticket), 0 0 0 4px var(--ambar); } }

.mbar { display: none; }

/* ---------- Cómo trabajamos ---------- */
.como { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: c; }
.como li { padding: 0 24px 0 0; position: relative; }
.como li + li { padding-left: 24px; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14); }
.como-n { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .9; color: var(--ambar); }
.como h3 { margin-top: 14px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.como p { margin-top: 8px; color: #C9CDCF; font-size: 16px; }

/* ---------- Seguimiento ---------- */
.track-form { display: flex; gap: 8px; flex-wrap: wrap; width: min(100%, 380px); }
.track-form input { flex: 1; min-width: 0; width: auto; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.track-form .err { flex-basis: 100%; }
.track {
  background: var(--blanco); border-radius: var(--r-panel); box-shadow: var(--sh-2);
  overflow: hidden;
}
.track-car { display: flex; align-items: center; gap: 18px 22px; padding: 20px clamp(18px, 3vw, 30px); background: var(--hormigon); flex-wrap: wrap; }
.track-car .plate { min-width: 168px; }
.track-model { font-weight: 700; font-size: 19px; line-height: 1.25; }
.track-order { font-size: 15px; color: var(--tinta-2); }
.track-sim { margin-left: auto; }
.track-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.stages { padding: clamp(20px, 3vw, 32px); position: relative; }
.stage { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-bottom: 20px; position: relative; }
.stage:last-child { padding-bottom: 0; }
.stage::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--linea); }
.stage:last-child::before { display: none; }
.stage.is-done::before { background: var(--asfalto); }
.stage-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blanco); box-shadow: inset 0 0 0 2px var(--linea); position: relative; z-index: 1; }
.stage-dot svg { width: 14px; height: 14px; }
.stage.is-done .stage-dot { background: var(--asfalto); box-shadow: none; color: #fff; }
.stage.is-now .stage-dot { background: var(--ambar); box-shadow: 0 0 0 5px var(--ambar-soft); }
.stage.is-now .stage-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tinta); }
.stage-name { font-weight: 600; font-size: 16.5px; line-height: 1.5; color: var(--tinta-3); }
.stage.is-done .stage-name { color: var(--tinta); }
.stage.is-now .stage-name { color: var(--tinta); font-weight: 700; }
.stage-time { font-size: 14px; color: var(--tinta-2); line-height: 1.7; }

.stage-card { padding: clamp(20px, 3vw, 32px); box-shadow: inset 1px 0 0 var(--linea-2); display: grid; gap: 18px; align-content: start; }
.sc-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; padding: 5px 12px; border-radius: 999px; background: var(--ambar-soft); color: #6E4C00; justify-self: start; }
.sc-status.is-ok { background: var(--ok-soft); color: var(--ok); }
.sc-title { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; }
.sc-note { color: var(--tinta-2); font-size: 16.5px; }
.sc-note strong { color: var(--tinta); }
.sc-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sc-photo { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--hormigon); box-shadow: inset 0 0 0 1px rgba(31, 36, 39, .08); }
.sc-photo svg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.sc-photo figcaption { font-size: 13px; color: var(--tinta-2); padding: 6px 10px 8px; line-height: 1.3; background: var(--papel); }
.sc-approve {
  border-radius: var(--r-card); padding: 18px; background: var(--ambar-soft);
  box-shadow: inset 4px 0 0 var(--ambar);
  display: grid; gap: 12px;
}
.sc-approve-t { font-weight: 700; font-size: 17px; }
.sc-approve-p { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.sc-approve-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-wa { display: grid; gap: 6px; }
.sc-wa-t { font-size: 13.5px; font-weight: 600; color: var(--tinta-2); }
.sc-wa-msg {
  justify-self: start; max-width: 34em;
  background: #E3F2E6; color: var(--tinta); padding: 10px 14px; border-radius: 4px 14px 14px 14px;
  font-size: 15.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(31, 36, 39, .12);
}
.stage-card > * { animation: line-in .24s var(--ease-out) both; }
.stage-card > *:nth-child(2) { animation-delay: .04s; }
.stage-card > *:nth-child(3) { animation-delay: .08s; }
.stage-card > *:nth-child(4) { animation-delay: .12s; }
.stage-card > *:nth-child(5) { animation-delay: .16s; }

/* ---------- Reseñas de ejemplo ---------- */
.tag-ej {
  display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--asfalto); color: #fff; font-size: 14px; font-weight: 600; vertical-align: 1px;
}
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { background: var(--papel); border-radius: var(--r-panel); padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh-1); }
.stars { color: #A36C00; letter-spacing: .12em; font-size: 18px; line-height: 1; }
.star-off { color: #8B8B8B; } /* contraste no textual ≥ 3:1; la nota también va en el aria-label */
.review blockquote { margin: 0; font-size: 17px; flex: 1; }
.review-by { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--tinta-2); }
.ini { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--hormigon-2); color: var(--tinta); font-size: 13px; font-weight: 700; flex: none; }

/* ---------- Zona ---------- */
.zona { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.zona-list { margin: 28px 0 0; display: grid; gap: 0; }
.zona-list div { padding: 14px 0; box-shadow: 0 -1px 0 var(--linea) inset; }
.zona-list div:first-child { box-shadow: 0 -1px 0 var(--linea) inset, 0 1px 0 var(--linea) inset; }
.zona-list dt { font-weight: 700; font-size: 16.5px; }
.zona-list dd { margin: 2px 0 0; color: var(--tinta-2); font-size: 16px; }
.mapa { margin: 0; }
.mapa svg { width: 100%; height: auto; border-radius: var(--r-panel); box-shadow: 0 0 0 1px rgba(31, 36, 39, .08); }
.mapa figcaption { margin-top: 10px; font-size: 14px; color: var(--tinta-2); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px clamp(28px, 5vw, 64px); align-items: start; }
.faq { border-top: 3px solid var(--tinta); }
.faq details { box-shadow: 0 -1px 0 #C9C8C1 inset; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 18px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--tinta), var(--tinta)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--tinta), var(--tinta)) center / 2.5px 12px no-repeat,
    var(--papel);
  transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 20px 0; color: var(--tinta-2); font-size: 16.5px; }
.faq details[open] p { animation: line-in .22s var(--ease-out); }

/* ---------- CTA ANVAR Studio ---------- */
.studio { background: var(--studio); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.studio-in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px 56px; align-items: end; }
.studio-from { color: var(--studio-accent); font-weight: 600; font-size: 16px; }
.studio h2 { margin-top: 10px; font-family: var(--sans); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; max-width: 26ch; }
.studio-sub { margin-top: 16px; color: #C9CBE6; font-size: 17.5px; max-width: 38em; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-studio { background: var(--studio-cobalt); color: #fff; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -8px rgba(51, 70, 240, .8); }
.btn-studio-ghost { background: transparent; color: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
@media (hover: hover) {
  .btn-studio:hover { background: #2B3BD6; }
  .btn-studio-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
}

/* ---------- Footer ---------- */
.footer { background: var(--asfalto); color: #C9CDCF; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer-in { display: grid; gap: 8px; }
.footer strong { color: #fff; }
.footer a { color: #fff; text-underline-offset: 3px; }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: var(--z-fab);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--freno); color: #fff;
  box-shadow: 0 2px 4px rgba(31, 36, 39, .25), 0 12px 24px -10px rgba(196, 50, 28, .7);
  transition: transform .2s var(--ease-out), opacity .2s ease, background-color .15s ease;
}
.fab:active { transform: scale(.95); }
.fab.is-hidden { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
@media (hover: hover) { .fab:hover { background: var(--freno-press); } }

/* ---------- Modal de pago simulado ---------- */
.pay {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 16px; background: var(--blanco); color: var(--tinta);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
  overflow: auto;
}
.pay::backdrop { background: rgba(31, 36, 39, .62); }
.pay[open] { animation: pay-in .24s var(--ease-out); }
.pay[open]::backdrop { animation: fade .2s ease; }
@keyframes pay-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.pay-in { padding: 22px 22px 24px; }
.pay-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.pay-kicker { display: inline-block; font-size: 13.5px; font-weight: 700; color: #6E4C00; background: var(--ambar-soft); padding: 3px 10px; border-radius: 999px; }
.pay h2 { margin-top: 10px; font-family: var(--sans); font-weight: 700; font-size: 23px; line-height: 1.2; }
.pay-x { flex: none; width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--tinta-2); }
@media (hover: hover) { .pay-x:hover { background: var(--hormigon); color: var(--tinta); } }
.pay-sheet { border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--linea-2); padding: 6px 16px 16px; margin-bottom: 16px; }
.pay-det { margin: 0; }
.pay-det div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; box-shadow: 0 -1px 0 var(--linea-2) inset; font-size: 15.5px; }
.pay-det dt { color: var(--tinta-2); }
.pay-det dd { margin: 0; font-weight: 600; text-align: right; }
.pay-amount dd { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; }
.pay-amount { align-items: center; }
.pay-methods { margin-top: 14px; display: grid; gap: 8px; }
.pay-methods legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.pm { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--linea-2); cursor: pointer; font-weight: 600; font-size: 15.5px; }
.pm input { width: 20px; height: 20px; accent-color: var(--asfalto); margin: 0; }
.pm:has(input:checked) { box-shadow: inset 0 0 0 2px var(--asfalto); }
.pay-fine { margin-top: 12px; font-size: 13.5px; color: var(--tinta-2); line-height: 1.45; }
.pay-ok { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 6px 0 18px; }
.pay-ok svg { animation: pop .38s var(--spring); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.pay-ok-t { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.pay-ok-t .tnum { background: var(--ambar); padding: 0 8px; border-radius: 6px; }
.pay-ok-d { color: var(--tinta-2); font-size: 16px; }
.pay-wa { display: grid; gap: 6px; margin-bottom: 18px; }
.pay-wa-t { font-size: 13.5px; font-weight: 600; color: var(--tinta-2); }
.pay-wa-msg { background: #E3F2E6; padding: 10px 14px; border-radius: 4px 14px 14px 14px; font-size: 15.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(31, 36, 39, .12); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .board-row { grid-template-columns: minmax(0, 1fr) 150px 140px; }
  .board-time { grid-column: 1; grid-row: 2; }
  .board-price { grid-column: 2; grid-row: 1 / span 2; }
  .board-add { grid-column: 3; grid-row: 1 / span 2; }
  .cot { grid-template-columns: minmax(0, 1fr) 350px; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .cot { grid-template-columns: 1fr; }
  .ticket-col { position: static; }
  .como { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .como li:nth-child(3) { padding-left: 0; box-shadow: none; }
  .track-body { grid-template-columns: 1fr; }
  .stage-card { box-shadow: inset 0 1px 0 var(--linea-2); }
  .reviews { grid-template-columns: 1fr; }
  .zona { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .studio-in { grid-template-columns: 1fr; align-items: start; }
  .mbar {
    display: flex; position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 18px; border-radius: 12px; background: var(--blanco);
    box-shadow: 0 0 0 1px rgba(31, 36, 39, .08), 0 10px 28px -10px rgba(31, 36, 39, .45);
  }
  .mbar-l { font-size: 15px; font-weight: 600; color: var(--tinta-2); display: flex; align-items: baseline; gap: 10px; }
  .mbar-l strong { font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--tinta); line-height: 1; }
}
@media (max-width: 640px) {
  .board-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 14px; padding: 18px 0; align-items: end; }
  .board-info { grid-column: 1 / -1; }
  .board-time { grid-column: 1; grid-row: auto; padding-bottom: 10px; }
  .board-price { grid-column: 2; grid-row: auto; text-align: right; }
  .board-add { grid-column: 3; grid-row: auto; min-width: 112px; padding: 0 12px; }
  .board-amt { font-size: 30px; }
  .grid-2 { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; }
  .chk-row { grid-template-columns: 26px minmax(0, 1fr); }
  .chk-price { grid-column: 2; }
  .como { grid-template-columns: 1fr; gap: 28px; }
  .como li, .como li + li { padding: 0 0 0 0; box-shadow: none; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
  .como-n { grid-row: span 2; font-size: 52px; }
  .como h3 { margin-top: 2px; }
  .track-sim { margin-left: 0; width: 100%; }
  .sc-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sc-photo figcaption { font-size: 12px; padding: 5px 7px 6px; }
  .track-form { width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1 0 auto; padding: 0 12px; }
  .ticket { padding: 24px 18px 28px; }
  .faq details p { padding-right: 0; }
  .pay-in { padding: 18px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Etiqueta de pieza a medida (no incluida en los planes estándar de ANVAR Studio) */
.tag-medida {
  display: inline-flex; align-items: center; vertical-align: middle; margin-left: 10px;
  min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: #E6E9FE; color: var(--studio); font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0; text-transform: none; line-height: 1;
}
