/* Fuentes autoalojadas (Archivo e IBM Plex Mono, SIL Open Font License) */
/* Archivo latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-100-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-100-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibmplexmono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibmplexmono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibmplexmono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibmplexmono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Ya Me Lo Llevan — hoja única del sitio y del sistema de diseño (/design)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color (muestreado del logo) */
  --navy: #21437c;         /* azul de marca */
  --navy-deep: #18335f;    /* azul para fondos amplios y hover */
  --ink: #13264a;          /* texto principal — 14.96:1 sobre blanco */
  --orange: #f56b2b;       /* naranja de marca — fondo del CTA, texto --ink encima (5.0:1) */
  --orange-hover: #ff8148; /* hover del CTA — texto --ink encima */
  --orange-text: #b8420c;  /* naranja para texto sobre blanco (5.49:1) */
  --muted: #4a5a75;        /* texto secundario (6.98:1) */
  --mist: #e8eef6;         /* bandas de sección */
  --paper: #fbfaf6;        /* papel del tique */
  --white: #ffffff;
  --rule: #c9d3e2;         /* líneas divisorias (decorativas) */
  --on-navy: #e2e8f3;      /* texto sobre --navy (7.91:1) y --ink (12.16:1) */
  --on-navy-muted: #c3cee2; /* etiquetas sobre --navy (6.14:1) y --ink (9.44:1) */
  --error: #a32020;        /* errores de formulario — 7.54:1 sobre blanco, 6.46:1 sobre --mist */
  --field-border: #74839e; /* bordes de campos y chips — 3.83:1 sobre blanco, 3.28:1 sobre --mist */

  /* Tipografía */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-receipt: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --stretch-display: 72%;
  --fs-xs: 0.875rem;   /* 14 */
  --fs-sm: 0.9375rem;  /* 15 */
  --fs-base: 1.125rem; /* 18 */
  --fs-md: 1.375rem;   /* 22 */
  --fs-lg: 1.75rem;    /* 28 */
  --fs-xl: 2.25rem;    /* 36 */
  --fs-2xl: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);      /* 40 → 64 */
  --fs-hero: clamp(3.25rem, 1.4rem + 7.2vw, 7.25rem); /* 52 → 116 */

  /* Espacio y forma */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --space-section: clamp(72px, 10vw, 136px);
  --r-sm: 3px;   /* papel */
  --r-md: 10px;  /* botones y campos */
  --r-lg: 18px;  /* fotos */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (max-width: 640px) { html { scroll-padding-bottom: 96px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-md); text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */
.display,
.h-section,
.h-item {
  font-family: var(--font);
  font-stretch: var(--stretch-display);
  font-weight: 800;
  color: var(--navy);
  text-wrap: balance;
  margin: 0;
}
.display { font-size: var(--fs-hero); line-height: 0.9; letter-spacing: -0.012em; }
.h-section { font-size: var(--fs-2xl); line-height: 0.96; letter-spacing: -0.006em; max-width: 17ch; }
.h-item { font-size: var(--fs-xl); line-height: 1; }

.lead {
  font-size: var(--fs-md);
  line-height: 1.45;
  color: var(--ink);
  max-width: 36ch;
  text-wrap: pretty;
}
.body-text { max-width: 60ch; text-wrap: pretty; }
.small { font-size: var(--fs-sm); color: var(--muted); }

.source {
  font-size: var(--fs-xs);
  color: var(--muted);
}
.source a { color: var(--muted); text-underline-offset: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-inverse { background: var(--white); color: var(--navy); }
.btn-inverse:hover { background: var(--mist); }

.btn-small { min-height: 44px; padding: 8px 16px; font-size: var(--fs-sm); }

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

.text-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--orange);
}
.text-link:hover { text-decoration-color: var(--navy); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px;
}
.brand { display: block; flex: none; }
.brand img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--ink);
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--orange); }
.nav-phone {
  font-weight: 700; font-size: var(--fs-base); color: var(--navy); text-decoration: none;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nav-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Portada ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero-copy .display { margin-bottom: 28px; }
.hero-copy .lead { margin-bottom: 36px; }
.hero-note { margin-top: 20px; font-size: var(--fs-sm); color: var(--muted); }
.hero-note strong { color: var(--ink); }

/* ---------- Tique (objeto firma) ---------- */
.printer {
  position: relative;
  width: min(430px, 100%);
  margin-inline: auto;
  padding-top: 7px;
}
.printer::before { /* ranura de la impresora */
  content: "";
  position: absolute; z-index: 2; top: 0; left: -14px; right: -14px;
  height: 14px; border-radius: 7px;
  background: var(--navy);
  box-shadow: inset 0 -3px 0 var(--navy-deep);
}
.receipt-feed { overflow: hidden; padding: 0 28px 44px; margin: 0 -28px; }
.receipt-shadow { filter: drop-shadow(0 16px 22px rgba(19, 38, 74, 0.22)) drop-shadow(0 1px 1px rgba(19, 38, 74, 0.12)); }

.receipt {
  --tooth: 9px;
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-receipt);
  font-size: 0.9375rem;
  line-height: 1.65;
  padding: 32px 30px 40px;
  /* borde inferior dentado, como un tique arrancado */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}
