/* ==========================================================================
   Macara · sitio público
   Brandbook 2026: crema + turquesa / amarillo / rosa / naranja, carbón para
   texto. Fredoka (títulos) + Nunito (texto). El círculo como recurso gráfico.
   ========================================================================== */

:root {
  --turquesa: #68CAD5;
  --amarillo: #F3DE61;
  --rosa: #EE548A;
  --naranja: #F7A31D;
  --carbon: #242323;
  --crema: #FFFCEE;
  --blanco: #FFFFFF;

  /* Tonos de apoyo derivados de la paleta */
  --turquesa-100: #E3F5F7;
  --turquesa-700: #1D6E78;
  --amarillo-100: #FDF6D2;
  --rosa-100: #FDE3EC;
  --rosa-700: #B01F55;
  --naranja-100: #FEEBCB;
  --naranja-700: #8F5200;
  --carbon-80: #4A4747;
  --carbon-60: #6B6766;
  --linea: #EAE4CC;
  --linea-fuerte: #D8D0B0;
  --verde: #2F7D4F;
  --verde-100: #E2F3E8;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgb(36 35 35 / 0.06), 0 2px 6px rgb(36 35 35 / 0.05);
  --shadow: 0 2px 4px rgb(36 35 35 / 0.05), 0 12px 28px -8px rgb(36 35 35 / 0.16);
  --shadow-lg: 0 4px 8px rgb(36 35 35 / 0.06), 0 28px 56px -16px rgb(36 35 35 / 0.24);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--carbon);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--amarillo); color: var(--carbon); }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 3px; border-radius: 6px; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--rosa); }
a:hover { text-decoration-color: var(--carbon); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.15; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--carbon-80); max-width: 36em; }
.muted { color: var(--carbon-60); }
.small { font-size: 0.9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--carbon); color: var(--blanco); padding: 10px 16px; border-radius: var(--pill); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */

.btn {
  --btn-bg: var(--carbon);
  --btn-fg: var(--blanco);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.7em 1.6em;
  border: 2px solid var(--btn-bg); border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(36 35 35 / 0.55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.35s var(--ease-out); }
.btn:hover .icon-end { transform: translateX(3px); }
.btn-outline { --btn-fg: var(--carbon); background: transparent; }
.btn-outline:hover { background: var(--carbon); color: var(--blanco); }
.btn-light { --btn-bg: var(--blanco); --btn-fg: var(--carbon); border-color: var(--blanco); }
.btn-rosa { --btn-bg: var(--rosa); --btn-fg: var(--carbon); }
.btn-sm { min-height: 42px; padding: 0.5em 1.1em; font-size: 0.93rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-text { background: none; border: 0; padding: 0.4em 0; font-weight: 800; display: inline-flex; gap: 0.4em; align-items: center; text-decoration: underline; text-decoration-color: var(--rosa); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--turquesa);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: rgb(36 35 35 / 0.12); box-shadow: 0 6px 20px -16px rgb(36 35 35 / 0.4); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex-shrink: 0; padding-block: 8px; }
.brand img { width: 200px; height: auto; }
@media (min-width: 720px) { .brand img { width: 240px; } }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: block; padding: 10px 14px; border-radius: var(--pill);
  font-weight: 700; text-decoration: none; color: var(--carbon);
  transition: background-color 0.2s, color 0.2s;
}
.nav a:not(.btn):hover { background: rgb(255 252 238 / 0.45); color: var(--carbon); }
.nav a[aria-current="page"] { color: var(--carbon); background: var(--amarillo); }
.nav .btn { margin-left: 10px; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 18px; border-radius: var(--pill);
  border: 2px solid var(--carbon); background: transparent; font-weight: 800;
}
.menu-toggle .icon { width: 22px; height: 22px; }
@media (min-width: 1080px) { .nav { display: block; } .site-header .menu-toggle { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  background: var(--amarillo); padding: 20px var(--gutter) 32px;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 50px) 42px);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-out), visibility 0s 0.6s;
}
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 50px) 42px); visibility: visible; transition: clip-path 0.7s var(--ease-out), visibility 0s; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.mobile-nav-top img { width: 190px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 4px; }
.mobile-nav ul a { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; text-decoration: none; padding: 4px 0; }
.mobile-nav .deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.mobile-nav-footer { margin-top: auto; display: grid; gap: 12px; }

/* ---------- Secciones y círculos ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-amarillo { background: var(--amarillo); }
.bg-turquesa { background: var(--turquesa); }
.bg-rosa { background: var(--rosa); }
.bg-naranja { background: var(--naranja); }
.bg-blanco { background: var(--blanco); }
.bg-carbon { background: var(--carbon); color: var(--crema); }

.dot { position: absolute; border-radius: 50%; pointer-events: none; }
.dot-t { background: var(--turquesa); }
.dot-a { background: var(--amarillo); }
.dot-r { background: var(--rosa); }
.dot-n { background: var(--naranja); }
.clip { overflow: hidden; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; max-width: 14em; }
.section-head p { margin: 0; max-width: 30em; }

/* ---------- Hero ---------- */

