﻿/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --ink: #171f34;     /* cabecera, menú y pie: azul noche (colores elegidos el 31/10) */
  --ink-2: #222a3e;
  --ink-3: #2d3447;
  --silver: #e6e8ec;
  --silver-2: #a8adb5;
  --bg: #4b84b9;      /* fondo de la tienda: azul medio elegido con el panel de colores */
  --card: #ffffff;
  --line: #c9d9ea;
  --text: #1a1c20;
  --muted: #5f6570;
  --blue: #2e8fe0;
  --blue-d: #1c6fb8;
  --orange: #f2791f;
  --orange-d: #d6600a;
  --ok: #1f8a5b;
  --warn: #b5670e;
  --wave: linear-gradient(90deg, var(--blue), var(--orange));
  --display: "Michroma", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(18,20,24,.06);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: var(--text); }
a { color: inherit; text-decoration: none; }

/* Fondo oscuro: texto claro directamente sobre el fondo; las superficies blancas
   (tarjetas, opciones, chat) recuperan los colores oscuros de siempre. */
body { color: var(--on-bg, #ffffff); --muted: var(--on-bg-muted, #e6eef7); --line: var(--on-bg-line, rgba(236, 238, 241, .18)); }
.card, .mode, .chat-panel { color: var(--text); --muted: #5f6570; --line: #dfe2e7; --bg: #f3f4f6; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: #fff; z-index: 999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--display); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.wave-line { height: 2px; background: var(--wave); border: 0; }
.hidden { display: none !important; }

/* =============================================================
   4. Header & nav
   ============================================================= */
.demo-band { background: #fff4e6; color: #7a4508; font-size: .82rem; text-align: center; padding: .4rem 1rem; }
.topbar { background: var(--ink); color: var(--silver-2); font-size: .8rem; }
.topbar .wrap { display: flex; gap: 1.25rem; justify-content: space-between; padding: .45rem 0; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }

.site-header { background: var(--ink); color: var(--silver); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--ink-3); }
.site-header::after { content: ""; display: block; height: 2px; background: var(--wave); }
.header-row { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand svg { width: 42px; height: 37px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--display); font-size: .5rem; letter-spacing: .32em; color: var(--silver-2); }
.brand-text strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em; color: #fff; font-weight: 400; }
.header-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--ink-3); }
.icon-btn:hover { border-color: var(--silver-2); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

.main-nav { border-top: 1px solid var(--ink-3); }
.main-nav ul { list-style: none; padding: 0; display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a { display: block; padding: .75rem .8rem; font-size: 1rem; white-space: nowrap; color: var(--silver-2); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-color: var(--orange); }
.main-nav .nav-cta a { color: #fff; }
.main-nav .nav-cta a::before { content: "● "; color: var(--orange); font-size: .7em; }

/* =============================================================
   5. Components
   ============================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 10px; font-weight: 700; font-size: .95rem; transition: transform .25s var(--ease-out), background .2s, box-shadow .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(242,121,31,.3); }
.btn-primary:hover { background: var(--orange-d); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-ghost { border: 1.5px solid currentColor; }
.btn-dark { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; }
.pill-ok { background: #e3f4ec; color: var(--ok); }
.pill-warn { background: #fdf0e1; color: var(--warn); }
.pill-blue { background: #e4f0fb; color: var(--blue-d); }

.notice { border-left: 4px solid var(--blue); background: #eef5fc; padding: 1rem 1.1rem; border-radius: 0 10px 10px 0; font-size: .9rem; color: #233a52; }
.notice strong { display: block; margin-bottom: .25rem; }
.notice-warn { border-color: var(--orange); background: #fff5ec; color: #5a3410; }

.cat-icon { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Product card */
.grid-products { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.p-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18,20,24,.12); }
.p-media { aspect-ratio: 4/3; background: radial-gradient(circle at 30% 20%, #2b2f36, var(--ink)); color: var(--silver-2); display: grid; place-items: center; position: relative; }
.p-media svg { width: 38%; }
.p-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--wave); opacity: .8; }
.p-media .pill { position: absolute; top: .7rem; left: .7rem; }
/* Con foto propia (ya lleva marca y sellos) no se tapa con la etiqueta */
.p-media:has(img) .pill { display: none; }
.p-media { overflow: hidden; }
.p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery button { width: 64px; aspect-ratio: 1; padding: 0; border: 2px solid var(--line, #d8dbe0); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.gallery button.is-on { border-color: var(--orange, #f2791f); }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.p-body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.p-brand { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-name { font-size: 1rem; font-weight: 700; }
.p-prices { margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--line); display: grid; gap: .15rem; font-size: .88rem; }
.p-prices div { display: flex; justify-content: space-between; }
.p-prices div { gap: .6rem; align-items: baseline; }
.p-prices b { font-size: 1.05rem; white-space: nowrap; }
.p-prices .with { color: var(--blue-d); }

/* Forms */
.field { display: grid; gap: .35rem; }
.field label, .field .label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field .req { color: var(--orange); }
.field small { color: var(--muted); font-size: .8rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.form-grid { display: grid; gap: 1rem; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumbs span { font-size: .8rem; padding: .3rem .5rem; background: var(--bg); border-radius: 6px; }

/* =============================================================
   6. Sections
   ============================================================= */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, rgba(46,143,224,.22), transparent 60%), radial-gradient(800px 500px at 100% 110%, rgba(242,121,31,.18), transparent 60%), var(--ink); color: var(--silver); padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4.4vw, 3.1rem); color: #fff; letter-spacing: .01em; line-height: 1.2; }
.hero h1 em { font-style: normal; background: var(--wave); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 1.1rem; font-size: 1.1rem; max-width: 36rem; color: var(--silver-2); }
.hero .eyebrow { color: var(--silver-2); margin-bottom: 1rem; }
.hero-logo { justify-self: center; width: min(320px, 70vw); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.hero-trust { margin-top: 1.6rem; display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .88rem; color: var(--silver-2); }
.hero-trust span::before { content: "✓ "; color: var(--orange); font-weight: 700; }

/* Two options */
.options { margin-top: -2.2rem; padding-top: 0; position: relative; z-index: 2; }
.options-grid { display: grid; gap: 1rem; }
.option { padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: .8rem; align-content: start; position: relative; overflow: hidden; }
.option::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--blue); }
.option.alt::before { background: var(--orange); }
.option h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: .04em; }
.option .btn { justify-self: start; margin-top: .4rem; }

/* Category grid */
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.cat-tile { padding: 1.3rem 1rem; display: grid; justify-items: center; gap: .7rem; text-align: center; transition: transform .3s var(--ease-out), border-color .2s; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--blue); }
.cat-tile .ico { width: 54px; height: 54px; color: var(--ink-3); }
.cat-tile:hover .ico { color: var(--blue); }
.cat-tile strong { font-size: .95rem; }
.cat-tile small { color: var(--muted); font-size: .78rem; line-height: 1.35; }

/* Steps */
.steps { display: grid; gap: 1rem; counter-reset: s; }
.step { padding: 1.4rem; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 1.4rem; background: var(--wave); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: .5rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }

/* Dark band */
.band-dark { background: var(--ink); color: var(--silver); }
.band-dark h2 { color: #fff; }
.band-dark .muted { color: var(--silver-2); }

/* Page head */
.page-head { background: var(--ink); color: var(--silver); padding: 2.2rem 0 2rem; }
.page-head h1 { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.2rem); letter-spacing: .02em; }
.page-head p { color: var(--silver-2); margin-top: .5rem; max-width: 46rem; }
.crumbs { font-size: .8rem; color: var(--silver-2); margin-bottom: .8rem; }
.crumbs a:hover { color: #fff; }

/* Catalog layout */
.catalog { display: grid; gap: 1.5rem; padding-top: 2rem; }

/* Tienda: una columna izquierda (filtros + pago, redes, idioma) y productos a la derecha.
   En móvil la columna se deshace: filtros arriba (plegados), productos, y la información al final. */
.shop-layout { width: min(100% - 32px, 1480px); display: grid; gap: 1.5rem; padding-top: 2rem; }
.shop-left { display: contents; }
.shop-left .filters { order: 0; }
.shop-main { order: 1; min-width: 0; }
.shop-side { order: 2; padding: 1.2rem; display: grid; gap: 1.4rem; align-content: start; }
.shop-side section { padding: 0; }
.pay-list li span b { font-weight: 800; }
/* Tarifas y servicios */
.tarifas { padding-top: 1rem; }
.tar-sec { margin-top: 2.6rem; padding: 0; }
.tar-head { margin-bottom: 1.2rem; max-width: 46rem; }
.tar-head .eyebrow { color: var(--muted); }
.tar-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: .3rem 0 .4rem; }
.tar-head p { color: var(--muted); }
.tar-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tar-card { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.tar-card h3 { font-size: 1.1rem; }
.tar-ico { width: 46px; height: 46px; padding: 9px; border-radius: 12px; background: var(--tone-l, #eef2f7); color: var(--tone, var(--blue-d)); }
.tar-desde { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tar-price { font-size: 1.6rem; color: var(--blue-d); line-height: 1.1; }
.tar-val { font-size: 1.2rem; }
.tar-list { padding-left: 1.1rem; font-size: .88rem; color: var(--muted); display: grid; gap: .2rem; }
.tar-serv { display: grid; gap: .4rem; }
.tar-serv > div, .tar-serv > a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.tar-serv small { display: block; color: var(--muted); font-size: .78rem; }
.tar-serv b { color: var(--blue-d); white-space: nowrap; }
.tar-links { margin-top: auto; padding-top: .6rem; display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; font-weight: 700; }
.tar-links a { color: var(--blue-d); text-decoration: underline; }
.tar-wide { max-width: 760px; }
.tar-head p b { color: var(--on-bg, #fff); }
.tar-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .45rem; border-radius: 99px; background: #fff0e3; color: var(--orange-d); vertical-align: middle; white-space: nowrap; }
.tar-inc summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--muted); }
.tar-inc[open] summary { margin-bottom: .4rem; }
[data-tone="frio"] { --tone: #2e8fe0; --tone-l: #e4f1fd; }
[data-tone="calor"] { --tone: #d6600a; --tone-l: #ffeadb; }
[data-tone="aire"] { --tone: #5b6b7e; --tone-l: #eef1f5; }

/* Buscador de la tienda */
.shop-search { position: relative; display: flex; align-items: center; margin-bottom: 1rem; }
@media (min-width: 720px) { .shop-search { width: 50%; } }
.shop-search svg { position: absolute; left: .9rem; width: 18px; height: 18px; fill: none; stroke: #5f6570; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.shop-search input { width: 100%; padding: .6rem 2.6rem .6rem 2.6rem; border-radius: 12px; border: 2px solid transparent; background: #fff; font-size: .92rem; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.shop-search input:focus { outline: none; border-color: var(--blue); }
.shop-search input::-webkit-search-cancel-button { display: none; }
.shop-search-x { position: absolute; right: .4rem; width: 30px; height: 30px; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: #5f6570; }
.shop-search-x:hover { background: #eef0f3; }
.search-hint { grid-column: 1 / -1; }

/* Categorías de solo instalación */
.servicio { padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.servicio .pill { justify-self: start; }
.servicio h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.servicio .conditions .cond { box-shadow: none; }
.serv-list { display: grid; gap: .5rem; }
.serv { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; }
.serv span { font-weight: 600; }
.serv small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.serv b { font-size: 1.1rem; white-space: nowrap; color: var(--blue-d); }
/* Servicios con precio por WhatsApp: toda la fila abre el chat */
.serv-wa { transition: border-color .2s, background-color .2s; flex-wrap: wrap; row-gap: .45rem; }
.serv-wa > span:first-child { flex: 1 1 9.5rem; }
.serv-cta { margin-left: auto; }
.serv-wa:hover { border-color: #b9ecc9; background: #f6fdf8; }
.serv-cta { display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.serv-wa .wa-cta, .serv-wa .tel-cta { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border-radius: 99px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
.serv-wa .wa-cta { padding: .3rem .55rem; background: #e7f9ee; color: #128c4a; font-size: .8rem; }
.serv-wa .wa-cta:hover, .serv-wa .wa-cta:focus-visible { background: #25d366; color: #fff; transform: translateY(-1px); }
.serv-wa .tel-cta { width: 1.95rem; height: 1.95rem; background: #e8f1fa; color: var(--blue-d); }
.serv-wa .tel-cta:hover, .serv-wa .tel-cta:focus-visible { background: var(--blue-d); color: #fff; transform: translateY(-1px); }
.serv-wa svg { width: 1.05em; height: 1.05em; }
.serv-wa .tel-cta svg { width: .95rem; height: .95rem; }
.serv.serv-wa .wa-cta { font-size: .88rem; }
.tar-tel { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--on-bg, #fff); white-space: nowrap; text-decoration: underline; }
.tar-tel svg { width: .95em; height: .95em; }

/* Recuadro "Venta e instalación en Alicante y alrededores" de la ficha */
.zonas { display: grid; gap: .6rem; margin-top: 1.4rem; }
.zonas > div { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 12px; background: #fff; color: var(--text); border: 1px solid #dfe2e7; }
.zonas svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--blue-d); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: .1rem; }
.zonas span { font-size: .86rem; color: #5f6570; line-height: 1.45; }
.zonas b { display: block; color: var(--text); font-size: .95rem; }
.shop-side h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.pay-list { list-style: none; padding: 0; display: grid; gap: .45rem; }
.pay-list li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 10px; }
.pay-list svg, .social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pay-list svg { color: var(--blue-d); }
.social { display: flex; flex-wrap: wrap; gap: .45rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.lang-select { width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.side-contact { font-size: .9rem; line-height: 1.7; }
.side-contact a { font-weight: 700; }
.side-contact a + br + a { font-weight: 500; color: var(--blue-d); text-decoration: underline; }
.filters { padding: 1.2rem; display: grid; gap: 1.2rem; align-content: start; }
.filters h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.filters .check { font-size: .88rem; }
.filters-toggle { display: inline-flex; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; font-size: .9rem; }
.result-bar select { padding: .5rem .7rem; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }

/* Product page */
.product { display: grid; gap: 2rem; padding-top: 2rem; }
.product-media { aspect-ratio: 1; border-radius: var(--r); }
.product-media svg { width: 34%; }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.specs th { color: var(--muted); font-weight: 600; width: 45%; }
.modes { display: grid; gap: .7rem; }
.mode { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.mode:hover { border-color: var(--silver-2); }
.mode input { width: 18px; height: 18px; accent-color: var(--blue); }
.mode.is-on { border-color: var(--blue); background: #f4f9fe; }
.mode.is-off { opacity: .55; cursor: not-allowed; }
.mode strong { display: block; font-size: .95rem; }
.mode small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; }
.mode .price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; text-align: right; }
.breakdown { padding: 1rem 1.1rem; display: grid; gap: .3rem; font-size: .92rem; }
.breakdown div { display: flex; justify-content: space-between; }
.breakdown .total { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .3rem; font-weight: 800; font-size: 1.15rem; }
.conditions { display: grid; gap: 1rem; }
.cond { padding: 1.2rem; }
.cond h3 { font-size: 1rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.cond ul { padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .9rem; }
.cond.inc h3::before { content: "✓"; color: var(--ok); }
.cond.chk h3::before { content: "⌕"; color: var(--blue); }
.cond.ext h3::before { content: "+"; color: var(--orange); font-weight: 800; }

/* Quote */
.quote { display: grid; gap: 1.5rem; padding-top: 2rem; }
.quote-form { padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.4rem; }
.quote-form fieldset { border: 0; padding: 0; display: grid; gap: 1rem; }
.quote-form legend { font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; padding-top: .4rem; }
.estimate { padding: 1.3rem; position: sticky; top: 140px; display: grid; gap: .8rem; align-content: start; }
.estimate .amount { font-family: var(--display); font-size: 1.6rem; }
.missing { font-size: .85rem; padding-left: 1.1rem; color: var(--warn); }
.done-box { padding: 1.6rem; display: grid; gap: .9rem; }
.done-box pre { white-space: pre-wrap; font: .85rem/1.5 ui-monospace, Consolas, monospace; background: var(--bg); padding: 1rem; border-radius: 10px; max-height: 280px; overflow: auto; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Rooms (diseña tu vivienda) */
.room { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; padding: 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.room .field:first-child { grid-column: 1 / -1; }
.room-rm { grid-column: 1 / -1; justify-self: end; font-size: .82rem; color: var(--muted); text-decoration: underline; }
.rec-list { display: grid; gap: .5rem; font-size: .9rem; }
.rec-list div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .4rem; border-bottom: 1px dashed var(--line); }

/* Diseña tu vivienda: plano */
.plano { display: grid; gap: 1.5rem; padding-top: 2rem; }
.plano-main { min-width: 0; }
.plano-bar { padding: .8rem; margin-bottom: .8rem; }
.plano-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tool-btn { padding: .55rem .85rem; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-size: .86rem; font-weight: 600; }
.tool-btn:hover { border-color: var(--silver-2); }
.tool-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-btn.ghost { border-style: dashed; color: var(--muted); }
.plano-sep { flex: 1; }
.plano-help { font-size: .84rem; margin-top: .55rem; }
.plano-canvas { padding: 0; overflow: hidden; }
.plano-canvas svg { width: 100%; height: auto; aspect-ratio: 20 / 14; touch-action: none; user-select: none; cursor: default; }
.plano-canvas svg[data-tool="dibujar"], .plano-canvas svg[data-tool="maquina"] { cursor: crosshair; }
.pl-room { cursor: move; }
.pl-handle { cursor: nwse-resize; }
.pl-machine { cursor: grab; }
.pl-name { font: 700 .36px var(--sans); fill: #1a1c20; pointer-events: none; }
.pl-meta { font: 500 .28px var(--sans); fill: #5f6570; pointer-events: none; }
.pl-mtext { font: 700 .26px var(--sans); fill: #fff; pointer-events: none; letter-spacing: .02px; }
.plano-cols { display: grid; gap: 1rem; margin-top: 1rem; }
.plano-box { padding: 1.2rem; }
.plano-box h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 10px; padding: 4px; }
.seg button { padding: .55rem .4rem; border-radius: 8px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.seg button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.plano-side .specs { font-size: .85rem; }
.plano-side .specs th, .plano-side .specs td { padding: .4rem .15rem; }
@media print {
  .topbar, .site-header, .site-footer, .demo-band, .page-head, .plano-bar, .plano-cols, .chat-fab, .fabs, .chat-panel, [data-enviar], .seg { display: none !important; }
  .plano { display: block; padding: 0; }
  .card { box-shadow: none; border: 0; }
}

/* Asistente de dudas */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 10px 28px rgba(0,0,0,.3); border: 2px solid transparent; background-clip: padding-box; }
.chat-fab::before { content: ""; position: absolute; inset: -2px; border-radius: 99px; background: var(--wave); z-index: -1; }
.chat-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-panel { position: fixed; right: 16px; bottom: 16px; z-index: 95; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; padding: 0; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--ink); color: #fff; position: relative; }
.chat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--wave); }
.chat-head small { display: block; color: var(--silver-2); font-size: .76rem; }
.chat-x { font-size: 1.6rem; line-height: 1; color: var(--silver-2); width: 36px; height: 36px; border-radius: 8px; }
.chat-x:hover { color: #fff; background: var(--ink-3); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.chat-msg { max-width: 88%; padding: .65rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.is-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.is-user { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg a { color: var(--blue-d); text-decoration: underline; font-weight: 600; }
.chat-msg.is-wait { color: var(--muted); letter-spacing: .2em; }
.chat-sug { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem; background: var(--bg); }
.chat-sug:not(:empty) { padding-bottom: .8rem; }
.chat-sug button { font-size: .8rem; padding: .4rem .7rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.chat-sug button:hover { border-color: var(--blue); color: var(--blue-d); }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; }
.chat-form input:focus { outline: none; border-color: var(--blue); }
.chat-form .btn { padding: .6rem .9rem; }
.chat-legal { font-size: .7rem; color: var(--muted); padding: 0 .9rem .6rem; }

/* Cart */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }
.cart-line .p-media { width: 64px; border-radius: 10px; aspect-ratio: 1; }
.cart-line .p-media svg { width: 60%; }
.cart-line .p-media::after { height: 2px; }
.cart-line button { font-size: .8rem; color: var(--muted); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: var(--silver-2); padding: 3rem 0 1.5rem; margin-top: 4rem; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.site-footer a:hover { color: #fff; }
/* «Instalación básica incluida»: que quede claro en cada precio */
.inst-incl { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; padding: .28rem .65rem .28rem .45rem; border-radius: 99px; background: #e6f6ec; color: #136c37; font-size: .78rem; font-weight: 800; line-height: 1.2; }
.inst-incl svg { width: 1rem; height: 1rem; flex: none; padding: .12rem; border-radius: 50%; background: #1e9e52; color: #fff; }
.p-prices-inst { gap: .5rem; }
.p-prices .p-total { align-items: baseline; }
.p-prices .p-total span { font-size: .82rem; color: var(--muted); }
.p-prices .p-total b { font-size: 1.4rem; color: var(--blue-d); }
.p-hero-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 0 0 1.2rem; padding: 1rem 1.2rem; border-radius: 14px; background: #fff; color: var(--text); border: 2px solid #1e9e52; box-shadow: var(--shadow); }
.p-hero-price > div:first-child { display: grid; gap: .1rem; }
.p-hero-k { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #136c37; }
.p-hero-price b { font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1.05; color: var(--blue-d); }
.p-hero-price small { font-size: .8rem; color: #5f6570; }
.p-hero-inc { display: grid; gap: .4rem; justify-items: start; }
.p-hero-inc .inst-incl { font-size: .9rem; padding: .4rem .8rem .4rem .5rem; }
.p-hero-inc a { font-size: .85rem; font-weight: 700; color: var(--blue-d); text-decoration: underline; }
.inst-banner { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; padding: .9rem 1.1rem; border-radius: 14px; background: #fff; color: var(--text); border-left: 5px solid #1e9e52; box-shadow: var(--shadow); }
.inst-banner[hidden] { display: none; }
.inst-banner > svg { width: 2.2rem; height: 2.2rem; flex: none; padding: .45rem; border-radius: 50%; background: #1e9e52; color: #fff; }
.inst-banner b { display: block; font-size: 1.02rem; }
.inst-banner span { font-size: .86rem; color: #5f6570; }
.inst-banner a { color: var(--blue-d); font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* Aviso destacado del producto (p. ej. «Hasta fin de existencias») */
.p-aviso { display: inline-flex; align-items: center; gap: .35rem; justify-self: start; width: fit-content; margin: .25rem 0 .1rem; padding: .2rem .6rem; border-radius: 99px; background: #fff0e3; color: var(--orange-d); font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.p-aviso::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); }

/* Ficha ampliada del producto («Todo sobre este equipo») */
.info-prod { padding-bottom: 0; }
.info-card { padding: 0; overflow: hidden; }
.info-tabs { display: flex; gap: .3rem; padding: .6rem .6rem 0; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
.info-tabs button { padding: .75rem 1.1rem; border: 0; background: none; border-radius: 10px 10px 0 0; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; }
.info-tabs button[aria-selected="true"] { background: var(--card, #fff); color: var(--blue-d); border-bottom-color: var(--orange); }
.info-panel { padding: clamp(1.2rem, 3vw, 2.2rem); line-height: 1.6; }
.info-panel h3 { font-size: 1.05rem; margin: 1.6rem 0 .7rem; }
.info-panel ul { padding-left: 1.15rem; display: grid; gap: .35rem; }
.info-panel p, .info-panel li { color: #2b3037; font-size: .95rem; }
.info-lead { font-size: 1.05rem !important; max-width: 52rem; }
.info-feats { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.info-feat { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; display: grid; gap: .2rem; align-content: start; border-left: 3px solid var(--blue); }
.info-feat b { font-size: .95rem; }
.info-feat span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.info-cols { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.info-grid { display: grid; gap: 1.2rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.info-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.info-table caption { text-align: left; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-d); padding: 0 0 .45rem; border-bottom: 2px solid var(--orange); }
.info-table th, .info-table td { text-align: left; padding: .5rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { font-weight: 600; color: var(--muted); width: 52%; }
.info-table td { font-weight: 700; color: #1a1c20; }

/* Páginas legales */
.legal { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem; align-items: start; padding-top: 2rem; padding-bottom: 3rem; }
.legal-nav { position: sticky; top: 7rem; padding: 1rem; display: grid; gap: .2rem; font-size: .92rem; }
.legal-nav a { padding: .45rem .6rem; border-radius: 8px; color: var(--text); }
.legal-nav a:hover { background: var(--bg); }
.legal-nav a[aria-current="page"] { background: #e8f1fa; color: var(--blue-d); font-weight: 700; }
.legal-doc { padding: clamp(1.3rem, 3.5vw, 2.6rem); max-width: 52rem; line-height: 1.65; }
.legal-doc h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.legal-doc h2:first-of-type { margin-top: 1rem; }
.legal-doc h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.legal-doc p, .legal-doc li { color: #2b3037; font-size: .95rem; }
.legal-doc p + p { margin-top: .6rem; }
.legal-doc ul, .legal-doc ol { padding-left: 1.2rem; display: grid; gap: .3rem; margin: .5rem 0; }
.legal-doc a { color: var(--blue-d); text-decoration: underline; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .6rem 0; }
.legal-doc th, .legal-doc td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-doc th { background: var(--bg); }
.legal-upd { font-size: .85rem; color: var(--muted); }
.legal-data { background: var(--bg); border-radius: 12px; padding: 1rem 1.2rem; display: grid; gap: .25rem; font-size: .93rem; }
.legal-pend { background: #fff0e3; color: var(--orange-d); font-weight: 700; padding: 0 .3rem; border-radius: 4px; }
.legal-form { border: 1.5px dashed var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-top: .6rem; font-size: .92rem; }
.legal-capa { font-size: .78rem; margin-top: .5rem; line-height: 1.45; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer-links a { text-decoration: underline; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 1rem; }
  .legal-nav { position: static; grid-template-columns: repeat(2, 1fr); }
}
.footer-legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--ink-3); font-size: .8rem; display: grid; gap: .6rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: .85rem 1.2rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 200; transition: transform .4s var(--ease-out); display: flex; gap: 1rem; align-items: center; font-size: .92rem; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--orange); font-weight: 700; white-space: nowrap; }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .filters { display: none; }
  .filters.open { display: grid; }
}
@media (min-width: 720px) {
  .options-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .conditions { grid-template-columns: repeat(3, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .room { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; }
  .room .field:first-child { grid-column: auto; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .catalog { grid-template-columns: 210px 1fr; }
  .filters { position: sticky; top: 140px; }
  .shop-layout { grid-template-columns: 250px 1fr; align-items: start; }
  .shop-left { display: grid; gap: 1rem; align-content: start; }
  .shop-left .filters { position: static; }
  .shop-layout .grid-products { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .filters-toggle { display: none; }
  .product { grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: 1fr 340px; align-items: start; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .plano { grid-template-columns: 1fr 340px; align-items: start; }
}
@media (min-width: 1280px) {
  .shop-layout { grid-template-columns: 270px 1fr; }
  .shop-layout .grid-products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .plano-cols { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Paginación del listado de productos */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin: 1.6rem 0 .5rem; }
.pager button { min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 0; border-radius: 10px; background: var(--card); color: var(--ink); font: 700 .95rem var(--sans); cursor: pointer; box-shadow: var(--shadow); transition: background .15s, color .15s; }
.pager button:hover:not([disabled]):not(.on) { background: var(--silver); }
.pager button.on { background: var(--orange); color: #fff; cursor: default; }
.pager button[disabled] { opacity: .45; cursor: default; }
.pager span { color: #fff; font-weight: 700; padding: 0 .2rem; }
@media (max-width: 560px) { .pager button { min-width: 2.3rem; height: 2.3rem; padding: 0 .55rem; font-size: .88rem; } }
.p-plazo { background: #e8f0fb; color: #1d4f91; text-transform: none; letter-spacing: 0; font-weight: 700; }
.p-plazo::before { background: #2f6fd0; }

/* Consulta: WhatsApp o que te llamemos */
.wa-box { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: #f0faf4; border: 1.5px solid #bfe8cf; display: grid; gap: .7rem; color: #14213d; }
.wa-box .muted, .wa-box small { color: #4a5568; }
.wa-box a:not(.btn) { color: #14213d; }
.wa-opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.wa-opts > .btn { flex: 1 1 220px; justify-content: center; }
.wa-opts-col { flex-direction: column; margin-top: .4rem; }
.wa-opts-col > .btn { flex: none; }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; background: #25d366; color: #fff; border-color: #25d366; }
.wa-btn:hover, .wa-btn:focus-visible { background: #1eb457; border-color: #1eb457; color: #fff; }
.wa-btn svg { width: 1.15em; height: 1.15em; }

/* Botones flotantes: WhatsApp al lado de «¿Dudas?» */
.fabs { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: .6rem; }
.fabs .chat-fab { position: relative; right: auto; bottom: auto; }
.wa-fab { display: flex; align-items: center; gap: .45rem; padding: .8rem 1.1rem; border-radius: 99px; background: #25d366; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.3); transition: transform .2s, background-color .2s; }
.wa-fab:hover, .wa-fab:focus-visible { background: #1eb457; color: #fff; transform: translateY(-2px); }
.wa-fab svg { width: 22px; height: 22px; }
.wa-fab { padding: 0; width: 46px; height: 46px; justify-content: center; } .wa-fab span { display: none; } .wa-fab svg { width: 24px; height: 24px; }