.receipt-head { text-align: center; margin-bottom: 18px; }
.receipt-head strong { display: block; font-weight: 600; letter-spacing: 0.08em; }
.receipt-head span { display: block; font-size: 0.8125rem; color: var(--muted); }
.receipt-title {
  margin: 0; padding-block: 10px;
  border-block: 1px dashed var(--ink);
  text-align: center; font-weight: 600; letter-spacing: 0.06em;
  font-size: 0.875rem;
}
.receipt-meta { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); margin: 10px 0 14px; }
.receipt-lines { list-style: none; margin: 0; padding: 0 0 12px; border-bottom: 1px dashed var(--ink); }
.receipt-line { display: flex; align-items: baseline; gap: 6px; }
.receipt-line .leader { flex: 1; border-bottom: 2px dotted rgba(19, 38, 74, 0.35); transform: translateY(-4px); }
.receipt-line .tick { color: var(--orange-text); font-weight: 600; }
.receipt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-bottom: 12px; border-bottom: 3px double var(--ink);
  font-weight: 600; font-size: 1rem;
}
.receipt-total .amount { font-size: 1.5rem; letter-spacing: -0.02em; }
.receipt-foot { margin-top: 14px; text-align: center; font-size: 0.8125rem; color: var(--muted); }

.stamp {
  position: absolute; z-index: 3; right: -40px; bottom: 6px;
  width: 140px; height: 140px;
  color: var(--orange);
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  opacity: 0.92;
  pointer-events: none;
}
.stamp svg { width: 100%; height: 100%; overflow: visible; }

/* Animación única: el tique se imprime y cae el sello.
   Arranca cuando el tique entra en pantalla (clase .is-visible desde JS). */
@media (prefers-reduced-motion: no-preference) {
  .js .printer:not(.is-visible) .receipt-shadow { transform: translateY(-101%); }
  .js .printer:not(.is-visible) .stamp { opacity: 0; }
  .js .printer.is-visible .receipt-shadow { animation: print 1.5s steps(14, end) 0.2s both; }
  .js .printer.is-visible .stamp { animation: stamp 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3) 1.85s both; }
}
@keyframes print { from { transform: translateY(-101%); } to { transform: translateY(0); } }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-24deg) scale(1.7); }
  to   { opacity: 0.92; transform: rotate(-14deg) scale(1); }
}

/* ---------- Banda de foto ---------- */
.photo-band { position: relative; margin: 0; }
.photo-band img {
  width: 100%; height: clamp(280px, 40vw, 560px);
  object-fit: cover; object-position: 50% 85%;
}
.photo-band figcaption {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  max-width: min(560px, calc(100% - var(--gutter) * 2));
  background: var(--navy); color: var(--white);
  padding: 18px 22px; border-radius: var(--r-sm);
  font-stretch: var(--stretch-display); font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); line-height: 1;
}

