/* ============================================================
   Qubics — hoja de estilo única
   Sistema de diseño del brief HUM Studio. Colores planos,
   turquesa como única acción, lima solo en precios.
   ============================================================ */

/* ---------- Fuentes autoalojadas (variable, un archivo por familia) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --qb-teal-800: #0A5B52;
  --qb-teal-700: #0B7C6F;   /* PRIMARIO */
  --qb-teal-500: #11B3A0;   /* decorativo, nunca texto */
  --qb-aqua-200: #7FEBD9;
  --qb-aqua-050: #EAF6F2;

  /* Acentos — uso limitado */
  --qb-lima:     #C3DC2B;   /* precio, badges */
  --qb-amarillo: #F5D949;   /* resalte de una palabra */

  /* Neutros */
  --qb-ink:      #111A18;
  --qb-muted:    #5A6B66;
  --qb-line:     #DCE5E1;
  --qb-surface:  #F4F7F4;
  --qb-white:    #FFFFFF;

  /* Tipografía */
  --ff-display: "Outfit", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, sans-serif;

  --fs-hero:  clamp(2.5rem, 6vw, 4.5rem);
  --fs-h1:    clamp(2rem, 4vw, 3rem);
  --fs-h2:    clamp(1.5rem, 3vw, 2rem);
  --fs-h3:    1.25rem;
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-price: clamp(1.75rem, 3vw, 2.25rem);

  /* Forma y espacio */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sp: 8px;
  --shadow-card:  0 2px 12px rgba(17, 26, 24, .06);
  --shadow-hover: 0 8px 24px rgba(11, 124, 111, .14);

  --wrap: 1200px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--qb-ink);
  background: var(--qb-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--qb-teal-700); text-decoration: none; }
a:hover { color: var(--qb-teal-800); }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.1;
  margin: 0 0 .4em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 { font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

/* Precios: SIEMPRE numerales tabulares */
.precio, .price, [data-price] {
  font-family: var(--ff-body);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tint { background: var(--qb-aqua-050); }
.section__head { max-width: 62ch; margin-bottom: 32px; }
.section__head p { color: var(--qb-muted); font-size: 1.05rem; margin: 0; }
.eyebrow-off { display: none; } /* recordatorio: sin píldoras eyebrow */
.lead { font-size: 1.125rem; color: var(--qb-muted); }
.text-muted { color: var(--qb-muted); }
.center { text-align: center; }
.mark {
  background: linear-gradient(180deg, transparent 58%, var(--qb-amarillo) 58%);
  padding-inline: .08em;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--qb-teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--qb-teal-700); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--qb-teal-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  line-height: 1; text-align: center;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out),
              background-color .18s var(--ease-out), color .18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { background: var(--qb-teal-800); color: #fff; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--qb-teal-700);
  border-color: var(--qb-line);
}
.btn--ghost:hover { --btn-fg: var(--qb-teal-800); background: var(--qb-aqua-050); color: var(--qb-teal-800); box-shadow: none; }
.btn--lg { min-height: 54px; padding: 16px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
/* Variante para fondos teal (hero, cta-band): pastilla blanca, texto teal */
.btn--on-dark { --btn-bg: #fff; --btn-fg: var(--qb-teal-800); }
.btn--on-dark:hover { background: var(--qb-aqua-050); color: var(--qb-teal-800); }
.btn__spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn[aria-busy="true"] .btn__spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }
.icon--sm { width: 16px; height: 16px; }

/* WhatsApp icon color inside teal buttons inherits currentColor */
.btn svg { fill: none; stroke: currentColor; }
.btn--wa svg { fill: currentColor; stroke: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--qb-line);
  box-shadow: 0 1px 0 rgba(17,26,24,.04);
  background: rgba(255,255,255,.9);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; color: var(--qb-teal-700); }
.brand svg { height: 26px; width: auto; }
.brand:hover { color: var(--qb-teal-800); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; }
.nav__links a {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--qb-ink); font-weight: 500; font-size: .95rem;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out);
}
.nav__links a:hover { background: var(--qb-aqua-050); color: var(--qb-teal-800); }
.nav__links a[aria-current="page"] { color: var(--qb-teal-700); font-weight: 600; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--qb-line); border-radius: var(--r-sm);
  color: var(--qb-ink); cursor: pointer;
}
.nav__toggle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav__toggle .icon-close { display: none; }
body.nav-open .nav__toggle .icon-open { display: none; }
body.nav-open .nav__toggle .icon-close { display: block; }

