/* =============================================================
   FORACAL · styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía · 5. Componentes
   6. Cabecera y pie · 7. Secciones · 8. Tienda · 9. Formularios
   10. Efectos · 11. Responsive · 12. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens (copia en design-system/tokens.css)
   ============================================================= */
:root {
  --color-navy: #1D2F4D;
  --color-navy-2: #16253D;
  --color-teal: #309CBC;
  --color-teal-ink: #1E7D99;
  --color-teal-soft: #A0C8D2;
  --color-teal-tint: #E6F2F6;
  --color-mist: #F3F7F9;
  --color-mist-2: #E1ECEE;
  --color-line: #D9E4E9;
  --color-text: #2F3E58;
  --color-muted: #6B7A90;
  --color-white: #FFFFFF;
  --color-ok: #2E7D5B;
  --color-error: #B33A3A;

  --bg: var(--color-white);
  --bg-2: var(--color-mist);
  --ink: var(--color-navy);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --accent: var(--color-teal);
  --accent-ink: var(--color-teal-ink);
  --line: var(--color-line);

  --font-display: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  --fs-4xl: clamp(2.375rem, 1.6rem + 3.2vw, 3.75rem);
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.6;
  --tracking-caps: 0.08em;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(3.5rem, 8vw, 7rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(29, 47, 77, 0.06);
  --shadow-md: 0 12px 32px rgba(29, 47, 77, 0.10);

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; line-height: var(--lh-snug); letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
strong { font-weight: 600; color: var(--ink); }
small { font-size: var(--fs-sm); }
table { border-collapse: collapse; }
::selection { background: var(--accent); color: var(--color-white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
details summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
/* Lo marcado como oculto se oculta siempre, aunque el elemento tenga su propio display */
[hidden] { display: none !important; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; padding: 0.6rem 1rem; background: var(--ink); color: var(--color-white); border-radius: var(--r-sm); font-weight: 500; }
.skip-link:focus { top: 1rem; }
.measure { max-width: 62ch; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.hidden { display: none !important; }

/* =============================================================
   4. Tipografía y bloques de texto
   ============================================================= */
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: var(--fs-md); color: var(--text); max-width: 60ch; }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); max-width: 720px; }
.section-head .lead { margin-top: var(--s-1); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.link { color: var(--accent-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-teal-soft); }
.link:hover { text-decoration-color: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent-ink); }
.link-arrow::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover::after { transform: rotate(45deg) translate(2px, -2px); }
.note { font-size: var(--fs-sm); color: var(--muted); }
.check-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--color-teal-tint); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: calc(0.35em + 4px); width: 5px; height: 9px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); }

/* =============================================================
   5. Componentes
   ============================================================= */
/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.2; letter-spacing: 0.005em; border: 1.5px solid transparent; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--color-white); }
.btn-primary:hover { background: var(--color-navy-2); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--color-white); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: 0.6; pointer-events: none; }

/* Etiquetas */
.badge { display: inline-block; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: var(--color-white); line-height: 1.2; }
.badge-soft { background: var(--color-teal-tint); color: var(--accent-ink); }
.badge-muted { background: var(--color-mist-2); color: var(--muted); }

/* Rejillas */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Tarjeta neutra */
.card { background: var(--color-white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.card--mist { background: var(--bg-2); border-color: transparent; }

/* Placa de producto */
.plate { position: relative; background: var(--color-white); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; padding: 10%; overflow: hidden; }
.plate img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.plate--floor { background: radial-gradient(60% 34% at 50% 92%, var(--color-mist-2) 0%, rgba(225, 236, 238, 0) 72%), var(--color-white); }
.plate--mist { background: radial-gradient(60% 34% at 50% 92%, #D2E1E6 0%, rgba(243, 247, 249, 0) 72%), var(--bg-2); border-color: transparent; }

/* Iconos */
.icon { width: 26px; height: 26px; color: var(--accent); flex: none; }
.icon-wrap { width: 46px; height: 46px; border-radius: 12px; background: var(--color-teal-tint); display: grid; place-items: center; color: var(--accent-ink); flex: none; }
.icon-wrap svg { width: 24px; height: 24px; }

/* Pasos numerados */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-5); counter-reset: steps; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: var(--s-4); align-items: start; }
.step-num { counter-increment: steps; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); color: var(--accent); line-height: 1; padding-top: 0.1em; }
.step-num::before { content: counter(steps, decimal-leading-zero); }
.step h3 { margin-bottom: 0.25rem; }
.step p { max-width: 52ch; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s-6); }
.steps--row .step { grid-template-columns: 1fr; gap: var(--s-3); padding-top: var(--s-4); border-top: 2px solid var(--color-mist-2); position: relative; }
.steps--row .step::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent); }