/* ---------- Foco sobre fondos oscuros ---------- */
.section-navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--space-section); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .h-section,
.section-navy .h-item { color: var(--white); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head-stack { display: block; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head-stack .body-text { margin-top: 16px; font-size: var(--fs-md); line-height: 1.45; color: var(--muted); }
.section-head .body-text { color: var(--muted); font-size: var(--fs-md); line-height: 1.45; }
.section-navy .section-head .body-text { color: var(--on-navy); }
.section-navy .text-link { color: var(--white); }

/* ---------- Líneas de factura (servicios) ---------- */
.bill { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--navy); }
.bill-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.5fr) minmax(150px, 0.7fr);
  gap: 16px 48px;
  padding-block: 32px;
  border-bottom: 1px dashed var(--rule);
  align-items: start;
}
.bill-row .h-item { padding-top: 2px; }
.bill-row p { max-width: 54ch; }
.bill-figure { text-align: right; }
.bill-figure .num {
  display: block;
  font-stretch: var(--stretch-display); font-weight: 800;
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); line-height: 0.9;
  color: var(--orange-text);
  font-variant-numeric: lining-nums;
}
.bill-figure .label { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; }

.ocu-note {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  margin-top: 40px; padding: 24px; max-width: 760px;
  background: var(--mist); border-radius: var(--r-md);
}
.ocu-note .num {
  font-stretch: var(--stretch-display); font-weight: 800; font-size: 3rem; line-height: 0.9; color: var(--navy);
  font-variant-numeric: lining-nums; white-space: nowrap;
}
.ocu-note p { margin-bottom: 6px; }