/* ---------- Encabezado de página (secciones internas) ---------- */
.page-header {
  background: var(--qb-aqua-050);
  border-bottom: 1px solid var(--qb-line);
  padding-block: clamp(40px, 7vw, 68px);
}
.page-header h1 { font-size: var(--fs-h1); margin-bottom: .25em; }
.page-header .lead { max-width: 60ch; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--qb-teal-700);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__art {
  position: absolute; inset: 0; z-index: -1;
  color: var(--qb-teal-800);
  opacity: .5;
  pointer-events: none;
}
.hero__art svg { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { padding-block: clamp(64px, 12vw, 132px); max-width: 40ch; }
.hero h1 {
  font-size: var(--fs-hero); line-height: 1.02; color: #fff;
  margin-bottom: .35em;
}
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px;
  font-size: .95rem; color: #fff;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero__trust svg { width: 18px; height: 18px; stroke: var(--qb-aqua-200); fill: none; stroke-width: 2; }

/* ---------- Segmentos (home) ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); justify-content: center; }

.segment {
  background: var(--qb-white); border: 1px solid var(--qb-line);
  border-radius: var(--r-lg); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}
.segment:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--qb-aqua-200); }
.segment__ico {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--qb-aqua-050); color: var(--qb-teal-700);
  display: grid; place-items: center; margin-bottom: 6px;
}
.segment__ico svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.segment h3 { margin: 0; }
.segment p { color: var(--qb-muted); margin: 0; font-size: .96rem; }
.segment__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tag {
  font-size: .8rem; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--qb-aqua-050); color: var(--qb-teal-800); font-weight: 500;
}
.segment__link { margin-top: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.segment__link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .18s var(--ease-out); }
.segment:hover .segment__link svg { transform: translateX(3px); }

/* ---------- Tira de precios ancla ---------- */
.anchors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.anchor {
  background: var(--qb-white); border: 1px solid var(--qb-line); border-radius: var(--r-md);
  padding: 22px 20px; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.anchor:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.anchor__label { font-size: .9rem; color: var(--qb-muted); }
.anchor__price { font-size: var(--fs-price); font-weight: 600; color: var(--qb-ink); line-height: 1.1; }
.anchor__from { font-size: .8rem; color: var(--qb-muted); font-weight: 500; text-transform: none; }
.anchor__unit { font-size: .95rem; color: var(--qb-muted); font-weight: 500; }
.price-hl { color: var(--qb-ink); background: var(--qb-lima); border-radius: 4px; padding: 0 .18em; }

/* ---------- Tarjeta de producto ---------- */
.card {
  background: var(--qb-white); border: 1px solid var(--qb-line);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--qb-aqua-200); }
.card__media {
  position: relative; aspect-ratio: 4 / 3; background: var(--qb-aqua-050);
  display: grid; place-items: center; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .ph { width: 100%; height: 100%; }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--qb-white); color: var(--qb-teal-800);
  font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
}
.card__badge--new { background: var(--qb-teal-700); color: #fff; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; }
.card__price {
  font-size: var(--fs-price); font-weight: 600; color: var(--qb-ink);
  display: flex; align-items: baseline; gap: 6px;
}
.card__price .from { font-size: .8rem; color: var(--qb-muted); font-weight: 500; }
.card__price .num { background: var(--qb-lima); border-radius: 6px; padding: 0 .18em; }
.card__price .unit { font-size: 1rem; color: var(--qb-muted); font-weight: 500; }
.card__note { color: var(--qb-muted); font-size: .9rem; margin: 0; }
.card__feat {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--qb-aqua-050); color: var(--qb-teal-800);
  font-size: .82rem; font-weight: 500; padding: 5px 11px; border-radius: var(--r-pill);
}
.card__feat svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.card__cta { margin-top: auto; padding-top: 8px; }