/* Preguntas frecuentes */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: 1.1rem 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--ink); list-style: none; }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); transition: transform var(--dur) var(--ease-out); margin-right: 4px; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-body { padding: 0 0 1.25rem; max-width: 66ch; }
.faq-body > * + * { margin-top: 0.6em; }
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group h2 { font-size: var(--fs-xl); margin-bottom: var(--s-4); }

/* Tabla de especificaciones */
.spec-table { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.spec-table > div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: var(--s-4); padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.spec-table dt { color: var(--muted); font-weight: 500; }
.spec-table dd { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Aviso flotante (carrito) */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px); z-index: 900; background: var(--ink); color: var(--color-white); padding: 0.85rem 1.2rem; border-radius: 10px; box-shadow: var(--shadow-md); font-size: var(--fs-sm); display: flex; gap: 1rem; align-items: center; opacity: 0; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); max-width: min(92vw, 480px); }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--color-white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Asistente de la web (chat) */
.chat { position: fixed; right: clamp(0.75rem, 3vw, 1.5rem); bottom: clamp(0.75rem, 3vw, 1.5rem); z-index: 950; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 0.7rem; }
.chat-fab { display: inline-flex; align-items: center; gap: 0.55rem; height: 52px; padding: 0 1.15rem; border-radius: var(--r-pill); background: var(--ink); color: var(--color-white); box-shadow: var(--shadow-md); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.chat-fab:hover { background: var(--color-navy-2); transform: translateY(-1px); }
.chat-fab svg { width: 22px; height: 22px; flex: none; }
.chat-fab .chat-ico-close { display: none; }
.chat.is-open .chat-fab .chat-ico-open { display: none; }
.chat.is-open .chat-fab .chat-ico-close { display: block; }
.chat.is-open .chat-fab { background: var(--accent-ink); }

.chat-panel { width: min(380px, calc(100vw - 1.5rem)); max-height: min(72vh, 620px); display: flex; flex-direction: column; background: var(--color-white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(29, 47, 77, 0.22); overflow: hidden; }
.chat-head { display: flex; align-items: flex-start; gap: var(--s-3); padding: 0.9rem 1rem; background: var(--ink); color: var(--color-white); }
.chat-head b { font-family: var(--font-display); font-size: 1rem; display: block; }
.chat-head span { display: block; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.72); margin-top: 2px; }
.chat-x { margin-left: auto; color: rgba(255, 255, 255, 0.8); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
.chat-x:hover { color: var(--color-white); background: rgba(255, 255, 255, 0.12); }
.chat-x svg { width: 16px; height: 16px; }

.chat-wa { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1rem; background: var(--color-teal-tint); color: var(--ink); font-size: var(--fs-sm); font-weight: 500; border-bottom: 1px solid var(--line); }
.chat-wa:hover { background: var(--color-mist-2); }
.chat-wa svg { width: 20px; height: 20px; color: #25D366; flex: none; }

.chat-log { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 0.55rem; padding: 0.9rem 1rem; }
.chat-msg { max-width: 90%; padding: 0.65rem 0.85rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.55; }
.chat-msg--bot { align-self: flex-start; background: var(--bg-2); color: var(--text); border-bottom-left-radius: 5px; }
.chat-msg--yo { align-self: flex-end; background: var(--ink); color: var(--color-white); border-bottom-right-radius: 5px; }
.chat-msg b { color: inherit; }
.chat-msg--bot a { color: var(--accent-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.chat-msg ul { margin: 0.45rem 0 0; padding-left: 1.1rem; }
.chat-msg li + li { margin-top: 0.3rem; }
.chat-msg p { margin-top: 0.5rem; }
.chat-cta { margin-top: 0.6rem; }
.chat-btn { display: inline-block; background: var(--ink); color: var(--color-white) !important; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; padding: 0.5rem 0.9rem; border-radius: 8px; text-decoration: none !important; }
.chat-btn:hover { background: var(--color-navy-2); }
.chat-dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-teal-soft); animation: chatDot 1.1s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: 0.35; } 30% { opacity: 1; } }

.chat-sugs { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 1rem 0.75rem; }
.chat-sugs:empty { display: none; }
.chat-sug { border: 1px solid var(--line); background: var(--color-white); color: var(--ink); border-radius: var(--r-pill); padding: 0.35rem 0.7rem; font-size: 0.8rem; font-weight: 500; transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.chat-sug:hover { border-color: var(--accent); color: var(--accent-ink); }

.chat-form { display: flex; gap: 0.5rem; padding: 0.6rem 0.7rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1 1 auto; min-width: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; }
.chat-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--color-teal-tint); }
.chat-form button { flex: none; width: 42px; border-radius: 10px; background: var(--accent); color: var(--color-white); display: grid; place-items: center; }
.chat-form button:hover { background: var(--accent-ink); }
.chat-form button[disabled] { background: var(--color-mist-2); color: var(--muted); }
.chat-form input[disabled] { background: var(--bg-2); color: var(--muted); }
.chat-foot { padding: 0 1rem 0.85rem; font-size: 0.7rem; color: var(--muted); }
.chat-foot a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 539px) {
  .chat-fab .chat-fab-txt { display: none; }
  .chat-fab { width: 52px; padding: 0; justify-content: center; }
  .chat-panel { max-height: 80vh; }
}

