/* Phono Disseny — plano técnico de taller.
   Azul de plano + blanco de línea, Archivo expandido como rotulación de plano, Plex Mono para cotas y resguardos. */
:root {
  --bp: #1C3F94;            /* azul de plano */
  --bp-deep: #163377;
  --bp-line: rgba(255, 255, 255, .88);
  --paper: #F2F4F8;
  --card: #FFFFFF;
  --raised: #E6EAF1;
  --ink: #111827;
  --ink-2: #3F4859;          /* 7:1 sobre el papel (AAA) */
  --muted: #5D6679;
  --hair: rgba(17, 24, 39, .09);
  --hair-2: rgba(17, 24, 39, .16);

  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);        /* ease-out fuerte */
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);    /* movimiento en pantalla */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* papel saliendo de la impresora */
  --gutter: clamp(16px, 4vw, 40px);
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
a { color: var(--bp); }
a, button { touch-action: manipulation; }
button, .btn, .options button { user-select: none; -webkit-user-select: none; }
iframe { display: block; }
:focus-visible { outline: 2px solid var(--bp); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .site-header:not(.on-light) :focus-visible { outline-color: #fff; }
.nowrap { white-space: nowrap; }

.wrap {
  width: min(1240px, 100%); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip {
  position: fixed; left: 8px; top: 8px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--ink); color: #fff; border-radius: 6px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .15s ease, transform .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--bp); color: #fff; }
.btn-light { background: #fff; color: var(--bp); }
.link-light { color: #fff; font-weight: 500; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.4); }

/* ---------- Cabecera: azul sobre el plano, papel después ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(var(--header) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bp);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.site-header.on-light { background: rgba(242, 244, 248, .92); color: var(--ink); border-color: var(--hair); backdrop-filter: saturate(1.4) blur(10px); }
.header-row { display: flex; align-items: center; gap: 32px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 17px; font-stretch: 112%; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark rect:first-child { fill: #fff; transition: fill .25s ease; }
.brand-mark .bar { fill: var(--bp); transition: fill .25s ease; }
.on-light .brand-mark rect:first-child { fill: var(--bp); }
.on-light .brand-mark .bar { fill: #fff; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: inherit; opacity: .78; text-decoration: none; font-size: 15px; transition: opacity .15s ease; }
.header-call { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; font: 500 15px/1 var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Hero: plano técnico ---------- */
.hero {
  position: relative;
  height: 280vh;                 /* recorrido del scroll que despieza el portátil */
  color: #fff;
  background-color: var(--bp);
  /* cuadrícula de plano: fina cada 24px, marcada cada 120px */
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.hero-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  padding-top: var(--header);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; width: min(1240px, 100%); }
.hero h1 {
  font-size: clamp(36px, 1rem + 3.2vw, 64px);
  font-stretch: 115%;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .h1-sub {
  margin-top: 20px; white-space: normal;
  font-size: 18px; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; font-weight: 500;
  color: #fff; max-width: 30rem;
}
.lede { margin-top: 24px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.8); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.hero-state { position: relative; margin-top: 48px; height: 20px; font: 400 13px/20px var(--mono); color: rgba(255,255,255,.7); }
.hero-state span { position: absolute; left: 0; top: 0; transition: opacity .3s ease, transform .3s var(--ease); }
.hero-state .state-open { opacity: 0; transform: translateY(6px); }
.hero.is-open .state-closed { opacity: 0; transform: translateY(-6px); }
.hero.is-open .state-open { opacity: 1; transform: none; }

.hero-art { position: relative; }
#laptop { display: block; width: 100%; height: auto; max-height: calc(100svh - var(--header) - 48px); margin-inline: auto; overflow: visible; }
#laptop .ln { fill: var(--bp); stroke: var(--bp-line); stroke-width: 1.25; stroke-linejoin: round; }
#laptop .ln-thin { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; }
#laptop .label line { stroke: rgba(255,255,255,.6); stroke-width: 1; }
#laptop .label circle { fill: #fff; }
#laptop .label text { font: 500 13px var(--mono); fill: #fff; }
#laptop .label { opacity: 0; }

/* Entrada: el plano se traza una vez al cargar, capa a capa */
.js #laptop.drawing .ln, .js #laptop.drawing .ln-thin {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1100ms var(--ease-io) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.js .hero-copy > * { animation: rise 600ms var(--ease) both; }
.js .hero-copy > :nth-child(1) { animation-delay: 80ms; }
.js .hero-copy > :nth-child(2) { animation-delay: 170ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 230ms; }
.js .hero-copy > :nth-child(4) { animation-delay: 900ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Secciones ---------- */
.section { padding-block: 112px; }
.section-title { font-size: clamp(30px, 1.2rem + 2vw, 48px); font-stretch: 118%; line-height: 1.05; letter-spacing: -0.03em; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 32rem; }

/* ---------- Mostrador: impresora de resguardos ---------- */
.counter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: start; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; max-width: 30rem; }
.options button {
  height: 44px; padding: 0 14px;
  font: 500 15px/1 var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hair-2);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s var(--ease);
}
.options button:active { transform: scale(.97); }
.options button[aria-selected="true"] { background: var(--bp); border-color: var(--bp); color: #fff; }
.options button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.printer { position: relative; }
.slot {
  position: relative; z-index: 2;
  height: 20px; margin-inline: -14px;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: inset 0 -7px 0 #000, 0 8px 18px -8px rgba(17,24,39,.5);
}
.paper { overflow: hidden; margin-top: -10px; padding: 0 12px 28px; margin-inline: -12px; }
.ticket {
  position: relative;
  background: var(--card);
  border-radius: 0 0 6px 6px;
  padding: 28px 24px 0;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  will-change: transform;
}
.ticket-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ticket-type { margin-top: 12px; font: 500 22px/1.25 var(--sans); font-stretch: 112%; letter-spacing: -0.01em; }
.ticket-fields { margin-top: 16px; }
.ticket-fields div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 9px 0; }
.ticket-fields div + div { border-top: 1px solid var(--hair); }
.ticket-fields dt { font-size: 12px; color: var(--muted); padding-top: 2px; }
.ticket-fields dd { font-size: 14px; line-height: 1.5; }
.ticket-stub {
  display: flex; justify-content: space-between; gap: 16px;
  margin: 16px -24px 0; padding: 14px 24px 16px;
  border-top: 2px dashed var(--hair-2);   /* perforación real del talón */
  font-size: 12px; color: var(--muted);
}

/* ---------- Servicios: filas que se rellenan de plano ---------- */
.services { list-style: none; padding: 0; margin: 48px 0 0; border-bottom: 1px solid var(--hair-2); }
.service {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px; align-items: baseline;
  padding: 32px 24px;
  margin-inline: -24px;
  border-top: 1px solid var(--hair-2);
  color: var(--ink); text-decoration: none;
  transition: color .2s ease;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bp); border-radius: 8px;
  clip-path: inset(0 100% 0 0 round 8px);
  transition: clip-path 260ms var(--ease);
}
.service h3 { font-size: clamp(26px, 1rem + 1.6vw, 40px); font-stretch: 125%; letter-spacing: -0.03em; line-height: 1.05; }
.service p { color: var(--ink-2); max-width: 46ch; transition: color .2s ease; }
.service:active::before { clip-path: inset(0 0 0 0 round 8px); }
.service:active { color: #fff; }
.service:active p { color: rgba(255,255,255,.82); }

/* Proceso: un raíl que avanza con el scroll */
.process { margin-top: 112px; }
.process-title { font-size: clamp(26px, 1rem + 1.6vw, 40px); font-stretch: 125%; letter-spacing: -0.03em; line-height: 1.05; }
.steps-wrap { position: relative; margin-top: 32px; }
.rail { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hair-2); }
.rail-fill { position: absolute; inset: 0; background: var(--bp); transform-origin: left center; transform: scaleX(0); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: paso; }
.steps li { counter-increment: paso; padding-top: 20px; }
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  display: block; font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 14px;
  transition: color .3s ease;
}
.steps h4 { font-size: 17px; font-stretch: 108%; transition: color .3s ease; }
.steps p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.js .steps li:not(.on) h4 { color: var(--muted); }
.steps li.on::before { color: var(--bp); }

/* ---------- Quiénes somos ---------- */
.about { background: var(--card); }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.about-copy p { margin-top: 20px; color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.about-copy .about-lede { margin-top: 28px; color: var(--ink); font-size: 20px; line-height: 1.5; }
.about-copy .beep-note { font-size: 14px; color: var(--muted); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; align-items: baseline; }
.history li + li { border-top: 1px solid var(--hair); }
.history li:first-child { padding-top: 0; }
.history .when { font-size: 34px; font-stretch: 125%; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--bp); }
.history p { color: var(--ink-2); }
.history strong { color: var(--ink); font-weight: 500; }
/* Entrada en cascada, una sola vez, cuando la lista aparece */
.js .history li { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease, transform 520ms var(--ease); }
.js .history.in li { opacity: 1; transform: none; }
.js .history.in li:nth-child(2) { transition-delay: 70ms; }
.js .history.in li:nth-child(3) { transition-delay: 120ms; }
.js .history.in li:nth-child(4) { transition-delay: 160ms; }

/* ---------- Ven a vernos ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: stretch; }
.fields { margin: 32px 0 40px; }
.fields div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0; }
.fields div + div { border-top: 1px solid var(--hair); }
.fields dt { font: 400 12px/1.6 var(--mono); color: var(--muted); padding-top: 3px; }
.fields dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--ink); text-decoration-color: var(--hair-2); text-underline-offset: 4px; }
.map { border-radius: 16px; overflow: hidden; min-height: 440px; background: var(--raised); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--bp-deep); color: rgba(255,255,255,.72); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.legal { display: flex; gap: 24px; margin-left: auto; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.85); text-decoration: none; }

/* ---------- Hover solo con ratón ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--bp-deep); }
  .btn-light:hover { background: #E8EDF8; }
  .link-light:hover { text-decoration-color: #fff; }
  .nav a:hover { opacity: 1; }
  .options button:not([aria-selected="true"]):hover { border-color: var(--bp); }
  .service:hover::before { clip-path: inset(0 0 0 0 round 8px); }
  .service:hover { color: #fff; }
  .service:hover p { color: rgba(255,255,255,.82); }
  .fields dd a:hover { color: var(--bp); }
  .legal a:hover { color: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .hero { height: 240vh; }
  .hero-stage { align-items: flex-start; padding-top: calc(var(--header) + 24px); }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { font-size: clamp(34px, 7.5vw, 56px); }
  .lede { margin-top: 16px; font-size: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-state { display: none; }
  #laptop { max-height: 52svh; }
  .counter-grid, .about-grid, .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
  .rail { left: 0; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .rail-fill { transform-origin: center top; transform: scaleY(0); }
  .steps li { padding: 0 0 24px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .section { padding-block: 72px; }
  .hero-actions .link-light { display: none; }
  .service { grid-template-columns: 1fr; gap: 8px; padding: 24px 16px; margin-inline: -16px; }
  .process { margin-top: 72px; }
  .ticket { padding: 24px 16px 0; }
  .ticket-stub { margin-inline: -16px; padding-inline: 16px; }
  .ticket-fields div, .fields div { grid-template-columns: 96px 1fr; gap: 12px; }
  .history li { grid-template-columns: 1fr; gap: 6px; }
  .legal { margin-left: 0; }
}

/* ---------- Movimiento reducido: fundidos sí, desplazamientos no ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100svh; padding-block: calc(var(--header) + 48px) 64px; }
  .js #laptop.drawing .ln, .js #laptop.drawing .ln-thin { animation: none; stroke-dasharray: none; }
  .js .hero-copy > * { animation: fade 300ms ease both; }
  .js .history li { transform: none; }
  .btn:active, .options button:active { transform: none; }
  .service::before { transition: none; }
}
@keyframes fade { from { opacity: 0; } }

/* En móvil el dibujo se reduce: las cotas crecen para seguir legibles (~11px reales) */
@media (max-width: 720px) {
  #laptop .label text { font-size: 18px; }
  #laptop { max-height: 46svh; }
}

/* ---------- Trabajos: vuelve el plano técnico ---------- */
.works {
  color: #fff;
  background-color: var(--bp);
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.works .section-lede { color: rgba(255,255,255,.82); }
.work-tag { font: 400 13px/1.4 var(--mono); color: rgba(255,255,255,.72); }
.work-lead { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-top: 56px; }
.work-lead h3, .work-card h3 { margin-top: 10px; font-size: clamp(26px, 1rem + 1.6vw, 40px); font-stretch: 125%; letter-spacing: -0.03em; line-height: 1.05; }
.work-copy > p:not(.work-tag) { margin-top: 16px; color: rgba(255,255,255,.85); max-width: 42ch; }
.work-points { list-style: none; padding: 0; margin: 24px 0 0; }
.work-points li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.9); }

/* Ventana de la aplicación (sus propios colores de estado) */
.app-frame {
  background: #F8FAFC; color: var(--ink);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(5, 14, 40, .6);
  font-size: 14px;
}
.app-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #E8EDF4; font: 500 13px var(--sans); color: var(--ink-2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #C5CEDB; }
.app-body { display: grid; grid-template-columns: 160px 1fr; min-height: 340px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: #EEF2F7; }
.app-side span { padding: 8px 10px; border-radius: 6px; color: var(--ink-2); }
.app-side .on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(17,24,39,.06); }
.app-main { position: relative; padding: 16px 20px; }
.app-head { display: flex; justify-content: space-between; align-items: center; font: 600 16px var(--sans); margin-bottom: 12px; }
.app-new { font: 500 13px var(--sans); color: #fff; background: #2563EB; padding: 6px 10px; border-radius: 6px; }
.app-row { display: grid; grid-template-columns: 56px 1fr 128px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(17,24,39,.07); font-variant-numeric: tabular-nums; }
.app-row > span:first-child { font-family: var(--mono); color: var(--muted); }
.app-row-head { border-top: 0; font-size: 12px; color: var(--muted); padding-block: 4px; }
.st {
  --c: #64748B;
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  color: color-mix(in srgb, var(--c) 58%, #000); background: color-mix(in srgb, var(--c) 14%, #fff);
  transition: color .3s ease, background-color .3s ease;
}
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); transition: background-color .3s ease; }
.st[data-st="Pendiente"] { --c: #F59E0B; }
.st[data-st="En proceso"] { --c: #3B82F6; }
.st[data-st="Esperando pieza"] { --c: #06B6D4; }
.st[data-st="Finalizada"] { --c: #10B981; }
.st[data-st="Entregada"] { --c: #8B5CF6; }
.app-live { background: linear-gradient(90deg, rgba(59,130,246,.06), transparent); }
.app-toast {
  position: absolute; right: 20px; bottom: 16px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 13px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.app-toast.show { opacity: 1; transform: none; }

/* Otros trabajos */
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 80px; }
.work-card { display: block; color: #fff; text-decoration: none; }
.work-card > p:not(.work-tag) { margin-top: 10px; color: rgba(255,255,255,.85); max-width: 48ch; }
.work-card .work-tag { margin-top: 24px; }
.work-shot { display: block; aspect-ratio: 1200 / 630; border-radius: 12px; overflow: hidden; background: var(--bp-deep); box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.work-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
a.work-card { transition: transform .2s var(--ease); }
.mini-app { background: #F8FAFC; color: var(--ink); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.mini-head { display: flex; justify-content: space-between; font: 600 15px var(--sans); }
.mini-head span:last-child { font: 400 12px var(--mono); color: var(--muted); }
.mini-tabs { display: flex; gap: 16px; border-bottom: 1px solid rgba(17,24,39,.08); }
.mini-tabs span { padding-bottom: 8px; color: var(--muted); }
.mini-tabs .on { color: var(--ink); box-shadow: inset 0 -2px 0 #C2410C; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips span { padding: 3px 9px; border-radius: 6px; background: #EEF2F7; color: var(--ink-2); font-size: 12px; }
.mini-chips .on { background: #C2410C; color: #fff; }
.mini-bars { display: grid; gap: 10px; flex: 1; align-content: space-evenly; }
.mini-bars i { display: block; height: 10px; border-radius: 3px; background: #E2E8F0; position: relative; overflow: hidden; }
.mini-bars i::after { content: ""; position: absolute; inset: 0; background: #C2410C; opacity: .85; transform-origin: left; transform: scaleX(var(--w)); }

/* Horario: abierto ahora */
.open-now { display: block; margin-top: 8px; font: 500 13px var(--mono); color: var(--muted); }
.open-now.is-open { color: #0F7A4A; }
.open-now::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; vertical-align: 1px; }
.open-now:empty { display: none; }

@media (hover: hover) and (pointer: fine) {
  a.work-card:hover { transform: translateY(-2px); }
  a.work-card:hover .work-shot img { transform: scale(1.025); }
}
@media (max-width: 1000px) {
  .work-lead { grid-template-columns: 1fr; gap: 40px; }
  .works-grid { grid-template-columns: 1fr; gap: 56px; margin-top: 64px; }
}
@media (max-width: 720px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-row { grid-template-columns: 44px 1fr auto; }
  .app-main { padding: 14px; }
  .app-toast { left: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  a.work-card, .work-shot img, .app-toast { transition: opacity .2s ease; transform: none !important; }
}

/* ---------- Idioma ---------- */
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; margin-right: -10px;
  color: inherit; text-decoration: none; font: 500 13px/1 var(--mono); opacity: .78;
  transition: opacity .15s ease;
}
.header-row .header-call + .lang { margin-left: -16px; }

/* ---------- WhatsApp en el mostrador ---------- */
.wa-case { margin-top: 32px; }
.wa-note { margin-top: 10px; font: 400 13px/1.5 var(--mono); color: var(--muted); }

/* ---------- Consulta de reparación ---------- */
.track { background: var(--card); }
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: start; }
.track-form { display: grid; gap: 20px; margin-top: 36px; max-width: 26rem; }
.field label { display: block; font-weight: 500; margin-bottom: 8px; }
.field input {
  width: 100%; height: 52px; padding: 0 16px;
  font: 500 17px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .01em;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--hair-2); border-radius: 8px;
  transition: border-color .15s ease, background-color .15s ease;
}
.field input::placeholder { color: #8A93A5; }
.field input:focus { outline: none; border-color: var(--bp); background: #fff; box-shadow: 0 0 0 3px rgba(28, 63, 148, .18); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.hint { margin-top: 8px; font-size: 14px; color: var(--muted); }
.form-error { font-size: 15px; color: #B42318; }
.form-error:empty { display: none; }
.track-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.track-actions .btn { min-width: 140px; border: 0; cursor: pointer; }
.track-actions .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.link-btn {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 16px var(--sans); color: var(--bp);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(28, 63, 148, .35);
}

/* Resultado: un talón como el del mostrador */
.track-out { min-height: 340px; }
.track-empty {
  height: 100%; min-height: 340px; padding: 32px 28px;
  border: 2px dashed var(--hair-2); border-radius: 10px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  color: var(--muted);
}
.track-empty p { max-width: 34ch; }
.track-card {
  background: var(--paper); border-radius: 10px;
  padding: 28px 24px 0;
  box-shadow: 0 0 0 1px var(--hair), 0 10px 24px rgba(17, 24, 39, .06);
  font-variant-numeric: tabular-nums;
}
.track-card .ticket-head { font-family: var(--mono); }
.track-state { margin-top: 14px; font-size: clamp(24px, 1rem + 1vw, 30px); font-stretch: 115%; letter-spacing: -0.02em; line-height: 1.1; }
.track-note { margin-top: 8px; color: var(--ink-2); }
.track-badge { display: inline-flex; margin-top: 16px; }

/* Cuatro pasos con un raíl que se llena hasta el actual */
.track-steps {
  --p: 0;
  position: relative; list-style: none; padding: 22px 0 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  font-size: 13px; color: var(--muted);
}
.track-steps::before, .track-steps::after {
  content: ""; position: absolute; left: 6px; right: calc(25% - 6px); top: 5px; height: 2px; background: var(--hair-2);
}
.track-steps::after { background: var(--bp); transform-origin: left center; transform: scaleX(var(--p)); transition: transform 700ms var(--ease-io); }
.track-steps li { position: relative; }
.track-steps li::before {
  content: ""; position: absolute; left: 0; top: -22px; z-index: 1;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--hair-2);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.track-steps li.on { color: var(--ink); font-weight: 500; }
.track-steps li.on::before { background: var(--bp); box-shadow: none; }
.track-empty .track-steps::after { display: none; }
.track-card .ticket-fields { margin-top: 28px; border-top: 1px solid var(--hair); }
.track-card .ticket-fields dd { font-family: var(--mono); }
.track-card .ticket-stub { align-items: center; font-family: var(--mono); }
.track-card .ticket-stub a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; font-family: var(--sans); font-weight: 500; }
.track-demo-tag { font: 400 12px var(--mono); color: #9A5B00; }

.work-link { color: #fff; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.5); }

@media (hover: hover) and (pointer: fine) {
  .lang:hover { opacity: 1; }
  .link-btn:hover { text-decoration-color: var(--bp); }
  .field input:hover:not(:focus) { border-color: rgba(17, 24, 39, .3); }
  .work-link:hover { text-decoration-color: #fff; }
}
@media (max-width: 1000px) {
  .track-grid { grid-template-columns: 1fr; gap: 40px; }
  .track-out, .track-empty { min-height: 0; }
}
@media (max-width: 720px) {
  .track-card { padding: 24px 16px 0; }
  .track-card .ticket-stub { flex-direction: column; align-items: flex-start; gap: 4px; }
  .track-steps { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .track-steps::after { transition: none; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq-list { border-bottom: 1px solid var(--hair-2); }
.faq-item { border-top: 1px solid var(--hair-2); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding: 16px 0;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 19px; font-stretch: 108%; line-height: 1.3; }
/* Una cruz de cota que gira 45° al abrir: + pasa a × */
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--bp), var(--bp)) center / 100% 2px no-repeat,
              linear-gradient(var(--bp), var(--bp)) center / 2px 100% no-repeat;
  transition: transform 200ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 60ch; }
.faq-item summary:focus-visible { outline-offset: 4px; }

/* Reseñas, junto a la ruta */
.review-link { display: inline-flex; align-items: center; min-height: 48px; margin-left: 24px; font-weight: 500; text-underline-offset: 5px; text-decoration-color: rgba(28, 63, 148, .35); }
.track-review { display: inline-block; margin-top: 8px; font-weight: 500; text-underline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover h3 { color: var(--bp); }
  .review-link:hover { text-decoration-color: var(--bp); }
}
@media (max-width: 1000px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .faq-item summary h3 { font-size: 17px; }
  .faq-item p { padding-right: 0; }
  .review-link { margin-left: 0; display: flex; }
  /* Despiece más corto en el móvil: menos recorrido para llegar al contenido */
  .hero { height: 200vh; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
  .hero { height: auto; }
}

/* ---------- Mostrador: WhatsApp debajo del texto (escritorio) y debajo del resguardo (móvil) ---------- */
.counter-grid { row-gap: 0; }
.counter-grid .printer { grid-column: 2; grid-row: 1 / span 2; }
.wa-block { grid-column: 1; grid-row: 2; align-self: start; }
.brand { min-height: 44px; }
@media (max-width: 1000px) {
  .counter-grid { row-gap: 40px; }
  .counter-grid .printer, .wa-block { grid-column: auto; grid-row: auto; }
  .wa-block .wa-case { margin-top: 0; }
}
@media (max-width: 720px) {
  /* En el móvil el WhatsApp es lo más útil: se queda en la portada */
  .hero-actions .link-light { display: inline; }
  .hero-actions { gap: 16px 24px; }
}
.form-error.is-info { color: var(--ink-2); }

/* Logo «pd»: la p girada 180° es la d */
.brand-mark .pd { stroke: var(--bp); transition: stroke .25s ease; }
.on-light .brand-mark .pd { stroke: #fff; }

/* ---------- Servicios: la pieza de cada uno, dibujada en plano ---------- */
.service { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 168px; align-items: center; }
.iso-ico { display: block; width: 168px; height: 104px; overflow: visible; }
.iso-ico .ln { fill: var(--paper); stroke: var(--bp); stroke-width: 1.25; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .2s ease, stroke .2s ease; }
.iso-ico .ln-thin { fill: none; stroke: rgba(28, 63, 148, .55); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .2s ease; }
/* Se traza una vez, pieza a pieza */
.iso-ico.will-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.iso-ico.will-draw.in path { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-io) calc(var(--i) * 28ms), fill .2s ease, stroke .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .service:hover .iso-ico .ln { fill: var(--bp); stroke: #fff; }
  .service:hover .iso-ico .ln-thin { stroke: rgba(255, 255, 255, .7); }
}
.service:active .iso-ico .ln { fill: var(--bp); stroke: #fff; }
@media (max-width: 1000px) {
  .service { grid-template-columns: minmax(0, 1fr) 132px; }
  .service p { grid-column: 1; }
  .iso-ico { grid-column: 2; grid-row: 1 / span 2; width: 132px; height: 84px; }
}
@media (max-width: 720px) {
  .service { grid-template-columns: minmax(0, 1fr) 88px; gap: 8px 16px; }
  .iso-ico { width: 88px; height: 60px; }
}

/* ---------- Mapa en azul de plano ---------- */
.map { position: relative; }
.map iframe { filter: grayscale(1) invert(1) contrast(1.15) brightness(1.05); }
.map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--bp); mix-blend-mode: screen; opacity: .92;
}

/* ---------- Pie: el cajetín de un plano ---------- */
.site-footer {
  padding-block: 64px calc(24px + env(safe-area-inset-bottom, 0px));
  background-color: var(--bp-deep);
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.titleblock {
  display: grid; grid-template-columns: 2.2fr 1.4fr 1.4fr repeat(4, minmax(0, .7fr));
  border: 2px solid rgba(255,255,255,.75);
  color: #fff;
}
.tb-cell { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-left: 1px solid rgba(255,255,255,.4); min-width: 0; }
.tb-cell:first-child { border-left: 0; }
.tb-k { font: 500 11px/1 var(--mono); color: rgba(255,255,255,.65); }
.tb-v { font: 500 15px/1.45 var(--sans); }
.tb-sm .tb-v { font: 500 15px/1.45 var(--mono); font-variant-numeric: tabular-nums; }
.tb-big { font-size: 26px; font-stretch: 122%; letter-spacing: -0.02em; line-height: 1.1; }
.tb-s { font-size: 13px; color: rgba(255,255,255,.72); }
.tb-v a { color: #fff; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.site-footer .footer-row { margin-top: 16px; }
.to-top { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.85); text-decoration: none; font: 500 13px var(--mono); }
.site-footer .legal { margin-left: 0; }
.site-footer .to-top { margin-left: auto; }
@media (hover: hover) and (pointer: fine) {
  .tb-v a:hover { text-decoration-color: #fff; }
  .to-top:hover { color: #fff; }
}
@media (max-width: 1000px) {
  .titleblock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tb-proj { grid-column: 1 / -1; }
  .tb-cell:nth-child(2), .tb-cell:nth-child(3) { grid-column: span 2; }
  .tb-cell:nth-child(2) { border-left: 0; }
  .tb-cell:nth-child(4) { border-left: 0; }
  .tb-cell:nth-child(n+2) { border-top: 1px solid rgba(255,255,255,.4); }
}
@media (max-width: 720px) {
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-cell:nth-child(2), .tb-cell:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
  .tb-cell:nth-child(5), .tb-cell:nth-child(7) { border-left: 1px solid rgba(255,255,255,.4); }
  .tb-cell:nth-child(6) { border-left: 0; }
  .tb-big { font-size: 22px; }
}

/* ---------- Portada: cursor de CAD ---------- */
.cad { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s ease; z-index: 0; }
.cad.on { opacity: 1; }
.cad i { position: absolute; background: rgba(255,255,255,.28); }
.cad-x { left: 0; right: 0; top: 0; height: 1px; }
.cad-y { top: 0; bottom: 0; left: 0; width: 1px; }
.cad-t { position: absolute; left: 0; top: 0; font: 500 11px var(--mono); color: rgba(255,255,255,.8); white-space: pre; }
.hero-grid { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .iso-ico.will-draw path { stroke-dasharray: none; }
}
.review-link { display: flex; width: fit-content; margin: 8px 0 0; }

/* ---------- También en la tienda (envíos y Digi) ---------- */
.also { margin-top: 112px; }
.also .services { margin-top: 24px; }
@media (max-width: 720px) { .also { margin-top: 72px; } }

/* ---------- Vídeo de la app (se carga solo al pulsar) ---------- */
.work-play { position: relative; width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit; }
.work-play .play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: #0A0A0A; color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s var(--ease), background .2s; }
.work-play .play svg { width: 20px; height: 20px; fill: #89CD24; }
.work-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .work-play:hover .play { transform: scale(1.05); }
  .work-play:hover img { transform: scale(1.025); }
}
.video-dlg { padding: 0; border: 0; background: none; overflow: visible; max-width: none; max-height: none; }
.video-dlg::backdrop { background: rgba(10, 12, 20, .86); }
.video-phone { width: min(340px, 82vw, calc(84vh * 600 / 1296)); aspect-ratio: 600 / 1296; border: 10px solid #0A0A0A;
  border-radius: 42px; overflow: hidden; background: #0A0A0A; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.video-phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-close { position: absolute; top: -8px; right: -56px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; color: #0A0A0A; font-size: 28px; line-height: 1; cursor: pointer; }
@media (max-width: 520px) { .video-close { right: 0; top: -54px; } }
/* Vídeo panorámico (TechRepair Pro: PC y móvil a la vez) */
.work-play-ancho { aspect-ratio: 16 / 9; }
.video-dlg.ancho .video-phone { width: min(1120px, 92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; border-width: 6px; border-radius: 14px; }
@media (max-width: 1240px) { .video-dlg.ancho .video-close { right: 0; top: -54px; } }

/* =========================================================
   Páginas de servicio (generadas con _herramientas/generar_servicios.py)
   ========================================================= */
.page-hero {
  color: #fff;
  background-color: var(--bp);
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  padding-block: calc(var(--header) + env(safe-area-inset-top, 0px) + 72px) 96px;
}
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(32px, 0.9rem + 2.2vw, 50px); font-stretch: 112%; line-height: 1.06; letter-spacing: -0.03em; max-width: 21ch; text-wrap: balance; }
.page-hero .lede { max-width: 36rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 28px; font: 400 13px/1.4 var(--mono); color: rgba(255,255,255,.72); }
.crumbs a { color: #fff; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 32px; }
.page-hero-art { display: flex; justify-content: center; }
.iso-ico.iso-hero { width: min(100%, 380px); height: auto; aspect-ratio: 16 / 10; }
.page-hero .iso-ico .ln { fill: var(--bp); stroke: var(--bp-line); stroke-width: 1.5; }
.page-hero .iso-ico .ln-thin { stroke: rgba(255,255,255,.55); }
/* En grande, el trazo escala con el dibujo: así la animación de trazado (pathLength) no deja huecos */
.iso-ico.iso-hero path { vector-effect: none; }
.page-hero .iso-ico .ln { stroke-width: .75; }
.page-hero .iso-ico .ln-thin { stroke-width: .5; }
.page-hero .hero-copy > :nth-child(4) { animation-delay: 300ms; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.spec-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair-2); }
.spec-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--hair-2); }
.spec-n { font: 500 13px/1.9 var(--mono); color: var(--bp); }
.spec-list h3 { font-size: 20px; font-stretch: 110%; line-height: 1.3; }
.spec-list p { margin-top: 4px; color: var(--ink-2); max-width: 52ch; }

/* Tarifa: como el resguardo del mostrador */
.tarifa-section { background: var(--card); border-block: 1px solid var(--hair); }
.tarifa { padding: 28px 28px 32px; border: 1px solid var(--hair-2); border-radius: 12px; background: var(--paper); }
.tarifa dl { margin: 0 0 28px; }
.tarifa dl div { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; }
.tarifa dl div + div { border-top: 1px dashed var(--hair-2); }
.tarifa dt { flex: 1; color: var(--ink-2); }
.tarifa dd { font: 500 17px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }

/* Pasos sin animación de scroll: el raíl ya está lleno */
.pasos-section { padding-top: 0; }
.tarifa-section + .pasos-section { padding-top: 112px; }
.steps-static .rail-fill { transform: none; }
.steps-static h3 { font-size: 17px; font-stretch: 108%; }
.steps-static .steps li::before { color: var(--bp); }

/* Trabajos (página de webs) */
.trabajos-cta { display: grid; gap: 24px; justify-items: start; }
.trabajos-cta .work-shot { display: block; width: 100%; border-radius: 12px; overflow: hidden; }
.trabajos-cta img { display: block; width: 100%; height: auto; }

/* Otros servicios: tarjetas con la pieza dibujada */
.otros-section { padding-top: 0; }
.faq + .otros-section, .trabajos-band + .otros-section { padding-top: 112px; }
.otros { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.otro { display: grid; gap: 14px; height: 100%; padding: 20px 18px 18px; border: 1px solid var(--hair-2); border-radius: 12px; background: var(--card);
  color: var(--ink); text-decoration: none; font-weight: 500; font-stretch: 108%; line-height: 1.3;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.otro .iso-ico, .page-hero .iso-ico { grid-column: auto; grid-row: auto; }
.otro .iso-ico { width: 100%; height: 64px; }
.otro { min-width: 0; }
.otro:active { background: var(--bp); color: #fff; }

/* Pie: lista de servicios (todas las páginas) */
.foot-services { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 20px; }
.foot-services a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; }

/* Portada: enlaces a cada página de servicio */
.services-more { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; color: var(--muted); font: 400 13px/1.4 var(--mono); }
.services-more a { display: inline-flex; align-items: center; min-height: 40px; font: 500 15px var(--sans); text-underline-offset: 4px; text-decoration-color: rgba(28, 63, 148, .35); }

@media (hover: hover) and (pointer: fine) {
  .otro:hover { border-color: var(--bp); color: var(--bp); }
  .otro:hover .iso-ico .ln { fill: var(--bp); stroke: #fff; }
  .crumbs a:hover { text-decoration-color: #fff; }
  .foot-services a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
  .services-more a:hover { text-decoration-color: var(--bp); }
}
@media (max-width: 1000px) {
  .page-hero { padding-block: calc(var(--header) + env(safe-area-inset-top, 0px) + 40px) 64px; }
  .page-hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-art { justify-content: flex-start; }
  .iso-ico.iso-hero { width: min(70%, 300px); }
  .steps-static .rail-fill { transform: none; }
}
@media (max-width: 720px) {
  .tarifa-section + .pasos-section, .faq + .otros-section, .trabajos-band + .otros-section { padding-top: 72px; }
  .tarifa { padding: 20px 18px 24px; }
  .tarifa dl div { flex-direction: column; gap: 2px; }
  .otros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iso-ico.iso-hero { width: min(64%, 240px); }
}

/* =========================================================
   Asistente del mostrador (asistente.js): respuestas automáticas, sin IA
   ========================================================= */
.asis-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.asis-btn {
  position: fixed; z-index: 60;
  right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px;
  border: 0; border-radius: 12px; background: var(--ink); color: #fff;
  font: 500 15px/1 var(--sans); cursor: pointer;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .22), 0 2px 6px rgba(17, 24, 39, .12);
  transition: transform .16s var(--ease), background-color .2s ease, opacity .2s ease;
}
.asis-btn svg, .asis-x svg, .asis-form button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.asis-btn:active { transform: scale(.97); }
.asis-btn:focus-visible { outline: 2px solid var(--bp); outline-offset: 3px; }

.asis-panel {
  position: fixed; z-index: 61;
  right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: min(392px, calc(100vw - 40px)); height: min(600px, calc(100svh - 40px));
  display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--hair-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .25), 0 4px 12px rgba(17, 24, 39, .1);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(8px) scale(.97);
  transition: opacity .18s ease, transform .22s var(--ease);
}
.asis-panel[hidden] { display: none; }
.asis-panel:focus { outline: none; }
.asis-panel.in { opacity: 1; transform: none; }
.asis.abierto .asis-btn { opacity: 0; pointer-events: none; }

.asis-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 12px 14px 20px; color: #fff;
  background-color: var(--bp);
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 24px 24px;
}
.asis-head h2 { font-size: 18px; font-stretch: 112%; line-height: 1.25; }
.asis-st { margin-top: 4px; font: 500 12px/1.4 var(--mono); color: rgba(255,255,255,.78); }
.asis-st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: rgba(255,255,255,.5); vertical-align: 1px; }
.asis-st.is-open::before { background: #6EE7A8; }
.asis-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -6px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.asis-x:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.asis-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.asis-msg { max-width: 88%; padding: 11px 14px; font-size: 15px; line-height: 1.5; border-radius: 4px 14px 14px 14px; animation: asis-in .22s var(--ease) both; }
.asis-msg p + p { margin-top: 6px; }
.asis-msg strong { font-weight: 600; }
.asis-msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--hair); }
.asis-msg.yo { align-self: flex-end; background: var(--bp); color: #fff; border-radius: 14px 4px 14px 14px; overflow-wrap: anywhere; }
.asis-acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.asis-acc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; background: var(--bp); color: #fff; text-decoration: none; font-weight: 500; font-size: 14px; }
.asis-acc a + a { background: transparent; color: var(--bp); box-shadow: inset 0 0 0 1px var(--hair-2); }
.asis-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; animation: asis-in .22s var(--ease) 60ms both; }
.asis-chips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--card); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; transition: border-color .15s ease, color .15s ease, transform .16s var(--ease); }
.asis-chips button:active { transform: scale(.97); }
.escribiendo { display: inline-flex; gap: 4px; padding: 14px 16px; }
.escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: asis-dot 1s ease-in-out infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes asis-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes asis-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.asis-form { display: flex; gap: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--hair); background: var(--card); }
.asis-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--hair-2); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 16px var(--sans); }
.asis-form input:focus { outline: none; border-color: var(--bp); background: #fff; }
.asis-form button { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--bp); color: #fff; cursor: pointer; }
.asis-pie { padding: 4px 16px 12px; background: var(--card); font: 400 11px/1.4 var(--mono); color: var(--muted); }

/* Hueco para el botón al final de la página */
.con-asis .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

@media (hover: hover) and (pointer: fine) {
  .asis-btn:hover { background: var(--bp); }
  .asis-x:hover { background: rgba(255,255,255,.12); }
  .asis-chips button:hover { border-color: var(--bp); color: var(--bp); }
  .asis-acc a:hover { background: var(--bp-deep); }
  .asis-acc a + a:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--bp); }
}
@media (max-width: 560px) {
  .asis-btn { right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); height: 48px; padding: 0 16px 0 14px; }
  .asis-panel { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom, 0px)); width: auto; height: min(78svh, 640px); transform-origin: bottom center; }
}
@media (prefers-reduced-motion: reduce) {
  .asis-panel { transform: none; transition: opacity .15s ease; }
  .asis-msg, .asis-chips { animation: none; }
  .escribiendo i { animation: none; }
  .asis-btn:active, .asis-chips button:active { transform: none; }
}
@media print { .asis { display: none; } }

/* Páginas de servicio: plano en lugar del mapa de Google (sin cookies de terceros) */
.map-plano {
  position: relative; display: flex; align-items: flex-end; min-height: 440px; padding: 28px;
  color: #fff; text-decoration: none;
  background-color: var(--bp);
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.map-plano::after { content: none; }
.map-pin { position: absolute; left: 50%; top: 42%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.18), 0 0 0 20px rgba(255,255,255,.08); }
.map-pin::before, .map-pin::after { content: ""; position: absolute; background: rgba(255,255,255,.4); }
.map-pin::before { left: -60px; right: -60px; top: 8px; height: 1px; }
.map-pin::after { top: -60px; bottom: -60px; left: 8px; width: 1px; }
.map-txt { display: grid; gap: 4px; }
.map-k { font: 500 12px var(--mono); color: rgba(255,255,255,.75); }
.map-txt strong { font-size: 24px; font-stretch: 115%; font-weight: 500; letter-spacing: -0.02em; }
.map-cargar { justify-self: start; margin-top: 16px; height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: #fff; color: var(--bp); font: 500 15px/1 var(--sans); cursor: pointer; transition: background-color .15s ease, transform .16s var(--ease); }
.map-cargar:active { transform: scale(.97); }
.map-cargar:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.map-aviso { margin-top: 8px; max-width: 34ch; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.72); }
@media (hover: hover) and (pointer: fine) { .map-cargar:hover { background: #E8EDF8; } }
@media (max-width: 720px) { .map-plano { min-height: 260px; padding: 20px; } }

/* =========================================================
   MODERNO (2026-11-26): toda la web en claro, como la portada 3D.
   Degradados suaves, tarjetas blancas con sombra, el azul solo de acento.
   Va al final para mandar sobre el estilo «plano técnico» de arriba.
   ========================================================= */
:root {
  --claro: linear-gradient(160deg, #F7F9FD 0%, #EAF0FA 55%, #DDE6F5 100%);
  --sombra: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -22px rgba(17,24,39,.28), 0 0 0 1px rgba(17,24,39,.05);
}

/* Cabecera: siempre clara y translúcida */
.site-header, .site-header.on-light { background: rgba(247, 249, 253, .8); color: var(--ink); border-color: var(--hair); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.brand-mark rect:first-child { fill: var(--bp); }
.brand-mark .pd { stroke: #fff; }
.hero :focus-visible, .site-header:not(.on-light) :focus-visible { outline-color: var(--bp); }

/* Portadas (inicio y 404) y cabeceras de las páginas de servicio */
.hero, .page-hero {
  color: var(--ink);
  background:
    radial-gradient(60% 70% at 78% 45%, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    radial-gradient(80% 90% at 10% 90%, #DCE6F7 0%, rgba(220,230,247,0) 60%),
    var(--claro);
}
.hero h1 .h1-sub { color: var(--bp); }
.lede { color: var(--ink-2); }
.hero .btn-light, .page-hero .btn-light { background: var(--bp); color: #fff; }
.link-light { color: var(--bp); text-decoration-color: rgba(28,63,148,.35); }
.hero-state { color: var(--muted); }
.cad { display: none; }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--bp); text-decoration-color: rgba(28,63,148,.3); }
.page-hero { position: relative; overflow: hidden; }
.page-hero-art { position: relative; }
.page-hero-art::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(420px, 110%); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0%, rgba(255,255,255,.6) 45%, rgba(255,255,255,0) 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.9); pointer-events: none;
}
.page-hero .iso-ico { position: relative; filter: drop-shadow(0 18px 24px rgba(28,63,148,.18)); }
.page-hero .iso-ico .ln { fill: #fff; stroke: var(--bp); }
.page-hero .iso-ico .ln-thin { stroke: rgba(28,63,148,.5); }
/* 404: el dibujo del portátil, en azul sobre claro */
#laptop .ln { fill: #fff; stroke: var(--bp); }
#laptop .ln-thin { stroke: rgba(28,63,148,.45); }
#laptop .label line { stroke: rgba(28,63,148,.45); }
#laptop .label circle { fill: var(--bp); }
#laptop .label text { fill: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .hero .btn-light:hover, .page-hero .btn-light:hover { background: var(--bp-deep); }
  .link-light:hover { text-decoration-color: var(--bp); }
}

/* Servicios: cada dibujo en su azulejo de cristal */
.services-section .iso-ico, .otro .iso-ico {
  box-sizing: border-box; padding: 12px 18px; border-radius: 22px;
  background: linear-gradient(145deg, #FFFFFF, #E8EEF9);
  box-shadow: var(--sombra);
}
.iso-ico .ln { fill: #fff; }

/* Trabajos: claro, tarjetas que flotan */
.works { color: var(--ink); background: var(--claro); }
.works .section-lede { color: var(--ink-2); }
.work-tag { color: var(--muted); }
.work-copy > p:not(.work-tag), .work-card > p:not(.work-tag) { color: var(--ink-2); }
.work-copy a { color: var(--bp); }
.work-points li { border-top-color: var(--hair-2); color: var(--ink); }
.work-card { color: var(--ink); }
.work-shot { background: var(--raised); border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(17,24,39,.35), 0 0 0 1px rgba(17,24,39,.06); }

/* Mapa: el de Google con sus colores, y la tarjeta previa en claro */
.map { border-radius: 22px; box-shadow: var(--sombra); }
.map iframe { filter: none; }
.map::after { content: none; }
.map-plano {
  color: var(--ink);
  background:
    radial-gradient(45% 55% at 50% 42%, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    linear-gradient(160deg, #EEF3FB 0%, #DCE6F7 100%);
}
.map-pin { background: var(--bp); box-shadow: 0 0 0 10px rgba(28,63,148,.14), 0 0 0 26px rgba(28,63,148,.07), 0 10px 24px rgba(28,63,148,.35); }
.map-pin::before, .map-pin::after { content: none; }
.map-k { color: var(--muted); }
.map-cargar { background: var(--bp); color: #fff; }
.map-cargar:focus-visible { outline-color: var(--bp); }
.map-aviso { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .map-cargar:hover { background: var(--bp-deep); } }
@media (prefers-reduced-motion: no-preference) {
  .map-pin { animation: latido 2.4s var(--ease) infinite; }
  @keyframes latido { 50% { box-shadow: 0 0 0 16px rgba(28,63,148,.1), 0 0 0 36px rgba(28,63,148,.04), 0 10px 24px rgba(28,63,148,.35); } }
}

/* Pie: tarjeta de datos limpia (sin cajetín de plano) */
.site-footer { color: var(--ink); background: linear-gradient(180deg, #EEF2F9 0%, #E3EAF6 100%); border-top: 1px solid var(--hair); }
.titleblock {
  grid-template-columns: 2.2fr 1.5fr 1.5fr .8fr 1fr; gap: 1px;
  border: 0; border-radius: 22px; overflow: hidden; color: var(--ink);
  background: var(--hair); box-shadow: var(--sombra);
}
.tb-cell, .tb-cell:nth-child(n) { border: 0; background: rgba(255,255,255,.88); padding: 20px 22px; }
.tb-cell:nth-child(5), .tb-cell:nth-child(6) { display: none; } /* «Escala» y «Hoja»: cosas de plano */
.tb-k { color: var(--muted); }
.tb-s { color: var(--ink-2); }
.tb-v a { color: var(--bp); text-decoration-color: rgba(28,63,148,.3); }
.to-top { color: var(--ink-2); }
.site-footer .legal a, .site-footer .footer-row a, .foot-services a { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .tb-v a:hover { text-decoration-color: var(--bp); }
  .to-top:hover, .site-footer .legal a:hover, .site-footer .footer-row a:hover, .foot-services a:hover { color: var(--bp); }
}
@media (max-width: 1000px) {
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-proj { grid-column: 1 / -1; }
  .tb-cell:nth-child(2), .tb-cell:nth-child(3) { grid-column: auto; }
}
@media (max-width: 560px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb-cell:nth-child(2), .tb-cell:nth-child(3) { grid-column: 1 / -1; }
}

/* Asistente: cabecera en degradado de marca, sin cuadrícula */
.asis-head { background: linear-gradient(135deg, #1C3F94 0%, #3563D9 100%); }
.work-link { color: var(--bp); text-decoration-color: rgba(28,63,148,.35); }
@media (hover: hover) and (pointer: fine) { .work-link:hover { text-decoration-color: var(--bp); } }