.hero { background: var(--amarillo); position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; } }
.hero h1 { font-size: clamp(2.7rem, 5.8vw, 5rem); letter-spacing: -0.02em; line-height: 1.02; margin-bottom: 0.3em; }
.hero h1 span { display: block; }
.hero .lead { color: var(--carbon); margin-bottom: 32px; }
.hero-art { position: relative; aspect-ratio: 640 / 600; max-width: 600px; justify-self: center; width: 100%; }
.hero-art img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hero-art .dot { z-index: 0; }

.quick-check {
  display: grid; gap: 10px; background: var(--blanco); padding: 10px; border-radius: 26px;
  box-shadow: var(--shadow); max-width: 640px;
}
@media (min-width: 560px) { .quick-check { grid-template-columns: minmax(170px, 1.1fr) minmax(150px, 1fr) auto; border-radius: var(--pill); padding: 8px; } }
.quick-check label { display: flex; flex-direction: column; justify-content: center; padding: 6px 18px; border-radius: 20px; min-height: 52px; }
.quick-check label span { font-size: 0.78rem; font-weight: 800; color: var(--carbon-60); line-height: 1.2; }
.quick-check input, .quick-check select { border: 0; background: none; padding: 0; font-weight: 700; font-size: 1rem; outline: none; width: 100%; min-height: 26px; }
.quick-check label:focus-within { background: var(--amarillo-100); }
@media (min-width: 560px) { .quick-check label + label { border-left: 1px solid var(--linea); border-radius: 0; } }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-weight: 700; }

/* ---------- Bloques de contenido ---------- */

.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.photo-block { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; }
.photo-block img { width: 100%; height: 100%; object-fit: cover; }

.big-quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: paso; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px 30px; border-radius: var(--radius); background: var(--blanco); counter-increment: paso; }
.step::before {
  content: counter(paso);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 20px;
  background: var(--step-color, var(--turquesa));
}
.step:nth-child(2) { --step-color: var(--amarillo); }
.step:nth-child(3) { --step-color: var(--rosa); }
.step:nth-child(4) { --step-color: var(--naranja); }
.step h3 { margin-bottom: 0.35em; }
.step p { margin: 0; color: var(--carbon-80); }

/* Valores */
.values { display: grid; gap: 36px 56px; }
@media (min-width: 760px) { .values { grid-template-columns: 1fr 1fr; } }
.value { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.value .circle { width: 56px; height: 56px; border-radius: 50%; }
.value h3 { margin-bottom: 0.25em; }
.value p { margin: 0; color: var(--carbon-80); }

.tri { display: grid; gap: 16px; }
@media (min-width: 860px) { .tri { grid-template-columns: repeat(3, 1fr); } }
.tri > div { border-radius: var(--radius); padding: 32px 28px 36px; min-height: 240px; }
.tri h3 { margin-top: 12px; }
.tri p { margin: 0; font-size: 1.05rem; }

/* ---------- Catálogo ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border-radius: var(--pill); border: 2px solid var(--linea-fuerte); background: var(--blanco);
  font-weight: 800; font-size: 0.95rem; text-decoration: none; color: var(--carbon);
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-out);
}
.chip:hover { border-color: var(--carbon); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip.is-active { background: var(--carbon); border-color: var(--carbon); color: var(--blanco); }
.chip .count { font-size: 0.8rem; opacity: 0.7; font-weight: 700; }
.chip .sw { width: 12px; height: 12px; border-radius: 50%; }

.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.product-card {
  position: relative; display: flex; flex-direction: column; background: var(--blanco); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .media { aspect-ratio: 1; background: var(--card-bg, var(--turquesa)); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.45rem; }
.product-card .summary { margin: 0; color: var(--carbon-80); font-size: 0.98rem; }
.product-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.price { font-weight: 800; font-size: 1.05rem; }
.price small { font-weight: 600; color: var(--carbon-60); font-size: 0.85rem; }
.swatches { display: flex; gap: 6px; }
.swatches span { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(36 35 35 / 0.18); }

.setup-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .setup-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .setup-grid { grid-template-columns: repeat(3, 1fr); } }
.setup-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--carbon); background: var(--blanco); transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.setup-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.setup-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--amarillo-100); }
.setup-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.setup-card:hover .media img { transform: scale(1.04); }
.setup-card .body { padding: 20px 24px 24px; }
.setup-card h3 { margin-bottom: 6px; }
.setup-card p { margin: 0; color: var(--carbon-80); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 800; padding: 4px 12px; border-radius: var(--pill); background: var(--amarillo-100); margin-bottom: 10px; }

/* Ficha de producto */
.product-detail { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1.1fr 1fr; } }
.gallery { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--card-bg, var(--turquesa)); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 84px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 3px solid transparent; padding: 0; background: var(--blanco); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--carbon); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-list { display: grid; gap: 0; margin: 28px 0; border-top: 1px solid var(--linea); }
.spec-list > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.spec-list dt { font-weight: 800; }
.spec-list dd { margin: 0; color: var(--carbon-80); }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: var(--pill); background: var(--blanco); border: 1px solid var(--linea); font-weight: 700; font-size: 0.95rem; }
.variant-pill i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(36 35 35 / 0.18); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; font-size: 0.92rem; color: var(--carbon-60); margin-bottom: 24px; }
.crumbs a { text-decoration: none; color: var(--carbon-80); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }

/* ---------- Páginas interiores ---------- */

.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.page-hero h1 { max-width: 12em; }
.page-hero .lead { color: var(--carbon); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--blanco); border-radius: var(--radius); padding: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font-weight: 800; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.4s var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 24px 22px; color: var(--carbon-80); }

.terms { background: var(--blanco); border-radius: var(--radius); padding: 28px; }
.terms ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Mapa de cobertura */
.coverage { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .coverage { grid-template-columns: 1.5fr 1fr; } }
.coverage-map { min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--turquesa-100); }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.zone-list li { display: flex; align-items: center; gap: 14px; background: var(--blanco); border-radius: var(--radius-sm); padding: 14px 18px; }
.zone-list i { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.zone-list strong { flex: 1; }

/* Banda CTA */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band h2 { max-width: 14em; margin-inline: auto; }
.cta-band p { max-width: 32em; margin: 0 auto 32px; font-size: 1.2rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Pie ---------- */

.site-footer { background: var(--carbon); color: var(--crema); padding-block: 72px 32px; position: relative; overflow: hidden; }
.site-footer a { color: var(--crema); text-decoration-color: var(--rosa); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { font-size: 1.1rem; margin-bottom: 14px; color: var(--amarillo); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.footer-grid ul a:hover { text-decoration: underline; }
.footer-logo { width: 240px; margin-bottom: 20px; }
.footer-tagline { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; max-width: 12em; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 252 238 / 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: rgb(255 252 238 / 0.72); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 252 238 / 0.08); transition: background-color 0.2s, transform 0.3s var(--ease-out); }
.socials a:hover { background: var(--rosa); color: var(--carbon); transform: translateY(-2px); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--carbon); box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease-out);
}
.wa-float:hover { transform: scale(1.06) rotate(-6deg); }
.wa-float .icon { width: 30px; height: 30px; }
body.has-bottom-bar .wa-float { bottom: 104px; }

/* ---------- Formularios ---------- */

.field { display: grid; gap: 6px; }
.field > span, .label { font-weight: 800; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--carbon-60); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 2px solid var(--linea-fuerte); background: var(--blanco);
  font-size: 1rem; font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--carbon-60); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--carbon); box-shadow: 0 0 0 4px var(--amarillo); }
.input::placeholder, .textarea::placeholder { color: #8A8580; font-weight: 500; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--rosa-700); }
.field-error { color: var(--rosa-700); font-weight: 700; font-size: 0.9rem; display: flex; gap: 6px; align-items: center; }
.field-error:empty { display: none; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242323' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.alert .icon { margin-top: 2px; }
.alert-info { background: var(--turquesa-100); }
.alert-warn { background: var(--naranja-100); }
.alert-error { background: var(--rosa-100); color: #7A1238; }
.alert-ok { background: var(--verde-100); color: #1C5234; }

/* ---------- Revelado al hacer scroll ---------- */

.reveal { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.js :is(.hero, .page-hero) .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); filter: blur(6px); }

.pop-dot { transition: transform 1.1s var(--ease-out); }
.js .pop-dot:not(.is-in) { transform: scale(0.2); }

/* Error */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.error-page .code { font-family: var(--font-display); font-weight: 600; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; }

/* ---------- Mapas ---------- */
.leaflet-container { font-family: var(--font-body); background: var(--turquesa-100); }
.mc-pin { background: none; border: 0; filter: drop-shadow(0 6px 6px rgb(36 35 35 / 0.3)); }
.mc-tip { font-family: var(--font-body); font-size: 0.92rem; border-radius: 10px; border: 0; box-shadow: var(--shadow); padding: 8px 12px; }
.leaflet-control-attribution { font-size: 10px; }

/* ==========================================================================
   Cotizador
   ========================================================================== */

.qz-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 64px) 24px; }
.qz-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 0.2em; }
.qz-hero .lead { margin: 0; }
.qz { padding-bottom: 120px; position: relative; }