/* Selector de idioma */
.lang-switch { display: inline-flex; gap: 0.25rem; }
.lang-switch a { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; padding: 0.3rem 0.45rem; border-radius: var(--r-sm); color: var(--muted); }
.lang-switch a:hover { color: var(--ink); background: var(--bg-2); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--color-mist-2); }

/* =============================================================
   6. Cabecera y pie
   ============================================================= */
.announce { background: var(--ink); color: rgba(255, 255, 255, 0.86); font-size: var(--fs-xs); letter-spacing: 0.02em; text-align: center; padding: 0.45rem var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 800; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow var(--dur) var(--ease-out); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s-5); }
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.header-cta { display: none; }
.lang-desktop { display: none; }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--ink); transition: background var(--dur) var(--ease-out); }
.cart-link:hover { background: var(--bg-2); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--accent); color: var(--color-white); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-family: var(--font-display); }
.nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; }
.nav-toggle:hover { background: var(--bg-2); }
.nav-toggle-bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle-bars i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.site-header.is-open .nav-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Menú móvil desplegado */
.site-header.is-open .nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: var(--s-4) var(--gutter) var(--s-5); gap: 0.25rem; }
.site-header.is-open .nav a { padding: 0.8rem 0.5rem; border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.site-header.is-open .nav a:hover { background: var(--bg-2); }
.nav-mobile-extra { padding-top: var(--s-3); }
.nav-mobile-extra:empty { display: none; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); margin-top: var(--section); padding: var(--s-8) 0 var(--s-6); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
.footer-brand img { height: 30px; width: auto; margin-bottom: var(--s-4); }
.footer-claim { font-family: var(--font-display); font-weight: 600; color: var(--color-white); font-size: var(--fs-md); margin-bottom: var(--s-2); }
.footer-about { font-size: var(--fs-sm); max-width: 38ch; }
.footer-contact { list-style: none; padding: 0; margin-top: var(--s-4); display: grid; gap: 0.3rem; font-size: var(--fs-sm); }
.footer-contact a { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.footer-contact a:hover { text-decoration-color: currentColor; }
.footer-col { display: grid; gap: 0.45rem; align-content: start; }
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-teal-soft); margin-bottom: 0.3rem; }
.footer-col a { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82); }
.footer-col a:hover { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.6); }

/* =============================================================
   7. Secciones
   ============================================================= */
.section { padding: var(--section) 0; }
.section--mist { background: var(--bg-2); }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section + .section:not(.section--mist) { padding-top: 0; }
.section--mist + .section { padding-top: var(--section); }

