/* Web /info de Saneamientos Pereda. Estilo propio (08/10/2026): azules (marino, azul y celeste de la gota del logo),
   Plus Jakarta Sans, formas redondeadas, cabeceras con foto y degradado azul. Sin rojo. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url(../fonts/PlusJakartaSans.woff2) format('woff2'); }

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1565d8;
  --blue-dark: #0e4fae;
  --sky: #1fa2e0;
  --ice: #eef6fd;
  --ice-2: #dcecfa;
  --ink: #0f1f35;
  --muted: #55657a;
  --line: #dfe7f0;
  --bg: #ffffff;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1440px;
  --r: 16px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .08);
  --shadow-hover: 0 18px 40px rgba(11, 37, 69, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 1.2em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue);
  background: var(--ice); padding: .35em .9em; border-radius: 999px; margin: 0 0 1em; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 700 1rem/1 var(--font); text-decoration: none;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--ice); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6em 0 0; }

/* ── Cabecera ── */
.topbar { background: var(--navy); color: #cfe0f3; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 20px; align-items: center; min-height: 36px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar b { color: #9cc9ef; font-weight: 600; }
.topbar-shop { margin-left: auto; font-weight: 600; }
@media (max-width: 520px) { .topbar-shop { display: none; } .topbar .wrap { justify-content: space-between; } }
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo img { width: 128px; height: auto; }
.header nav { margin-left: auto; }
.header nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.header nav a { display: block; padding: 10px 14px; font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; border-radius: 999px; }
.header nav a:hover, .header nav a[aria-current] { color: var(--blue); background: var(--ice); }
.has-sub { position: relative; }
.has-sub > ul { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px; background: #fff; list-style: none; margin: 0; padding: 8px;
  box-shadow: var(--shadow-hover); border: 1px solid var(--line); border-radius: 14px; }
.has-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.has-sub:hover > ul, .has-sub:focus-within > ul { display: block; }
.has-sub > ul a { font-weight: 500; padding: 9px 14px; border-radius: 10px; }
.menu-btn { display: none; margin-left: auto; font: 700 .95rem var(--font); background: var(--ice); color: var(--navy); border: 0; border-radius: 999px; padding: 10px 18px; }
@media (max-width: 940px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - 110px); overflow: auto; box-shadow: var(--shadow); }
  .menu-open .header nav { display: block; }
  .header nav > ul { flex-direction: column; padding: 10px 16px 18px; }
  .has-sub > ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
  .has-sub::after { display: none; }
}