/* Placeholder SVG marca de agua */
.ph-wm { color: var(--qb-teal-500); opacity: .35; }
.ph-label {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  font-size: .72rem; color: var(--qb-muted); background: rgba(255,255,255,.85);
  padding: 3px 8px; border-radius: var(--r-pill);
}

/* ---------- Tabla de precios ---------- */
.ptable-wrap { overflow-x: auto; border-radius: var(--r-md); }
.ptable {
  width: 100%; border-collapse: collapse; background: var(--qb-white);
  border: 1px solid var(--qb-line); border-radius: var(--r-md); overflow: hidden;
  font-size: .96rem;
}
.ptable thead th {
  background: var(--qb-teal-700); color: #fff; text-align: left;
  font-family: var(--ff-display); font-weight: 600; font-size: .95rem;
  padding: 14px 18px;
}
.ptable th[scope="row"] { font-weight: 600; color: var(--qb-ink); }
.ptable td, .ptable th { padding: 14px 18px; border-top: 1px solid var(--qb-line); vertical-align: top; }
.ptable tbody tr:nth-child(even) { background: var(--qb-surface); }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ptable .muted { color: var(--qb-muted); font-size: .88rem; }

/* Presets de lona */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.preset {
  background: var(--qb-white); border: 2px solid var(--qb-line); border-radius: var(--r-md);
  padding: 16px; text-align: left; cursor: pointer; position: relative;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), transform .15s var(--ease-out);
}
.preset:hover { border-color: var(--qb-aqua-200); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.preset[aria-pressed="true"] { border-color: var(--qb-teal-700); box-shadow: var(--shadow-hover); }
.preset[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px;
  background: var(--qb-teal-700); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.preset__size { font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; }
.preset__price { font-variant-numeric: tabular-nums; color: var(--qb-teal-800); font-weight: 600; }
.preset__price.is-hd { color: var(--qb-teal-800); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--qb-white); border: 1px solid var(--qb-line); border-radius: var(--r-md);
  padding: 26px 22px; position: relative;
}
.step__n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--qb-teal-700); color: #fff;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin: 0 0 6px; }
.step p { color: var(--qb-muted); font-size: .94rem; margin: 0; }

/* ---------- Info / callouts ---------- */
.callout {
  border-left: 4px solid var(--qb-teal-500); background: var(--qb-aqua-050);
  border-radius: var(--r-md); padding: 18px 22px; color: var(--qb-ink);
}
.callout strong { color: var(--qb-teal-800); }
.note-diff {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--qb-aqua-050); color: var(--qb-teal-800);
  padding: 8px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: .92rem;
}
.note-diff svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Guía de papeles */
.papers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.paper {
  background: var(--qb-white); border: 1px solid var(--qb-line); border-radius: var(--r-md); padding: 18px 20px;
}
.paper h3 { font-family: var(--ff-display); font-size: 1.02rem; margin: 0 0 4px; font-weight: 600; }
.paper p { color: var(--qb-muted); font-size: .9rem; margin: 0; }

/* ---------- Sucursales ---------- */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branch { background: var(--qb-white); border: 1px solid var(--qb-line); border-radius: var(--r-md); overflow: hidden; }
.branch__media { aspect-ratio: 3/2; background: var(--qb-aqua-050); display: grid; place-items: center; position: relative; }
.branch__body { padding: 20px; }
.branch__body h3 { font-size: 1.1rem; margin: 0 0 8px; }
.branch__row { display: flex; gap: 10px; align-items: flex-start; color: var(--qb-muted); font-size: .92rem; margin-bottom: 8px; }
.branch__row svg { width: 18px; height: 18px; flex: none; stroke: var(--qb-teal-500); fill: none; stroke-width: 2; margin-top: 2px; }

/* ---------- Tira de tecnología ---------- */
.tech { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; opacity: .8; }
.tech span { font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem; color: var(--qb-muted); letter-spacing: .02em; }