/* Hero de inicio */
.hero { position: relative; isolation: isolate; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); background: var(--bg); }
/* Foto de ambiente de fondo, con un velo blanco para que el texto se lea */
/* La foto va en espejo para que el mar y la terraza queden detrás de la figura, y el producto de la foto detrás del texto (cubierto por el velo) */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) url("assets/img/ambiente-terraza.webp") 12% center / cover no-repeat; transform: scaleX(-1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 55%, rgba(255, 255, 255, 0.55) 100%); }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; grid-template-columns: 1fr; }
.hero-copy { display: grid; gap: var(--s-5); }
.hero-title { max-width: 14ch; }
.hero-lead { font-size: var(--fs-md); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); }
.hero-visual { position: relative; }
.hero-figure { position: relative; aspect-ratio: 5 / 4; display: flex; align-items: flex-end; justify-content: center; border-radius: var(--r-lg); background: radial-gradient(70% 40% at 50% 100%, rgba(225, 236, 238, 0.85) 0%, rgba(243, 247, 249, 0) 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(243, 247, 249, 0.5) 100%); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-md); overflow: hidden; }
.hero-figure img { position: relative; z-index: 1; height: 82%; width: auto; max-width: 92%; object-fit: contain; margin-bottom: 6%; }
.hero-pipe { position: absolute; left: 0; right: 0; top: 33%; height: 2px; background: linear-gradient(90deg, rgba(48, 156, 188, 0) 0%, var(--color-teal-soft) 15%, var(--color-teal-soft) 85%, rgba(48, 156, 188, 0) 100%); }
.hero-pipe::before, .hero-pipe::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero-pipe::before { left: 12%; }
.hero-pipe::after { right: 12%; }
.hero-label { position: absolute; z-index: 2; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: rgba(255, 255, 255, 0.85); padding: 0.3rem 0.55rem; border-radius: var(--r-sm); }
.hero-label--in { left: 6%; top: 24%; }
.hero-label--out { right: 6%; top: 24%; }

/* Problema de la cal */
.symptoms { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.symptom { display: grid; gap: var(--s-3); padding: var(--s-5); background: var(--color-white); border-radius: var(--r-md); border: 1px solid var(--line); }
.symptom p { font-size: var(--fs-sm); }
.symptom h3 { font-size: var(--fs-base); }

/* Cómo funciona */
.how-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; align-items: start; }
.flow-diagram { background: var(--bg-2); border-radius: var(--r-lg); padding: var(--s-5); }
.flow-diagram svg { width: 100%; height: auto; }
.safety-line { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--color-teal-tint); color: var(--ink); font-size: var(--fs-sm); }
.safety-line svg { width: 20px; height: 20px; color: var(--accent-ink); flex: none; margin-top: 2px; }

/* Beneficios */
.benefits { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.benefit { display: grid; grid-template-columns: 46px 1fr; gap: var(--s-4); align-items: start; padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.benefit h3 { font-size: var(--fs-base); margin-bottom: 0.2rem; }
.benefit p { font-size: var(--fs-sm); color: var(--muted); }

/* Elección */
.choose { display: grid; gap: var(--s-4); padding: var(--s-5) var(--s-6); background: var(--color-white); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--s-6); }
.choose-q { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--ink); }
.choose-opts { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.choose-opt { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--bg-2); font-size: var(--fs-sm); }
.choose-opt b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--accent-ink); }
.choose-opt a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-teal-soft); }

/* Comparador */
.compare-wrap { overflow-x: auto; overflow-y: visible; }
.compare-table { width: 100%; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.compare-table thead th { vertical-align: bottom; border-bottom: 2px solid var(--color-mist-2); padding-bottom: var(--s-4); }
.compare-table thead th.feat { width: 32%; }
.compare-table tbody th { font-weight: 500; color: var(--ink); }
.compare-table tbody th small { display: block; font-weight: 400; color: var(--muted); }
.compare-table td.yes { color: var(--color-ok); font-weight: 600; }
.compare-table td.no { color: var(--muted); }
.compare-table .col-rec { background: var(--bg-2); }
.compare-table thead th.col-rec { border-radius: var(--r-md) var(--r-md) 0 0; }
.compare-table tfoot td { border-bottom: 0; padding-top: var(--s-4); }
.p-photo { height: 210px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: var(--s-3); }
.p-photo img { max-height: 100%; width: auto; }
.p-badge { margin-bottom: var(--s-2); }
.p-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); color: var(--ink); line-height: 1.15; }
.p-desc { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; margin-top: 0.2rem; }
.p-price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); color: var(--ink); margin-top: var(--s-3); line-height: 1; }
.p-price-note { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; margin-top: 0.3rem; }
.compare-note { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-4); }