/* ---------- Casa / negocio ---------- */
.audience { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.audience-item:nth-child(2) { margin-top: clamp(0px, 10vw, 140px); }
.audience-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-lg); margin-bottom: 24px;
}
.audience-item:nth-child(2) img { aspect-ratio: 4 / 5; }
.audience-item .h-item { margin-bottom: 12px; }
.audience-item p { max-width: 46ch; }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.step { position: relative; padding: 0 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--rule); }
.step-num {
  display: block; margin-bottom: 18px;
  font-stretch: var(--stretch-display); font-weight: 800; font-size: 4.5rem; line-height: 0.8;
  color: var(--orange-text);
  font-variant-numeric: lining-nums;
}
.step h3 { font-size: var(--fs-md); font-weight: 750; line-height: 1.2; margin: 0 0 10px; color: var(--navy); }
.step p { font-size: 1.0625rem; color: var(--ink); }
.steps-photo { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.steps-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.steps-quote {
  font-stretch: var(--stretch-display); font-weight: 800; font-size: var(--fs-2xl); line-height: 0.98; color: var(--navy);
  max-width: 14ch; text-wrap: balance;
}

/* ---------- Quiénes somos ---------- */


.phones { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.phones a { color: var(--white); font-weight: 700; font-size: var(--fs-md); text-decoration: none; font-variant-numeric: tabular-nums; }
.phones a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Foto de los socios (foto del cliente, fondo blanco) */
.team-photo { margin: 0; }
.team-photo img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 0;
  background: var(--white); border-radius: var(--r-lg);
}
.team-contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px;
  margin-top: 40px;
}
.team-label { margin: 0 0 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--on-navy-muted); }
.team-contact .phones { margin: 0; padding: 0; border: 0; }
.team-mails { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.team-mails a { color: var(--white); font-weight: 600; font-size: var(--fs-base); text-decoration: none; overflow-wrap: anywhere; }
.team-mails a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Preguntas ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-layout .h-section { position: sticky; top: 120px; }
.faq { border-top: 3px solid var(--navy); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-size: var(--fs-md); font-weight: 700; line-height: 1.3; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 28px; height: 28px; position: relative; }
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 3px; background: var(--orange-text); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.faq-item summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item .answer { padding: 0 48px 28px 0; max-width: 62ch; }
.faq-item .answer .source { margin-top: 10px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact .h-section { margin-bottom: 20px; }
.contact .lead { margin-bottom: 36px; }

.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field > label,
.fieldset legend { font-weight: 700; font-size: var(--fs-base); color: var(--navy); }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 10px; }

.input,
.select {
  width: 100%; min-height: 56px;
  padding: 12px 16px;
  font: inherit; color: var(--ink);
  background: var(--white);
  border: 2px solid var(--field-border); border-radius: var(--r-md);
}
.input:focus, .select:focus { border-color: var(--navy); }
.input[aria-invalid="true"] { border-color: var(--error); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 18px;
  border: 2px solid var(--field-border); border-radius: 999px;
  background: var(--white); color: var(--ink); font-weight: 600;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.chip span::before {
  content: ""; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--muted); flex: none;
  background: var(--white) center / 12px no-repeat;
}
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.chip input:checked + span::before {
  border-color: var(--orange); background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.6 2.5L10 3.2' fill='none' stroke='%2313264a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip input:focus-visible + span { outline: 3px solid var(--orange-text); outline-offset: 3px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-hint { font-size: var(--fs-sm); color: var(--muted); max-width: 52ch; margin: 0; }

.contact-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); overflow: hidden; }
.contact-photo {
  width: calc(100% + 2 * clamp(24px, 3vw, 36px));
  max-width: none;
  margin: calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px)) 28px;
  aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%;
}
.contact-card h3 { font-size: var(--fs-base); font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.contact-card .block + .block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
.contact-card .big { display: block; font-stretch: var(--stretch-display); font-weight: 800; font-size: var(--fs-lg); line-height: 1.15; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-card a.big:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-card address { font-style: normal; }
.contact-card .mail { display: block; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-card .mail:hover { text-decoration: underline; }

.fieldset .field-error { margin-top: 10px; }
.field-error { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--error); }
.field-hint { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.form-status {
  margin: 0; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--white); border-left: 4px solid var(--orange);
  font-size: var(--fs-base); color: var(--ink);
}

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--on-navy-muted); padding-block: 56px 40px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid img { width: 180px; }
.footer-title { font-size: var(--fs-sm); font-weight: 700; color: var(--white); margin: 0 0 10px; }
.footer-grid a { color: var(--on-navy); text-decoration: none; display: block; padding-block: 2px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid address { font-style: normal; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); color: var(--on-navy-muted); }

/* ---------- Barra fija en móvil ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .hero-grid,
  .section-head,
  .audience,
  .faq-layout,
  .contact,
  .steps-photo { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 48px; }
  .audience-item:nth-child(2) { margin-top: 0; }
  .audience-item:nth-child(2) img { aspect-ratio: 4 / 3; }
  .faq-layout .h-section { position: static; }
  .bill-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bill-row p { grid-column: 1 / -1; grid-row: 2; }
  .bill-figure { grid-column: 2; grid-row: 1; }
  .team-photo img { aspect-ratio: 4 / 3; object-position: 50% 0; }
  .team-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .header-inner { min-height: 64px; }
  .brand img { width: 132px; }
  .nav-phone { display: none; }
  .nav .btn { min-height: 44px; padding: 8px 14px; font-size: var(--fs-sm); }
  .btn-row .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 0; border-left: 0; }
  .step + .step { padding-top: 32px; border-top: 1px solid var(--rule); }
  .step-num { font-size: 3.5rem; }
  .bill-row { grid-template-columns: minmax(0, 1fr); }
  .bill-figure { grid-column: 1; grid-row: auto; text-align: left; }
  .photo-band figcaption { position: static; max-width: none; border-radius: 0; padding: 18px var(--gutter); }
  .ocu-note { grid-template-columns: minmax(0, 1fr); }
  .faq-item .answer { padding-right: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .stamp { width: 104px; height: 104px; right: -10px; bottom: 0; }
  .form-actions .btn { width: 100%; }

  .mobile-bar {
    display: grid;
    transition: transform 0.25s ease; grid-template-columns: 1fr 1.3fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--rule);
    box-shadow: 0 -8px 24px -12px rgba(19, 38, 74, 0.3);
  }
  .mobile-bar .btn { min-height: 52px; padding: 10px 12px; font-size: var(--fs-base); }
}

@media (max-width: 640px) {
  .js .mobile-bar:not(.is-shown) { transform: translateY(110%); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .mobile-bar { transition: none; }
}

@media print {
  .site-header, .mobile-bar, .printer::before { display: none; }
}