.qz-stepper { margin: 8px 0 28px; position: sticky; top: var(--header-h); z-index: 20; background: var(--crema); padding-block: 10px; }
.qz-stepper ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qz-stepper button {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 6px;
  border: 2px solid var(--linea-fuerte); border-radius: var(--pill); background: var(--blanco); font-weight: 800; text-align: left;
  transition: border-color 0.2s, background-color 0.2s;
}
.qz-stepper .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--crema); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; flex-shrink: 0; transition: background-color 0.3s; }
.qz-stepper .t { font-size: 0.95rem; }
.qz-stepper li:nth-child(1) { --c: var(--turquesa); }
.qz-stepper li:nth-child(2) { --c: var(--amarillo); }
.qz-stepper li:nth-child(3) { --c: var(--rosa); }
.qz-stepper li:nth-child(4) { --c: var(--naranja); }
.qz-stepper button[aria-current="step"] { border-color: var(--carbon); }
.qz-stepper button[aria-current="step"] .n, .qz-stepper button.is-done .n { background: var(--c); }
.qz-stepper button.is-done .n { font-size: 0; }
.qz-stepper button.is-done .n::after { content: ""; width: 16px; height: 9px; border-left: 3px solid var(--carbon); border-bottom: 3px solid var(--carbon); transform: translateY(-2px) rotate(-45deg); }
.qz-stepper button:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 719px) {
  .qz-stepper .t { display: none; }
  .qz-stepper button { justify-content: center; padding: 6px; }
  .qz-stepper button[aria-current="step"] .t { display: inline; }
  .qz-stepper ol { grid-template-columns: auto auto auto auto; justify-content: space-between; }
  .qz-stepper button[aria-current="step"] { padding-right: 16px; }
}

.qz-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .qz-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; } }

.qz-panel { background: var(--blanco); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.qz-panel h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.qz-panel h3 { font-size: 1.3rem; margin: 0; }
.qz-panel-head { margin-bottom: 20px; }
.qz-panel-head p { margin: 0; }
.qz-panel:not([hidden]) { animation: qz-in 0.6s var(--ease-out); }
@keyframes qz-in { from { opacity: 0; transform: translateY(14px); } }

.qz-block { margin-top: 32px; }
.qz-block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.qz-row { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 720px) { .qz-row { grid-template-columns: 1fr 1fr; } }
.qz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--linea); }
.qz-hp { position: absolute; left: -9999px; }
.hint { font-style: normal; font-weight: 600; color: var(--carbon-60); }

.qz-event-types .chip { min-height: 48px; }
.qz-event-types .chip[aria-checked="true"] { background: var(--carbon); color: var(--blanco); border-color: var(--carbon); }

.qz-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.qz-switch input { appearance: none; width: 46px; height: 28px; border-radius: var(--pill); background: var(--linea-fuerte); position: relative; cursor: pointer; transition: background-color 0.25s; flex-shrink: 0; }
.qz-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blanco); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease-out); }
.qz-switch input:checked { background: var(--carbon); }
.qz-switch input:checked::after { transform: translateX(18px); }

/* Calendario */
.qz-cal { border: 2px solid var(--linea); border-radius: var(--radius); padding: 16px; max-width: 520px; }
.qz-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qz-cal-head strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; text-transform: capitalize; }
.qz-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--crema); display: grid; place-items: center; transition: background-color 0.2s; }
.qz-icon-btn:hover { background: var(--amarillo-100); }
.qz-icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qz-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.qz-cal-dow span { text-align: center; font-weight: 800; font-size: 0.8rem; color: var(--carbon-60); padding: 4px 0; }
.qz-day {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font-weight: 700; font-size: 1rem;
  display: grid; place-items: center; transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease-out);
}
.qz-day:hover:not(:disabled) { background: var(--amarillo-100); }
.qz-day:disabled { color: #BDB6A6; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgb(36 35 35 / 0.2); }
.qz-day.is-today { box-shadow: inset 0 0 0 2px var(--linea-fuerte); }
.qz-day[data-level]::after { content: ""; position: absolute; bottom: 12%; width: 6px; height: 6px; border-radius: 50%; }
.qz-day[data-level="1"]::after { background: var(--turquesa); }
.qz-day[data-level="2"]::after { background: var(--naranja); width: 8px; height: 8px; }
.qz-day.in-range { background: var(--amarillo-100); border-radius: 12px; }
.qz-day.is-selected { background: var(--carbon); color: var(--blanco); transform: scale(1.04); }
.qz-day.is-selected::after { background: var(--blanco) !important; }
.qz-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 0.85rem; font-weight: 700; color: var(--carbon-60); }
.qz-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qz-cal-legend i { width: 9px; height: 9px; border-radius: 50%; }
.lg-free { box-shadow: inset 0 0 0 2px var(--linea-fuerte); }
.lg-some { background: var(--turquesa); }
.lg-high { background: var(--naranja); }
.qz-date-summary { margin: 14px 0 0; font-weight: 800; font-size: 1.1rem; }
.qz-date-summary:empty { display: none; }

/* Cantidades */
.qty { display: inline-flex; align-items: center; border: 2px solid var(--linea-fuerte); border-radius: var(--pill); background: var(--blanco); height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; display: grid; place-items: center; border-radius: var(--pill); color: var(--carbon); }
.qty button:hover:not(:disabled) { background: var(--amarillo-100); }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 800; font-size: 1.05rem; background: none; -moz-appearance: textfield; padding: 0; height: 100%; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--carbon); box-shadow: 0 0 0 4px var(--amarillo); }
.qty-lg { height: 52px; width: fit-content; }
.qty-lg input { width: 72px; }
.qty.has-value { border-color: var(--carbon); }