/* Recambios */
.refills { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: start; }
.refill-cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.refill-card { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--color-white); align-items: center; }
.refill-card .plate { padding: 12%; aspect-ratio: 3 / 4; }
.refill-card h3 { font-size: var(--fs-md); }
.refill-card .p-price { font-size: var(--fs-xl); margin-top: 0.35rem; }
.refill-card p { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.3rem; }
.refill-card .link-arrow { margin-top: 0.5rem; font-size: var(--fs-sm); }
.refill-card .badge { margin-bottom: 0.45rem; }
.refill-card .promo { color: var(--ink); font-weight: 600; margin-top: 0.35rem; }
.refill-big .refill-card .promo { font-size: var(--fs-base); }
.variant label.is-promo { border-color: var(--accent); }
.variant label.is-promo strong { color: var(--accent-ink); }
.calc { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--bg-2); border-radius: var(--r-md); }
.calc h3 { font-size: var(--fs-md); }
.calc-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.calc-row label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.calc-row input { width: 5.5rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--color-white); font-variant-numeric: tabular-nums; }
.calc-out { display: grid; gap: 0.4rem; font-size: var(--fs-sm); }
.calc-out strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.calc-note { font-size: var(--fs-xs); color: var(--muted); }

/* Recambios junto a los sistemas (portada) */
.refills-inline { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); display: grid; gap: var(--s-5); }
.refills-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.refills-head h3 { font-size: var(--fs-xl); margin-top: var(--s-2); max-width: 30ch; }
.refill-big .refill-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--s-5); }
.refill-big .refill-card { grid-template-columns: 120px 1fr; gap: var(--s-5); padding: var(--s-5); border-color: var(--color-mist-2); background: var(--bg-2); }
.refill-big .refill-card .plate { padding: 10%; }
.refill-big .refill-card h3 { font-size: var(--fs-lg); }
.refill-big .refill-card .p-price { font-size: var(--fs-2xl); }
.refill-big .refill-card p { font-size: var(--fs-sm); color: var(--text); }
.refill-big .refill-card .link-arrow { font-size: var(--fs-base); }
.calc-inline .calc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: center; background: var(--color-white); border: 1px solid var(--line); }
.calc-inline .calc h3 { font-size: var(--fs-md); }
.calc-inline .calc-note { grid-column: 1 / -1; }

/* Homologaciones */
.approvals { display: grid; gap: var(--s-5); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--color-white); margin-top: var(--s-7); }
.approvals-head { display: grid; gap: var(--s-2); max-width: 70ch; }
.approvals-head h3 { font-size: var(--fs-xl); }
.approvals-head p { font-size: var(--fs-sm); color: var(--text); }
.approvals-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.approvals-list li { display: grid; gap: 2px; justify-items: center; min-width: 136px; padding: 0.75rem 0.9rem 0.7rem; border: 1.5px solid var(--color-mist-2); border-radius: 10px; text-align: center; background: var(--color-white); }
.approvals-list svg { width: 112px; height: 52px; color: var(--ink); margin-bottom: 0.35rem; }
.approvals-list b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); letter-spacing: 0.02em; }
.approvals-list span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.approvals-note { font-size: var(--fs-xs); color: var(--muted); }
.approvals--compact { margin-top: var(--s-4); padding: var(--s-5); }
.approvals--compact .approvals-head h3 { font-size: var(--fs-md); }

/* Instalación */
.install-cols { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.install-col { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); border-radius: var(--r-md); background: var(--color-white); border: 1px solid var(--line); }
.install-col.is-primary { border-color: var(--accent); }
.install-col h3 { font-size: var(--fs-lg); }
.install-col .zone { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-ink); }
.install-col p { font-size: var(--fs-sm); }

/* CTA final */
.cta-final { text-align: center; padding: var(--section) 0; }
.cta-final .section-head { margin-bottom: var(--s-6); }
.cta-final .hero-actions { justify-content: center; }
.cta-final .note { margin-top: var(--s-4); }

/* Página interior: cabecera */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); display: grid; gap: var(--s-3); max-width: 760px; }
.page-head .lead { max-width: 60ch; }

/* Ficha para el fontanero */
.pro-sheet { display: grid; gap: var(--s-5); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--color-white); }
.pro-sheet h3 { font-size: var(--fs-md); }
.pro-sheet ul { font-size: var(--fs-sm); display: grid; gap: 0.35rem; }