/* ---------- Galería ---------- */
.gallery { columns: 3; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--qb-line); background: var(--qb-aqua-050); position: relative; }
.gallery figcaption { padding: 12px 16px; font-size: .9rem; color: var(--qb-muted); background: var(--qb-white); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.wa-float:hover { transform: scale(1.06); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float::after {
  content: attr(data-tip); position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--qb-ink); color: #fff; font-size: .82rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-out);
}
.wa-float:hover::after { opacity: 1; }

/* ---------- CTA final ---------- */
.cta-band {
  background: var(--qb-teal-700); color: #fff; border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 56px); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--qb-ink); color: rgba(255,255,255,.82); padding-block: 56px 32px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.footer__brand svg { height: 26px; color: #fff; margin-bottom: 14px; }
.footer__brand p { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 34ch; }
.site-footer h3 { font-family: var(--ff-body); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.footer__row { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 10px; color: rgba(255,255,255,.7); }
.footer__row svg { width: 18px; height: 18px; flex: none; stroke: var(--qb-teal-500); fill: none; stroke-width: 2; margin-top: 2px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ---------- Efectos de puntero: spotlight + tilt 3D ---------- */
.fx { position: relative; transform-style: preserve-3d; }
.fx::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 5;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(17, 179, 160, .16), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease-out); pointer-events: none;
}
.fx:hover::after, .fx.is-tilting::after { opacity: 1; }
.fx.is-tilting { transition: transform .12s var(--ease-out); z-index: 6; }

/* Hero: luz que sigue el cursor + parallax del line-art */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 26%) var(--my, 22%),
              rgba(127, 235, 217, .20), transparent 60%);
}
.hero__art { transition: transform .35s var(--ease-out); will-change: transform; }
.hero h1 .dot { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .dot { animation: dotpulse 2.6s var(--ease-out) infinite; }
  @keyframes dotpulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: .82; }
  }
}

/* ---------- Reveal on scroll (solo con JS; sin JS todo es visible) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- Breakpoints ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .site-header.nav-shell .nav__links { display: none; }

  /* Menú móvil desplegable */
  body.nav-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: var(--qb-white); border-bottom: 1px solid var(--qb-line);
    padding: 12px 20px 20px; box-shadow: var(--shadow-hover);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .nav__links a { padding: 14px 12px; border-radius: var(--r-sm); font-size: 1.05rem; }
  body.nav-open .nav__cta { display: block; margin: 10px 0 0; }
  body.nav-open .nav__cta .btn { width: 100%; }

  .grid--3, .grid--4, .anchors, .steps, .branches { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  .grid--3, .grid--4, .anchors, .steps, .branches { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero__cta .btn { width: 100%; }

  /* Tabla de precios -> tarjetas apiladas (sin scroll horizontal) */
  .ptable, .ptable thead, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; }
  .ptable { border: 0; background: transparent; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .ptable tr {
    background: var(--qb-white) !important; border: 1px solid var(--qb-line);
    border-radius: var(--r-md); margin-bottom: 12px; padding: 6px 4px;
  }
  .ptable td, .ptable th[scope="row"] {
    border: 0; display: flex; justify-content: space-between; gap: 16px;
    padding: 8px 16px; text-align: right;
  }
  .ptable th[scope="row"] { text-align: left; font-size: 1.05rem; padding-top: 12px; }
  .ptable td::before {
    content: attr(data-label); font-weight: 500; color: var(--qb-muted);
    text-align: left; font-size: .85rem;
  }
  .ptable td:empty { display: none; }
  .ptable .num { text-align: right; }
}

/* ---------- Precios apagados (interruptor global de datos) ---------- */
body.prices-off .price,
body.prices-off .card__price,
body.prices-off .anchor__price,
body.prices-off .anchor__from,
body.prices-off .preset__price,
body.prices-off .ptable .num,
body.prices-off .price-hl { display: none; }
body.prices-off .anchor__unit::after { content: "Cotiza por WhatsApp"; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .nav__toggle, .cta-band .btn { display: none; }
}