/* Productos del cotizador */
.qz-products { display: grid; gap: 14px; margin-top: 20px; }
.qz-product { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px; border-radius: var(--radius); border: 2px solid var(--linea); transition: border-color 0.2s; }
.qz-product.has-items { border-color: var(--carbon); }
.qz-product.is-focus { animation: qz-focus 1.6s var(--ease-out); }
@keyframes qz-focus { 0%, 40% { box-shadow: 0 0 0 6px var(--amarillo); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (min-width: 720px) { .qz-product { grid-template-columns: 120px 1fr; gap: 20px; padding: 18px; } }
.qz-product .thumb { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--card-bg, var(--turquesa)); }
.qz-product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.qz-product h3 { font-size: 1.3rem; margin: 2px 0 4px; }
.qz-product .p-sum { margin: 0 0 6px; color: var(--carbon-80); font-size: 0.95rem; }
.qz-product .p-price { font-weight: 800; }
.qz-product .p-price small { color: var(--carbon-60); font-weight: 600; }
.qz-product .p-min { font-size: 0.85rem; color: var(--carbon-60); font-weight: 700; }
.qz-variants { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 4px; }
@media (min-width: 720px) { .qz-variants { grid-column: 2; } }
.qz-variant { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 16px; background: var(--crema); }
.qz-variant .sw { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1.5px rgb(36 35 35 / 0.18); }
.qz-variant .v-name { font-weight: 800; line-height: 1.2; }
.qz-variant .v-avail { display: block; font-size: 0.82rem; font-weight: 700; color: var(--carbon-60); }
.qz-variant .v-avail.low { color: var(--naranja-700); }
.qz-variant .v-avail.none { color: var(--rosa-700); }
.qz-variant .v-info { flex: 1; min-width: 0; }
.qz-variant.is-out { opacity: 0.6; }

.qz-kids-hint { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--amarillo-100); font-weight: 700; }
.qz-kids-hint .bar { flex: 1; height: 10px; border-radius: var(--pill); background: var(--blanco); overflow: hidden; min-width: 60px; }
.qz-kids-hint .bar i { display: block; height: 100%; background: var(--carbon); border-radius: var(--pill); transition: width 0.6s var(--ease-out); }
.qz-kids-hint.is-complete .bar i { background: var(--verde); }

/* Ubicación */
.qz-search { position: relative; display: flex; gap: 8px; align-items: center; }
.qz-search > .icon { position: absolute; left: 16px; color: var(--carbon-60); pointer-events: none; }
.qz-search .input { padding-left: 46px; }
.qz-results { list-style: none; margin: 8px 0 0; padding: 6px; border-radius: var(--radius-sm); background: var(--blanco); box-shadow: var(--shadow); display: grid; gap: 2px; }
.qz-results button { width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.qz-results button:hover, .qz-results button:focus-visible { background: var(--amarillo-100); }
.qz-results small { display: block; font-weight: 600; color: var(--carbon-60); }
.qz-results .empty { padding: 10px 12px; color: var(--carbon-60); font-weight: 600; }
.qz-map-wrap { position: relative; margin-top: 16px; }
.qz-map { height: clamp(320px, 48vh, 460px); border-radius: var(--radius); overflow: hidden; background: var(--turquesa-100); z-index: 0; }
.qz-locate { position: absolute; left: 12px; bottom: 12px; z-index: 5; box-shadow: var(--shadow); }
.qz-zone { margin-top: 16px; }
.qz-zone-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); }
.qz-zone-card .z-dot { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.qz-zone-card strong { display: block; font-size: 1.1rem; }
.qz-zone-card .z-price { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; white-space: nowrap; }
.qz-zone-card.in { background: var(--turquesa-100); }
.qz-zone-card.out { background: var(--naranja-100); }
.qz-zone-card.idle { background: var(--crema); color: var(--carbon-80); }

/* Revisión */
.qz-review { margin-top: 28px; display: grid; gap: 10px; }
@media (min-width: 720px) { .qz-review { grid-template-columns: repeat(3, 1fr); } }
.qz-review > div { background: var(--crema); border-radius: var(--radius-sm); padding: 14px 16px; }
.qz-review .r-l { font-size: 0.8rem; font-weight: 800; color: var(--carbon-60); display: flex; justify-content: space-between; }
.qz-review .r-l button { border: 0; background: none; padding: 0; font-weight: 800; text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: 3px; font-size: 0.8rem; color: var(--carbon); }
.qz-review .r-v { font-weight: 800; margin-top: 4px; line-height: 1.35; }

/* Resumen */
.qz-summary { position: sticky; top: calc(var(--header-h) + 90px); }
.qz-summary-inner { background: var(--blanco); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.qz-summary-inner::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--amarillo); right: -44px; top: -44px; }
.qz-summary-head { display: flex; justify-content: space-between; align-items: center; position: relative; }
.qz-summary h2 { font-size: 1.7rem; margin: 0; }
.qz-summary-close { display: none; }
.qz-sum-event { margin: 14px 0 6px; font-weight: 700; color: var(--carbon-80); display: grid; gap: 4px; }
.qz-sum-event span { display: flex; gap: 8px; align-items: center; }
.qz-sum-event .icon { width: 18px; height: 18px; }
.qz-sum-items { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.qz-sum-items li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); animation: qz-in 0.5s var(--ease-out); }
.qz-sum-items .i-name { font-weight: 800; line-height: 1.25; }
.qz-sum-items .i-sub { font-size: 0.85rem; color: var(--carbon-60); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.qz-sum-items .i-sub button { border: 0; background: none; padding: 0; color: var(--rosa-700); font-weight: 800; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 2px; }
.qz-sum-items .i-total { font-weight: 800; text-align: right; }
.qz-sum-items .empty { display: block; color: var(--carbon-60); font-weight: 600; padding: 16px 0; border: 0; }
.qz-sum-totals { margin: 16px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 0; }
.qz-sum-totals dd { padding-left: 12px; }
.qz-sum-totals dt { color: var(--carbon-80); font-weight: 700; }
.qz-sum-totals dd { margin: 0; text-align: right; font-weight: 800; }
.qz-sum-totals .pending { color: var(--carbon-60); font-weight: 700; font-size: 0.92rem; }
.qz-sum-totals .total { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--carbon); padding-top: 12px; border-top: 2px solid var(--carbon); margin-top: 4px; }
.qz-sum-note { margin: 18px 0 0; }

