/* =====================================================================
   Tienda CINBOSA — estilos del sitio público
   Identidad: azul claro #52A2EC, azul oscuro #154D81, blancos y grises.
   ===================================================================== */

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

:root {
  --blue: #52a2ec;
  --blue-600: #3a8ad6;
  --blue-50: #eef6fd;
  --navy: #154d81;
  --navy-700: #103d67;
  --navy-900: #0b2b4a;
  --ink: #1b2733;
  --text: #33414e;
  --muted: #5f6d7a;
  --line: #dde4ea;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --success: #1e7d4f;
  --success-bg: #e7f5ee;
  --warning: #8a5a00;
  --warning-bg: #fff4dc;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --whatsapp: #1f8f4e;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 64, .06), 0 6px 20px rgba(16, 40, 64, .06);
  --container: 1720px;
  --gutter: clamp(16px, 3vw, 56px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  /* El contenido ocupa el alto disponible para que el pie quede siempre abajo. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .site-header, body > .site-footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
/* Sin subrayado en todo el sitio; los enlaces dentro de texto se distinguen por color y peso. */
a { color: var(--navy); text-decoration: none; transition: color .2s; }
.prose a, .assurance a, .breadcrumbs a, .desc-body a, .faq-a a, .notice a, .alert a, .hint a { font-weight: 600; color: var(--blue-600); }
.prose a:hover, .assurance a:hover, .desc-body a:hover, .faq-a a:hover, .notice a:hover, .alert a:hover, .hint a:hover { color: var(--navy); }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.text-success { color: var(--success); font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.page-pad { padding-top: 28px; padding-bottom: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--blue-600); margin-bottom: .5em; }
.eyebrow-light { color: #b9dcfb; }
.lead { font-size: 1.15rem; color: #e3effa; max-width: 56ch; }
.lead-dark { font-size: 1.08rem; color: var(--muted); }
.hint { font-size: .86rem; color: var(--muted); margin: .35em 0 0; }
.link { display: inline-block; margin-top: 12px; font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-dark { background: var(--blue); color: var(--navy-900); }
.btn-dark:hover { background: #73b5f1; color: var(--navy-900); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--blue-50); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-50); color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #187a42; color: #fff; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.04rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.btn-block { display: flex; width: 100%; margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--danger); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.link-btn:hover { color: #8f1c13; }

/* ---------- Encabezado ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); transition: background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease; }
/* Inicio: el encabezado flota transparente sobre el banner y toma su color al hacer scroll (clase de site.js). */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; }
.has-hero .site-header.is-scrolled, .has-hero .site-header:has(.mobile-nav[open]) { background: rgba(21, 77, 129, .96); box-shadow: 0 4px 20px rgba(0, 0, 0, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a, .mobile-nav nav a { color: #e6f0fa; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.cart-link:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.badge { background: var(--blue); color: var(--navy-900); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; color: #fff; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--navy-700); display: flex; flex-direction: column; padding: 8px 12px 16px; box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
.mobile-nav nav a { padding: 12px; }

/* ---------- Inicio: héroe con video ---------- */
.hv { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: min(100vh, 940px); display: flex; align-items: stretch;
  background: var(--navy-900) url("/img/hero-agua-poster.webp") center / cover no-repeat; }
@media (max-width: 767px) { .hv { background-image: url("/img/hero-agua-poster-800.webp"); } }
.hv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.hv-video.is-playing { opacity: 1; }
.hv-overlay { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 24, 44, .6) 0%, rgba(6, 24, 44, 0) 180px),
    linear-gradient(0deg, rgba(6, 24, 44, .9) 0%, rgba(6, 24, 44, 0) 45%),
    linear-gradient(90deg, rgba(8, 30, 54, .92) 0%, rgba(11, 43, 74, .72) 48%, rgba(11, 43, 74, .3) 100%); }
/* El padding superior suma la altura del encabezado (68px), que flota encima. */
.hv-inner { display: flex; flex-direction: column; justify-content: center; gap: 56px; padding-top: calc(68px + 72px); padding-bottom: 88px; width: 100%; }
.hv-copy { max-width: 720px; }
.hv-copy > * { animation: hv-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.hv-copy > :nth-child(2) { animation-delay: .12s; }
.hv-copy > :nth-child(3) { animation-delay: .24s; }
.hv-copy > :nth-child(4) { animation-delay: .36s; }
@keyframes hv-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hv-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: #e3f1fd; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 22px; }
.hv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(82, 162, 236, .7); animation: hv-pulse 2.2s infinite; }
@keyframes hv-pulse { 70% { box-shadow: 0 0 0 10px rgba(82, 162, 236, 0); } 100% { box-shadow: 0 0 0 0 rgba(82, 162, 236, 0); } }
.hv h1 { text-wrap: balance; color: #fff; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.025em; margin-bottom: .45em; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hv-accent { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(90deg, #8cc8ff, var(--blue) 60%, #b9e0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hv-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #d7e7f6; max-width: 58ch; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 12px; }
.hv-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; animation: hv-in .9s .5s cubic-bezier(.2, .7, .2, 1) both; }
.hv-points li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); line-height: 1.4; transition: background-color .25s, transform .25s; }
.hv-points li:hover { background: rgba(255, 255, 255, .13); transform: translateY(-3px); }
.hv-points svg { flex: none; color: var(--blue); margin-top: 2px; }
.hv-dots { display: none; }
.hv-points strong { display: block; color: #fff; margin-bottom: 2px; }
.hv-points span { color: #c3d6ea; font-size: .92rem; }
.hv-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.hv-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hv-wheel 1.8s infinite; }
@keyframes hv-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Botones del héroe ---------- */
.btn-accent { background: var(--blue); color: var(--navy-900); box-shadow: 0 8px 24px rgba(82, 162, 236, .35); }
.btn-accent:hover { background: #7cbcf4; color: var(--navy-900); transform: translateY(-1px); }
.btn-glass { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .7); }

/* ---------- Inicio: cinta de marcas ---------- */
.brand-strip { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brand-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.brand-strip:hover .brand-track { animation-play-state: paused; }
.brand-list { display: flex; list-style: none; margin: 0; padding: 0; }
.brand-list li { padding: 0 48px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--navy); opacity: .7; white-space: nowrap; position: relative; }
.brand-list li::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Aparición al hacer scroll (la clase la agrega site.js) ---------- */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 28px 0 8px; }
.section-muted { background: var(--surface-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-head-left { text-align: left; margin-left: 0; margin-bottom: 36px; }
.section-head .lead-dark { margin-bottom: 0; }
.section-head-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 64px; align-items: end; margin-bottom: 40px; }
.section-head-split h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 0; }
.section-head-split .lead-dark { margin: 0; max-width: 52ch; }

/* ---------- Inicio: familias de producto ---------- */
.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.family-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .25s, box-shadow .3s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.family-card:hover { border-color: transparent; box-shadow: 0 18px 40px rgba(16, 40, 64, .12); transform: translateY(-6px); color: var(--text); }
/* Línea azul clara pegada a la imagen, como en las tarjetas de cinbosa.com. */
.family-media { aspect-ratio: 4 / 3; background: #e9ebee; overflow: hidden; border-bottom: 2px solid var(--blue); }
.family-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.family-card:hover .family-media img { transform: scale(1.06); }
.family-cta .arrow { display: inline-block; transition: transform .25s; }
.family-card:hover .family-cta .arrow { transform: translateX(5px); }
.family-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.family-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.family-card p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.family-cta { margin-top: auto; font-weight: 650; font-size: .9rem; color: var(--navy); }
.family-card:hover .family-cta { color: var(--blue-600); }

/* ---------- Inicio: sectores ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector { position: relative; overflow: hidden; padding: 28px 24px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .3s, box-shadow .3s, color .3s; }
.sector::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, var(--navy), var(--navy-900)); opacity: 0; transition: opacity .35s; }
.sector > * { position: relative; z-index: 1; }
.sector:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 40, 64, .14); }
.sector:hover::before { opacity: 1; }
.sector-num { display: block; font-size: .85rem; font-weight: 750; color: var(--blue-600); margin-bottom: 28px; transition: color .3s; }
.sector h3 { font-size: 1.25rem; margin-bottom: 6px; transition: color .3s; }
.sector p { margin: 0; color: var(--muted); font-size: .93rem; transition: color .3s; }
.sector:hover h3 { color: #fff; }
.sector:hover p { color: #c3d6ea; }
.sector:hover .sector-num { color: var(--blue); }

/* ---------- Inicio: producto destacado ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding: clamp(20px, 3vw, 40px); border-radius: 28px;
  background: radial-gradient(600px 400px at 0% 0%, rgba(82, 162, 236, .18), transparent 70%), linear-gradient(135deg, var(--blue-50), #fff 70%); border: 1px solid #e2edf7; }
.spotlight-media { display: block; overflow: hidden; border-radius: 20px; aspect-ratio: 5 / 4; background: #e9ebee; box-shadow: 0 24px 50px rgba(16, 40, 64, .14); }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.spotlight-media:hover img { transform: scale(1.05); }
.spotlight-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.02em; }
.spotlight-copy .check-list { margin: 20px 0; }
.spotlight-price { margin: 0; }
/* Tarjeta "Tienda en línea": foto de fondo con degradado azul y el texto abajo. */
/* Mismo borde claro que las demás tarjetas: con borde marino se percibía más grande. */
.family-card-all { position: relative; isolation: isolate; border-color: var(--line); color: #d6e9fb; background: var(--navy-900); }
.family-card-all::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/lineas/bombas-multietapas.webp") center / cover no-repeat; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.family-card-all::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 30, 54, .96) 0%, rgba(21, 77, 129, .82) 45%, rgba(82, 162, 236, .35) 100%); }
.family-card-all:hover::before { transform: scale(1.06); }
.family-card-all .family-body { justify-content: flex-end; }
.family-card-all .family-cta { margin-top: 10px; }
.family-card-all h3, .family-card-all .family-cta, .family-card-all:hover .family-cta { color: #fff; }
.family-card-all p { color: #b9d3ec; }
.family-card-all:hover { background: var(--navy-700); border-color: transparent; color: #d6e9fb; }

/* ---------- Inicio: por qué / servicios ---------- */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
/* Ambas columnas a la misma altura: las cifras se pegan al fondo de la columna izquierda. */
.why { align-items: stretch; }
.why > div:first-child { display: flex; flex-direction: column; }
.why-stats { list-style: none; margin: auto 0 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.why-stats > li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.3; transition: transform .3s, box-shadow .3s, border-color .3s; }
.why-stats > li:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16, 40, 64, .08); border-color: #cfe3f6; }
.why-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #fff, var(--blue-50)); box-shadow: inset 0 0 0 1px #dbe8f5; }
.why-icon svg { overflow: visible; }
/* Movimientos sutiles en bucle (se desactivan con "reducir movimiento"). */
.i-star { transform-origin: 16px 16px; animation: i-pulse 2.4s ease-in-out infinite; }
@keyframes i-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); filter: drop-shadow(0 0 3px rgba(82, 162, 236, .7)); } }
/* Llave que "aprieta" la tuerca: gira de ida y vuelta sobre su mango. */
.i-wrench { transform-origin: 8.4px 18.1px; animation: i-tighten 2.2s ease-in-out infinite; }
@keyframes i-tighten { 0%, 100% { transform: rotate(0deg); } 40% { transform: rotate(-16deg); } 55% { transform: rotate(-16deg); } }
/* Candado: el arco baja y se cierra; luego aparece la palomita. */
.i-shackle { animation: i-lock 2.6s ease-in-out infinite; }
@keyframes i-lock { 0%, 15% { transform: translateY(-2px); } 35%, 100% { transform: translateY(0); } }
.i-check { stroke-dasharray: 8; stroke-dashoffset: 8; animation: i-check 2.6s ease-in-out infinite; }
@keyframes i-check { 0%, 35% { stroke-dashoffset: 8; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 8; } }
.i-truck { animation: i-drive 1.6s ease-in-out infinite; }
@keyframes i-drive { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2.5px); } }
.i-speed { animation: i-speed 1.6s ease-in-out infinite; }
@keyframes i-speed { 0%, 100% { opacity: .2; transform: translateX(1px); } 50% { opacity: 1; transform: translateX(-1px); } }
/* Al pasar el mouse se aceleran un poco. */
.why-stats > li:hover .i-wrench { animation-duration: 1.2s; }
.why-stats > li:hover .i-truck, .why-stats > li:hover .i-speed { animation-duration: .8s; }
.services-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.services { list-style: none; margin: 0; padding: 0; counter-reset: svc; border-top: 1px solid var(--line); }
.services li { counter-increment: svc; display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.services li::before { content: counter(svc, decimal-leading-zero); grid-row: span 2; color: var(--blue-600); font-weight: 750; font-size: .9rem; padding-top: 2px; }
.services strong { color: var(--ink); }
.services span { color: var(--muted); font-size: .92rem; }

/* ---------- Inicio: llamado a la acción con imagen ---------- */
/* Degradado oscuro sobre la foto para que el texto blanco siempre sea legible. */
.cta-img { position: relative; color: #dbe9f6; padding: clamp(72px, 9vw, 120px) 0;
  background:
    linear-gradient(90deg, rgba(8, 30, 54, .95) 0%, rgba(11, 43, 74, .86) 45%, rgba(21, 77, 129, .55) 100%),
    var(--navy-900) url("/img/cta-aspersores.webp") center / cover no-repeat; }
.cta-img h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.cta-img p { margin: 0; font-size: 1.1rem; max-width: 52ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.cta-img .hv-badge { margin-bottom: 18px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-img .btn-whatsapp { box-shadow: 0 10px 28px rgba(31, 143, 78, .35); }
.cta-img .btn-whatsapp:hover { transform: translateY(-1px); }
@media (min-width: 1025px) and (hover: hover) { .cta-img { background-attachment: scroll, fixed; } }

/* ---------- Productos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-card { position: relative; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
/* Toda la tarjeta es clicable: el enlace del título se extiende sobre ella (un solo enlace
   para lectores de pantalla y teclado). */
.product-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card-title a:focus-visible { outline: none; }
.product-card:has(.product-card-title a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.product-card:hover .product-card-title a { color: var(--navy); }
/* Línea azul clara pegada a la imagen, igual que en las tarjetas de líneas de producto del inicio. */
.product-card-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e9ebee; border-bottom: 2px solid var(--blue); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.no-image { display: grid; place-items: center; height: 100%; min-height: 200px; color: var(--muted); background: var(--surface-2); }
.product-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card-title { font-size: 1.05rem; margin-bottom: 6px; }
.product-card-title a { color: var(--ink); text-decoration: none; }
.product-card-title a:hover { color: var(--navy); }
.product-card-desc { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.product-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.price-lg { font-size: 1.9rem; }
.price-quote { color: var(--navy); font-size: 1rem; font-weight: 700; }
.price-lg.price-quote { font-size: 1.3rem; }
.stock { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.stock-in { background: var(--success-bg); color: var(--success); }
.stock-out { background: var(--danger-bg); color: var(--danger); }
.stock-quote { background: var(--blue-50); color: var(--navy); }
.stock-low { color: var(--warning); font-weight: 600; font-size: .92rem; }

/* ---------- Ruta / encabezado de página ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.page-head { margin-bottom: 24px; }

/* ---------- Catálogo ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.catalog-filters { position: sticky; top: 90px; }
.filter-title { font-size: 1rem; margin-top: 24px; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.filter-list a:hover, .filter-list a[aria-current="page"] { background: var(--blue-50); color: var(--navy); font-weight: 600; }
.count { color: var(--muted); font-weight: 400; }
.results-count { color: var(--muted); font-size: .92rem; }
.empty { text-align: center; padding: 48px 16px; background: var(--surface-2); border-radius: var(--radius); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }

/* ---------- Formularios ---------- */
.label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #c8d3dd; border-radius: var(--radius-sm);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(82, 162, 236, .25); outline-offset: 0; }
.has-error input, .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: var(--danger); }
.field { margin-bottom: 16px; }
.field-error { color: var(--danger); font-size: .86rem; margin: .35em 0 0; font-weight: 600; }
/* Listas desplegables: flecha propia, estados hover/foco y, donde el navegador lo
   permite (appearance: base-select), también la lista de opciones con estilo. */
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px; font-weight: 500;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23154d81' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  box-shadow: 0 1px 2px rgba(16, 40, 64, .05);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
select:hover { border-color: var(--blue); background-color: #fbfdff; box-shadow: 0 2px 8px rgba(21, 77, 129, .08); }
select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(82, 162, 236, .22); }
select:disabled { cursor: not-allowed; opacity: .6; }
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: flex; align-items: center; background-image: none; padding-right: 14px; }
  select::picker-icon { content: ""; width: 18px; height: 18px; margin-left: auto; background: var(--navy);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s; }
  select:open::picker-icon { transform: rotate(180deg); }
  select:open { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(82, 162, 236, .22); }
  ::picker(select) { margin-top: 6px; padding: 6px; max-height: min(340px, 60vh); border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; box-shadow: 0 16px 40px rgba(16, 40, 64, .18); }
  select option { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
  select option:hover, select option:focus-visible { background: var(--blue-50); color: var(--navy); outline: none; }
  select option:checked { background: var(--navy); color: #fff; font-weight: 650; }
  select option::checkmark { order: 1; margin-left: auto; content: "✓"; }
  select option[value=""] { color: var(--muted); }
}
.input-group { display: flex; gap: 8px; }
.input-group > input, .input-group > select { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .94rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 750; font-size: 1.1rem; color: var(--ink); margin-bottom: 14px; padding: 0; float: left; width: 100%; }
legend + * { clear: both; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 16px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.invoice-fields { margin-top: 16px; }
.invoice-fields > .hint { margin: 0 0 12px; }
.invoice-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.invoice-fix { margin-top: 12px; }
.invoice-fix .field { margin-bottom: 10px; }
[data-hidden] { display: none; }
.form-narrow { max-width: 480px; }

/* ---------- Ficha de producto ---------- */
/* Galería de tamaño medio (máx. 660px) y la foto cubre todo el recuadro. */
.product-layout { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr); gap: 56px; align-items: start; }
.gallery-main { margin: 0; background: #e9ebee; border-radius: var(--radius); aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { display: block; width: 76px; height: 76px; border-radius: 10px; border: 2px solid var(--line); overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { border-color: var(--blue); }
.buy-box { position: sticky; top: 92px; }
.product-title { margin-bottom: 4px; }
.sku { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px; }
.tax-note { color: var(--muted); font-size: .9rem; }
.add-form { margin: 20px 0 8px; }
.qty-field { margin-bottom: 16px; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid #c8d3dd; border-radius: 999px; overflow: hidden; background: #fff; }
.qty input { width: 64px; text-align: center; border: 0; border-radius: 0; min-height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; border: 0; background: var(--surface-2); color: var(--navy); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty-btn:hover { background: var(--blue-50); }
.qty-field .hint { display: block; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notice { background: var(--blue-50); border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 6px; color: var(--navy-700); font-size: .94rem; margin: 16px 0; }
.assurance { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.assurance li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23154d81' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* Ficha técnica y preguntas lado a lado; si solo hay una, ocupa todo el ancho. */
.product-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px 56px; align-items: stretch; margin-top: 72px; }
/* Ambas columnas miden lo mismo: la tabla crece (filas más altas) hasta igualar a las preguntas. */
.details-block { display: flex; flex-direction: column; }
.details-block > .spec-table { flex: 1 1 auto; height: 100%; }
.details-block h2 + .details-sub { margin-top: -10px; }
/* Mismo alto mínimo en ambos subtítulos para que la tabla y las preguntas arranquen a la par. */
.details-sub { color: var(--muted); font-size: .92rem; min-height: 3em; margin-bottom: 20px; }
.details-block h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; margin-bottom: 20px; }
.details-block .spec-table th, .details-block .spec-table td { padding: 14px 18px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; background: var(--surface-2); color: var(--ink); font-weight: 650; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

/* ---------- Preguntas frecuentes ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 650; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--navy); }
.faq[open] summary::after { content: "−"; }
.faq-a { padding: 0 18px 12px; color: var(--text); }

/* Inicio: preguntas frecuentes */
.faq-section { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: stretch; }
/* La columna izquierda se estira a la altura de las preguntas; la foto ocupa el espacio sobrante. */
.faq-intro { display: flex; flex-direction: column; }
.faq-photo { flex: 1; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; margin-top: 12px; padding: 24px; border-radius: 18px; color: #d7e7f6; overflow: hidden; position: relative; isolation: isolate; }
/* Degradado encima de la foto para que el texto blanco se lea. */
.faq-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 30, 54, .92) 0%, rgba(8, 30, 54, .35) 65%, rgba(8, 30, 54, .15) 100%); }
.faq-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-900) url("/img/banners/faq.webp") center / cover no-repeat; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.faq-photo:hover::before { transform: scale(1.06); }
.faq-photo .hv-badge { margin-bottom: auto; }
.faq-photo strong { color: #fff; font-size: 1.35rem; letter-spacing: -.01em; }
.faq-photo span { font-size: .95rem; max-width: 40ch; }
.faq-intro .faq-help { margin-top: 12px; }
.faq-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.02em; }
.faq-help { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: var(--navy); color: #c3d6ea; }
.faq-help strong { color: #fff; font-size: 1.05rem; }
.faq-help .btn { margin-top: 14px; background: var(--blue); color: var(--navy-900); }
.faq-help .btn:hover { background: #7cbcf4; color: var(--navy-900); }
.faq-list-modern { gap: 12px; }
.faq-list-modern .faq { border-radius: 16px; border-color: var(--line); transition: border-color .3s, box-shadow .3s; }
.faq-list-modern .faq:hover { border-color: #c9dcee; }
.faq-list-modern .faq[open] { border-color: transparent; box-shadow: 0 14px 34px rgba(16, 40, 64, .1); }
.faq-list-modern .faq summary { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.faq-list-modern .faq summary::after { content: none; }
.faq-num { flex: none; font-size: .85rem; font-weight: 750; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.faq-q { flex: 1; font-size: 1.02rem; }
.faq-icon { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); transition: background-color .3s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--navy); transition: background-color .3s; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon { background: var(--navy); transform: rotate(45deg); }
.faq[open] .faq-icon::before, .faq[open] .faq-icon::after { background: #fff; }
.faq-list-modern .faq-a { padding: 0 22px 22px 58px; color: var(--muted); }
.faq-list-modern .faq-a p:last-child { margin-bottom: 0; }
/* Apertura suave en navegadores que lo soportan; en los demás abre al instante. */
@supports selector(::details-content) {
  .faq-list-modern { interpolate-size: allow-keywords; }
  .faq-list-modern .faq::details-content { block-size: 0; overflow: hidden; transition: block-size .45s cubic-bezier(.16, 1, .3, 1), content-visibility .45s allow-discrete; }
  .faq-list-modern .faq[open]::details-content { block-size: auto; }
}

/* ---------- Carrito y checkout ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-lines { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto; grid-template-areas: "thumb info qty total" "thumb info remove remove"; gap: 6px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { grid-area: thumb; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.cart-thumb img { width: 96px; height: 96px; object-fit: contain; padding: 6px; }
.cart-info { grid-area: info; }
.cart-info p { margin: 0; }
.cart-name { font-size: 1.02rem; margin-bottom: 2px; }
.cart-name a { color: var(--ink); text-decoration: none; }
.cart-qty { grid-area: qty; display: flex; gap: 8px; align-items: center; }
.cart-line-total { grid-area: total; font-weight: 750; color: var(--ink); margin: 0; min-width: 100px; text-align: right; }
.cart-remove { grid-area: remove; justify-self: end; }
.summary-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.summary-card h2 { font-size: 1.25rem; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .94rem; }
.totals { margin: 12px 0; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.totals .total { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 12px; }
.totals .total dt { color: var(--ink); font-weight: 750; }
.totals .total dd { font-size: 1.35rem; font-weight: 800; }
.totals .tax-included { font-size: .85rem; padding-top: 0; }
.ship-estimate { margin-bottom: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(16, 40, 64, .04); }
.ship-estimate-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ship-estimate-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--navy); }
.ship-estimate-head .label { margin: 0; }
.ship-estimate-head small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.ship-estimate .hint { margin: 10px 0 0; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 8px 0 0; flex-wrap: wrap; font-size: .88rem; }
.steps li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.steps .done { background: var(--success-bg); color: var(--success); }
.steps .current { background: var(--navy); color: #fff; font-weight: 600; }
.checkout-summary .check { font-size: .88rem; margin-top: 12px; }
/* Forma de entrega */
.delivery-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.delivery-option { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.delivery-option:hover { border-color: var(--blue); }
.delivery-option input { margin-top: 3px; accent-color: var(--navy); flex: none; }
.delivery-option:has(input:checked) { border-color: var(--navy); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(82, 162, 236, .18); }
.delivery-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.delivery-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.delivery-body strong { color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.delivery-body > span { font-size: .88rem; color: var(--muted); }
.delivery-free { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); }

/* Paqueterías a elegir (cotizadas con Envia) */
.ship-options { display: grid; gap: 10px; }
.ship-options + .hint { margin-top: 12px; }
[data-ship-options][aria-busy="true"] { opacity: .55; pointer-events: none; transition: opacity .2s; }
.ship-option { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.ship-option:hover { border-color: var(--blue); }
.ship-option input { accent-color: var(--navy); flex: none; }
.ship-option:has(input:checked) { border-color: var(--navy); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(82, 162, 236, .18); }
.ship-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.ship-option-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ship-option-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink); }
.ship-option-eta { font-size: .86rem; color: var(--muted); }
.ship-option-tag { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); }
.ship-option-price { font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ship-options-empty { margin: 0; }

/* ---------- Pedido ---------- */
.order-head { text-align: center; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.status-icon.ok { background: var(--success-bg); color: var(--success); }
.order-number { font-size: 1.1rem; }
.status-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pill { padding: 6px 14px; border-radius: 999px; font-weight: 650; font-size: .88rem; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.pill-paid, .pill-preparing, .pill-shipped, .pill-delivered, .pill-pay-approved { background: var(--success-bg); color: var(--success); border-color: transparent; }
.pill-cancelled, .pill-pay-rejected, .pill-pay-cancelled, .pill-pay-charged_back { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.pill-pending_payment, .pill-pay-pending, .pill-pay-in_review { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.pay-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; text-align: center; }
.pay-card .hint { width: 100%; }
.order-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: .95rem; }
.order-table th, .order-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.order-table .num { text-align: right; white-space: nowrap; }
.meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 16px 0 0; }
.meta-list dt { font-size: .82rem; color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; color: var(--ink); }
/* ---------- Página del pedido ---------- */
.order-page .small { font-size: .88rem; }
html:not(.js) .js-only { display: none; }
.order-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); box-shadow: 0 18px 40px rgba(11, 43, 74, .22); margin-bottom: 22px; }
.order-hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 162, 236, .35), rgba(82, 162, 236, 0) 70%); }
.order-hero-main { display: flex; gap: 18px; align-items: flex-start; }
.order-hero-icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.order-hero-ok .order-hero-icon { background: #2bb673; border-color: transparent; box-shadow: 0 8px 22px rgba(43, 182, 115, .4); }
.order-hero-warn .order-hero-icon { color: #ffd479; }
.order-hero-err .order-hero-icon { background: rgba(255, 107, 96, .2); color: #ffb3ab; }
.order-eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b9dcfb; }
.order-hero h1 { margin: 0 0 6px; color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; }
.order-lead { margin: 0; max-width: 60ch; color: #d9e9f8; }
.order-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 20px; }
.order-hero-facts > div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-width: 0; }
.order-hero-facts dt { font-size: .78rem; color: #b9dcfb; margin-bottom: 4px; }
.order-hero-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-hero-facts small { font-weight: 600; color: #b9dcfb; }
.order-id strong { font-size: 1.15rem; letter-spacing: .02em; word-break: break-all; }
.order-copy { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .15s; }
.order-copy:hover { background: rgba(255, 255, 255, .26); }
.order-copy.is-copied { background: #2bb673; }
.order-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.order-hero-actions .btn { gap: 8px; }
.order-hero-actions-solo { margin-top: 22px; }
.order-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.order-hero .pill { border: 0; }

.order-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; padding: 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.order-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: .86rem; font-weight: 600; }
.order-steps li + li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.order-steps li.done::before, .order-steps li.current::before { background: var(--blue); }
.order-step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); font-weight: 750; }
.order-steps li.done { color: var(--navy); }
.order-steps li.done .order-step-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.order-steps li.current { color: var(--ink); }
.order-steps li.current .order-step-dot { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 5px rgba(82, 162, 236, .25); }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 440px); gap: 22px; align-items: start; }
.order-card { border-radius: 20px; padding: 22px; box-shadow: 0 1px 2px rgba(16, 40, 64, .04); }
.order-card h2 { font-size: 1.15rem; margin: 0 0 14px; }
.order-card-title { display: flex; align-items: center; gap: 10px; }
.order-card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--navy); }
.order-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1.5px solid #f3dca6; background: linear-gradient(180deg, #fffaf0, #fff); }
.order-pay h2 { margin: 0 0 4px; }
.order-pay .hint { margin: 0; }
.order-pay-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order-items { list-style: none; margin: 0 0 6px; padding: 0; }
.order-items li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-items li:first-child { padding-top: 0; }
.order-item-img { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #e9ebee; border: 1px solid var(--line); }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.order-item-total { font-weight: 700; white-space: nowrap; }
.order-facts { display: grid; gap: 10px; margin: 12px 0 0; }
.order-facts dt { font-size: .8rem; color: var(--muted); }
.order-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.order-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.order-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 16px 6px; }
.order-timeline li:last-child { padding-bottom: 0; }
.order-timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.order-help .btn-block { margin-top: 4px; }
@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .order-hero-main { flex-direction: column; gap: 14px; }
  .order-hero-facts { grid-template-columns: 1fr; }
  .order-hero-actions .btn { width: 100%; }
  .order-steps { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .order-steps li { flex-direction: row; text-align: left; }
  .order-steps li + li::before { display: none; }
}
@media print {
  .order-hero-actions, .order-copy, .order-pay, .order-help { display: none; }
}
.timeline { padding-left: 1.2em; margin: 0; }
.timeline li { margin-bottom: 6px; }

/* ---------- Avisos ---------- */
.flashes { padding-top: 16px; }

[data-totals][aria-busy="true"] { opacity: .55; transition: opacity .2s; }

/* Notificaciones flotantes (avisos de carrito, checkout, etc.) */
.toasts { position: fixed; top: 84px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(16, 40, 64, .18); animation: toast-in .35s cubic-bezier(.16, 1, .3, 1); transition: opacity .3s, transform .3s; }
.toast.is-leaving { opacity: 0; transform: translateX(16px); }
.toast-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--navy); }
.toast-msg { margin: 0; flex: 1; font-size: .95rem; font-weight: 500; line-height: 1.4; padding-top: 3px; }
.toast-close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.toast-close:hover { background: var(--surface-2); color: var(--ink); }
.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { background: var(--success-bg); color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-error .toast-icon { background: var(--danger-bg); color: var(--danger); }
.toast-warning { border-left-color: #d99a00; }
.toast-warning .toast-icon { background: var(--warning-bg); color: var(--warning); }
.toast a { font-weight: 600; color: var(--blue-600); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 600px) { .toasts { top: 76px; right: 16px; } }
html:not(.js) .toast-close { display: none; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bfe3cf; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f6c7c2; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #f3dca6; }
.alert-info { background: var(--blue-50); color: var(--navy-700); border-color: #cfe5fa; }

/* ---------- Contacto / error ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.error-page { padding-top: 64px; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--blue); margin: 0; line-height: 1; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: #c3d4e6; padding: 48px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.footer-grid img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-title { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: .92rem; }
.footer-links a { display: inline-block; color: #c3d4e6; text-decoration: none; transition: color .2s, transform .2s; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.muted-inverse { color: #9fb6cc; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; padding-bottom: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #9fb6cc; }
.footer-bottom p { margin: 0; }

/* Evita que imágenes o textos largos ensanchen las columnas del grid. */
.hv-points > *, .section-head-split > *, .faq-layout > *, .spotlight > *, .why > *, .product-layout > *, .catalog-layout > *, .cart-layout > *, .checkout-layout > *,
.footer-grid > *, .family-grid > *, .sector-grid > *, .grid-2 > *, .grid-6 > *, .cart-line > * { min-width: 0; }
.gallery-main img, .spotlight-media img { max-width: 100%; }

/* ---------- Adaptable ---------- */
@media (max-width: 1000px) {
  .family-grid { grid-template-columns: repeat(3, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .hv-points { grid-template-columns: 1fr; max-width: 560px; }
  .hv-points li { padding: 14px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card, .buy-box { position: static; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; order: 3; }
  .header-inner { gap: 12px; }
  .cart-link { margin-left: auto; }
  .hv { min-height: 0; }
  .hv-inner { padding-top: calc(68px + 44px); padding-bottom: 64px; gap: 36px; }
  .hv-scroll { display: none; }
  .section-head-split, .spotlight, .why, .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .section-head-split { gap: 12px; margin-bottom: 28px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-photo { min-height: 200px; }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-media { max-width: 460px; width: 100%; margin: 0 auto; }
  /* Texto a todo el ancho: degradado parejo para mantener la legibilidad. */
  .hv-overlay { background: linear-gradient(180deg, rgba(8, 30, 54, .82) 0%, rgba(8, 30, 54, .9) 100%); }
  .cta-img { background: linear-gradient(180deg, rgba(8, 30, 54, .9) 0%, rgba(11, 43, 74, .86) 100%), var(--navy-900) url("/img/cta-aspersores.webp") center / cover no-repeat; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .cart-label { display: none; }
  .check-list, .grid-2, .meta-list { grid-template-columns: 1fr; }
  .brand-list li { padding: 0 28px; font-size: 1.1rem; }
  .brand-strip { padding: 16px 0; }
  .grid-6 { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 2; }
  .cart-line { grid-template-columns: 72px 1fr; grid-template-areas: "thumb info" "qty total" "remove remove"; }
  .cart-thumb img { width: 72px; height: 72px; }
  .section { padding: 48px 0; }
  .family-body { padding: 16px 18px 18px; }
  .faq-list-modern .faq summary { gap: 12px; padding: 16px; }
  .faq-list-modern .faq-a { padding: 0 16px 18px; }
  .card { padding: 18px; }
  .order-table { font-size: .88rem; }
}
/* =====================================================================
   Páginas interiores (estilo moderno común)
   ===================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #cfe0f1; padding: 44px 0 52px;
  background: radial-gradient(900px 320px at 90% -20%, rgba(82, 162, 236, .38), transparent 65%), linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); }
.page-hero::after { content: ""; position: absolute; inset: 0 0 0 40%; z-index: -1; opacity: .3;
  background: var(--page-hero-img, none) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
/* Una foto distinta por sección (la clase la pone el parcial page-hero.njk). */
.page-hero-catalogo { --page-hero-img: url("/img/banners/catalogo.webp"); }
.page-hero-carrito { --page-hero-img: url("/img/banners/carrito.webp"); }
.page-hero-checkout { --page-hero-img: url("/img/banners/checkout.webp"); }
.page-hero-seguimiento { --page-hero-img: url("/img/banners/seguimiento.webp"); }
.page-hero-contacto { --page-hero-img: url("/img/banners/contacto.webp"); }
.page-hero-legal { --page-hero-img: url("/img/banners/legal.webp"); }
.page-hero-error-404 { --page-hero-img: url("/img/banners/error-404.webp"); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; margin-bottom: .3em; }
.page-hero .hv-badge { margin-bottom: 14px; }
.page-hero-lead { font-size: 1.08rem; color: #c9dcee; max-width: 62ch; margin: 0; }
.page-hero .breadcrumbs { color: #9fbbd6; margin-bottom: 18px; }
.page-hero .breadcrumbs a { color: #c9dcee; }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero-inner > *:last-child { margin-bottom: 0; }
.page-body { padding-top: 40px; padding-bottom: 72px; }
.hero-actions-center { justify-content: center; }
.page-hero-error { padding: 88px 0 96px; }
.page-hero-error .error-code { font-size: clamp(5rem, 14vw, 9rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 8px;
  background: linear-gradient(180deg, #b9e0ff, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero-error .page-hero-lead { margin: 0 auto; }

/* Buscador dentro del banner */
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 620px; margin-top: 26px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .2); color: var(--muted); }
.hero-search input[type="search"] { flex: 1; min-width: 0; border: 0; min-height: 44px; padding: 0; background: transparent; outline: 0; }
.hero-search input[type="search"]:focus { outline: 0; }
.hero-search:focus-within { box-shadow: 0 16px 40px rgba(0, 0, 0, .2), 0 0 0 3px rgba(82, 162, 236, .5); }

/* Categorías como "chips" */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--blue); color: var(--navy); }
.chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue-50); color: var(--navy); font-size: .76rem; font-weight: 750; }
.chip[aria-current="page"] .count { background: rgba(255, 255, 255, .18); color: #fff; }
.chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cat-nav { display: none; }

/* Catálogo: productos a la izquierda, categorías en columna a la derecha */
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.catalog-main { min-width: 0; grid-column: 1; grid-row: 1; }
.catalog-side { grid-column: 2; grid-row: 1; position: sticky; top: 96px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.catalog-side-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
/* Todos los botones del mismo tamaño: ancho completo y altura fija */
.catalog-side .chips { flex-direction: column; flex-wrap: nowrap; gap: 8px; margin: 0; }
.catalog-side .chip { width: 100%; height: 50px; justify-content: space-between; padding: 0 14px; border-radius: 12px; font-size: .88rem; line-height: 1.2; white-space: normal; }
.catalog-side .chip-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.catalog-side .count { flex: none; }
/* Tableta y celular: las categorías van arriba en una fila deslizable, botones de ancho igual */
@media (max-width: 900px) {
  .catalog-layout { display: block; }
  .catalog-side { position: static; padding: 0; border: 0; background: none; margin-bottom: 20px; }
  .catalog-side .chips { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .catalog-side .chips::-webkit-scrollbar { display: none; }
  .catalog-side .chip { flex: none; width: 204px; height: 48px; font-size: .84rem; scroll-snap-align: start; }
  /* Slider de categorías: se desliza con el dedo (con imán), con flechas o arrastrando con el mouse */
  .cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .cat-head .catalog-side-title { margin: 0; }
  .cat-nav { display: flex; gap: 8px; }
  .catalog-side .chips { scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 88%, transparent); }
  .catalog-side .chips.at-start { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .catalog-side .chips.at-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%); mask-image: linear-gradient(90deg, transparent, #000 9%); }
  .catalog-side .chips.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
  .catalog-side .chips.dragging { cursor: grabbing; scroll-snap-type: none; }
  .catalog-side .chips.dragging .chip { pointer-events: none; }
  .cat-arrow { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
    box-shadow: 0 3px 10px rgba(11, 43, 74, .12); cursor: pointer; transition: transform .15s, opacity .2s, background-color .2s; }
  .cat-arrow:not(:disabled):active { transform: scale(.9); background: var(--surface-2); }
  .cat-arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
}

/* Estado vacío */
.empty-state { text-align: center; padding: 56px 24px; border-radius: 24px; background: linear-gradient(180deg, var(--blue-50), #fff); border: 1px solid #e2edf7; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: .4em; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }
.empty-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(16, 40, 64, .12); margin-bottom: 18px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Tarjetas informativas con ícono (contacto, seguimiento) */
.info-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.info-card:hover { box-shadow: 0 16px 40px rgba(16, 40, 64, .1); transform: translateY(-3px); }
.info-card h2 { font-size: 1.15rem; margin: 0 0 6px; }
.info-card p { margin: 0 0 6px; }
.info-card .btn { margin-top: auto; }
.info-card .muted + .btn, .info-card p + .btn { margin-top: 14px; }
.info-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--navy); margin-bottom: 18px; }
.info-icon-wa { background: #e5f5ec; color: var(--whatsapp); }
.info-card-accent { border-color: #bfe3cf; background: linear-gradient(180deg, #f3fbf6, #fff); }
.info-card-soft { background: var(--surface-2); }
.info-card-soft:hover { box-shadow: none; transform: none; }
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* Formulario con panel lateral */
.form-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.form-card { padding: 28px; border-radius: 20px; box-shadow: 0 16px 40px rgba(16, 40, 64, .08); margin: 0; }

/* Texto legal */
.prose-card { max-width: none; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 48px); }
.prose-card > :first-child { margin-top: 0; }

/* Pasos de compra dentro del banner */
.steps-hero { margin-top: 18px; }
.steps-hero li { background: rgba(255, 255, 255, .1); color: #c9dcee; border: 1px solid rgba(255, 255, 255, .15); }
.steps-hero .done { background: rgba(31, 143, 78, .25); color: #c9f0d8; border-color: transparent; }
.steps-hero .current { background: var(--blue); color: var(--navy-900); border-color: transparent; }

/* Ajustes generales de tarjetas y formularios */
.card, .summary-card { border-radius: 20px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input:not([type]), select, textarea { border-radius: 12px; min-height: 48px; }
.hero-search input[type="search"] { min-height: 44px; }
.qty input { min-height: 44px; }

/* Ficha de producto */
.gallery-main { border-radius: 24px; }
.thumb { border-radius: 14px; }
.assurance { border-top: 0; display: grid; gap: 10px; }
.assurance li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; line-height: 1.45; }
.assurance li strong { display: block; color: var(--ink); }
.assurance-icon { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-50); color: var(--navy); }
.highlights-card { margin-top: 48px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: linear-gradient(135deg, var(--blue-50), #fff 70%); border: 1px solid #e2edf7; }
.spec-table { border-radius: 16px; border-collapse: separate; border-spacing: 0; }

/* Descripción del producto en tarjetas (secciones "## " del texto) */
.desc { margin-top: 72px; }
.desc-head { margin-bottom: 28px; }
.desc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.desc-card { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.desc-card:hover { box-shadow: 0 18px 44px rgba(16, 40, 64, .1); transform: translateY(-3px); }
/* Número grande decorativo en la esquina: llena el espacio de las tarjetas con poco texto. */
.desc-card::after { content: attr(data-num); position: absolute; right: 18px; bottom: -28px; z-index: 0; font-size: clamp(6rem, 11vw, 9.5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--blue-50); pointer-events: none; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.desc-card:hover::after { transform: translateY(-6px); }
.desc-card > * { position: relative; z-index: 1; }
.desc-card-lead::after { color: rgba(82, 162, 236, .12); }
.desc-card-dark::after { color: rgba(255, 255, 255, .06); }
.desc-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--navy); font-weight: 750; font-size: .85rem; margin-bottom: 18px; }
.desc-card h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.01em; margin-bottom: .55em; }
.desc-body p { color: var(--muted); }
.desc-body > :last-child { margin-bottom: 0; }
.desc-body h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); margin: 0 0 12px; }
.desc-body ul { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.desc-body li { position: relative; padding-left: 30px; color: var(--text); }
.desc-body li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23154d81' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.desc-body li strong { color: var(--ink); }

/* Introducción: texto a la izquierda y componentes como "chips" a la derecha */
.desc-card-lead { grid-column: 1 / -1; border-color: #e2edf7; background: radial-gradient(520px 300px at 100% 0%, rgba(82, 162, 236, .16), transparent 70%), linear-gradient(135deg, var(--blue-50), #fff 65%); }
.desc-card-lead h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.desc-card-lead .desc-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
.desc-card-lead .desc-body > p { grid-column: 1; grid-row: 1 / span 2; font-size: 1.1rem; color: var(--text); }
.desc-card-lead .desc-body > h4, .desc-card-lead .desc-body > ul { grid-column: 2; }
.desc-card-lead .desc-body ul { display: flex; flex-wrap: wrap; gap: 10px; }
.desc-card-lead .desc-body li { padding: 10px 16px 10px 40px; border-radius: 999px; background: #fff; border: 1px solid #dbe8f5; font-weight: 600; font-size: .93rem; box-shadow: 0 4px 14px rgba(16, 40, 64, .05); }
.desc-card-lead .desc-body li::before { left: 12px; top: 50%; margin-top: -10px; }

/* Listas largas (p. ej. aplicaciones): mosaico de mini tarjetas */
.desc-card-wide { grid-column: 1 / -1; }
.desc-card-wide .desc-body ul { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.desc-card-wide .desc-body li { padding: 18px 18px 18px 52px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: .93rem; transition: background-color .25s; }
.desc-card-wide .desc-body li:hover { background: var(--blue-50); }
.desc-card-wide .desc-body li::before { left: 18px; top: 19px; background-color: #fff; }
.desc-card-wide .desc-body li strong { display: block; margin-bottom: 4px; font-size: 1rem; }

/* Última sección destacada en azul */
.desc-card-dark { border-color: transparent; color: #c9dcee; background: radial-gradient(420px 260px at 100% 0%, rgba(82, 162, 236, .35), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-900)); }
.desc-card-dark h3 { color: #fff; }
.desc-card-dark .desc-body p { color: #c9dcee; }
.desc-card-dark .desc-num { background: rgba(255, 255, 255, .12); color: var(--blue); }
.desc-card-dark .btn { margin-top: 20px; }
.mobile-buy-bar { display: none; }

/* Pie de página */
.footer-brand .btn { margin-top: 6px; }
.site-footer { padding-top: 56px; }

/* Menú móvil */
.mobile-nav nav a { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; font-size: 1.05rem; padding: 15px 8px; }
.mobile-nav nav a span { opacity: .5; }
.mobile-nav nav .mobile-nav-cta { justify-content: center; border: 0; border-radius: 999px; margin-top: 14px; font-size: 1rem; }

@media (max-width: 900px) {
  .form-split { grid-template-columns: 1fr; }
  .page-hero::after { inset: 0; opacity: .14; }
  .desc { margin-top: 48px; }
  .gallery { max-width: 660px; width: 100%; margin: 0 auto; }
  .product-details { margin-top: 48px; gap: 40px; }
  .desc-grid { grid-template-columns: 1fr; gap: 14px; }
  .desc-card-lead .desc-body { grid-template-columns: 1fr; }
  .desc-card-lead .desc-body > p, .desc-card-lead .desc-body > h4, .desc-card-lead .desc-body > ul { grid-column: 1; grid-row: auto; }
  .desc-card-lead .desc-body > p { margin-bottom: 20px; }
  /* Sin desenfoque en celular: backdrop-filter es costoso de pintar en equipos modestos
     (medido: INP de ~256 ms al abrir el menú con CPU 4x más lenta). Fondos sólidos equivalentes. */
  .mobile-nav nav { top: 68px; padding: 8px 20px 20px; background: #103d67; animation: menu-in .25s ease; }
  .has-hero .site-header.is-scrolled, .has-hero .site-header:has(.mobile-nav[open]) { background: #154d81; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hv-badge, .btn-glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hv-badge { background: rgba(11, 43, 74, .55); }
  .btn-glass { background: rgba(11, 43, 74, .45); }
  .hv-points li { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 43, 74, .62); }
  .mobile-buy-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

  /* Barra fija de compra en la ficha de producto */
  .mobile-buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 40, 64, .08); }
  .mobile-buy-price { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .mobile-buy-price .muted { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-buy-price strong { color: var(--ink); font-size: 1rem; }
  .mobile-buy-bar .btn { flex: none; }
  .has-buy-bar .site-footer { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  .page-hero { padding: 32px 0 36px; }
  .page-hero-error { padding: 64px 0 72px; }
  .page-body { padding-top: 24px; padding-bottom: 48px; }
  .hero-search { margin-top: 20px; padding-left: 14px; }
  .hero-search .btn { padding: 8px 16px; min-height: 42px; }
  /* Chips en una sola fila deslizable */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 2px 16px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .catalog-side .chips { margin: 0 -16px; padding: 2px 16px 6px; }
  .empty-state { padding: 40px 18px; }
  .info-card { padding: 22px; }
  .form-card { padding: 22px; }
  .prose-card { border-radius: 18px; }

  /* Inicio en celular */
  .hv-badge { font-size: .68rem; letter-spacing: .03em; padding: 6px 12px; }
  .hv h1 { font-size: 2.15rem; }
  /* Slider: una tarjeta a la vez; site.js agrega los puntos y el avance automático. */
  .hv-points { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 12px; scrollbar-width: none; max-width: none; }
  .hv-points::-webkit-scrollbar { display: none; }
  .hv-points li { flex: 0 0 100%; scroll-snap-align: center; min-height: 92px; }
  .hv-points li:hover { transform: none; }
  .hv-dots { display: flex; justify-content: center; gap: 8px; margin-top: -24px; }
  .hv-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s, background-color .3s; }
  .hv-dots button[aria-current="true"] { width: 24px; background: var(--blue); }
  /* Botones en pareja: siempre uno al lado del otro; si el texto es largo, baja a dos renglones dentro del botón. */
  .hero-actions, .cta-actions, .empty-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn, .cta-actions .btn, .empty-actions .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 8px 12px; font-size: .9rem; line-height: 1.2; text-align: center; white-space: normal; }
  .buy-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .buy-actions .btn { padding: 8px 12px; font-size: .92rem; line-height: 1.2; }
  /* Botones del banner uno al lado del otro */
  .hv .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hv .hero-actions .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 10px 12px; font-size: .9rem; white-space: nowrap; }
  .family-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .family-card { border-radius: 16px; }
  .family-media { aspect-ratio: 1 / 1; }
  .family-body { padding: 12px 12px 14px; }
  .family-card h3 { font-size: .95rem; margin-bottom: 4px; }
  .family-card p { display: none; }
  .family-cta { font-size: .82rem; margin-top: 4px; }
  .family-card-all .family-body { justify-content: flex-end; }
  .family-card-all p { display: block; font-size: .82rem; margin-bottom: 10px; }
  .sector-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .sector { padding: 18px 16px; }
  .sector-num { margin-bottom: 12px; }
  .sector h3 { font-size: 1.05rem; }
  .sector p { font-size: .86rem; }
  .spotlight { gap: 24px; border-radius: 22px; }
  .cta-img { padding: 64px 0; }

  /* Productos en dos columnas */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card-body { padding: 12px 12px 14px; }
  .product-card-title { font-size: .95rem; }
  .product-card-desc { display: none; }
  .product-card .eyebrow { font-size: .68rem; }
  .product-card-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .price { font-size: 1rem; }
  .price-quote { font-size: .88rem; }

  /* Ficha de producto */
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .thumb { width: 64px; height: 64px; }
  .highlights-card { margin-top: 32px; }

  /* Pie de página en dos columnas */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .pay-card, .support { display: none; }
}