/* ── Cabecera de página: foto con degradado azul y texto en blanco ── */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-tall { min-height: 600px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(11,37,69,.94) 0%, rgba(11,37,69,.78) 38%, rgba(21,101,216,.25) 75%, rgba(21,101,216,.05) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-box { max-width: 640px; }
.hero .eyebrow { background: rgba(255,255,255,.14); color: #bfe3fb; }
.hero h1 { color: #fff; }
.hero .lead { color: #d6e6f6; font-size: 1.15rem; }
.hero .lead b { color: #fff; }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.lead { font-size: 1.12rem; color: var(--muted); margin: .4em 0 0; }
@media (max-width: 700px) {
  .hero { min-height: 420px; align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(11,37,69,.35) 0%, rgba(11,37,69,.88) 55%, rgba(11,37,69,.96) 100%); }
  .hero .wrap { padding-top: 140px; padding-bottom: 36px; }
}

/* ── Secciones ── */
.section { padding: 76px 0; }
.section-tint { background: linear-gradient(180deg, var(--ice) 0%, #f7fbff 100%); }
.section-title { max-width: 820px; }
.intro { max-width: 760px; color: var(--muted); font-size: 1.08rem; margin-bottom: 2em; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.8rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 1em 0 1.5em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.prose th { background: var(--ice); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-flip .split-photo { order: -1; } }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-hover); }

/* ── Tarjetas ── */
.cards { display: grid; gap: 22px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit;
  text-decoration: none; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--ice-2); }
.card-photo { overflow: hidden; }
.card-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
a.card:hover .card-photo img { transform: scale(1.04); }
.card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ice); color: var(--blue);
  font-weight: 800; font-size: .95rem; margin-bottom: 14px; }
.card-more { margin-top: auto; font-weight: 700; font-size: .95rem; color: var(--blue); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 22px; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.figures { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 8px; }
.figures div { background: #fff; border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--line); }
.figures b { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.figures span { color: var(--muted); font-size: .95rem; }

/* ── Carrusel de marcas (de lado a lado, en bucle) ── */
.brands-band { padding: 56px 0 64px; overflow: hidden; }
.brands-band .wrap { text-align: center; }
.marquee { position: relative; overflow: hidden; margin-top: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; padding: 10px 0; animation: marquee var(--marquee-time, 60s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { list-style: none; flex: none; display: grid; place-items: center; width: 150px; height: 92px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(11,37,69,.05); }
.marquee-track img { width: 112px; height: auto; max-height: 70px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden] { display: none; }
}

/* ── Franja de llamada a la acción ── */
.band { padding: 0 0 76px; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; color: #fff; border-radius: 24px; padding: 40px 44px;
  background: radial-gradient(circle at 85% 20%, rgba(31,162,224,.55), transparent 55%), linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); }
.band h2 { margin: 0 0 .25em; color: #fff; }
.band p { margin: 0; color: #d6e6f6; }
.band .ctas { margin: 0; }
@media (max-width: 700px) { .band-inner { padding: 30px 24px; border-radius: 18px; } }

/* ── Tiendas ── */
.stores { display: grid; gap: 22px; }
@media (min-width: 820px) { .stores { grid-template-columns: repeat(2, 1fr); } }
.store { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow); }
.store h3 a { color: var(--navy); text-decoration: none; }
.store h3 a:hover { color: var(--blue); }
.store-addr small { color: var(--muted); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 3px 18px; margin: 0 0 .6em; font-size: .95rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }
.store-detail { display: grid; gap: 30px; }
@media (min-width: 860px) { .store-detail { grid-template-columns: 1fr 1.2fr; } }
.map { min-height: 380px; background: var(--ice); border-radius: var(--r); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; }
.map iframe { width: 100%; height: 440px; border: 0; border-radius: var(--r); }

/* ── Formularios ── */
.form { max-width: 720px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .97rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; padding: 13px 16px; border: 1px solid #c8d4e3; border-radius: 12px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--ice-2); border-color: var(--blue); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 6px; }
.form-msg { padding: 14px 18px; border-radius: 12px; background: var(--ice); }
.form-msg.error { background: #fff4e5; color: #8a4b00; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 600 .95rem var(--font); padding: 11px 16px; border: 1px solid #c8d4e3; border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--blue); }
.chips button[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Pie ── */
.footer { background: var(--navy); color: #b8cbe0; padding: 60px 0 26px; font-size: .94rem; }
.footer a { color: #fff; }
.footer h3 { color: #fff; font-size: 1.1rem; }
.footer h3 a { text-decoration: none; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 14px; margin-bottom: 16px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--navy-2); margin-top: 40px; padding-top: 20px; }
.footer-legal span { margin-right: auto; }

/* ── Aviso de cookies ── */
.cookies { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 14px; }
.cookies-box { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(11,37,69,.28); padding: 24px 26px; border: 1px solid var(--line); }
.cookies h2 { font-size: 1.3rem; margin-bottom: .4em; }
.cookies p { font-size: .94rem; color: var(--muted); }
.cookies-prefs { display: grid; gap: 10px; margin: 0 0 16px; font-size: .93rem; }
.cookies-prefs label { display: flex; gap: 10px; align-items: flex-start; }
.cookies-prefs input { margin-top: 5px; }
.cookies-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookies-actions .btn { flex: 1 1 140px; justify-content: center; }
[hidden] { display: none !important; }

/* ── Cita previa ── */
.cita { max-width: 840px; }
.cita-form { max-width: none; gap: 22px; margin-top: 30px; }
.cita-step { border: 1px solid var(--line); border-radius: var(--r); margin: 0; padding: 22px 24px; display: grid; gap: 14px; background: #fff; box-shadow: var(--shadow); }
.cita-step[disabled] { opacity: .45; box-shadow: none; }
.cita-step legend { float: left; width: 100%; font-weight: 800; font-size: 1.2rem; padding: 0; margin-bottom: 12px; }
.cita-step legend span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #fff; font-size: .9rem; margin-right: 10px; vertical-align: 1px; }
.cita-days button { min-width: 96px; line-height: 1.25; border-radius: 14px; text-transform: capitalize; }
.cita-days small { opacity: .75; font-weight: 500; }
.cita-hint { color: var(--muted); margin: 0; font-size: .93rem; }
.cita-summary { font-weight: 700; color: var(--blue-dark); margin: 0; }
.cita-done { margin-top: 30px; padding: 28px; background: var(--ice); border-radius: var(--r); border: 1px solid var(--ice-2); }
.cita-phone { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.cita-phone h2 { font-size: 1.4rem; }
.cita-phone p { display: flex; flex-wrap: wrap; gap: 10px; }
.hp { position: absolute !important; left: -9999px !important; }

/* ── Presupuesto ── */
.btn-lg { font-size: 1.08rem; padding: 1.05em 1.8em; }
.quote { max-width: 900px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-hover); gap: 22px; }
.quote fieldset { border: 0; padding: 0; margin: 0; }
.quote legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.quote-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote textarea { resize: vertical; min-height: 160px; }
@media (max-width: 600px) { .quote { padding: 22px 18px; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: block !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 11px 18px; border: 1px solid #c8d4e3; border-radius: 999px; font-weight: 600; font-size: .95rem; background: #fff; transition: all .15s; }
.choice:hover span { border-color: var(--blue); }
.choice input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--ice-2); }
.quote-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: 24px;
  background: linear-gradient(135deg, var(--ice) 0%, #fff 70%); border: 1px solid var(--ice-2); box-shadow: var(--shadow); }
.quote-band > div { max-width: 640px; }
.quote-band p { color: var(--muted); margin: 0; }
.quote-band h2 { margin-bottom: .35em; }
@media (max-width: 700px) { .quote-band { padding: 28px 22px; } }
.header-cta { padding: .8em 1.3em; font-size: .95rem; }
@media (min-width: 941px) { .solo-movil { display: none; } }
/* Formulario de presupuesto centrado (con su titular). */
#formulario .wrap { text-align: center; }
#formulario .section-title, #formulario .intro { margin-left: auto; margin-right: auto; }
#formulario .quote { margin: 0 auto; text-align: left; }
.figures b { font-variant-numeric: tabular-nums; }
.map.map-on { padding: 0; background: none; display: block; }

/* ══ Tienda (src/shop.mjs) ══ */
.search { flex: 1; max-width: 420px; display: flex; align-items: center; background: var(--ice); border-radius: 999px; padding: 4px 4px 4px 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 .98rem var(--font); color: var(--ink); padding: 9px 0; outline: none; }
.search button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; cursor: pointer; }
.search:focus-within { box-shadow: 0 0 0 3px var(--ice-2); background: #fff; }
@media (max-width: 940px) { .header .wrap { flex-wrap: wrap; } .search { order: 3; max-width: none; flex-basis: 100%; margin-bottom: 12px; } }
.header nav { margin-left: 0; }
.shop { padding-top: 18px; padding-bottom: 64px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 8px; color: #9fb0c4; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.cat-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .3em; }
.cat-desc { color: var(--muted); max-width: 860px; }
.cat-desc-long { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 8px; padding: 0; }
.subcats a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; background: #fff; }
.subcats a:hover { border-color: var(--blue); color: var(--blue); }
.subcats span, .brandlist span, .cattree span { color: var(--muted); font-weight: 500; font-size: .85em; }
.gridtools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 22px 0 18px; padding: 12px 16px; background: var(--ice); border-radius: 14px; font-size: .93rem; }
.gridtools-count { margin-right: auto; color: var(--muted); }
.gridtools label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.gridtools select { font: 500 .93rem var(--font); padding: 8px 10px; border: 1px solid #c8d4e3; border-radius: 10px; background: #fff; color: var(--ink); max-width: 210px; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pgrid-row { margin-bottom: 18px; }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pcard[hidden] { display: none; }
.pcard-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.pcard-img { display: block; aspect-ratio: 1; background: #fff; padding: 10px; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 16px; flex: 1; }
.pcard-brand { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.pcard-name { font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { margin-top: auto; padding-top: 6px; font-size: 1.15rem; color: var(--navy); }
.pcard-price s, .buy-price s { color: var(--muted); font-size: .8em; font-weight: 500; }
.pcard-stock, .buy-stock { font-size: .82rem; font-weight: 600; }
.in { color: #12805c; }
.later { color: #a15c00; }
.badge { position: absolute; top: 10px; left: 10px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.badge-sale { background: var(--blue); color: #fff; }
.product { display: grid; gap: 32px; margin-bottom: 48px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 76px; height: 76px; padding: 4px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.gallery-thumbs button[aria-current] { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .2em 0 .3em; }
.buy-brand { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.buy-ref { color: var(--muted); font-size: .9rem; }
.buy-price { font-size: 2rem; color: var(--navy); margin: .4em 0 .2em; }
.buy-price span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.buy-stock { font-size: .95rem; }
.buy-short { margin: 18px 0; color: var(--muted); font-size: .98rem; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn-lg { padding: 1.1em 2.2em; font-size: 1.08rem; }
.buy-perks { list-style: none; margin: 0; padding: 18px 20px; background: var(--ice); border-radius: 14px; font-size: .93rem; display: grid; gap: 8px; }
.buy-perks li::before { content: '✓'; color: var(--blue); font-weight: 800; margin-right: 10px; }
.pdetail { display: grid; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); margin-bottom: 56px; }
@media (min-width: 900px) { .pdetail { grid-template-columns: 1.5fr 1fr; } }
.pdetail h2, .related h2 { font-size: 1.5rem; }
.pfeat table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pfeat th, .pfeat td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pfeat th { color: var(--muted); font-weight: 600; width: 42%; }
.pdesc h2 ~ h2, .pdesc h3 { font-size: 1.15rem; margin-top: 1.4em; }
.shop-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 120%); color: #fff; padding: 72px 0 80px; }
.shop-hero h1 { color: #fff; max-width: 760px; }
.shop-hero .lead { color: #d6e6f6; max-width: 640px; font-size: 1.15rem; }
.shop-hero .eyebrow { background: rgba(255,255,255,.14); color: #bfe3fb; }
.catcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .catcards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .catcards { grid-template-columns: repeat(6, 1fr); } }
.catcards a { display: flex; flex-direction: column; height: 100%; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.catcards a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.catcards img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 10px; }
.catcards span { font-weight: 700; line-height: 1.25; }
.catcards small { color: var(--muted); margin-top: 4px; }
.brandlist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.brandlist a { display: inline-flex; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.brandlist a:hover { border-color: var(--blue); color: var(--blue); }
.cattree > ul { columns: 3 260px; column-gap: 40px; list-style: none; padding: 0; }
.cattree > ul > li { break-inside: avoid; margin-bottom: 22px; }
.cattree > ul > li > a { font-weight: 800; font-size: 1.05rem; }
.cattree ul ul { list-style: none; padding: 6px 0 0 0; margin: 0; }
.cattree ul ul a { color: var(--ink); text-decoration: none; line-height: 1.9; }
.cattree a:hover { color: var(--blue); }
.check { cursor: pointer; }

/* ══ Blog (src/blog.mjs) ══ */
.bgrid { display: grid; gap: 20px; margin-top: 18px; }
@media (min-width: 640px) { .bgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bgrid { grid-template-columns: repeat(3, 1fr); } }
.bcard a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.bcard a:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.bcard img, .bcard-noimg { width: 100%; aspect-ratio: 40 / 26; object-fit: cover; background: var(--ice); display: block; }
.bcard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.bcard-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.bcard-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.bcard-text { color: var(--muted); font-size: .93rem; }
.bcard-date { margin-top: auto; color: var(--muted); font-size: .82rem; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; font-weight: 600; }
.pager a { text-decoration: none; }
.subcats a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.subcats a[aria-current] span { color: #d6e6f6; }
.post { max-width: 820px; margin: 0 auto 48px; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.post-head .eyebrow { text-decoration: none; }
.post-date { color: var(--muted); }
.post-img { width: 100%; border-radius: var(--r); margin: 18px 0 28px; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-body img { border-radius: 12px; margin: 18px auto; }
.post-body h2 { font-size: 1.6rem; margin-top: 1.6em; }
.post-body h3 { margin-top: 1.4em; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.related { margin-top: 40px; }

/* ══ Cabecera en dos filas (14/10): buscador arriba, categorías debajo ══ */
.btn { white-space: nowrap; }
.header .header-top { min-height: 70px; gap: 16px; }
.header .search { flex: 1; max-width: none; }
.header-cta { padding: .7em 1.2em; font-size: .93rem; }
.catbar { border-top: 1px solid var(--line); }
.header .catbar .wrap { min-height: 46px; display: block; }
.catbar > .wrap > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.header .catbar a { padding: 8px 12px; font-size: .92rem; }
.catbar li:not(.derecha) + li.derecha { margin-left: auto; }
.catbar li.derecha > ul { left: auto; right: 0; }
.has-sub.mega > ul { columns: 2; column-gap: 8px; min-width: 520px; }
.has-sub.mega > ul li { break-inside: avoid; }
.has-sub > a::after { content: '▾'; margin-left: 5px; font-size: .75em; opacity: .6; }
@media (max-width: 940px) {
  .header .header-top { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .header .search { order: 3; flex-basis: 100%; margin: 0; }
  .menu-btn { margin-left: auto; }
  .catbar { border-top: 0; }
  .catbar > .wrap > ul { flex-direction: column; align-items: stretch; padding: 10px 0 18px; }
  .catbar li:not(.derecha) + li.derecha { margin-left: 0; }
  .has-sub.mega > ul { columns: 1; min-width: 0; }
  .has-sub > a::after { content: ''; }
}

/* ══ Portada (src/home.mjs) ══ */
.home-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(31,162,224,.35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%); color: #fff; padding: 44px 0 36px; }
.home-kicker { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #9cc9ef; margin: 0 0 10px; }
.home-typing { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 22px; min-height: 1.1em; }
.typed { color: #7cd0ff; }
.caret { display: inline-block; width: 3px; height: .9em; margin-left: 3px; background: #7cd0ff; vertical-align: -.08em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { display: none; } }
.home-search { display: flex; gap: 8px; max-width: 760px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.home-search input { flex: 1; min-width: 0; border: 0; outline: none; font: 500 1.05rem var(--font); padding: 0 18px; color: var(--ink); border-radius: 999px; }
.home-search .btn { padding: .85em 1.6em; }
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.home-chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; }
.home-chips a:hover { background: rgba(255,255,255,.2); }
@media (max-width: 600px) { .home-hero { padding: 28px 0 26px; } .home-search input { font-size: .95rem; padding: 0 12px; } .home-search .btn { padding: .8em 1.1em; } }
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; list-style: none; margin: 0; padding: 16px 0; }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); line-height: 1.3; }
.trust svg { flex: none; color: var(--blue); }
.trust b { display: block; color: var(--ink); font-size: .95rem; }
.home-cats { padding: 32px 0 8px; }
.hrow-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.hrow-head h2 { font-size: 1.45rem; margin: 0; }
.hrow-head .link { font-size: .93rem; }
.hrow-nav { margin-left: auto; display: flex; gap: 6px; }
.hrow-nav button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--navy); }
.hrow-nav button:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 700px) { .hrow-nav { display: none; } }
.minicats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.minicats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; line-height: 1.25; height: 100%; transition: border-color .15s, box-shadow .15s; }
.minicats a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.minicats img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.hrow { padding: 26px 0 6px; }
.prow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 4px 2px 14px; }
.prow > .pcard { scroll-snap-align: start; }
.prow .pcard-name { font-size: .9rem; }
.promo { padding: 30px 0 10px; }
.promo-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .promo-grid { grid-template-columns: 1fr 1fr; } }
.promo-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; min-height: 190px; }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.promo-card:hover img { transform: scale(1.04); }
.promo-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,37,69,.88), rgba(11,37,69,.25)); }
.promo-card span { position: relative; z-index: 2; display: block; padding: 28px; max-width: 360px; font-size: .97rem; color: #d6e6f6; }
.promo-card b { display: block; font-size: 1.35rem; color: #fff; margin-bottom: 6px; }
.home-blog { padding: 20px 0 56px; }
.home-blog .bgrid { margin-top: 0; }

/* Familias de la portada: 12 tarjetas (11 familias + «Más categorías») → filas completas a 4, 3 y 2 columnas */
.search-gap { flex: 1; }
.families { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .families { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .families { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.fam { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s; }
.fam:hover { box-shadow: var(--shadow-hover); }
.fam-img { display: block; height: 130px; background: #fff; overflow: hidden; }
.fam-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fam:hover .fam-photo { transform: scale(1.04); }
.fam-product { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.fam-body { padding: 14px 16px 16px; }
.fam h3 { font-size: 1.05rem; margin: 0 0 8px; }
.fam h3 a { color: var(--ink); text-decoration: none; }
.fam h3 a:hover { color: var(--blue); }
.fam h3 span { color: var(--muted); font-weight: 500; font-size: .8em; }
.fam p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: .86rem; line-height: 1.5; }
.fam p a { color: var(--muted); text-decoration: none; }
.fam p a:hover { color: var(--blue); text-decoration: underline; }
.fam-more { background: var(--ice); border-color: var(--ice-2); }
.fam-more p a { color: var(--navy); font-weight: 600; }
@media (max-width: 560px) { .fam-img { height: 96px; } .fam p { display: none; } .fam-more p { display: flex; } }

/* ══ Cabecera de una fila con «Categorías» (14/10, 2.ª versión) ══ */
.topbar { position: relative; z-index: 30; }
.toplinks { margin-left: auto; }
.toplinks > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.toplinks > ul > li > a { display: block; padding: 8px 10px; font-weight: 600; }
.toplinks > ul > li > a:hover { color: #9cc9ef; }
.toplinks .has-sub > ul { left: auto; right: 0; top: 100%; }
.toplinks .has-sub > ul a { color: var(--ink); display: block; }
.toplinks .has-sub > ul a:hover { background: var(--ice); color: var(--blue); }
@media (max-width: 940px) { .toplinks { display: none; } }
.mega-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 700 .98rem var(--font); color: #fff; background: var(--navy); border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; white-space: nowrap; }
.mega-btn:hover, .mega.open .mega-btn { background: var(--navy-2); }
.mega-btn::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 26px; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.mega-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 50px rgba(11,37,69,.18); max-height: calc(100vh - 140px); overflow: auto; }
.mega:hover .mega-panel, .mega.open .mega-panel { display: block; }
.mega-cols { max-width: var(--wrap); margin: 0 auto; padding: 26px 28px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 28px; }
.mega-fam { display: block; font-weight: 800; color: var(--navy); text-decoration: none; margin-bottom: 6px; }
.mega-fam span { color: var(--muted); font-weight: 500; font-size: .8em; }
.mega-fam:hover { color: var(--blue); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; font-size: .92rem; }
.mega-col li a:hover { color: var(--blue); }
.mega-all { max-width: var(--wrap); margin: 0 auto; padding: 4px 28px 22px; font-weight: 700; }
.mnav { display: none; }
@media (max-width: 940px) {
  .mega { display: none; }
  .mnav { padding: 6px 16px 20px; }
  .mnav-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 4px; }
  .mnav ul { list-style: none; margin: 0; padding: 0; }
  .mnav summary { padding: 10px 14px; font-weight: 600; cursor: pointer; }
  .mnav details ul { padding: 0 0 8px 16px; }
}
@media (min-width: 1300px) { .pgrid { grid-template-columns: repeat(5, 1fr); } }
.home-search { max-width: 980px; }

/* ══ Propuesta B (14/10): cabecera blanca en una fila, pie claro, portada «Buscador primero» ══ */
.header { background: #fff; backdrop-filter: none; border-bottom: 1px solid #e6edf5; }
.header .header-top { min-height: 74px; gap: 22px; }
.mega-btn { background: #fff; color: var(--navy); border: 1.5px solid #c8d4e3; padding: 10px 18px; gap: 8px; }
.mega-btn:hover, .mega.open .mega-btn { background: var(--ice); border-color: var(--blue); }
.header .search { flex: 1 1 260px; max-width: 460px; }
.toplinks { margin-left: auto; }
.toplinks > ul > li > a { color: var(--ink); font-size: .96rem; padding: 10px 10px; border-radius: 999px; }
.toplinks > ul > li > a:hover, .toplinks > ul > li > a[aria-current] { color: var(--blue); background: var(--ice); }
.header-ctas { display: flex; gap: 10px; }
.header-cta { padding: .75em 1.25em; }
@media (max-width: 1240px) { .toplinks { display: none; } .header-ctas { margin-left: auto; } }
@media (max-width: 940px) { .header-ctas { display: none; } }
.footer { background: #f4f7fb; color: var(--muted); border-top: 1px solid #e6edf5; }
.footer a { color: var(--navy); }
.footer h3, .footer h3 a { color: var(--ink); }
.footer-logo { background: none; padding: 0; }
.footer-legal { border-top-color: #e1e8f0; }
.pcard { border: 0; border-radius: 18px; background: transparent; }
.pcard:hover { box-shadow: none; transform: none; }
.pcard-img { background: #f4f7fb; border-radius: 18px; padding: 18px; transition: background .2s; }
.pcard:hover .pcard-img { background: var(--ice-2); }
.pcard-body { padding: 12px 4px 4px; }
.pcard:hover .pcard-name { color: var(--blue); }
.hb-hero { background: linear-gradient(180deg, var(--ice) 0%, #fff 100%); text-align: center; }
.hb-hero .wrap { max-width: 1100px; padding-top: 68px; padding-bottom: 52px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hb-kicker { margin: 0; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.hb-typing { margin: 0; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: var(--navy); min-height: 1.05em; }
.hb-typing .typed { color: var(--blue); }
.hb-typing .caret { background: var(--blue); width: 4px; }
.hb-search { width: 100%; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px; box-shadow: 0 20px 50px rgba(11,37,69,.14); }
.hb-search svg { flex: none; margin-left: 14px; color: var(--muted); }
.hb-search input { flex: 1; min-width: 0; border: 0; outline: none; font: 500 1.12rem var(--font); padding: 12px 6px; color: var(--ink); background: transparent; }
.hb-search .btn { padding: .95em 2em; }
.hb-popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; font-size: .9rem; }
.hb-popular span { color: var(--muted); font-weight: 600; padding: 8px 0; }
.hb-popular a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; text-decoration: none; }
.hb-popular a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 600px) { .hb-hero .wrap { padding-top: 36px; padding-bottom: 32px; } .hb-search input { font-size: 1rem; } .hb-search .btn { padding: .85em 1.2em; } .hb-search svg { display: none; } }
.hb-section { padding: 28px 0 28px; }
.hb-section:last-child { padding-bottom: 72px; }
.hb-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.hb-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.hb-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .hb-tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.hb-tiles a { position: relative; display: block; height: 240px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; }
@media (max-width: 600px) { .hb-tiles a { height: 170px; border-radius: 16px; } }
.hb-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.hb-tiles a:hover img { transform: scale(1.05); }
.hb-tiles a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,37,69,0) 40%, rgba(11,37,69,.88) 100%); }
.hb-tiles span { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: #d6e6f6; }
.hb-tiles b { font-size: 1.3rem; color: #fff; }
@media (min-width: 1300px) { .hb-products { grid-template-columns: repeat(5, 1fr); } }
.hb-visit { display: grid; gap: 22px; }
@media (min-width: 900px) { .hb-visit { grid-template-columns: 1fr 1fr; } }
.hb-visit-main { background: var(--navy); color: #fff; border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 12px; }
.hb-visit-main h2 { color: #fff; margin: 0; }
.hb-visit-main p { color: #b9cde3; margin: 0; font-size: 1.05rem; }
.hb-visit-main .ctas { margin-top: 10px; }
.hb-stores { display: grid; gap: 16px; }
.hb-stores a { display: flex; flex-direction: column; gap: 4px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--muted); transition: border-color .2s; }
.hb-stores a:hover { border-color: var(--blue); }
.hb-stores b { font-size: 1.25rem; color: var(--ink); }

/* ══ Menú «Categorías» en dos paneles (14/10, 3.ª versión) ══ */
.mega-panel { max-height: none; overflow: visible; border-top: 1px solid #e6edf5; }
.mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 300px 1fr; height: min(560px, calc(100vh - 110px)); }
.mega-fams { list-style: none; margin: 0; padding: 14px 10px 14px 0; border-right: 1px solid #e6edf5; overflow-y: auto; }
.mega-fams a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.25; }
.mega-fams a > span { flex: 1; }
.mega-fams img, .mega-noimg { width: 32px; height: 32px; object-fit: contain; flex: none; background: #f4f7fb; border-radius: 8px; }
.mega-fams svg { color: #9fb0c4; flex: none; }
.mega-fams a[aria-current] { background: var(--ice); color: var(--blue); }
.mega-fams a[aria-current] svg { color: var(--blue); }
.mega-fams .mega-all a { color: var(--blue); font-weight: 700; padding: 12px 10px; }
.mega-details { overflow-y: auto; padding: 22px 0 22px 30px; }
.mega-detail-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 16px; }
.mega-detail-head a:first-child { font-size: 1.4rem; font-weight: 800; color: var(--navy); text-decoration: none; }
.mega-subs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mega-subs a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e6edf5; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.3; transition: border-color .15s, background .15s; }
.mega-subs a:hover { border-color: var(--blue); background: #fafcff; }
.mega-subs img { width: 56px; height: 56px; object-fit: contain; flex: none; background: #f4f7fb; border-radius: 10px; padding: 4px; }
.mega-subs small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; margin-top: 2px; }
.mega-prods span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }

/* ══ Cabecera justificada y «Categorías» igual que el resto del menú (14/10) ══ */
.header .header-top { justify-content: flex-start; }
.header .toplinks { margin-left: auto; }
.header .search + .toplinks { margin-left: 18px; }
.header .search { flex: 1 1 280px; max-width: 520px; margin-left: 6px; }
.mega-btn, .toplinks > ul > li > a { font: 600 .98rem var(--font); color: var(--ink); background: none; border: 0; border-radius: 999px; padding: 10px 14px; }
.mega-btn:hover, .mega.open .mega-btn, .toplinks > ul > li > a:hover, .toplinks > ul > li > a[aria-current] { color: var(--blue); background: var(--ice); border: 0; }
.mega-btn::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; }
.mega-btn { gap: 0; }
.mega-btn::after { content: '▾'; position: static; height: auto; margin-left: 5px; font-size: .75em; opacity: .6; }
.mega { position: static; }
.header-ctas { margin-left: 8px; }
@media (max-width: 1240px) { .header-ctas { margin-left: auto; } }

/* ══ Lupa de la cabecera: se despliega a todo el ancho (14/10) ══ */
.header .header-top { position: relative; }
.search-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--ice); color: var(--navy); cursor: pointer; flex: none; }
.search-btn:hover { background: var(--ice-2); color: var(--blue); }
.hsearch { position: absolute; inset: 0 16px; z-index: 5; display: flex; align-items: center; gap: 10px; background: #fff; transform-origin: right center; animation: hsearch-in .22s ease-out; }
@media (min-width: 700px) { .hsearch { inset: 0 28px; } }
.hsearch[hidden] { display: none; }
@keyframes hsearch-in { from { transform: scaleX(.15); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hsearch { animation: none; } }
.hsearch > svg { flex: none; color: var(--muted); margin-left: 6px; }
.hsearch input { flex: 1; min-width: 0; height: 52px; border: 0; border-radius: 999px; background: var(--ice); padding: 0 22px; font: 500 1.08rem var(--font); color: var(--ink); outline: none; }
.hsearch input:focus { box-shadow: 0 0 0 3px var(--ice-2); background: #fff; }
.hsearch-close { width: 44px; height: 44px; border-radius: 999px; border: 0; background: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; flex: none; }
.hsearch-close:hover { background: var(--ice); color: var(--ink); }
.hsearch-hits { position: absolute; top: 100%; left: 0; right: 0; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid #e6edf5; border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 30px 50px rgba(11,37,69,.16); }
.hsearch-hits a { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.hsearch-hits a:hover { background: var(--ice); }
.hsearch-hits img { width: 48px; height: 48px; object-fit: contain; background: #f4f7fb; border-radius: 10px; flex: none; }
.hsearch-hits span { flex: 1; min-width: 0; }
.hsearch-hits small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.hsearch-hits b { color: var(--navy); white-space: nowrap; }
.hsearch-all a { color: var(--blue); justify-content: center; }
.hsearch-none { padding: 12px; color: var(--muted); }
@media (max-width: 600px) { .hsearch .btn { display: none; } }
@media (max-width: 1240px) { .search-btn { margin-left: auto; } .header-ctas { margin-left: 8px; } }
@media (max-width: 940px) { .header .menu-btn { margin-left: 8px; } }

/* ══ Página de categoría (diseño aprobado 14/10) ══ */
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.cat-hero { display: grid; border-radius: 26px; overflow: hidden; background: var(--ice); margin-bottom: 28px; }
@media (min-width: 900px) { .cat-hero { grid-template-columns: 1fr 1fr; } }
.cat-hero-text { padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
@media (max-width: 600px) { .cat-hero-text { padding: 26px 22px; } }
.cat-hero-badge { align-self: flex-start; margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: #fff; padding: 6px 12px; border-radius: 999px; }
.cat-hero h1 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.3rem); letter-spacing: -.03em; color: var(--navy); }
.cat-hero-lead { margin: 0; font-size: 1.05rem; line-height: 1.6; color: #3d4d63; max-width: 620px; }
.cat-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 6px 0 0; font-weight: 700; }
.cat-hero-photo { width: 100%; height: 100%; min-height: 300px; max-height: 380px; object-fit: cover; }
.cat-hero-product { background: #fff; display: grid; place-items: center; padding: 24px; min-height: 300px; }
.cat-hero-product img { max-height: 320px; width: auto; object-fit: contain; }
@media (max-width: 899px) { .cat-hero-photo, .cat-hero-product { display: none; } }
.subtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; list-style: none; margin: 0 0 30px; padding: 0; }
.subtiles a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.subtiles img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f4f7fb; border-radius: 20px; padding: 14px; transition: background .2s; }
.subtiles a:hover img { background: var(--ice-2); }
.subtiles a:hover span { color: var(--blue); }
.subtiles small { color: var(--muted); font-weight: 500; }
.listing { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .listing { grid-template-columns: 260px 1fr; gap: 40px; } .filters-btn { display: none; } }
.filters { display: flex; flex-direction: column; gap: 26px; }
@media (max-width: 899px) { .filters { display: none; } .listing.filters-open .filters { display: flex; } .filters-btn { justify-self: start; } }
.fgroup h3 { font-size: .95rem; margin: 0 0 10px; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .95rem; cursor: pointer; }
.fcheck input, .fswatch input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.fcheck small { margin-left: auto; color: var(--muted); }
.fgroup-long .fvalues { max-height: 260px; overflow-y: auto; padding-right: 6px; overscroll-behavior: contain; }
.fprice { display: flex; gap: 8px; }
.fprice label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); }
.fprice input { width: 100%; border: 1px solid #c8d4e3; border-radius: 10px; padding: 9px 10px; font: 500 .9rem var(--font); }
.fswatches { display: flex; flex-wrap: wrap; gap: 8px; }
.fswatch { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dfe7f0; border-radius: 999px; padding: 5px 12px 5px 5px; font-size: .88rem; cursor: pointer; }
.fswatch input { position: absolute; opacity: 0; }
.fswatch span { width: 20px; height: 20px; border-radius: 999px; background: var(--c); border: 1px solid #c8d4e3; }
.fswatch:has(input:checked) { border-color: var(--blue); background: var(--ice); color: var(--blue); font-weight: 600; }
.fswatch:has(input:focus-visible) { outline: 2px solid var(--blue); }
.fhelp { background: var(--navy); color: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.fhelp span { color: #b9cde3; }
.fhelp a { color: #7cd0ff; font-weight: 700; font-size: 1.05rem; }
.results { min-width: 0; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.chips-on { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-on button { border: 0; background: var(--ice); color: var(--navy); padding: 6px 12px; border-radius: 999px; font: 600 .82rem var(--font); cursor: pointer; }
.chips-on button:hover { background: var(--ice-2); }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.sort select { font: 500 .9rem var(--font); padding: 9px 12px; border: 1px solid #c8d4e3; border-radius: 10px; background: #fff; }
@media (min-width: 1300px) { .results .pgrid { grid-template-columns: repeat(4, 1fr); } }
.results-more { text-align: center; margin-top: 28px; }
.results-empty { padding: 30px 0; color: var(--muted); }
.cat-more { background: #f4f7fb; margin-top: 30px; }
.cat-more-grid { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 900px) { .cat-more-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.cat-more .prose { color: #3d4d63; }
.cat-posts h2, .cat-more .prose h2 { font-size: 1.5rem; }
.cat-posts { display: flex; flex-direction: column; gap: 10px; }
.cat-posts a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 14px; color: var(--ink); font-weight: 600; text-decoration: none; }
.cat-posts a:hover { color: var(--blue); }
.cat-posts a span { color: var(--blue); }

/* ══ Todas las categorías (14/10) ══ */
.cat-hero-solo { grid-template-columns: 1fr; }
.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cat-jump a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .88rem; text-decoration: none; }
.cat-jump a:hover { border-color: var(--blue); color: var(--blue); }
.famsec { padding: 30px 0 6px; border-top: 1px solid #edf2f7; scroll-margin-top: 100px; }
.cat-hero + .famsec { border-top: 0; }
.famsec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.famsec-head h2 { margin: 0; font-size: 1.55rem; }
.famsec-head h2 a { color: var(--ink); text-decoration: none; }
.famsec-head h2 a:hover { color: var(--blue); }
.famsec-head span { color: var(--muted); }
.famsec-head .link { margin-left: auto; }
.famsec-help { margin: 40px 0 20px; }

/* ══ Ficha de producto (aprobada 14/10) ══ */
.pp { display: grid; gap: 32px; margin-bottom: 44px; }
@media (min-width: 960px) { .pp { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.pp-gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
.pp-gallery-one { grid-template-columns: 1fr; }
.pp-thumbs { display: flex; flex-direction: column; gap: 10px; }
.pp-thumbs button { width: 84px; height: 84px; padding: 6px; background: #f4f7fb; border-radius: 14px; border: 2px solid transparent; cursor: pointer; }
.pp-thumbs button[aria-current] { border-color: var(--blue); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pp-main { background: #f4f7fb; border: 0; border-radius: 24px; padding: 28px; }
@media (max-width: 600px) { .pp-gallery { grid-template-columns: 1fr; } .pp-thumbs { flex-direction: row; order: 2; overflow-x: auto; } .pp-thumbs button { width: 64px; height: 64px; flex: none; } }
.pp-buy { display: flex; flex-direction: column; gap: 18px; }
.pp-id { display: flex; flex-direction: column; gap: 6px; }
.pp-id h1 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.15; color: var(--navy); }
.pp-id .buy-ref { margin: 0; font-size: .88rem; }
.pp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.pp-price .buy-price { margin: 0; font-size: 2.3rem; letter-spacing: -.02em; }
.pp-avail { margin-left: auto; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.pp-avail.in { background: #e6f6ef; color: #0b6b4c; }
.pp-avail.later { background: #fff4e5; color: #8a4b00; }
.pp-keys { list-style: none; margin: 0; padding: 18px 20px; background: #f4f7fb; border-radius: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.pp-keys li { display: flex; flex-direction: column; gap: 1px; font-size: .95rem; }
.pp-keys span { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pp-keys b { font-weight: 600; }
.pp-actions .btn { width: 100%; justify-content: center; }
.pp-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: .83rem; color: #3d4d63; }
@media (max-width: 600px) { .pp-perks { grid-template-columns: 1fr; } }
.pp-perks li { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid #e6edf5; border-radius: 14px; line-height: 1.3; }
.pp-perks svg { flex: none; color: var(--blue); }
.pp-help { margin: 0; font-size: .9rem; color: var(--muted); }
.pp-help a { font-weight: 700; }
.ptabs { border: 1px solid #e6edf5; border-radius: 24px; overflow: hidden; margin-bottom: 44px; }
.ptabs-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #f4f7fb; border-bottom: 1px solid #e6edf5; }
.ptabs-list button { border: 0; border-radius: 999px; padding: 11px 20px; font: 700 .95rem var(--font); background: transparent; color: #3d4d63; cursor: pointer; }
.ptabs-list button[aria-selected=true] { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(11,37,69,.06); }
.ptabs-panel { padding: 30px 34px; max-width: 1000px; }
@media (max-width: 600px) { .ptabs-panel { padding: 22px 18px; } }
.pdesc.clamped { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.readmore { margin-top: 8px; border: 0; background: none; color: var(--blue); font: 700 .95rem var(--font); cursor: pointer; padding: 0; }
.pspecs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pspecs th, .pspecs td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
.pspecs th { color: var(--muted); font-weight: 600; width: 40%; }
.pfaq { display: flex; flex-direction: column; gap: 10px; }
.pfaq details { border: 1px solid #e6edf5; border-radius: 14px; padding: 14px 18px; }
.pfaq summary { font-weight: 700; cursor: pointer; }
.pfaq p { margin: 10px 0 0; color: #3d4d63; }
.pp-related { padding-top: 0; }

/* ══ Fotos de producto (14/10): miniaturas a la altura de la foto grande; el blanco de la foto se funde con el fondo gris ══ */
.pp-gallery { align-items: stretch; }
.pp-main { aspect-ratio: 1; display: grid; place-items: center; }
.pp-main img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 601px) {
  .pp-thumbs { height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
}
.pp-thumbs button { flex: none; }
.pp-thumbs img, .pp-main img, .pcard-img img, .subtiles img, .mega-subs img, .mega-fams img, .hsearch-hits img, .cat-hero-product img, .pp-keys img {
  mix-blend-mode: multiply;
}
.pp-thumbs button, .pp-main, .pcard-img, .subtiles img, .mega-subs img, .mega-fams img, .hsearch-hits img { background-color: #f3f5f8; }
.cat-hero-product { background: #f3f5f8; }
.subtiles img, .mega-subs img, .mega-fams img, .hsearch-hits img { mix-blend-mode: normal; background-color: #fff; border: 1px solid #e6edf5; }
.subtiles a:hover img { background-color: #fff; border-color: var(--blue); }

/* Miniaturas sin barras de desplazamiento; flechas ▲ ▼ (14/10) */
.pp-thumbs-wrap { position: relative; min-height: 0; }
.pp-thumbs { overflow-x: hidden; scrollbar-width: none; padding-right: 0; }
.pp-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 601px) { .pp-thumbs-wrap { height: 0; min-height: 100%; } .pp-thumbs { height: 100%; min-height: 0; } }
.thumbs-nav { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 999px; border: 1px solid #dfe7f0; background: #fff; color: var(--navy); font-size: .7rem; cursor: pointer; box-shadow: 0 4px 12px rgba(11,37,69,.12); }
.thumbs-nav:hover { color: var(--blue); border-color: var(--blue); }
.thumbs-up { top: -6px; } .thumbs-down { bottom: -6px; }
@media (max-width: 600px) {
  .pp-thumbs-wrap { order: 2; }
  .thumbs-nav { top: 50%; left: auto; transform: translateY(-50%); }
  .thumbs-up { left: -6px; } .thumbs-down { right: -6px; bottom: auto; }
  .thumbs-up::before, .thumbs-down::before { content: none; }
}
@media (max-width: 600px) { .thumbs-nav { transform: translateY(-50%) rotate(-90deg); } }
.pship h3 { font-size: 1.1rem; margin: 1.4em 0 .5em; }
.pship h3:first-of-type { margin-top: .6em; }
.pship-this { background: var(--ice); border-radius: 12px; padding: 12px 16px; display: inline-block; margin: 0; }

/* ══ Pestaña «Envío y devoluciones» (14/10) ══ */
.ptabs-panel:has(.sh) { max-width: none; }
.sh { display: flex; flex-direction: column; gap: 22px; }
.sh-facts { display: grid; gap: 12px; }
@media (min-width: 760px) { .sh-facts { grid-template-columns: repeat(3, 1fr); } }
.sh-fact { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 16px; background: var(--ice); }
.sh-fact span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sh-fact b { font-size: 1.12rem; color: var(--navy); }
.sh-fact-this.in { background: #e6f6ef; } .sh-fact-this.in b { color: #0b6b4c; }
.sh-fact-this.later { background: #fff4e5; } .sh-fact-this.later b { color: #8a4b00; }
.sh-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .sh-grid { grid-template-columns: repeat(2, 1fr); } }
.sh-card { border: 1px solid #e6edf5; border-radius: 20px; padding: 22px 24px; }
.sh-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ice); color: var(--blue); margin-bottom: 10px; }
.sh-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.sh-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: #3d4d63; font-size: .95rem; line-height: 1.55; }
.sh-card li { position: relative; padding-left: 20px; }
.sh-card li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 999px; background: var(--blue); }
.sh-card b, .sh-card strong { color: var(--ink); }
.sh-noreturn { border-radius: 20px; padding: 20px 24px; background: #f4f7fb; }
.sh-noreturn h3 { font-size: 1.02rem; margin: 0 0 12px; }
.sh-noreturn h3 span { color: var(--muted); font-weight: 500; }
.sh-noreturn ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sh-noreturn li { background: #fff; border: 1px solid #e1e8f0; border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.sh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; background: var(--navy); color: #fff; border-radius: 20px; padding: 22px 26px; }
.sh-cta > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.sh-cta b { font-size: 1.1rem; }
.sh-cta span { color: #b9cde3; }
.sh-cta .ctas { margin: 0; }
.sh-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sh-head .sh-icon { margin-bottom: 0; flex: none; }
.sh-head h3 { margin: 0; }

/* ══ Compra: carrito en la cabecera, «Añadir al carrito», carrito, caja y resultado (15/10) ══ */
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--ice); color: var(--navy); flex: none; text-decoration: none; }
.cart-btn:hover { background: var(--ice-2); color: var(--blue); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.cart-count[hidden] { display: none; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #c8d4e3; border-radius: 999px; background: #fff; flex: none; }
.qty button { width: 42px; height: 48px; border: 0; background: none; font-size: 1.3rem; color: var(--navy); cursor: pointer; }
.qty input { width: 46px; border: 0; text-align: center; font: 700 1.05rem var(--font); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-actions { display: flex; gap: 12px; align-items: stretch; }
.pp-actions .btn { flex: 1; width: auto; }
.cart-toast { position: fixed; right: 20px; top: 92px; z-index: 60; width: min(360px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(11,37,69,.22); padding: 18px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.cart-toast.on { opacity: 1; transform: none; pointer-events: auto; }
.cart-toast p { margin: 0 0 8px; }
.cart-toast-title { font-weight: 800; color: #0b6b4c; }
.cart-toast-name { color: var(--muted); font-size: .93rem; }
.cart-toast-actions { display: flex; gap: 8px; margin: 12px 0 0 !important; }
.cart-toast-actions .btn { padding: .7em 1.1em; font-size: .9rem; }
.ck h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 6px 0 20px; }
.ck-steps { display: flex; gap: 8px; list-style: none; margin: 4px 0 18px; padding: 0; flex-wrap: wrap; font-size: .88rem; color: var(--muted); font-weight: 600; }
.ck-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #f4f7fb; }
.ck-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .78rem; }
.ck-steps [aria-current] { background: var(--ice); color: var(--blue); }
.ck-steps [aria-current] span { background: var(--blue); border-color: var(--blue); color: #fff; }
.ck-steps .done span { background: #e6f6ef; border-color: #b9e4d1; color: #0b6b4c; }
.ck-grid { display: grid; gap: 28px; align-items: start; margin-bottom: 60px; }
@media (min-width: 960px) { .ck-grid { grid-template-columns: 1fr 380px; gap: 40px; } .ck-side { position: sticky; top: 100px; } }
.ck-side { border: 1px solid #e6edf5; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.ck-side h2 { font-size: 1.2rem; margin: 0; }
.ck-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ck-line { display: grid; grid-template-columns: 96px 1fr auto auto 32px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #edf2f7; }
@media (max-width: 700px) { .ck-line { grid-template-columns: 72px 1fr 32px; } .ck-line .qty, .ck-line-total { grid-column: 2; } }
.ck-line-off { opacity: .55; }
.ck-line-img img { width: 96px; height: 96px; object-fit: contain; background: #f3f5f8; border-radius: 14px; padding: 6px; mix-blend-mode: multiply; }
@media (max-width: 700px) { .ck-line-img img { width: 72px; height: 72px; } }
.ck-line-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ck-line-name { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; }
.ck-line-name:hover { color: var(--blue); }
.ck-line-unit { color: var(--muted); font-size: .88rem; }
.ck-line-avail { font-size: .82rem; font-weight: 700; }
.ck-line .qty button { height: 40px; width: 36px; }
.ck-line-total { font-size: 1.05rem; color: var(--navy); white-space: nowrap; }
.ck-line-rm { width: 32px; height: 32px; border-radius: 999px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.ck-line-rm:hover { background: #fde8e8; color: #b42318; }
.ck-warn { background: #fff4e5; color: #8a4b00; border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.ck-warn p { margin: 0; }
.ck-coupon label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.ck-coupon div { display: flex; gap: 8px; }
.ck-coupon input { flex: 1; min-width: 0; border: 1px solid #c8d4e3; border-radius: 12px; padding: 10px 12px; font: 600 .95rem var(--font); text-transform: uppercase; }
.ck-coupon .btn { padding: .7em 1em; }
.ck-msg { font-size: .88rem; margin: 6px 0 0; }
.ck-ok { color: #0b6b4c; } .ck-error { color: #b42318; }
.ck-totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; padding-top: 12px; border-top: 1px solid #edf2f7; }
.ck-totals dt { color: var(--muted); } .ck-totals dd { margin: 0; text-align: right; font-weight: 600; }
.ck-totals .ck-disc { color: #0b6b4c; }
.ck-totals .ck-total { font-size: 1.25rem; font-weight: 800; color: var(--navy); padding-top: 8px; border-top: 1px solid #edf2f7; }
.ck-totals .ck-vat { font-size: .8rem; color: var(--muted); font-weight: 500; padding: 0; border: 0; }
.ck-note { font-size: .86rem; color: var(--muted); margin: 0; }
.ck-go { width: 100%; justify-content: center; }
.ck-go.disabled { opacity: .5; pointer-events: none; }
.ck-continue { text-align: center; font-size: .93rem; }
.ck-empty { text-align: center; padding: 50px 20px; background: #f4f7fb; border-radius: 22px; }
.ck-empty-title { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.ck-loading { color: var(--muted); }
.ck-box { border: 1px solid #e6edf5; border-radius: 22px; padding: 22px 24px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ck-box legend { font-weight: 800; font-size: 1.12rem; padding: 0 6px; margin-left: -6px; }
.ck-box label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 600; color: #3d4d63; }
.ck-box label small { font-weight: 500; color: var(--muted); }
.ck-box input:not([type=radio]):not([type=checkbox]), .ck-box textarea, .ck-box select { border: 1px solid #c8d4e3; border-radius: 12px; padding: 11px 13px; font: 500 1rem var(--font); color: var(--ink); background: #fff; }
.ck-box input:focus, .ck-box textarea:focus, .ck-box select:focus { outline: 2px solid var(--ice-2); border-color: var(--blue); }
.ck-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .ck-row { grid-template-columns: 1fr 1fr; } .ck-row-3 { grid-template-columns: 140px 1fr 1fr; } }
.ck-options { display: grid; gap: 10px; }
.ck-option { flex-direction: row !important; align-items: flex-start; gap: 12px !important; padding: 14px 16px; border: 1.5px solid #e1e8f0; border-radius: 16px; cursor: pointer; font-weight: 500 !important; }
.ck-option:has(input:checked) { border-color: var(--blue); background: #fafcff; }
.ck-option input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.ck-option b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.ck-sub { font-weight: 800; margin: 8px 0 0; }
.ck-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.ck-check input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; margin-top: 2px; }
.ck-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.ck-mini li { display: flex; justify-content: space-between; gap: 12px; }
.ck-mini b { white-space: nowrap; }
.ck-result { max-width: 760px; margin: 0 auto 60px; }
.ck-res-head { text-align: center; padding: 34px 20px 26px; }
.ck-res-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; font-size: 1.8rem; font-weight: 800; margin: 0 0 10px; }
.ck-res-head.ok .ck-res-icon { background: #e6f6ef; color: #0b6b4c; }
.ck-res-head.ko .ck-res-icon { background: #fff4e5; color: #8a4b00; }
.ck-transfer p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; border-bottom: 1px solid #edf2f7; }
.ck-transfer span { color: var(--muted); }

/* ══ Mi cuenta (15/10) ══ */
.acc-grid { display: grid; gap: 22px; align-items: start; margin-bottom: 60px; }
@media (min-width: 900px) { .acc-grid { grid-template-columns: 1fr 1.2fr; } }
.acc .ck-box h2 { font-size: 1.25rem; margin: 0; }
.acc .ck-box .btn { align-self: flex-start; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-tabs { border-radius: 999px; margin-bottom: 20px; display: inline-flex; border: 1px solid #e6edf5; }
.acc-tabs button[aria-selected=true] { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(11,37,69,.06); }
.acc-panel { margin-bottom: 60px; }
.acc-order { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 20px; border: 1px solid #e6edf5; border-radius: 16px; margin-bottom: 10px; color: var(--ink); text-decoration: none; }
.acc-order:hover { border-color: var(--blue); }
@media (max-width: 640px) { .acc-order { grid-template-columns: 1fr auto; } }
.acc-status { font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #f4f7fb; color: var(--muted); }
/* Página del pedido (16/10/2026): resumen a la izquierda, estado y seguimiento a la derecha, línea de pasos (trk-*) */
.ck-result .ck-box h2 { font-size: 1.3rem; margin: 0; }
.ck-result.wide { max-width: 1080px; }
.ck-res-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ck-res-grid.single { grid-template-columns: minmax(0, 1fr); }
.ck-res-side { position: sticky; top: 96px; }
@media (max-width: 860px) { .ck-res-grid { grid-template-columns: minmax(0, 1fr); } .ck-res-side { position: static; order: -1; } }
.trk-steps { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trk-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.trk-steps li + li::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 4px; border-radius: 4px; background: #e6edf5; z-index: 0; }
.trk-steps li.done::before, .trk-steps li.current::before, .trk-steps li.problem::before { background: var(--blue); }
.trk-step-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: #fff; border: 3px solid #e6edf5; color: #9aa8b8; }
.trk-steps li.done .trk-step-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.trk-steps li.current .trk-step-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 6px #e3effd; }
.trk-steps li.current:last-child .trk-step-dot { background: #18794e; border-color: #18794e; color: #fff; box-shadow: 0 0 0 6px #e7f7ee; }
.trk-steps li.current:last-child::before { background: #18794e; }
.trk-steps li.problem .trk-step-dot { border-color: #d97706; color: #b45309; box-shadow: 0 0 0 6px #fff4e5; }
.trk-step-label { font-size: .82rem; font-weight: 600; color: #9aa8b8; line-height: 1.25; }
.trk-steps li.done .trk-step-label { color: #3d4d63; }
.trk-steps li.current .trk-step-label { color: var(--navy); font-weight: 800; }
.trk-steps li.problem .trk-step-label { color: #8a4b00; font-weight: 800; }
.ck-track-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0 0; border-top: 1px solid #eef2f7; }
.ck-track-row p { margin: 2px 0 0; }
.ck-track-row form { width: 100%; }
.ck-track-row .btn { width: 100%; justify-content: center; }
.acc-pagado, .acc-entregado, .acc-listo_recogida, .acc-enviado { background: #e6f6ef; color: #0b6b4c; }
.acc-pendiente_pago, .acc-en_preparacion { background: #fff4e5; color: #8a4b00; }
.acc-pago_fallido, .acc-cancelado { background: #fde8e8; color: #b42318; }
.acc-address { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid #e6edf5; border-radius: 16px; margin-bottom: 10px; }
.acc-address span { color: var(--muted); }
.acc-actions { display: flex; gap: 8px; margin: 6px 0 0; }
.acc-actions .btn { padding: .55em 1em; font-size: .88rem; }
.ck-who { margin: -8px 0 18px; color: var(--muted); }
.acc-btn { margin-right: -6px; }

/* ══ Cabecera H3 en una sola fila (16/10) ══ */
.header .header-top { min-height: 84px; gap: 18px; }
.mega-btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 .97rem var(--font); border: 0; }
.mega-btn:hover, .mega.open .mega-btn { background: var(--navy-2); color: #fff; border: 0; }
.mega-btn::after { content: none; }
.hsearch-inline { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; background: #eef3f8; border-radius: 999px; padding: 0 6px 0 20px; min-width: 0; }
.hsearch-inline:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--blue); }
.hsearch-inline > svg { flex: none; color: var(--muted); }
.hsearch-inline input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 500 1rem var(--font); color: var(--ink); }
.hsearch-inline .btn { height: 40px; padding: 0 20px; }
.hsearch-inline .hsearch-hits { top: calc(100% + 8px); border-radius: 18px; border-top: 1px solid #e6edf5; z-index: 40; }
.hicons { display: flex; gap: 22px; flex: none; }
.hicons a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .75rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.hicons a:hover { color: var(--blue); }
.hicons .cart-count { position: absolute; top: -6px; right: -6px; border: 2px solid #fff; }
.header-cta { flex: none; padding: .85em 1.4em; }
.mega-foot { max-width: var(--wrap); margin: 0 auto; padding: 14px 28px 18px; border-top: 1px solid #e6edf5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .92rem; }
.mega-foot span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 4px; }
.mega-foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.mega-foot a:hover { color: var(--blue); }
.mega-foot .mega-foot-cta { margin-left: auto; color: var(--blue); }
.mega-panel { max-height: none; }
@media (max-width: 1100px) { .hicons span { display: none; } .hicons { gap: 14px; } }
@media (max-width: 940px) {
  .header .header-top { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .hsearch-inline { order: 5; flex-basis: 100%; height: 46px; }
  .hicons { margin-left: auto; }
  .header-cta { display: none; }
  .search-gap { display: none; }
}
/* Los accesos (Tiendas / Mi cuenta / Carrito): icono encima del texto, centrados (gana a «.header nav a»). */
.header .hicons a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 2px; border-radius: 10px; background: none; font-size: .75rem; font-weight: 700; line-height: 1; color: var(--navy); }
.header .hicons a:hover { background: none; color: var(--blue); }
.header .hicons svg { display: block; }

/* ══ Botón «Servicios ▾» (16/10) ══ */
.svc-btn { position: relative; display: inline-flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #c8d4e3; background: #fff; color: var(--navy); font: 700 .97rem var(--font); cursor: pointer; white-space: nowrap; }
.svc-btn::after { content: '▾'; margin-left: 6px; font-size: .75em; opacity: .6; }
.svc-btn::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 26px; }
.svc-btn:hover, .svc.open .svc-btn { border-color: var(--blue); color: var(--blue); }
.svc:hover .mega-panel, .svc.open .mega-panel { display: block; }
.svc-inner { max-width: var(--wrap); margin: 0 auto; padding: 24px 28px; display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.svc-list a, .svc-link { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border: 1px solid #e6edf5; border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.svc-list a:hover, .svc-link:hover { border-color: var(--blue); background: #fafcff; }
.svc-list b, .svc-link b { font-size: 1rem; }
.svc-list span, .svc-link span { color: var(--muted); font-size: .88rem; }
.svc-side { display: flex; flex-direction: column; gap: 10px; padding-left: 28px; border-left: 1px solid #e6edf5; }
.svc-side .btn { justify-content: center; margin-top: auto; }
@media (max-width: 940px) { .svc { display: none; } } /* en el móvil va en «Menú» */

/* ══ Cabecera H2 (16/10): logo · menú centrado · iconos con texto + Presupuesto + Pide cita ══ */
.header .hrow2 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 84px; }
.hnav { display: flex; align-items: center; gap: 2px; }
.header .hnav .mega-btn, .header .hnav .svc-btn, .header .hnav .hnav-link { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 .97rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.header .hnav .mega-btn:hover, .header .hnav .mega.open .mega-btn, .header .hnav .svc-btn:hover, .header .hnav .svc.open .svc-btn, .header .hnav .hnav-link:hover, .hnav-drop:hover > .hnav-link { background: var(--ice); color: var(--blue); }
.header .hnav .mega-btn::after, .header .hnav .svc-btn::after, .hnav-drop > .hnav-link::after { content: '▾'; margin-left: 6px; font-size: .75em; opacity: .6; position: static; height: auto; }
.header .hnav .mega:not(.svc) .mega-btn { background: var(--ice); color: var(--blue); }
.hnav-drop { position: relative; }
.hnav-drop ul { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 210px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover); z-index: 30; }
.hnav-drop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.hnav-drop:hover ul, .hnav-drop:focus-within ul { display: block; }
.hnav-drop ul a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.hnav-drop ul a:hover { background: var(--ice); color: var(--blue); }
.hright { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.header .hicons { gap: 18px; }
.header .hicons button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 2px; border: 0; background: none; color: var(--navy); font: 700 .75rem var(--font); line-height: 1; cursor: pointer; }
.header .hicons button:hover { color: var(--blue); }
.header .hicons button svg { display: block; }
.header-cta { padding: .75em 1.2em; font-size: .93rem; }
@media (max-width: 1360px) { .hicons span { display: none; } .header .hicons { gap: 12px; } }
@media (max-width: 1180px) { .hright .btn-outline { display: none; } }
@media (max-width: 1060px) { .hnav-link[href$="/banos/"] { display: none; } }
@media (max-width: 940px) {
  .header .hrow2 { display: flex; flex-wrap: wrap; }
  .hnav { display: none; }
  .hright { margin-left: auto; }
  .hright .header-cta { display: none; }
}
/* Cabecera H2 a TODO el ancho (16/10): logo | menú centrado en el hueco libre | derecha. Sin solapes. */
.header .hrow2 { display: flex; align-items: center; gap: 24px; max-width: none; padding-left: clamp(16px, 2.5vw, 40px); padding-right: clamp(16px, 2.5vw, 40px); }
.header .hrow2 .logo { flex: none; }
.hnav { flex: 1 1 auto; justify-content: center; min-width: 0; }
.hright { flex: none; }
@media (max-width: 1500px) { .hicons span { display: none; } .header .hicons { gap: 12px; } }
@media (max-width: 1280px) { .hright .btn-outline { display: none; } }
@media (max-width: 1120px) { .hnav-link[href$="/banos/"] { display: none; } }
/* Menú pegado al logo, a la izquierda (16/10); los iconos y botones, a la derecha. */
.hnav { justify-content: flex-start; flex: 0 1 auto; margin-left: 8px; }
.hright { margin-left: auto; }
/* Servicios: tarjetas de la misma altura en una cuadrícula completa (16/10) */
.svc-inner { align-items: stretch; }
.svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.svc-list li { display: flex; }
.svc-list a { flex: 1; justify-content: center; }
.svc-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.svc-link { justify-content: center; }
.svc-cta { background: var(--blue); border-color: var(--blue); color: #fff; }
.svc-cta span { color: #d6e6f6; }
.svc-cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Devoluciones y ayuda (19/10/2026) */
.at-form h2 { font-size: 1.2rem; margin: 0; }
.at-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.at-form textarea, .at-form select, .at-form input:not([type=checkbox]):not([type=radio]) { width: 100%; }
.at-line { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px !important; padding: 10px 12px; border: 1px solid #e6edf5; border-radius: 12px; font-weight: 500 !important; }
.at-line-name { flex: 1; }
.at-line select { width: auto !important; }
.at-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.at-reason { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; padding: 10px 12px; border: 1px solid #e6edf5; border-radius: 12px; font-weight: 500 !important; cursor: pointer; }
.at-reason:has(input:checked) { border-color: var(--blue); background: var(--ice); }
.at-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.at-thumbs:empty { display: none; }
.at-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid #e6edf5; background: #f4f7fb; display: grid; place-items: center; }
.at-thumb img { width: 100%; height: 100%; object-fit: cover; }
.at-pdf { font-weight: 800; color: var(--muted); }
.at-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 999px; border: 0; background: rgba(11,37,69,.75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.at-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.at-order { background: var(--ice); color: var(--blue); font-weight: 700; padding: 10px 14px; border-radius: 12px; }
.at-help-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* Desplegables con la misma caja que los campos de texto y flecha propia (19/10/2026) */
.ck-box select { appearance: none; -webkit-appearance: none; width: 100%; line-height: 1.25; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2355657a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.at-line select { padding: 6px 34px 6px 12px; }
.ck-box input:not([type=radio]):not([type=checkbox]) { line-height: 1.25; }
.ck-box input[type=file] { padding: 8px; cursor: pointer; color: var(--muted); font-size: .92rem; }
.ck-box input[type=file]::file-selector-button { margin-right: 12px; border: 1px solid var(--blue); background: var(--ice); color: var(--blue); font: 700 .9rem var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; }

/* Gestor de la web (22/10/2026): franja de aviso, carrusel de banners de la portada. */
.notice-bar { background: var(--navy); color: #fff; text-align: center; font-size: .9rem; font-weight: 600; padding: 9px 16px; }
.notice-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hb-banners { padding: 8px 0 4px; }
.hb-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 22px; scrollbar-width: none; }
.hb-carousel::-webkit-scrollbar { display: none; }
.hb-banner { position: relative; display: block; scroll-snap-align: start; aspect-ratio: 16 / 6; overflow: hidden; color: #fff; text-decoration: none; background: var(--ice); }
.hb-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-banner-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 40px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: linear-gradient(180deg, rgba(11,37,69,0) 0%, rgba(11,37,69,.78) 100%); }
.hb-banner-text b { font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.hb-banner-text span { font-size: 1.05rem; color: #dbe8f6; max-width: 60ch; }
.hb-banner-text em { font-style: normal; margin-top: 6px; }
.hb-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.hb-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.hb-dots button[aria-current="true"] { background: var(--blue); width: 26px; border-radius: 6px; }
@media (max-width: 700px) {
  .hb-banner { aspect-ratio: 1 / 1; }
  .hb-carousel { border-radius: 16px; }
  .hb-banner-text { padding: 32px 20px 20px; }
}
/* Gestor de la web: etiquetas de artículo, banner de campaña, envío gratis. */
.badge-tag { color: #fff; z-index: 1; }
.badge-blue { background: var(--blue); } .badge-green { background: #15803d; } .badge-red { background: #c0262d; } .badge-amber { background: #c77700; } .badge-navy { background: var(--navy); }
.badge-right { left: auto; right: 10px; }
.pp-main { position: relative; }
.camp-banner { margin: 8px 0 18px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 6; background: var(--ice); }
.camp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .camp-banner { aspect-ratio: 1 / 1; border-radius: 16px; } }
.buy-freeship { margin: 4px 0 0; font-size: .9rem; font-weight: 600; color: #15803d; }
.ck-freeship-dt { grid-column: 1 / -1; display: none; }
.ck-freeship-dd { grid-column: 1 / -1; margin: 0; }
.ck-freeship { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: #e7f5ee; color: #15803d; font-weight: 600; font-size: .9rem; }
/* Precio rebajado: antes tachado, ahora y el % en azul de la marca. */
.pct { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff !important; font-size: .72em; font-weight: 800; letter-spacing: .01em; line-height: 1.5; }
.buy-price .pct { font-size: 1rem; padding: 3px 10px; }
/* Portada con banner (gestor de la web): a todo el ancho y arriba del todo, en lugar del buscador grande. */
.hb-hero-banner { position: relative; background: #0b0d12; }
.hbb-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.hbb-track::-webkit-scrollbar { display: none; }
.hbb-slide { position: relative; display: block; scroll-snap-align: start; aspect-ratio: 16 / 6; min-height: 380px; max-height: 680px; overflow: hidden; color: #fff; text-decoration: none; }
.hbb-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hbb-slide:hover img { transform: scale(1.03); }
.hbb-text { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(0deg, rgba(5,8,14,.7) 0%, rgba(5,8,14,.25) 40%, rgba(5,8,14,0) 60%); }
.hbb-text .wrap { width: 100%; padding-bottom: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hbb-text b { font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; max-width: 18ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hbb-sub { font-size: clamp(1rem, 1.6vw, 1.3rem); color: #e2ecf7; max-width: 46ch; }
.hbb-text em { font-style: normal; margin-top: 10px; box-shadow: 0 10px 30px rgba(21,101,216,.45); }
.hbb-dots { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; }
.hbb-dots button { background: rgba(255,255,255,.45); }
.hbb-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 700px) {
  .hbb-slide { aspect-ratio: 1 / 1; min-height: 0; max-height: none; }
  .hbb-text { background: linear-gradient(0deg, rgba(5,8,14,.85) 0%, rgba(5,8,14,.4) 45%, rgba(5,8,14,0) 70%); }
}
/* Tarjeta con oferta (22/10/2026, estilo pedido por el usuario): −% sobre la foto, precio en azul grande y el antiguo
   tachado detrás, línea destacada y «Envío gratis» en verde. */
.badge-pct { background: var(--blue); color: #fff; font-size: .72rem; letter-spacing: 0; padding: 3px 7px; border-radius: 6px; top: 8px; left: 8px; }
.pcard-price-sale b { color: var(--blue); font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.pcard-price-sale s { margin-left: 4px; }
.pcard-deal { font-size: .85rem; font-weight: 800; color: var(--blue); }
.pcard-ship { color: #15803d; font-weight: 800; }
.buy-price-sale b { color: var(--blue); }
.buy-price-sale s { margin-left: 6px; }
.buy-deal { margin: 0 0 4px; font-weight: 800; color: var(--blue); }

/* ── Marketing (23/10/2026): newsletter del pie, WhatsApp, pregunta en la ficha, «Completa tu compra» ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-news { display: grid; gap: 14px 40px; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid #e1e8f0; }
@media (min-width: 860px) { .footer-news { grid-template-columns: 1fr 1.2fr; } }
.footer-news h3 { margin: 0 0 4px; }
.footer-news p { margin: 0; }
.footer-news-row { display: flex; gap: 8px; }
.footer-news-row input { flex: 1; min-width: 0; font: inherit; padding: 11px 16px; border: 1px solid #c8d4e3; border-radius: 999px; background: #fff; color: var(--ink); }
.footer-news-row .btn { flex: none; }
.footer-news-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .84rem; line-height: 1.4; }
.footer-news-check input { margin-top: 3px; flex: none; }
.footer-news-msg { margin: 8px 0 0 !important; font-size: .88rem; font-weight: 600; }
.footer-news-msg.ok { color: #0f7a3d; }
.footer-news-msg.err { color: #b42318; }
@media (max-width: 480px) { .footer-news-row { flex-direction: column; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(11,37,69,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media print { .wa-float { display: none; } }
.pp-help .linklike { color: var(--blue); }
.pp-ask { margin-top: 4px; padding: 20px; border: 1px solid #e6edf5; border-radius: 16px; background: #f8fafd; display: grid; gap: 12px; }
.pp-ask[hidden] { display: none; }
.pp-ask h2 { margin: 0; font-size: 1.1rem; }
.pp-ask label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.pp-ask label[hidden], .pp-ask .pp-ask-row[hidden], .pp-ask button[hidden] { display: none; }
.pp-ask input:not([type=checkbox]), .pp-ask textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #c8d4e3; border-radius: 10px; background: #fff; }
.pp-ask-row { display: grid; gap: 12px; }
@media (min-width: 520px) { .pp-ask-row { grid-template-columns: 1fr 1fr; } }
.pp-ask-note { margin: 0; font-size: .82rem; color: var(--muted); }
.pp-ask-msg { margin: 0; font-size: .9rem; font-weight: 600; }
.pp-ask-msg.ok { color: #0f7a3d; }
.pp-ask-msg.err { color: #b42318; }
.pp-ask .btn { justify-self: start; }
.nl-state { max-width: 640px; }
@media (min-width: 760px) { .footer-legal { padding-right: 76px; } }

/* Seguir el turno en el móvil (/turno/). */
.turno { max-width: 520px; margin: 0 auto; display: grid; gap: 16px; text-align: center; }
.turno-card { background: #fff; border-radius: 24px; padding: 26px 20px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.turno-where { margin: 0; font-weight: 700; color: #4a5a70; }
.turno-code { margin: 0; font-size: clamp(3.2rem, 18vw, 5rem); font-weight: 900; letter-spacing: .02em; line-height: 1.05; color: var(--ink); }
.turno-what { margin: 0; color: #4a5a70; }
.turno-ahead { margin: 10px 0 0; font-size: 1.5rem; font-weight: 800; }
.turno-wait { margin: 0; font-size: 1.1rem; }
.turno-big { margin: 0; font-size: 2.6rem; font-weight: 900; }
.turno-desk { margin: 8px 0 0; font-size: 1.8rem; font-weight: 900; }
.turno-now .turno-card { background: #0f7a3d; color: #fff; animation: turno-pulse 1.2s ease-in-out infinite; }
.turno-now .turno-card p { color: #fff; }
@keyframes turno-pulse { 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .turno-now .turno-card { animation: none; } }
.turno-arm { justify-self: center; }
.turno-note { margin: 0; color: #4a5a70; }
.turno-ok { font-weight: 700; color: #0f7a3d; }
.turno-updated { margin: 0; font-size: .85rem; color: #6b7a8a; }
.turno-map { width: 100%; max-height: 42vh; object-fit: contain; border-radius: 18px; background: #f4f7f8; }