/* Barra inferior (móvil) */
.qz-bottom-bar { display: none; }
.qz-scrim { position: fixed; inset: 0; background: rgb(36 35 35 / 0.45); z-index: 70; }
@media (max-width: 1023px) {
  .qz-bottom-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--blanco); box-shadow: 0 -10px 30px -12px rgb(36 35 35 / 0.3); border-radius: 22px 22px 0 0;
  }
  .qz-bar-sum { border: 0; background: none; text-align: left; padding: 4px 0; display: grid; }
  .qz-bar-sum .lbl { font-size: 0.82rem; font-weight: 700; color: var(--carbon-60); text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: 3px; }
  .qz-bar-sum strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
  .qz-summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 80; max-height: 86vh; overflow-y: auto; transform: translateY(105%); transition: transform 0.5s var(--ease-out); }
  .qz-summary.is-open { transform: none; }
  .qz-summary-inner { border-radius: 26px 26px 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .qz-summary-close { display: grid; position: relative; z-index: 1; }
  .qz-actions [data-next] { display: none; }
  .qz-actions:has([data-prev]) { justify-content: flex-start; }
  .qz-actions:not(:has([data-prev])):not(:has([data-submit])) { display: none; }
}

/* Página de cotización enviada */
.quote-doc { background: var(--blanco); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); position: relative; overflow: hidden; }
.quote-doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 28px; border-bottom: 2px solid var(--carbon); }
.quote-doc-head img { width: 220px; }
.quote-doc-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; text-align: right; }
.quote-doc-head .folio { text-align: right; font-weight: 800; color: var(--carbon-60); }
.q-section { padding-block: 24px; border-bottom: 1px solid var(--linea); }
.q-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--carbon-60); margin-bottom: 12px; }
.q-grid { display: grid; gap: 14px 32px; }
@media (min-width: 720px) { .q-grid { grid-template-columns: repeat(2, 1fr); } }
.q-grid dt { font-weight: 700; color: var(--carbon-60); font-size: 0.9rem; }
.q-grid dd { margin: 2px 0 0; font-weight: 800; }
.q-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.q-table th { text-align: left; font-size: 0.85rem; color: var(--carbon-60); font-weight: 800; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.q-table td { padding: 12px 0; border-bottom: 1px solid var(--linea); font-weight: 700; vertical-align: top; }
.q-table .num { text-align: right; white-space: nowrap; padding-left: 16px; }
.q-table small { display: block; color: var(--carbon-60); font-weight: 600; }
.q-totals { margin: 24px 0 0 auto; max-width: 420px; background: var(--amarillo); border-radius: var(--radius); padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-variant-numeric: tabular-nums; }
.q-totals dt { font-weight: 700; }
.q-totals dd { margin: 0; text-align: right; font-weight: 800; }
.q-totals .t { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; padding-top: 10px; border-top: 2px solid var(--carbon); }
.q-terms ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--carbon-80); }
.quote-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.success-banner { position: relative; overflow: hidden; background: var(--turquesa); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); margin-bottom: 24px; }
.success-banner h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.2em; }
.success-banner p { font-size: 1.15rem; max-width: 34em; margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); font-weight: 800; font-size: 0.9rem; background: var(--amarillo-100); }

