/* =====================================================================
   Áridos Zúñiga SpA — sitio público
   Fuente visual: docs/referencias/DISENO_REFERENCIA.jpg (manda la imagen, ERS §1.2)
   Orden: fuentes · tokens · base · componentes · secciones · responsive · accesibilidad
   ===================================================================== */

/* ---------- Fuentes autoalojadas (OFL) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (contrato PROJECT_LOG) ---------- */
:root {
  --navy: #10202D;
  --orange: #FAAE39;
  --text: #1F2933;
  --muted: #6C6864;
  --surface: #F8FAFA;
  --border: #DDDDDD;
  --radius: 10px;
  --container: 1200px;

  --navy-2: #1B3A57;          /* botón secundario "Comprar producto" */
  --orange-hover: #E6992A;    /* primario oscurecido ~8% */
  --orange-soft: #FDF0DB;     /* badge capacidad / círculos de pasos */
  --taupe: #B3A591;
  --white: #FFFFFF;
  --error: #B42318;
  --success: #12733A;
  --radius-btn: 8px;
  --radius-input: 6px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .06);
  --shadow-lg: 0 18px 40px rgba(16, 32, 45, .18);
  --header-h: 76px;
  --gutter: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 1em; height: 1em; }
.icon--fill { fill: currentColor; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--orange); color: var(--navy); box-shadow: 0 2px 6px rgba(250, 174, 57, .35); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--ghost { background: rgba(16, 32, 45, .55); border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--navy { background: var(--navy-2); color: var(--white); }
.btn--navy:hover { background: var(--navy); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }

.link-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #3B4855;
}
.eyebrow--light { color: var(--white); }
.section { padding-block: 30px 30px; }
.section-head { margin-bottom: 18px; }
.section-title {
  margin-top: 4px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--navy);
}
.section-title--light { color: var(--white); }
.section-sub { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* =====================================================================
   1. Header
   ===================================================================== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(16, 32, 45, .08), 0 4px 14px rgba(16, 32, 45, .04);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark { width: 80px; height: 49px; flex-shrink: 0; color: var(--navy); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 23px; font-weight: 800; letter-spacing: .005em; white-space: nowrap; }
.brand__spa { margin-left: 4px; font-size: .7em; font-weight: 800; }
.brand__tagline {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 38px; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.site-nav__link:hover::after { transform: scaleX(.6); }
.site-nav__link[aria-current="true"] { font-weight: 700; color: var(--navy); }
.site-nav__link[aria-current="true"]::after { transform: scaleX(1); }
.site-nav__cta-mobile { display: none; }
.site-header__cta { margin-left: 22px; padding-inline: 22px; }
.site-header__cta .icon { width: 22px; height: 22px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--navy);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* =====================================================================
   2. Hero
   ===================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 450px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 62% 55%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 21, 30, .9) 0%, rgba(10, 21, 30, .78) 30%, rgba(10, 21, 30, .3) 55%, rgba(10, 21, 30, .05) 75%),
    linear-gradient(180deg, rgba(10, 21, 30, .45) 0%, rgba(10, 21, 30, 0) 35%, rgba(10, 21, 30, 0) 75%, rgba(10, 21, 30, .45) 100%);
}
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 450px;
  padding-block: 40px 44px;
}
.hero__content { max-width: 560px; }
.hero__title {
  margin-top: 14px;
  font-size: clamp(36px, 4.1vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--orange); }
.hero__lead {
  max-width: 470px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .95);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__actions .btn { min-width: 230px; }

.hero__note {
  position: absolute;
  top: 26px;
  right: var(--gutter);
  margin: 0;
  font-family: var(--hand);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  transform: rotate(-9deg);
}
.hero__note span { position: relative; display: block; padding-bottom: 10px; }
.hero__note span::after,
.quote__note span::after {
  content: "";
  position: absolute;
  left: 8%;
  right: -4%;
  bottom: 0;
  height: 10px;
  border-bottom: 3.5px solid var(--orange);
  border-radius: 0 0 60% 40% / 0 0 100% 100%;
}

/* =====================================================================
   3. Franja de atributos
   ===================================================================== */
.trust { background: var(--navy); color: var(--white); }
.trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 16px;
}
.trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 16px;
}
.trust__item + .trust__item { border-left: 1px solid rgba(255, 255, 255, .16); }
.trust__icon { width: 36px; height: 36px; color: var(--orange); }
.trust__item p { display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.35; }
.trust__item strong { font-weight: 700; }
.trust__item span { color: rgba(255, 255, 255, .82); }