/* Contacto */
.contact-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; align-items: start; }
.contact-info { display: grid; gap: var(--s-4); }
.contact-info .card { display: grid; gap: 0.5rem; }
.contact-info .card h3 { font-size: var(--fs-base); }
.contact-info .card p { font-size: var(--fs-sm); }
.contact-big { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); }
.contact-big a { color: var(--ink); }
.contact-big a:hover { color: var(--accent-ink); }

/* =============================================================
   8. Tienda: ficha de producto y carrito
   ============================================================= */
.product-hero { display: grid; gap: var(--s-6); grid-template-columns: 1fr; padding: clamp(1.5rem, 4vw, 3rem) 0 var(--s-7); align-items: start; }
.product-gallery .plate { aspect-ratio: 1 / 1; }
.buy-box { display: grid; gap: var(--s-4); }
.buy-box h1 { font-size: var(--fs-3xl); }
.buy-kicker { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.buy-short { font-size: var(--fs-md); max-width: 44ch; }
.price-block { display: grid; gap: 0.2rem; padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-gross { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.price-gross small { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); color: var(--muted); margin-left: 0.35rem; }
.price-net { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.buy-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 40px; height: 44px; font-size: 1.2rem; color: var(--ink); }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 48px; height: 44px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-facts { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: var(--fs-sm); }
.buy-facts li { display: flex; gap: 0.6rem; align-items: flex-start; }
.buy-facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.buy-notes { font-size: var(--fs-xs); color: var(--muted); display: grid; gap: 0.25rem; }
.variant { display: grid; gap: 0.5rem; }
.variant label { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center; padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-size: var(--fs-sm); }
.variant label:has(input:checked) { border-color: var(--accent); background: var(--color-teal-tint); }
.variant label b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.variant label .v-price { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.variant input { accent-color: var(--accent); }

.prod-sections { display: grid; gap: var(--s-8); }
.prod-section { display: grid; gap: var(--s-4); }
.prod-section h2 { font-size: var(--fs-xl); }
.prod-section .two-col { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.compat { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* Carrito */
.cart-layout { display: grid; gap: var(--s-6); grid-template-columns: 1fr; align-items: start; }
.cart-lines { width: 100%; }
.cart-lines th { text-align: left; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted); padding: 0 0 0.75rem; border-bottom: 1px solid var(--line); }
.cart-lines td { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.cart-lines .c-prod { display: flex; gap: var(--s-3); align-items: center; }
.cart-lines .c-prod .plate { width: 64px; height: 64px; padding: 8px; border-radius: var(--r-sm); flex: none; }
.cart-lines .c-prod b { font-family: var(--font-display); font-weight: 600; color: var(--ink); display: block; }
.cart-lines .c-prod small { color: var(--muted); }
.cart-lines .c-total { font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; }
.cart-lines .c-remove { color: var(--muted); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.cart-lines .c-remove:hover { color: var(--color-error); }
.cart-summary { display: grid; gap: var(--s-3); padding: var(--s-5); background: var(--bg-2); border-radius: var(--r-md); position: sticky; top: calc(var(--header-h) + 1rem); }
.cart-summary h2 { font-size: var(--fs-lg); }
.sum-row { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.sum-row.total { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.cart-empty { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-6); border: 1px dashed var(--line); border-radius: var(--r-md); }
.order-form { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.order-form h2 { font-size: var(--fs-xl); }

/* =============================================================
   9. Formularios
   ============================================================= */
.form { display: grid; gap: var(--s-4); }
.form fieldset { border: 0; padding: 0; display: grid; gap: var(--s-4); min-width: 0; }
.form legend { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--ink); margin-bottom: var(--s-2); padding: 0; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--color-white); transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--color-teal-tint); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--color-error); }
.checkbox.is-invalid { color: var(--color-error); }
.checkbox.is-invalid input { outline: 2px solid var(--color-error); outline-offset: 2px; }
.field-row { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: var(--fs-sm); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.checkbox a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-ink); }
.btn.is-disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.buy-min { margin-top: calc(var(--s-3) * -1); }
.refills-note { margin-top: var(--s-4); text-align: center; }
.form-msg { padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.form-msg.is-error { background: #FBEDED; color: var(--color-error); }
.form-msg.is-ok { background: #E8F4EE; color: var(--color-ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-note { display: flex; gap: 0.6rem; align-items: flex-start; }
.pay-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* =============================================================
   10. Efectos
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); animation: revealSafety 0.01s 4s forwards; }
[data-reveal].is-revealed { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; animation: none; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.hero-figure img { animation: heroIn 1.1s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.flow-dot { animation: flowMove 6s linear infinite; }
@keyframes flowMove { from { transform: translateX(0); } to { transform: translateX(var(--flow-distance, 560px)); } }

/* =============================================================
   11. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .brand img { height: 34px; }
  .refill-card .plate { aspect-ratio: 3 / 4; }
  .refill-big .refill-card { grid-template-columns: 150px 1fr; }
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .refills { grid-template-columns: 1.4fr 1fr; }
  .product-hero { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .cart-layout { grid-template-columns: 1.6fr 1fr; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .spec-table { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
  .header-cta { display: inline-flex; }
}
@media (min-width: 960px) {
  .nav { display: flex; gap: 0.25rem; margin-left: var(--s-4); }
  .nav a { padding: 0.55rem 0.8rem; border-radius: var(--r-sm); font-size: 0.95rem; font-weight: 500; color: var(--text); position: relative; }
  .nav a:hover { color: var(--ink); background: var(--bg-2); }
  .nav a::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 4px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
  body[data-page="productos"] .nav a[data-nav-link="productos"]::after,
  body[data-page="sistema-antical"] .nav a[data-nav-link="productos"]::after,
  body[data-page="sistema-completo"] .nav a[data-nav-link="productos"]::after,
  body[data-page="cartucho-antical"] .nav a[data-nav-link="productos"]::after,
  body[data-page="cartucho-prefiltro-inox"] .nav a[data-nav-link="productos"]::after,
  body[data-page="como-funciona"] .nav a[data-nav-link="como-funciona"]::after,
  body[data-page="instalacion"] .nav a[data-nav-link="instalacion"]::after,
  body[data-page="faq"] .nav a[data-nav-link="faq"]::after,
  body[data-page="contacto"] .nav a[data-nav-link="contacto"]::after { transform: scaleX(1); }
  .nav-mobile-extra { display: none; }
  .nav-toggle { display: none; }
  .lang-desktop { display: block; }
  .hero-title { max-width: 12ch; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .compare-table thead th.feat { width: 30%; }
}
@media (max-width: 539px) {
  .choose-opt { grid-template-columns: 1fr; gap: 0.25rem; }
  .hero-label { display: none; }
  .approvals { padding: var(--s-4); }
  .approvals-list { gap: var(--s-2); }
  .approvals-list li { min-width: 0; flex: 1 1 calc(50% - var(--s-2)); padding: 0.6rem 0.4rem 0.55rem; }
  .approvals-list svg { width: 104px; height: 48px; }
}
@media (min-width: 960px) {
  /* En pantallas grandes la foto se ve entera (sin ampliar); en espejo, "left" la coloca a la derecha */
  .hero::before { background-size: contain; background-position: left center; }
  .hero::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 40%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.12) 100%); }
}
@media (max-width: 719px) {
  /* El comparador se apila: la etiqueta a todo el ancho y las dos columnas debajo */
  .compare-table, .compare-table thead, .compare-table tbody, .compare-table tfoot { display: block; }
  .compare-table tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare-table thead th.feat, .compare-table tfoot td:empty { display: none; }
  .compare-table tbody th { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0.2rem; }
  .compare-table tbody td { padding-top: 0.35rem; }
  .compare-table tfoot td { grid-column: 1 / -1; }
  .p-photo { height: 150px; }
  .p-name { font-size: var(--fs-lg); }
  .p-price { font-size: var(--fs-xl); }
  .cart-lines thead { display: none; }
  .cart-lines tr { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
  .cart-lines td { padding: 0; border: 0; }
  .cart-lines td.c-prod-cell { grid-column: 1 / -1; }
  .cart-summary { position: static; }
  /* el aviso del carrito no debe quedar debajo del botón del asistente */
  .toast { bottom: 5.5rem; }
}

/* =============================================================
   12. Reduced motion: solo se apagan los efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Sin movimiento, pero las gotas se reparten por la tubería para que el
     esquema siga contando que el agua circula, en vez de amontonarse todas
     en el mismo punto y parecer una mancha suelta. */
  .flow-dot { animation: none; transform: translateX(var(--flow-offset, 0px)); }
  .chat-dots i { animation: none; opacity: 0.6; }
}