@media print {
  .site-header, .site-footer, .wa-float, .quote-actions, .success-banner, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section, .section-tight { padding: 0 !important; }
  .quote-doc { padding: 0; border-radius: 0; }
  .q-totals { background: #fff; border: 2px solid var(--carbon); }
  .container { width: 100%; }
}
.mc-tiles { filter: saturate(0.55) brightness(1.04) contrast(0.95); }
.qz-panel form > .qz-row:first-child { margin-top: 0; }
.qz-panel form > .field { margin-top: 18px; }
@media (max-width: 719px) { .hero > .dot-r { display: none; } }
:is(.qz-hero, .page-hero, .hero) > .container { position: relative; z-index: 1; }
@media (max-width: 719px) { .qz-hero > .dot-r, .page-hero > .dot-r { display: none; } }

/* ==========================================================================
   Carrusel de portada (administrable)
   ========================================================================== */

.hc { position: relative; overflow: hidden; background: var(--amarillo); }
.hc-track { display: grid; }
.hc-slide {
  grid-area: 1 / 1; position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(520px, 70vh, 700px);
  padding-block: clamp(40px, 5vw, 64px) clamp(120px, 12vw, 150px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.hc-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 0.9s var(--ease-out), visibility 0s; }
.hc-deco { z-index: 0; }
.hc-inner { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hc-split .hc-inner { grid-template-columns: 1.05fr 1fr; gap: 32px; } }
.hc-title { font-size: clamp(2.6rem, 5.6vw, 4.9rem); letter-spacing: -0.02em; line-height: 1.02; margin-bottom: 0.3em; max-width: 11em; }
.hc .lead { color: var(--carbon); margin-bottom: 28px; max-width: 30em; }
.hc-media { position: relative; display: grid; place-items: center; }
.hc-media img { position: relative; width: 100%; max-height: min(520px, 56vh); object-fit: contain; }
.hc-stage { position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: var(--blanco); opacity: 0.45; }
.hc-slide.bg-blanco .hc-stage { background: var(--amarillo-100); opacity: 1; }

/* Foto completa con panel de color (regla de marca: texto nunca directo sobre la foto) */
.hc-full { align-items: flex-end; }
.hc-full .hc-inner { width: min(100% - 2 * var(--gutter), var(--max)); }
.hc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-panel { max-width: 580px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hc-panel .hc-title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.hc-panel .lead { margin-bottom: 22px; }

/* Entrada de cada diapositiva: el momento animado de la portada */
.hc-slide.is-active .hc-text > * { animation: hc-up 0.9s var(--ease-out) both; }
.hc-slide.is-active .hc-text > :nth-child(2) { animation-delay: 0.08s; }
.hc-slide.is-active .hc-text > :nth-child(3) { animation-delay: 0.16s; }
.hc-slide.is-active .hc-media img { animation: hc-pop 1.1s var(--ease-out) both; }
.hc-slide.is-active .hc-stage, .hc-slide.is-active .hc-deco { animation: hc-dot 1.2s var(--ease-out) both; }
.hc-slide.is-active .hc-bg { animation: hc-zoom 9s ease-out both; }
.hc-full.is-active .hc-panel { animation: hc-up 0.9s var(--ease-out) both; }
@keyframes hc-up { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }
@keyframes hc-pop { from { opacity: 0; transform: scale(0.92) rotate(-2deg); } }
@keyframes hc-dot { from { transform: scale(0.3); } }
@keyframes hc-zoom { from { transform: scale(1.08); } }

.hc-controls { position: absolute; left: 0; right: 0; bottom: clamp(64px, 7vw, 80px); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.hc-controls > * { pointer-events: auto; }
.hc-dots { display: flex; gap: 4px; }
.hc-dots button { border: 0; background: none; padding: 10px 4px; cursor: pointer; }
.hc-dots i { display: block; width: 12px; height: 12px; border-radius: var(--pill); background: rgb(36 35 35 / 0.3); transition: width 0.45s var(--ease-out), background-color 0.3s; }
.hc-dots button[aria-current="true"] i { width: 36px; background: var(--carbon); }
.hc-arrows { display: flex; gap: 8px; }
.hc-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--carbon); background: var(--blanco); display: grid; place-items: center; color: var(--carbon); transition: transform 0.3s var(--ease-out), background-color 0.2s; }
.hc-btn:hover { background: var(--carbon); color: var(--blanco); transform: translateY(-2px); }
.hc-btn .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hc.is-paused [data-pause] { background: var(--carbon); color: var(--blanco); }

.quick-band { position: relative; z-index: 5; margin-top: clamp(-56px, -5vw, -44px); }
.quick-band .quick-check { max-width: 720px; box-shadow: var(--shadow-lg); }
.quick-band .hero-links { margin-top: 16px; }

@media (max-width: 899px) {
  .hc-split .hc-media { order: -1; }
  .hc-media img { max-height: 280px; }
  .hc-stage { width: 70%; }
  .hc-full .hc-panel { box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .hc-slide, .hc-slide * { animation: none !important; }
}
.hc-full { padding-bottom: clamp(150px, 14vw, 180px); }
@media (max-width: 719px) {
  .hc-deco:first-of-type { display: none; }
  .hc-media img { max-height: 230px; }
  .hc-title { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .hc-slide { padding-bottom: 130px; min-height: 0; }
  .hc-controls { bottom: 66px; }
  .hc-arrows [data-prev], .hc-arrows [data-next] { display: none; }
  .hc-btn { width: 40px; height: 40px; }
  .hc-full { min-height: 560px; }
}

/* Cotizador · categorías como sub-pasos y tarjetas compactas */
.qz-cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 4px -2px 0; scrollbar-width: none; }
.qz-cats::-webkit-scrollbar { display: none; }
.qz-cat { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 46px; padding: 4px 16px 4px 4px; border-radius: var(--pill); border: 2px solid var(--linea-fuerte); background: var(--blanco); font-weight: 800; font-size: .95rem; }
.qz-cat .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.qz-cat[aria-current="true"] { border-color: var(--carbon); background: var(--carbon); color: var(--blanco); }
.qz-cat[aria-current="true"] .n { color: var(--carbon); }
.qz-subnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.qz-product { grid-template-columns: 72px 1fr; align-items: start; }
@media (min-width: 720px) { .qz-product { grid-template-columns: 96px 1fr; } }
.qz-product .p-sum { font-size: .9rem; }
.qz-expand { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: var(--pill); border: 2px solid var(--carbon); background: var(--blanco); font-weight: 800; font-size: .9rem; }
.qz-expand:hover { background: var(--amarillo-100); }
.qz-expand .icon { width: 16px; height: 16px; }
.qz-expand .sws { display: inline-flex; }
.qz-expand .sws i { width: 14px; height: 14px; border-radius: 4px; margin-right: -3px; box-shadow: 0 0 0 2px var(--blanco), inset 0 0 0 1px rgb(36 35 35 / .2); }
.qz-product .p-count { display: block; margin-top: 6px; font-size: .85rem; font-weight: 800; color: var(--verde); }
/* Muestra de color cuadrada: no se confunde con un botón de opción */
.qz-variant .sw { border-radius: 7px; }
.qz-main, .qz-panel, .qz-product > *, .p-head { min-width: 0; }
.qz-expand { max-width: 100%; }
.qz-variant .sw { border-radius: 50%; width: 24px; height: 24px; box-shadow: 0 1px 3px rgb(36 35 35 / .35), inset 0 0 0 1px rgb(36 35 35 / .08); }
.tag .icon, .tag .ev-icon-img { width: 18px; height: 18px; }
.ev-icon-img { object-fit: contain; display: inline-block; vertical-align: middle; }
.tag-amarillo { background: var(--amarillo); }
.tag-turquesa { background: var(--turquesa-100); }
.tag-rosa { background: var(--rosa-100); }
.tag-naranja { background: var(--naranja-100); }
.ev-chip .icon, .ev-chip .ev-icon-img { width: 20px; height: 20px; }
.ev-chip[aria-checked="false"].ev-amarillo .icon { color: #8F7A00; }
.ev-chip[aria-checked="false"].ev-turquesa .icon { color: var(--turquesa-700); }
.ev-chip[aria-checked="false"].ev-rosa .icon { color: var(--rosa-700); }
.ev-chip[aria-checked="false"].ev-naranja .icon { color: var(--naranja-700); }
.qz-coupon { margin-top: 14px; }
.qz-coupon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.qz-coupon .input { min-height: 42px; text-transform: uppercase; font-size: .95rem; }
.qz-coupon .input::placeholder { text-transform: none; }
.qz-coupon [data-coupon-applied] { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 12px; border-radius: 12px; background: var(--verde-100); }
.qz-coupon-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.qz-coupon-tag .icon { width: 18px; height: 18px; }

/* Cotizador · buscador y opciones (cojín) */
.qz-search { position: relative; display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
.qz-search .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--carbon-60); pointer-events: none; }
.qz-search .input { padding-left: 42px; border-radius: var(--pill); }
.qz-search [data-search-count] { position: absolute; right: 16px; pointer-events: none; }
.qz-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 32px 16px; color: var(--carbon-60); }
.qz-empty .icon { width: 28px; height: 28px; }
.qz-empty p { margin: 0; max-width: 34ch; }
.qz-opt { display: grid; gap: 8px; padding: 10px 12px 12px; margin: -2px 0 6px; background: var(--crema); border-radius: 0 0 14px 14px; }
.qz-opt .o-label { font-size: 0.85rem; font-weight: 800; color: var(--carbon-80); }
.qz-opt .o-left { font-weight: 700; color: var(--naranja-700); margin-left: 4px; }
.qz-opt .o-left.ok { color: var(--verde); }
.o-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.o-chip { min-height: 38px; padding: 6px 14px; border-radius: var(--pill); border: 1.5px solid var(--linea-fuerte); background: var(--blanco); font: inherit; font-weight: 700; color: var(--carbon); cursor: pointer; transition: background-color .15s, border-color .15s; }
.o-chip:hover { border-color: var(--carbon); }
.o-chip[aria-pressed="true"] { background: var(--carbon); border-color: var(--carbon); color: var(--crema); }
.o-step { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 12px; border-radius: var(--pill); border: 1.5px solid var(--linea-fuerte); background: var(--blanco); font-weight: 700; }
.o-step.on { border-color: var(--carbon); }
.o-step span { margin-right: 4px; }
.o-step b { min-width: 1.4em; text-align: center; }
.o-step button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--crema); color: var(--carbon); cursor: pointer; }
.o-step button:disabled { opacity: .35; cursor: default; }
.o-step button .icon { width: 14px; height: 14px; }