/* =====================================================================
   4. Servicios
   ===================================================================== */
.services { background: linear-gradient(180deg, #FBFCFD 0%, var(--white) 100%); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #EEF0F2;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.service-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 18px;
  text-align: center;
}
.service-card__icon { width: 32px; height: 32px; color: var(--navy); }
.service-card__title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.service-card__text { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* =====================================================================
   5. Catálogo
   ===================================================================== */
.products { padding-top: 14px; padding-bottom: 26px; }
.products__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.capacity-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  padding: 14px 28px 14px 22px;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--navy);
}
.capacity-badge__icon { width: 46px; height: 46px; }
.capacity-badge span { display: flex; flex-direction: column; font-size: 16px; line-height: 1.3; }
.capacity-badge strong { font-size: 19px; font-weight: 800; }

.products__empty { padding: 24px; border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #EEF0F2;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.product-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 12px 14px;
}
.product-card__title { font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--navy); }
.product-card__text { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.product-card__price { margin: 8px 0 10px; font-size: 15px; color: var(--muted); }
.product-card__price strong { font-weight: 800; color: var(--navy); }
.product-card .stepper { margin-top: auto; }
.product-card__add { margin-top: 10px; min-height: 40px; padding-inline: 10px; font-size: 14px; gap: 8px; }

.stepper {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--white);
}
.stepper__btn {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--white);
  color: var(--navy);
}
.stepper__btn:hover:not([disabled]) { background: var(--surface); }
.stepper__btn[disabled] { color: #A9A5A2; cursor: not-allowed; }
.stepper__btn .icon { width: 18px; height: 18px; stroke-width: 2.5; }
.stepper__input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-inline: 1px solid var(--border);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm { grid-template-columns: 34px 46px 34px; height: 34px; }

/* =====================================================================
   6. Cotización
   ===================================================================== */
.quote {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.quote__media {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -2;
  width: 66%;
}
.quote__media picture, .quote__media img { width: 100%; height: 100%; }
.quote__media img { object-fit: cover; object-position: 30% 60%; filter: saturate(.8); }
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 32, 45, .97) 0%, rgba(16, 32, 45, .9) 24%, rgba(16, 32, 45, .5) 40%, rgba(16, 32, 45, .42) 50%, rgba(16, 32, 45, .9) 58%, var(--navy) 62%);
}
.quote__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  padding-block: 30px;
}
.quote__intro { position: relative; align-self: stretch; padding-block: 12px 96px; }
.quote__lead { max-width: 360px; margin-top: 12px; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.checklist { display: grid; gap: 12px; margin-top: 22px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.checklist__dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  flex-shrink: 0;
}
.checklist__dot .icon { width: 16px; height: 16px; stroke-width: 3; }
.quote__note {
  position: absolute;
  right: 4%;
  bottom: 18px;
  margin: 0;
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  transform: rotate(-12deg);
}
.quote__note span { position: relative; display: block; padding-bottom: 10px; }

.quote-card {
  padding: 18px 18px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 14px;
}
.field { display: flex; flex-direction: column; grid-column: span 4; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field--product { grid-column: span 5; }
.field--qty { grid-column: span 3; }
.field--wide { grid-column: span 7; }
.field__label { margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--navy); }
.req { color: var(--error); }
.control { position: relative; }
.control__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--navy);
  transform: translateY(-50%);
  pointer-events: none;
}
.input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--white);
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #7F8891; opacity: 1; }
.input:hover { border-color: #C3C7CB; }
.input:focus { border-color: var(--navy-2); }
.control--icon .input { padding-left: 40px; }
.select { padding-right: 36px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select:invalid, .select.is-placeholder { color: #7F8891; }
.select__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--navy);
  transform: translateY(-50%);
  pointer-events: none;
}
.textarea { height: 44px; min-height: 44px; max-height: 180px; padding-top: 11px; line-height: 1.4; resize: vertical; }
.field__error { margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--error); }
.field.has-error .input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--error);
  border-radius: var(--radius-input);
  background: #FDECEA;
  font-size: 14px;
  color: var(--error);
}
.quote-form__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.quote-form__actions .btn .icon { width: 24px; height: 24px; }

/* Resumen del pedido (carrito, ERS §6.5) */
.order-summary {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.order-summary__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-summary__title { font-size: 15px; font-weight: 800; color: var(--navy); }
.order-summary__list { display: grid; gap: 8px; margin-top: 10px; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px 128px 36px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.cart-line__name { font-weight: 600; color: var(--navy); }
.cart-line__price { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.cart-line__remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-input);
  background: none;
  color: var(--muted);
}
.cart-line__remove:hover { background: #FDECEA; color: var(--error); }
.cart-line__remove .icon { width: 18px; height: 18px; }
.order-summary__totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.order-summary__totals dt { font-size: 12px; color: var(--muted); }
.order-summary__totals dd { font-size: 15px; font-weight: 800; color: var(--navy); }
.order-summary__note { margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* =====================================================================
   7. Proceso
   ===================================================================== */
.process { padding-block: 22px 22px; }
.process .section-head { margin-bottom: 12px; }
.process__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}
.step { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-soft);
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.step__icon { width: 38px; height: 38px; margin-top: 3px; color: var(--navy); }
.step__title { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.step__text { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.step__arrow {
  position: absolute;
  right: -29px;
  top: 20px;
  width: 22px;
  height: 22px;
  color: #9AA1A7;
}

/* =====================================================================
   8. Testimonios
   ===================================================================== */
.testimonials { padding-block: 18px 24px; background: var(--surface); }
.testimonials .section-head { margin-bottom: 12px; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.testimonial {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 20px;
  border: 1px solid #EEF0F2;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
  flex-shrink: 0;
}
.testimonial__avatar--initials {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--orange);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
}
.testimonial__body { display: flex; flex-direction: column; min-width: 0; }
.testimonial__text { font-size: 14px; line-height: 1.45; color: #4A4744; }
.stars { display: flex; gap: 3px; margin-top: 8px; color: var(--orange); }
.stars .icon { width: 17px; height: 17px; stroke-width: 1.5; }
.testimonial figcaption { display: flex; flex-direction: column; margin-top: 4px; line-height: 1.3; }
.testimonial__name { font-size: 15px; font-weight: 800; color: var(--navy); }
.testimonial__role { font-size: 14px; color: var(--muted); }

/* =====================================================================
   9. Footer
   ===================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, .88);
}
.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.55fr 1.15fr 1.35fr .7fr .8fr;
  padding-block: 26px 10px;
}
.site-footer__grid > * { padding-inline: 26px; }
.site-footer__grid > *:first-child { padding-left: 0; }
.site-footer__grid > * + * { border-left: 1px solid rgba(255, 255, 255, .16); }
.brand--light { color: var(--white); }
.brand--light .brand__mark { color: var(--white); width: 76px; height: 46px; }
.brand--light .brand__name { font-size: 20px; font-weight: 700; }
.brand--light .brand__tagline { color: rgba(255, 255, 255, .78); font-size: 9.5px; letter-spacing: .16em; }
.site-footer__title { margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--white); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.contact-list { display: grid; gap: 8px; font-size: 14.5px; }
.contact-list li, .zone { display: flex; align-items: flex-start; gap: 12px; }
.contact-list .icon, .zone .icon { width: 20px; height: 20px; color: var(--orange); margin-top: 1px; }
.zone span { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.zone strong { font-weight: 500; color: var(--white); }
.zone small { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.footer-links { display: grid; gap: 2px; font-size: 14.5px; }
.footer-links a { display: inline-block; padding: 1px 0; }
.social { display: flex; gap: 14px; }
.social__link { display: grid; place-items: center; width: 36px; height: 36px; color: var(--white); }
.social__link .icon { width: 24px; height: 24px; }
.social__link--pending { opacity: .85; }
.site-footer__legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 8px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}
.site-footer__legal ul { display: flex; gap: 20px; }
.site-footer__watermark {
  position: absolute;
  right: -30px;
  bottom: -18px;
  width: 300px;
  height: 184px;
  color: var(--white);
  opacity: .07;
  pointer-events: none;
}

/* =====================================================================
   Feedback: toast + modal
   ===================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  font-size: 14.5px;
  transform: translateX(-50%);
}
.toast__icon { width: 22px; height: 22px; color: var(--orange); }
.toast__link { color: var(--orange); font-weight: 700; white-space: nowrap; }

.modal {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.modal::backdrop { background: rgba(10, 21, 30, .6); }
.modal__body { display: flex; flex-direction: column; align-items: center; padding: 28px 24px 24px; text-align: center; }
.modal__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--success);
}
.modal__icon .icon { width: 32px; height: 32px; }
.modal__title { margin-top: 14px; font-size: 24px; font-weight: 800; color: var(--navy); }
.modal__text { margin-top: 6px; color: var(--muted); }
.modal__code { margin-top: 14px; padding: 10px 16px; border-radius: var(--radius-input); background: var(--surface); font-size: 15px; }
.modal__code strong { color: var(--navy); font-size: 17px; letter-spacing: .02em; }
.modal__hint { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.modal__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* =====================================================================
   Páginas secundarias (estado de pedido, resultado sin JS, errores)
   ===================================================================== */
.site-header--simple { position: static; }
.page { padding-block: 48px 64px; background: var(--surface); min-height: calc(100vh - var(--header-h)); }
.page__inner { max-width: 720px; }
.page-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.page-card__subtitle { font-size: 18px; font-weight: 800; color: var(--navy); }
.page-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status-pill {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-list dt { font-size: 13px; color: var(--muted); }
.detail-list dd { font-weight: 700; color: var(--navy); }
.item-list { display: grid; gap: 6px; }
.item-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.error-list { display: grid; gap: 6px; padding-left: 18px; list-style: disc; color: var(--error); }

/* =====================================================================
   RESPONSIVE (ERS §9) — siempre al final
   ===================================================================== */

/* 992–1199: desktop compacto */
@media (max-width: 1199.98px) {
  :root { --gutter: 24px; }
  .site-header__inner { gap: 18px; }
  .site-nav__list { gap: 18px; }
  .site-nav__link { font-size: 14.5px; }
  .site-header__cta { margin-left: 4px; padding-inline: 14px; font-size: 14px; gap: 8px; }
  .brand { gap: 10px; }
  .brand__mark { width: 66px; height: 40px; }
  .brand__name { font-size: 19px; }
  .brand__tagline { font-size: 9px; letter-spacing: .16em; }
  .services__grid, .products__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .footer-links { font-size: 14px; }
  .site-footer__grid > * { padding-inline: 18px; }
}

/* <992: menú colapsable (tablet y móvil) */
@media (max-width: 991.98px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: inline-flex; }
  .site-header__cta { margin-left: 0; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    border-top: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 14px 24px rgba(16, 32, 45, .12);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { display: flex; align-items: center; min-height: 48px; padding: 10px 0; border-bottom: 1px solid #EEF0F2; font-size: 16px; }
  .site-nav__link::after { left: 0; right: auto; bottom: 8px; width: 40px; }

  .hero, .hero__inner { min-height: 440px; }
  .hero__content { max-width: 55%; }
  .hero__note { font-size: 26px; }
  .hero__content { max-width: 60%; }
  .hero__actions .btn { min-width: 0; padding-inline: 18px; }

  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .trust__item { justify-content: flex-start; }
  .trust__item:nth-child(3) { border-left: 0; }

  .products__head { flex-direction: column; gap: 4px; margin-bottom: 16px; }
  .products__head .section-head { margin-bottom: 0; }
  .capacity-badge { padding: 10px 20px 10px 16px; }

  .quote__media { width: 100%; height: 420px; inset: 0 0 auto 0; }
  .quote::before {
    background: linear-gradient(180deg, rgba(16, 32, 45, .78) 0%, rgba(16, 32, 45, .7) 260px, var(--navy) 420px);
  }
  .quote__inner { grid-template-columns: 1fr; gap: 20px; padding-block: 36px 40px; }
  .quote__intro { padding-block: 0 70px; }
  .quote__note { right: 0; bottom: 6px; font-size: 25px; }

  .process__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .step__arrow { display: none; }

  .testimonials__grid { grid-template-columns: 1fr; }

  .site-footer__grid { grid-template-columns: 1.2fr 1.3fr .8fr .8fr; row-gap: 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__grid > * { padding-inline: 18px; }
  .site-footer__grid > *:nth-child(2) { border-left: 0; padding-left: 0; }
}

/* 768–991: tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .field, .field--product, .field--qty { grid-column: span 6; }
  .field--wide, .field--full { grid-column: 1 / -1; }
}

/* <768: móvil grande */
@media (max-width: 767.98px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .section { padding-block: 32px 28px; }
  .brand__mark { width: 52px; height: 32px; }
  .brand__name { font-size: 18px; }
  .brand__tagline { font-size: 8.5px; letter-spacing: .14em; }
  .site-header__inner { gap: 12px; }
  .site-header__cta { display: none; }
  .site-nav__cta-mobile { display: flex; width: 100%; margin-top: 16px; }

  .hero, .hero__inner { min-height: 560px; }
  .hero__media img { object-position: 78% 50%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(10, 21, 30, .55) 0%, rgba(10, 21, 30, .72) 40%, rgba(10, 21, 30, .9) 100%);
  }
  .hero__inner { align-items: flex-end; padding-block: 96px 32px; }
  .hero__content { max-width: 100%; }
  .hero__note { top: 18px; right: 16px; font-size: 22px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .trust__list { grid-template-columns: 1fr 1fr; padding-block: 14px; }
  .trust__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 10px; }
  .trust__icon { width: 30px; height: 30px; }
  .trust__item p { font-size: 13.5px; }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service-card__body { padding: 12px 10px 16px; }
  .service-card__title { font-size: 15px; }
  .service-card__text { font-size: 13.5px; }
  .products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stepper, .stepper--sm { height: 46px; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .stepper--sm { width: 132px; }
  .cart-line__remove { width: 44px; height: 44px; }
  .link-btn { min-height: 44px; }
  .product-card__add { min-height: 44px; }

  .form-grid { grid-template-columns: 1fr; }
  .field, .field--product, .field--qty, .field--wide, .field--full { grid-column: 1 / -1; }
  .quote-card { padding: 16px; }
  .quote-form__actions { grid-template-columns: 1fr; }
  .order-summary__totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto 44px; }
  .cart-line__price { grid-column: 1 / 2; grid-row: 2; text-align: left; }

  .process__list { grid-template-columns: 1fr; row-gap: 18px; }
  .step { padding-right: 0; }
  .step__arrow { display: none; }

  .testimonial { padding: 16px; gap: 14px; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > * { padding-inline: 0 !important; border-left: 0 !important; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }
  .detail-list { grid-template-columns: 1fr; }
}

/* <576: móvil — una columna principal, botones ancho completo */
@media (max-width: 575.98px) {
  .products__grid { grid-template-columns: 1fr; }
  .product-card__img { aspect-ratio: 2 / 1; }
  .capacity-badge { width: 100%; }
  .modal__actions .btn { width: 100%; }
}
/* Servicios: 1 columna solo en pantallas < 390 px (ERS §5.4) */
@media (max-width: 389.98px) {
  .services__grid { grid-template-columns: 1fr; }
  .trust__list { grid-template-columns: 1fr; }
  .trust__item { flex-direction: row; align-items: center; border-left: 0 !important; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 16px; }
  .brand__tagline { display: none; }
}

/* =====================================================================
   ACCESIBILIDAD — foco visible y movimiento reducido
   ===================================================================== */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy);
}
.input:focus-visible { outline-offset: 1px; }
.btn--primary:focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 2px var(--white); }
.stepper__input:focus-visible, .stepper__btn:focus-visible { outline-offset: -3px; box-shadow: none; outline-color: var(--navy); }

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

/* =====================================================================
   FIDELIDAD AL MOCKUP A 941 px (ERS §1.2: la imagen manda; §16.1 compara a 941).
   La referencia muestra 6 tarjetas de servicios, 6 de productos y 4 atributos
   en una sola fila a 941 px. Se conserva esa composición desde 900 px.
   ===================================================================== */
@media (min-width: 900px) {
  .services__grid,
  .products__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =====================================================================
   PÁGINAS LEGALES (privacidad / términos)
   ===================================================================== */
.legal__inner { max-width: 820px; }
.legal__body { color: var(--text); line-height: 1.65; }
.legal__body h2 { color: var(--navy); font-size: 20px; font-weight: 800; margin: 26px 0 8px; }
.legal__body p, .legal__body li { color: var(--muted); margin-bottom: 12px; }
.legal__body ul { padding-left: 22px; list-style: disc; }
.legal__body a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.legal__updated { margin-top: 30px; font-size: 13px; color: var(--muted); }
