@charset "UTF-8";
/* ==========================================================================
   GALUSA IMPORT SRL · v0.3 · Dirección C corregida
   Azul marino corporativo, azul GALUSA, índigo sobrio de transición,
   naranja mostaza como acento comercial, blancos, grises y grafito.
   ========================================================================== */
:root {
  --navy: #18306c;
  --navy-deep: #112552;
  --indigo: #293b78;
  --blue: #246cb4;
  --blue-600: #1d5c9b;
  --blue-50: #eaf2fb;
  --mustard: #c58a2b;
  --mustard-light: #d9a24b;
  --mustard-ink: #8f6116; /* texto mostaza sobre fondo claro (contraste ≥ 4.5:1) */
  --mustard-50: #faf3e7;
  --ink: #26313d; /* grafito */
  --ink-2: #4c5866;
  --ink-3: #6b7684;
  --line: #e8ebef;
  --line-2: #d6dbe2;
  --paper: #f5f6f8;
  --white: #ffffff;
  --ok: #1e7a4c;
  --ok-50: #e8f5ee;
  --warn: #8f6116;
  --warn-50: #faf3e7;
  --bad: #b3261e;
  --bad-50: #fbeceb;

  --font-head: var(--font-montserrat, "Montserrat"), "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-inter, "Inter"), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(17, 37, 82, 0.06);
  --shadow: 0 6px 20px -8px rgba(17, 37, 82, 0.18);
  --shadow-lg: 0 24px 48px -20px rgba(17, 37, 82, 0.35);
  --gutter: max(16px, min(4vw, 32px));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mustard-light); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mustard-light); color: var(--navy-deep); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.block { display: block; }
.strong { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }

/* ------------------------------------------------------------------ botones */
.btn {
  --bg: var(--navy); --fg: var(--white); --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover { color: var(--fg); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary:hover { --bg: var(--indigo); --bd: var(--indigo); }
.btn-accent { --bg: var(--mustard-light); --fg: var(--navy-deep); --bd: var(--mustard-light); }
.btn-accent:hover { --bg: var(--mustard); --bd: var(--mustard); --fg: var(--navy-deep); }
.btn-secondary { --bg: var(--white); --fg: var(--navy); --bd: var(--line-2); }
.btn-secondary:hover { --bd: var(--navy); --fg: var(--navy); }
.btn-ghost { --bg: transparent; --fg: var(--navy); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--paper); --fg: var(--navy); }
.btn-on-dark { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, 0.42); }
.btn-on-dark:hover { --bg: rgba(255, 255, 255, 0.1); --bd: var(--white); --fg: var(--white); }
.btn-quiet { --bg: var(--paper); --fg: var(--navy); --bd: var(--paper); }
.btn-quiet:hover { --bg: var(--line); --bd: var(--line); --fg: var(--navy); }
.btn-wa { --bg: var(--white); --fg: #127a3d; --bd: #b7dcc5; }
.btn-wa:hover { --bg: #effaf3; --fg: #0f6a35; --bd: #7fc39b; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--blue-600); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.link-arrow svg { transition: transform 0.16s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--navy); transition: background-color 0.16s var(--ease); }
.icon-btn:hover { background: var(--paper); }

/* ------------------------------------------------------------------ barra de demostración y superior */
.demo-bar { background: var(--mustard-50); color: var(--mustard-ink); font-size: 0.8125rem; text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid #efe0c4; }
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, 0.82); font-size: 0.8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar a { color: rgba(255, 255, 255, 0.9); }
.topbar a:hover { color: var(--white); }
.topbar-items { display: flex; gap: 20px; align-items: center; }
.topbar-items span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-items svg { color: var(--mustard-light); }
.topbar-extra { display: none; }
@media (min-width: 900px) { .topbar-extra { display: inline-flex; } }
@media (max-width: 639px) { .topbar { display: none; } }

/* ------------------------------------------------------------------ cabecera */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { flex: none; display: flex; align-items: center; }
.brand img { width: 132px; height: auto; }
.header-search { flex: 1; max-width: 560px; margin-left: 12px; display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.quote-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 14px; border-radius: 10px;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.9rem; transition: background-color 0.16s var(--ease);
}
.quote-btn:hover { background: var(--indigo); color: var(--white); }
.quote-btn-label { display: none; }
.quote-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: rgba(255, 255, 255, 0.16); color: var(--white); }
.quote-count.has-items { background: var(--mustard-light); color: var(--navy-deep); }
.quote-count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.search-toggle { display: inline-grid; }
@media (min-width: 900px) {
  .header-search { display: block; }
  .search-toggle, .menu-btn { display: none; }
  .quote-btn-label { display: inline; }
  .brand img { width: 150px; }
}

.catnav { border-top: 1px solid var(--line); display: none; }
.catnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 12px; color: var(--ink-2); font-weight: 600; font-size: 0.875rem; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.16s var(--ease), border-color 0.16s var(--ease); }
.catnav a svg { color: var(--ink-3); transition: color 0.16s var(--ease); }
.catnav a:hover, .catnav a.is-active { color: var(--navy); border-bottom-color: var(--mustard); }
.catnav a:hover svg, .catnav a.is-active svg { color: var(--mustard-ink); }
.catnav .catnav-end { margin-left: auto; }
@media (min-width: 900px) { .catnav { display: block; } }

/* búsqueda con sugerencias */
.search { position: relative; display: flex; align-items: center; background: var(--paper); border: 1.5px solid var(--paper); border-radius: 10px; transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease); }
.search:focus-within { border-color: var(--blue); background: var(--white); }
.search-icon { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; padding: 0 12px 0 44px; outline: none; font-size: 0.95rem; }
.search input::-webkit-search-cancel-button { display: none; }
.search button[type="submit"] { margin: 4px; height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.875rem; transition: background-color 0.16s var(--ease); }
.search button[type="submit"]:hover { background: var(--indigo); }
.search-lg input { height: 54px; font-size: 1rem; }
.search-lg button[type="submit"] { height: 46px; padding: 0 22px; }
.search-compact button[type="submit"] { display: none; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; max-height: min(70vh, 460px); overflow: auto;
  animation: pop 0.16s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.suggest-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; color: var(--ink); }
.suggest-item[aria-selected="true"], .suggest-item:hover { background: var(--paper); color: var(--ink); }
.suggest-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; overflow: hidden; color: var(--ink-3); }
.suggest-thumb img { width: 100%; height: 100%; object-fit: contain; }
.suggest-name { font-weight: 600; font-size: 0.9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest-meta { font-size: 0.75rem; color: var(--ink-3); }
.suggest-price { font-weight: 700; font-size: 0.875rem; color: var(--navy); white-space: nowrap; }
.suggest-all { display: flex; justify-content: center; gap: 6px; padding: 10px; font-weight: 600; font-size: 0.875rem; border-top: 1px solid var(--line); margin-top: 4px; }
.suggest-empty { padding: 14px; font-size: 0.875rem; color: var(--ink-3); }
.suggest mark { background: none; color: var(--blue); font-weight: 700; }

/* panel móvil */
.mobile-search { padding: 0 var(--gutter) 12px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(17, 37, 82, 0.45); z-index: 60; animation: fade 0.2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--white); z-index: 61; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slide-in 0.24s var(--ease); overflow-y: auto; padding-bottom: env(safe-area-inset-bottom);
}
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 120px; }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 12px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.drawer-nav a svg { color: var(--blue); }
.drawer-nav a:hover { background: var(--paper); }
.drawer-section { padding: 6px 22px 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; margin-top: 8px; }
.drawer-foot { margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ------------------------------------------------------------------ secciones */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-paper { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 32px); flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mustard-ink); margin-bottom: 10px; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--mustard); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
.section-title em, .hl-ink { font-style: normal; color: var(--blue); }
.section-sub { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.page-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
.lead { font-size: 1.125rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ HERO */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(36, 108, 180, 0.38), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(41, 59, 120, 0.9), transparent 70%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 46%, var(--indigo) 100%);
}
.hero::after { /* franja inferior de marca */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--mustard) 0 22%, var(--blue) 22% 100%);
}
.hero-grid { position: relative; display: grid; gap: 36px; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 88px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.eyebrow span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); }
.eyebrow span:first-child { background: var(--mustard-light); color: var(--navy-deep); border-color: var(--mustard-light); }
.hero h1 { color: var(--white); font-size: clamp(2.05rem, 5.2vw, 3.65rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; max-width: 15ch; }
.hero h1 .hl { color: var(--mustard-light); }
.hero-lead { margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, 0.84); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ctas .btn { min-width: 0; }
@media (max-width: 479px) { .hero-ctas .btn { flex: 1 1 100%; } }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 32px 0 0; padding: 0; list-style: none; background: rgba(255, 255, 255, 0.12); border-radius: var(--r); overflow: hidden; max-width: 560px; }
.hero-facts li { background: rgba(17, 37, 82, 0.55); padding: 12px 14px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.78); }
.hero-facts b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--white); font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 560px) { .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* composición de producto */
.hero-visual { position: relative; min-height: 360px; }
.hv-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; gap: 12px; height: clamp(320px, 44vw, 500px); }
.hv-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.12); }
.hv-card:first-child { grid-column: span 2; }
.hv-card img { width: 100%; height: 100%; object-fit: cover; }
.hv-card figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.hv-label { background: rgba(255, 255, 255, 0.95); color: var(--navy); border-radius: 8px; padding: 6px 10px; font-size: 0.8125rem; font-weight: 700; line-height: 1.25; box-shadow: var(--shadow-sm); }
.hv-label small { display: block; font-weight: 600; color: var(--mustard-ink); font-size: 0.75rem; }
.ref-badge { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(17, 37, 82, 0.78); color: var(--white); font-size: 0.6875rem; font-weight: 600; padding: 3px 7px; border-radius: 5px; letter-spacing: 0.01em; pointer-events: none; }
.hv-note { margin-top: 10px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.62); }
/* sin fotos verificadas: tarjeta de cotización con productos reales */
.hv-quote { position: relative; background: var(--white); color: var(--ink); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 20px; max-width: 520px; margin-left: auto; }
.hv-quote::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); z-index: -1; }
.hvq-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hvq-head h2 { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.hvq-head span { font-size: 0.75rem; font-weight: 700; color: var(--mustard-ink); background: var(--mustard-50); padding: 4px 8px; border-radius: 6px; }
.hvq-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hvq-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.hvq-row b { display: block; font-size: 0.9rem; line-height: 1.3; color: var(--navy); }
.hvq-row small { color: var(--ink-3); font-size: 0.75rem; }
.hvq-qty { font-weight: 700; font-size: 0.875rem; color: var(--navy); background: var(--paper); border-radius: 8px; padding: 6px 10px; }
.hvq-foot { display: grid; gap: 8px; padding-top: 14px; }
.hvq-foot li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8125rem; color: var(--ink-2); }
.hvq-foot li svg { color: var(--ok); flex: none; margin-top: 2px; }
.hvq-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ------------------------------------------------------------------ colecciones (bento fotográfico) */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: flex; min-height: 160px; border-radius: var(--r-lg); overflow: hidden; color: var(--white); isolation: isolate; background: var(--navy); }
.tile:hover { color: var(--white); }
.tile-media { position: absolute; inset: 0; z-index: -2; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 37, 82, 0) 30%, rgba(17, 37, 82, 0.86) 100%); }
.tile-body { margin-top: auto; padding: 14px; width: 100%; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.tile h3 { color: var(--white); font-size: clamp(0.98rem, 1.6vw, 1.2rem); font-weight: 800; }
.tile p { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.78); margin-top: 2px; }
.tile-go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; transition: background-color 0.16s var(--ease), transform 0.16s var(--ease); }
.tile:hover .tile-go { background: var(--mustard-light); color: var(--navy-deep); transform: translateX(2px); }
.tile-fallback { background: linear-gradient(150deg, var(--indigo), var(--navy)); }
.tile-fallback::after { background: none; }
.tile-glyph { position: absolute; right: -10px; top: -6px; z-index: -1; color: rgba(255, 255, 255, 0.1); }
.tile-fallback .tile-chip { position: absolute; left: 14px; top: 14px; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: var(--mustard-light); }
.tile:nth-child(3n).tile-fallback { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); }
.tile:nth-child(4).tile-fallback { background: linear-gradient(150deg, #2f4f8f, var(--navy)); }
.tile-lg { grid-column: span 2; min-height: 240px; }
.tile-lg h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 190px; }
  .tile { min-height: 0; }
  .tile-lg { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1100px) { .bento { grid-auto-rows: 215px; gap: 14px; } }

/* ------------------------------------------------------------------ tarjetas de producto */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.catalog .grid { }
@media (min-width: 1100px) { .catalog .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .catalog .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.16s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .photo { aspect-ratio: 1 / 1; border-radius: 0; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px; flex: 1; }
.card-cat { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-title { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-meta { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.card-price { line-height: 1.15; min-width: 0; }
.card-price b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }
.card-price small { font-size: 0.6875rem; color: var(--ink-3); white-space: nowrap; }
.card-price .ask { font-size: 0.8125rem; font-weight: 600; color: var(--mustard-ink); }
.card-add { position: relative; z-index: 2; flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--navy); color: var(--white); display: grid; place-items: center; transition: background-color 0.16s var(--ease), transform 0.16s var(--ease); }
.card-add:hover { background: var(--indigo); color: var(--white); }
.card-add.is-variant { background: var(--paper); color: var(--navy); }
.card-add.is-variant:hover { background: var(--line); color: var(--navy); }
.card-add.is-added { background: var(--ok); }
.card-tags { position: absolute; z-index: 2; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.6875rem; font-weight: 700; padding: 3px 7px; border-radius: 5px; background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.tag-warn { background: var(--mustard-50); color: var(--mustard-ink); }
.tag-star { background: var(--navy); color: var(--white); }
@media (min-width: 768px) { .card-body { padding: 14px; } .card-title { font-size: 1rem; } }

/* fotografía */
.photo { position: relative; background: var(--paper); display: grid; place-items: center; overflow: hidden; border-radius: var(--r); }
.photo img { width: 100%; height: 100%; object-fit: contain; }
.photo.is-cover img { object-fit: cover; }
.photo-pending { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; color: #9aa4b1; text-align: center; padding: 12px;
  background: repeating-linear-gradient(135deg, rgba(24, 48, 108, 0.025) 0 10px, transparent 10px 20px), var(--paper); }
.photo-pending span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8994a2; }
.photo-pending .ph-code { font-size: 0.6875rem; text-transform: none; letter-spacing: 0; color: #a2abb7; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ banda de volumen */
.volume { display: grid; border-radius: var(--r-xl); overflow: hidden; background: var(--white); color: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .volume { grid-template-columns: 1.05fr 1fr; } }
.volume-copy { padding: clamp(28px, 4vw, 48px); background: linear-gradient(140deg, var(--navy) 0%, var(--indigo) 100%); position: relative; }
.volume-copy h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.volume-copy h2 .hl { color: var(--mustard-light); }
.volume-copy p { color: rgba(255, 255, 255, 0.82); margin-top: 12px; max-width: 48ch; }
.volume-copy .hero-ctas { margin-top: 24px; }
.volume-ex { background: var(--white); color: var(--ink); padding: clamp(24px, 3.5vw, 40px); display: grid; align-content: center; gap: 14px; }
.volume-ex-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.volume-ex-head h3 { font-size: 1rem; font-weight: 800; }
.volume-ex-head span { font-size: 0.75rem; font-weight: 700; color: var(--mustard-ink); background: var(--mustard-50); padding: 4px 8px; border-radius: 6px; }
.vx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--paper); }
.vx-row b { font-size: 0.95rem; color: var(--navy); }
.vx-row small { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.vx-row strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); white-space: nowrap; }
.vx-row.is-pdf { background: var(--mustard-50); outline: 1.5px solid #ecd5ad; }
.vx-row.is-pdf strong { color: var(--mustard-ink); }
.vx-note { font-size: 0.75rem; color: var(--ink-3); }

/* ------------------------------------------------------------------ servicios (bloque oscuro) */
.services-band { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.services-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 100% 0%, rgba(41, 59, 120, 0.85), transparent 70%); }
.services-band .wrap { position: relative; }
.services-band .section-title { color: var(--white); }
.services-band .section-sub { color: rgba(255, 255, 255, 0.76); }
.services-band .kicker { color: var(--mustard-light); }
.services-band .kicker::before { background: var(--mustard-light); }
.svc-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--white); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.svc:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); color: var(--white); transform: translateY(-2px); }
.svc-media { aspect-ratio: 16 / 9; background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; color: var(--mustard-light); position: relative; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 18px; display: grid; gap: 6px; }
.svc h3 { color: var(--white); font-size: 1.1rem; font-weight: 800; }
.svc p { color: rgba(255, 255, 255, 0.74); font-size: 0.9rem; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }
.svc-foot span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--mustard-light); font-weight: 700; }

/* ------------------------------------------------------------------ cómo cotizar */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.how-steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; counter-increment: s; }
.how-steps li::after { content: "0" counter(s); position: absolute; right: 18px; top: 16px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--line-2); }
.how-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 14px; }
.how-steps li:last-child .how-ico { background: var(--mustard-50); color: var(--mustard-ink); }
.how-steps h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.how-steps p { color: var(--ink-2); font-size: 0.9rem; }

/* ------------------------------------------------------------------ bloque corporativo */
.corp { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .corp { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.corp-card { background: var(--white); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.corp-logo { width: 190px; margin-bottom: 18px; }
.corp-card dl { margin: 0; display: grid; gap: 0; }
.corp-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.corp-card dt { color: var(--ink-3); }
.corp-card dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.corp-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.corp-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.corp-points .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--mustard-light); display: grid; place-items: center; }
.corp-points b { display: block; color: var(--navy); }
.corp-points span { color: var(--ink-2); font-size: 0.9rem; }

/* ------------------------------------------------------------------ cierre comercial */
.closing { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); color: var(--white); display: grid; gap: 24px; align-items: center;
  background: radial-gradient(600px 300px at 100% 100%, rgba(197, 138, 43, 0.28), transparent 70%), linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--indigo)); }
@media (min-width: 900px) { .closing { grid-template-columns: 1.4fr auto; } }
.closing h2 { color: var(--white); font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 800; max-width: 22ch; }
.closing h2 .hl { color: var(--mustard-light); }
.closing p { color: rgba(255, 255, 255, 0.8); margin-top: 10px; max-width: 54ch; }
.closing .hero-ctas { margin-top: 0; }

/* ------------------------------------------------------------------ pie */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.76); margin-top: clamp(48px, 7vw, 88px); }
.site-footer a { color: rgba(255, 255, 255, 0.86); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 32px; padding-block: 48px 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { display: inline-block; background: var(--white); border-radius: 12px; padding: 12px 16px; }
.footer-logo img { width: 150px; }
.footer-legal { font-size: 0.875rem; margin-top: 14px; line-height: 1.6; }
.footer-h { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mustard-light); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.footer-list li { display: flex; gap: 8px; align-items: flex-start; }
.footer-list svg { flex: none; margin-top: 3px; color: rgba(255, 255, 255, 0.5); }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 18px 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8125rem; }
.footer-stripe { height: 4px; background: linear-gradient(90deg, var(--mustard) 0 22%, var(--blue) 22% 100%); }

/* WhatsApp flotante y barra móvil de cotización */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: var(--white); box-shadow: var(--shadow-lg); transition: transform 0.16s var(--ease); }
.wa-float:hover { transform: scale(1.06); color: var(--white); }
.has-quote-dock .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
.quote-dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--navy); color: var(--white); box-shadow: var(--shadow-lg); animation: rise 0.28s var(--ease); }
.quote-dock span { font-size: 0.875rem; flex: 1; min-width: 0; }
.quote-dock b { color: var(--mustard-light); }
.quote-dock .btn { min-height: 40px; }
@keyframes rise { from { transform: translateY(120%); } }
@media (min-width: 900px) { .quote-dock { display: none; } .has-quote-dock .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); } }

/* aviso al agregar */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg); animation: toast-in 0.3s var(--ease); font-size: 0.9rem; }
.toast-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; flex: none; animation: check-pop 0.4s var(--ease) 0.08s both; }
.toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast a { color: var(--mustard-light); font-weight: 700; white-space: nowrap; }
.toast-high { bottom: calc(92px + env(safe-area-inset-bottom)); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes check-pop { from { transform: scale(0.4); opacity: 0; } }
@media (min-width: 900px) { .toast, .toast-high { left: auto; right: 24px; transform: none; bottom: 24px; } @keyframes toast-in { from { opacity: 0; transform: translateY(12px); } } }

/* ------------------------------------------------------------------ catálogo */
.catalog-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.catalog-hero .wrap { padding-block: 22px 20px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .catalog-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: end; padding-block: 32px 26px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--blue); }
.crumbs svg { color: var(--line-2); }
.catalog-hero p { color: var(--ink-2); margin-top: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink-2); font-size: 0.875rem; font-weight: 600; white-space: nowrap; transition: all 0.16s var(--ease); }
.chip svg { color: var(--blue); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.is-on svg { color: var(--mustard-light); }
.chip small { font-weight: 600; opacity: 0.7; }
.catalog-grid { display: grid; gap: 28px; padding-top: 22px; }
@media (min-width: 1000px) { .catalog-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; } }
.filters { display: none; align-self: start; position: sticky; top: calc(var(--header-h) + 60px); max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; padding-right: 6px; }
@media (min-width: 1000px) { .filters { display: block; } .filters-toggle { display: none !important; } }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-bottom: 6px; }
.filter-title svg { color: var(--mustard-ink); }
.filter-group ul { list-style: none; margin: 0; padding: 0; }
.filter-group li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 0.875rem; transition: background-color 0.12s var(--ease); }
.filter-group li a:hover { background: var(--paper); color: var(--ink); }
.filter-group li a.is-on { background: var(--blue-50); color: var(--navy); font-weight: 600; }
.filter-group small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filter-check { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 0.875rem; color: var(--ink-2); }
.filter-check::before { content: ""; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--white); flex: none; transition: all 0.12s var(--ease); }
.filter-check.is-on::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--navy); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar p { font-size: 0.9rem; color: var(--ink-2); }
.results-bar b { color: var(--navy); }
.results-tools { display: flex; gap: 8px; align-items: center; }
.select { height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 34px 0 12px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318306c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; appearance: none; font-size: 0.875rem; color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 16px; background: var(--blue-50); color: var(--navy); font-size: 0.8125rem; font-weight: 600; }
.pill:hover { background: #dbe8f7; color: var(--navy); }
.load-more { display: grid; justify-items: center; gap: 10px; margin-top: 28px; }
.load-more p { font-size: 0.8125rem; color: var(--ink-3); }
.load-bar { width: 200px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.load-bar span { display: block; height: 100%; background: var(--mustard); border-radius: 2px; transition: width 0.3s var(--ease); }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); display: grid; gap: 10px; justify-items: center; }
.empty h2 { font-size: 1.25rem; }
.empty p { color: var(--ink-2); max-width: 46ch; }
.empty-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--ink-3); }

/* hoja de filtros (móvil) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(17, 37, 82, 0.45); animation: fade 0.2s var(--ease); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 86vh; overflow-y: auto; background: var(--white); border-radius: 20px 20px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheet-up 0.28s var(--ease); }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 10px; }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sheet-head h2 { font-size: 1.15rem; }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--white); padding: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px; }

/* ------------------------------------------------------------------ ficha de producto */
.product { padding-top: 18px; }
.product-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.gallery { min-width: 0; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(var(--header-h) + 60px); } }
.gallery-stage { position: relative; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--r-lg); border: 1px solid var(--line); }
.gallery-main img { animation: fade 0.25s var(--ease); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.94); color: var(--navy); box-shadow: var(--shadow); display: grid; place-items: center; transition: background-color 0.16s var(--ease); }
.gallery-nav:hover { background: var(--white); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-count { position: absolute; left: 12px; bottom: 12px; background: rgba(17, 37, 82, 0.78); color: var(--white); font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: var(--paper); overflow: hidden; transition: border-color 0.16s var(--ease); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--navy); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-note { display: flex; gap: 8px; align-items: center; font-size: 0.8125rem; color: var(--ink-3); margin-top: 10px; }
.product-info { min-width: 0; }
.product-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.product-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-top: 8px; }
.product-code { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--paper); font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.code-chip b { color: var(--ink); }
.price-box { margin-top: 20px; border-radius: var(--r-lg); background: var(--paper); padding: 18px 18px; display: grid; gap: 12px; border: 1px solid var(--line); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-amount { font-family: var(--font-head); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.price-lg .price-amount { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.price-md .price-amount { font-size: 1.4rem; }
.price-sm .price-amount { font-size: 1.05rem; }
.price-note { font-size: 0.8125rem; color: var(--ink-3); }
.price-ask { font-family: var(--font-head); font-weight: 700; color: var(--mustard-ink); font-size: 1.25rem; }
.volume-hint { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line-2); }
.volume-hint svg { flex: none; color: var(--mustard-ink); margin-top: 2px; }
.variants { border: 0; padding: 0; margin: 22px 0 0; }
.variants legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; padding: 0; }
.variants legend span { color: var(--ink-3); font-weight: 500; }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.size-note { font-size: 0.8125rem; color: var(--ink-3); margin-top: 8px; }
.size-note.is-error { color: var(--bad); font-weight: 600; }
.variants.has-error .variant { border-color: var(--bad); }
.line-size { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.8125rem; color: var(--ink-2); }
.line-size select { min-height: 32px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); font: inherit; color: var(--ink); }
.line-size select[aria-invalid] { border-color: var(--warn); }
.line-size em { font-style: normal; color: var(--warn); font-weight: 600; }
.variant { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--white); font-weight: 600; font-size: 0.875rem; color: var(--ink); cursor: pointer; transition: all 0.14s var(--ease); }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant:hover { border-color: var(--navy); }
.variant.is-on { border-color: var(--navy); background: var(--navy); color: var(--white); }
.variant:has(input:focus-visible) { outline: 3px solid var(--mustard-light); outline-offset: 2px; }
.buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: end; margin-top: 22px; }
.buy-label { grid-column: 1 / -1; font-weight: 600; font-size: 0.9rem; margin-bottom: -2px; }
.buy .btn { min-height: 50px; }
.product-actions { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .product-actions { grid-template-columns: 1fr 1fr; } }
.added { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--ok-50); color: var(--ok); font-size: 0.9rem; font-weight: 600; animation: pop 0.2s var(--ease); }
.added-link { margin-left: auto; font-weight: 700; }
.assurance { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.assurance li { display: flex; gap: 10px; font-size: 0.875rem; color: var(--ink-2); }
.assurance svg { flex: none; color: var(--blue); margin-top: 1px; }
.detail { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 24px; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; } }
.detail h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; }
.detail-text { color: var(--ink-2); white-space: pre-line; max-width: 70ch; }
.spec-list { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-list div { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr); gap: 12px; padding: 11px 14px; font-size: 0.9rem; }
.spec-list div:nth-child(odd) { background: var(--paper); }
.spec-list dt { color: var(--ink-3); }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; align-self: start; }
.info-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.9rem; display: grid; gap: 6px; }
.datasheet { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); margin-top: 14px; color: var(--ink); }
.datasheet:hover { border-color: var(--navy); color: var(--ink); }
.datasheet-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--bad-50); color: var(--bad); display: grid; place-items: center; flex: none; }
.datasheet b { display: block; font-size: 0.9rem; }
.datasheet small { color: var(--ink-3); }
.datasheet > svg { margin-left: auto; color: var(--blue); }
.related { margin-top: clamp(40px, 6vw, 72px); }
.related h2 { font-size: 1.35rem; font-weight: 800; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(17, 37, 82, 0.3); }
.buy-bar .price-amount { font-size: 1.15rem; }
.buy-bar .btn { min-height: 46px; }
.has-buy-bar { padding-bottom: 84px; }
@media (min-width: 900px) { .buy-bar { display: none; } .has-buy-bar { padding-bottom: 0; } }

/* cantidad */
.qty { display: inline-flex; align-items: center; height: 50px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--white); overflow: hidden; }
.qty:focus-within { border-color: var(--blue); }
.qty-btn { width: 46px; height: 100%; border: 0; background: transparent; color: var(--navy); display: grid; place-items: center; transition: background-color 0.12s var(--ease); }
.qty-btn:hover:not(:disabled) { background: var(--paper); }
.qty-btn:disabled { color: var(--line-2); cursor: not-allowed; }
.qty input { width: 64px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 1rem; outline: none; font-variant-numeric: tabular-nums; background: transparent; }
.qty-sm { height: 44px; }
.qty-sm .qty-btn { width: 42px; }
.qty-sm input { width: 56px; }
.qty-unit { margin-left: 8px; font-size: 0.8125rem; color: var(--ink-3); }

/* avisos */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 0.9rem; margin: 14px 0; border: 1px solid transparent; }
.notice > svg { flex: none; margin-top: 2px; }
.notice-info { background: var(--blue-50); color: #1b4f86; border-color: #d3e3f5; }
.notice-warn { background: var(--warn-50); color: var(--warn); border-color: #efe0c4; }
.notice-ok { background: var(--ok-50); color: var(--ok); border-color: #cbe8d8; }
.notice-bad { background: var(--bad-50); color: var(--bad); border-color: #f2cfcc; }

/* ------------------------------------------------------------------ cotización */
.quote { padding-top: 24px; }
.quote-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; counter-reset: st; }
.steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); counter-increment: st; white-space: nowrap; }
.steps li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink-3); font-size: 0.75rem; font-weight: 700; border: 1.5px solid var(--line-2); }
.steps li:not(:last-child)::after { content: ""; width: 22px; height: 2px; background: var(--line-2); margin-left: 4px; }
.steps li.is-on { color: var(--navy); }
.steps li.is-on::before { background: var(--navy); border-color: var(--navy); color: var(--white); }
.steps li.is-done { color: var(--ok); }
.steps li.is-done::before { content: "\2713"; background: var(--ok); border-color: var(--ok); color: var(--white); }
@media (max-width: 559px) { .steps li span { display: none; } .steps li.is-on span { display: inline; } }
.quote-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 28px; align-items: start; } }
.lines-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); align-items: center; transition: border-color 0.16s var(--ease); }
.line:hover { border-color: var(--line-2); }
.line .photo { width: 72px; height: 72px; border-radius: 10px; }
.line .photo-pending span { display: none; }
.line-name { font-weight: 600; color: var(--ink); line-height: 1.3; display: block; }
.line-name:hover { color: var(--blue); }
.line-meta { font-size: 0.8125rem; color: var(--ink-3); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.line-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.line-qty { grid-column: 2; font-weight: 700; color: var(--navy); }
.line.is-missing { opacity: 0.55; }
.line.is-leaving { animation: leave 0.2s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(-12px); } }
@media (min-width: 640px) {
  .line { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .line-actions { grid-column: auto; border-top: 0; padding-top: 0; gap: 4px; }
  .line-qty { grid-column: auto; }
}
.quote-side { display: grid; gap: 14px; }
@media (min-width: 960px) { .quote-side { position: sticky; top: calc(var(--header-h) + 60px); } }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.side-card.is-navy { background: linear-gradient(140deg, var(--navy), var(--indigo)); color: var(--white); border: 0; }
.side-card.is-navy h2 { color: var(--white); }
.side-count { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.side-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-points li { display: flex; gap: 10px; font-size: 0.875rem; color: var(--ink-2); }
.side-points svg { flex: none; color: var(--blue); margin-top: 2px; }
.warn-text { color: var(--warn); }
.form { gap: 14px; }
.form-title { font-size: 1.15rem; font-weight: 800; }
.form-sub { font-size: 0.875rem; color: var(--ink-3); margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 46px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--white); font-size: 1rem; transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 108, 180, 0.15); }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.hint { font-size: 0.8125rem; color: var(--ink-3); }
.error { font-size: 0.8125rem; color: var(--bad); font-weight: 500; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.check.has-error { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--bad-50); color: var(--bad); font-size: 0.9rem; font-weight: 500; }
.form-alert svg { flex: none; margin-top: 1px; }
.mobile-continue { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; box-shadow: 0 -8px 24px -16px rgba(17, 37, 82, 0.3); }
.mobile-continue span { font-size: 0.8125rem; color: var(--ink-2); flex: 1; }
.mobile-continue .btn { min-height: 46px; }
.quote.has-continue { padding-bottom: 84px; }
@media (min-width: 960px) { .mobile-continue { display: none; } .quote.has-continue { padding-bottom: 0; } }
.done { max-width: 760px; }
.done-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.done-head { display: flex; gap: 16px; align-items: center; padding: 24px; background: linear-gradient(130deg, var(--navy-deep), var(--navy) 60%, var(--indigo)); color: var(--white); }
.done-head p { color: rgba(255, 255, 255, 0.8); font-size: 0.875rem; font-weight: 600; }
.done-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--mustard-light); color: var(--navy-deep); flex: none; animation: check-pop 0.45s var(--ease); }
.done-number { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.done-body { padding: 24px; display: grid; gap: 16px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.done-next h2 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.done-next ol { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; font-size: 0.9rem; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.status-list li svg { flex: none; margin-top: 2px; }
.status-list .is-ok svg { color: var(--ok); }
.status-list .is-warn svg { color: var(--warn); }
.status-list .is-info svg { color: var(--blue); }

/* páginas de texto */
.prose-page { padding-top: 32px; max-width: 860px; display: grid; gap: 16px; }
.prose-page p { color: var(--ink-2); }
.about-head { display: grid; gap: 20px; align-items: center; }
@media (min-width: 700px) { .about-head { grid-template-columns: 1fr auto; } }
.about-globe { width: 140px; }
.facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts div { display: grid; grid-template-columns: minmax(130px, 0.6fr) 1fr; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--ink-3); font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.pdf-pages img { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.preview-admin-link { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; background: var(--white); border: 1px solid var(--line-2); color: var(--navy); font-size: 0.75rem; font-weight: 600; padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.has-quote-dock .preview-admin-link, .has-buy-bar ~ .preview-admin-link { display: none; }
@media (min-width: 900px) { .has-quote-dock .preview-admin-link { display: block; } }

/* ------------------------------------------------------------------ PANEL ADMINISTRATIVO */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.admin-nav, .admin-main { min-width: 0; }
@media (min-width: 1000px) { .admin { grid-template-columns: 248px minmax(0, 1fr); } }
.admin-nav { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1000px) { .admin-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); font-size: 0.9rem; }
.admin-brand img { background: var(--white); border-radius: 8px; padding: 6px 8px; width: 112px; height: auto; }
.admin-nav nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.admin-nav nav::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .admin-nav nav { flex-direction: column; overflow: visible; } }
.admin-nav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: rgba(255, 255, 255, 0.78); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.admin-nav nav a svg { color: rgba(255, 255, 255, 0.5); }
.admin-nav nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.admin-nav nav a.is-on { background: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: inset 3px 0 0 var(--mustard-light); }
.admin-nav nav a.is-on svg { color: var(--mustard-light); }
.admin-user { margin-top: auto; font-size: 0.8125rem; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.admin-user b { color: var(--white); }
.admin-user .link-btn { color: var(--mustard-light); }
.admin-mode { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
.admin-main { padding: clamp(16px, 3vw, 32px); min-width: 0; display: grid; gap: 18px; align-content: start; }
.admin-title { font-size: 1.6rem; font-weight: 800; }
.admin-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-sub { color: var(--ink-3); font-size: 0.9rem; margin-top: -10px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kpi-label { font-size: 0.8125rem; color: var(--ink-3); font-weight: 600; }
.kpi-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 0.75rem; color: var(--ink-3); margin-top: 2px; }
.kpi.is-accent { border-top: 3px solid var(--mustard); }
.admin-cols { display: grid; gap: 18px; }
@media (min-width: 1100px) { .admin-cols { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.panel h2 { font-size: 1.05rem; font-weight: 800; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; font-weight: 700; color: var(--ink-3); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: #fafbfc; }
.table tfoot td { background: var(--paper); font-weight: 600; }
.table .subrow td { background: #fbfcfd; }
.table tr.is-selected { background: var(--blue-50); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-bad { background: var(--bad-50); color: var(--bad); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-blue { background: var(--blue-50); color: var(--blue-600); }
.badge-neutral { background: var(--paper); color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.field-inline { display: grid; gap: 4px; font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.field-inline input, .field-inline select, .field-inline textarea { height: 40px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: var(--white); font-size: 0.875rem; font-weight: 400; color: var(--ink); min-width: 160px; }
.field-inline textarea { height: auto; padding: 8px 10px; }
.kv { margin: 0; display: grid; gap: 0; }
.kv div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.email-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.8125rem; }
.tiers { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tiers li { display: inline-flex; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-size: 0.8125rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper); border-radius: 10px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.seg button.is-on { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.seg small { color: var(--ink-3); margin-left: 4px; }
.plain-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.9rem; color: var(--ink-2); }
.rank { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: r; }
.rank li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.875rem; counter-increment: r; }
.rank li::before { content: counter(r); width: 24px; height: 24px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--navy); flex: none; }
.rank li > span:first-of-type { flex: 1; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 0.8125rem; }
.bar-track { height: 10px; border-radius: 5px; background: var(--paper); overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--blue); border-radius: 5px; }
.dropzone { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 28px 16px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--paper); cursor: pointer; transition: all 0.16s var(--ease); }
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: var(--blue-50); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone strong { color: var(--navy); }
.dropzone span { font-size: 0.8125rem; color: var(--ink-3); }
.dropzone svg { color: var(--blue); }
.stat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.photo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.photo-card .photo { aspect-ratio: 1; border-radius: 0; }
.photo-card-body { padding: 10px; display: grid; gap: 4px; font-size: 0.8125rem; }
.photo-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.editor { display: grid; gap: 14px; }
.editor-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .editor-grid { grid-template-columns: 1fr 1fr; } }
.tier-editor { display: grid; gap: 6px; }
.tier-editor-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(70px, 1fr) minmax(100px, 1.3fr) 40px; gap: 6px; align-items: center; }
.tier-editor-row input { height: 38px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 0 8px; font-size: 0.875rem; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.tier-editor-head { font-size: 0.6875rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.spec-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 40px; gap: 6px; }
.spec-editor-row input { height: 38px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 0 8px; font-size: 0.875rem; width: 100%; min-width: 0; }
.errors-list { margin: 0; padding-left: 18px; color: var(--bad); font-size: 0.8125rem; display: grid; gap: 2px; }
.diff-up { color: var(--bad); font-weight: 600; }
.diff-down { color: var(--ok); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line-2); font-size: 0.875rem; }
.timeline small { color: var(--ink-3); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(140deg, var(--navy-deep), var(--navy) 60%, var(--indigo)); }
.login form { width: min(420px, 100%); background: var(--white); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.login img { width: 150px; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .topbar, .wa-float, .quote-dock, .buy-bar { display: none !important; } }

/* ajustes móviles v0.3 */
@media (max-width: 767px) {
  .bento .tile:last-child:nth-child(even) { grid-column: span 2; min-height: 140px; }
  .svc-media { aspect-ratio: 16 / 7; }
  .hero-visual { min-height: 0; }
  .hv-grid { height: 300px; }
}
@media (max-width: 479px) {
  .card-body { padding: 10px; }
  .card-price b { font-size: 0.95rem; }
  .card-price small { font-size: 0.625rem; }
  .card-add { width: 34px; height: 34px; border-radius: 9px; }
  .card-foot { gap: 4px; }
  .eyebrow span:not(:first-child) { display: none; }
}
.preview-admin-link { display: none; }
@media (min-width: 900px) { .preview-admin-link { display: block; } }
.catalog-hero .wrap + .wrap { padding-block: 0 14px; display: block; }
.card .ref-badge { top: auto; bottom: 8px; }
.catalog-hero .search { background: var(--white); border-color: var(--line-2); }
.catalog-hero .search:focus-within { border-color: var(--blue); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.kpi { min-width: 0; }
.kpi-value { font-size: clamp(1.15rem, 4.2vw, 1.6rem); overflow-wrap: anywhere; }
/* imágenes de baja resolución: no se amplían más de 1,7× para no pixelarlas */
.photo.is-lowres img { width: auto; height: auto; max-width: min(100%, var(--lw)); max-height: 100%; }
.photo.is-lowres { background: var(--paper); }
.line .ref-badge { font-size: 0.5625rem; padding: 1px 4px; top: 3px; right: 3px; }
@media (max-width: 639px) { .line-cat { display: none; } }
.login { align-content: center; gap: 0; }

/* ---------------------------------------------------------------- señalización horizontal (levantamiento) */
.survey-hero { background: linear-gradient(180deg, var(--paper), var(--white)); padding-block: clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.survey-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .survey-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.survey-hero .lead { margin-top: 12px; max-width: 58ch; }
.survey-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.survey-figure { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.survey-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.survey-figure .ref-badge { top: auto; bottom: 10px; right: 10px; }
.survey-works { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .survey-works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .survey-works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.survey-works li { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.survey-works li svg { flex: none; color: var(--mustard); margin-top: 2px; }
.survey-works b, .survey-paints b, .survey-steps b { display: block; color: var(--navy); font-weight: 700; }
.survey-works span, .survey-paints span, .survey-steps span { display: block; font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; }
.survey-paints { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .survey-paints { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.survey-paints div { padding: 16px; border-radius: var(--r-lg); background: var(--blue-50); border-left: 4px solid var(--blue); }
.survey-process { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .survey-process { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; } }
.survey-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.survey-steps li { display: flex; gap: 14px; align-items: flex-start; }
.survey-steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 800; font-size: 0.9rem; }
.survey-form-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .survey-form-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .survey-aside { position: sticky; top: calc(var(--header-h) + 60px); } }
.survey-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.survey-form legend { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; padding: 0; }
.survey-form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 18px; }
.survey-form .label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.survey-checks { display: grid; gap: 10px; padding: 4px 0; }
@media (min-width: 640px) { .survey-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.survey-drop { position: relative; padding: 20px 16px; }
.survey-files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.survey-files li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-size: 0.875rem; min-width: 0; }
.survey-files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.survey-files li small { color: var(--ink-3); flex: none; }
.survey-files svg { flex: none; color: var(--blue); }
.survey-aside h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.survey-done { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--ok-50); border: 1px solid #bfe3cf; }
.survey-done > svg { flex: none; color: var(--ok); }
.survey-done h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.survey-done p { color: var(--ink-2); margin-top: 6px; }
.survey-banner { display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--mustard-50); flex-wrap: wrap; }
.survey-banner img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.survey-banner div { flex: 1 1 240px; min-width: 0; }
.survey-banner b { display: block; color: var(--navy); font-size: 0.95rem; }
.survey-banner span { display: block; font-size: 0.85rem; color: var(--ink-2); margin-top: 2px; }
.survey-banner.is-compact { margin: 18px 0 0; }
.survey-banner.is-compact img { display: none; }
.survey-detail { display: grid; gap: 18px; padding: 8px 4px; }
@media (min-width: 1000px) { .survey-detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.survey-detail-side { display: grid; gap: 10px; align-content: start; }
.survey-notes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.survey-notes li { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); font-size: 0.875rem; }
.table tr.is-click { cursor: pointer; }
.table tr.is-click:hover td { background: var(--blue-50); }
.field .check input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 4px; box-shadow: none; }

/* ---------------------------------------------------------------- letreros a medida (levantamiento) */
.letreros-hero-ico { display: grid; place-items: center; color: var(--blue); aspect-ratio: 3 / 2; }
.letrero-items { display: grid; gap: 14px; }
.letrero-item { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.letrero-item-head { display: flex; align-items: center; justify-content: space-between; }
.letrero-item-head b { color: var(--navy); font-family: var(--font-head); }
.letrero-tubo { align-self: end; margin-bottom: 2px; }
.letrero-drop { padding: 14px 16px; }

/* ==========================================================================
   v0.5 · Presentación: encabezado, portada animada, beneficios, soluciones,
   proyectos, servicios, Nosotros y ajustes de consistencia.
   ========================================================================== */

/* encabezado: sólo la fila principal queda fija; las líneas de producto se desplazan con la página */
:root { --header-h: 64px; }
.topbar p.topbar-items { margin: 0; }
.topbar-items a { display: inline-flex; align-items: center; gap: 6px; }
.site-header { box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.mainnav { display: none; align-items: center; gap: 2px; margin-left: 8px; }
.mainnav a { position: relative; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.mainnav a:hover { color: var(--navy); background: var(--paper); }
.mainnav a.is-active { color: var(--navy); }
.mainnav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--mustard); }
@media (min-width: 900px) { .menu-btn { display: inline-grid; } }
@media (min-width: 1180px) { .mainnav { display: flex; } .menu-btn { display: none; } .header-search { max-width: 420px; } }
.catnav { background: var(--white); border-top: 0; border-bottom: 1px solid var(--line); }
.catnav .catnav-end { margin-left: auto; color: var(--mustard-ink); }
.catnav .catnav-end svg { color: var(--mustard); }
.suggest-empty { display: grid; gap: 10px; }
.suggest-empty p { margin: 0; }
.suggest-alt { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest-alt a { font-size: 0.8125rem; font-weight: 600; padding: 6px 10px; border-radius: 16px; background: var(--paper); color: var(--navy); }
.suggest-alt a:hover { background: var(--blue-50); }

/* portada animada */
.hero-v5 { isolation: isolate; background: radial-gradient(900px 520px at 88% 8%, rgba(36, 108, 180, 0.32), transparent 62%), linear-gradient(160deg, var(--navy-deep) 0%, #0f2149 55%, var(--navy) 100%); }
.hero-v5::after { display: none; }
.hero-road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.road-lane { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 3; stroke-dasharray: 34 26; }
.road-lane-2 { stroke: rgba(255, 255, 255, 0.07); }
.road-line { fill: none; stroke: var(--mustard-light); stroke-width: 15; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 10px rgba(217, 162, 75, 0.35)); animation: road-draw 1s cubic-bezier(0.55, 0.05, 0.3, 1) 0.05s both; }
@keyframes road-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-v5 .hero-grid { padding-block: clamp(36px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero-v5 h1 { max-width: 17ch; font-size: clamp(2.1rem, 4.6vw, 3.55rem); line-height: 1.06; }
.hero-v5 h1 .hl { display: block; }
.hero-v5 .eyebrow span:first-child { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.18); }
.hero-v5 .eyebrow span:last-child { background: transparent; border-color: transparent; color: var(--mustard-light); padding-left: 0; }

.hero-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hs-frame { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--white); box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--navy); }
.hs-frame img { width: 100%; height: 100%; object-fit: contain; padding: 6%; background: var(--white); }
.hs-1 { grid-column: span 2; aspect-ratio: 16 / 10; }
.hs-1 img { object-fit: cover; padding: 0; }
.hs-2, .hs-3 { aspect-ratio: 4 / 3; }
.hs-frame.is-glyph { display: grid; place-items: center; background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); color: var(--mustard-light); border-color: rgba(255, 255, 255, 0.18); }
.hs-label { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); background: rgba(255, 255, 255, 0.96); color: var(--navy); font-size: 0.78rem; font-weight: 700; line-height: 1.25; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow-sm);
  animation: hs-label 0.6s var(--ease) 1.6s both; }
.hs-frame.is-glyph .hs-label { background: transparent; color: var(--white); box-shadow: none; padding: 0; }
.hs-frame .ref-badge { top: auto; bottom: 10px; right: 10px; }
.hs-frame:hover { color: var(--navy); }
.hs-frame:hover img { transform: scale(1.02); }
.hs-frame img { transition: transform 0.5s var(--ease); }
.hs-1 { animation: hs-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; --dx: -22px; --dy: 14px; }
.hs-2 { animation: hs-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; --dx: 22px; --dy: -12px; }
.hs-3 { animation: hs-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.8s both; --dx: 18px; --dy: 18px; }
@keyframes hs-in { from { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0); } to { opacity: 1; transform: none; } }
@keyframes hs-label { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
  .hero-stage { display: block; aspect-ratio: 1.08 / 1; max-height: 560px; }
  .hs-frame { position: absolute; }
  .hs-1 { left: 0; top: 10%; width: 74%; aspect-ratio: 4 / 3; }
  .hs-2 { right: 0; top: 0; width: 42%; aspect-ratio: 1 / 1; z-index: 2; }
  .hs-3 { right: 5%; bottom: 0; width: 46%; aspect-ratio: 5 / 4; z-index: 3; }
}
@media (max-width: 699px) {
  .hs-1 { --dx: 0px; --dy: 12px; animation-duration: 0.6s; animation-delay: 0.2s; }
  .hs-2, .hs-3 { --dx: 0px; --dy: 10px; animation-duration: 0.5s; animation-delay: 0.4s; }
  .hs-label { animation-delay: 0.9s; font-size: 0.72rem; }
  .road-line { stroke-width: 12; animation-duration: 0.8s; }
}
/* entrada una vez por sesión y movimiento reducido: composición final estática */
html[data-intro="seen"] .hero-v5 .road-line, html[data-intro="seen"] .hero-v5 .hs-frame, html[data-intro="seen"] .hero-v5 .hs-label { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-v5 .road-line, .hero-v5 .hs-frame, .hero-v5 .hs-label { animation: none; }
  .hs-frame img, .tile-media img, .card { transition: none; }
}

/* beneficios */
.benefits { position: relative; z-index: 2; margin-top: -36px; }
.benefits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (min-width: 900px) { .benefits-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefits-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--white); padding: 20px 22px; }
.benefits-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mustard-50); color: var(--mustard-ink); display: grid; place-items: center; }
.benefits-list b { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; line-height: 1.3; }
.benefits-list span span { display: block; color: var(--ink-2); font-size: 0.875rem; margin-top: 4px; }

/* líneas: resumen dentro de la tarjeta */
.tile p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.tile small { display: block; margin-top: 6px; font-size: 0.75rem; font-weight: 700; color: var(--mustard-light); letter-spacing: 0.02em; }
@media (max-width: 767px) { .tile:not(.tile-lg) p { display: none; } }

/* soluciones */
.solutions { display: grid; gap: 14px; }
@media (min-width: 640px) { .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .solutions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.solution { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: border-color 0.16s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.solution::before { content: ""; position: absolute; left: 22px; top: 0; width: 44px; height: 4px; border-radius: 0 0 3px 3px; background: var(--mustard); }
.solution:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.solution-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--mustard-light); display: grid; place-items: center; margin-bottom: 6px; }
.solution h3 { font-size: 1.1rem; font-weight: 800; }
.solution p { color: var(--ink-2); font-size: 0.9rem; }
.solution-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.875rem; color: var(--blue); }
.solution:hover .solution-go svg { transform: translateX(3px); }
.solution-go svg { transition: transform 0.16s var(--ease); }

/* cómo cotizar (3 pasos) */
@media (min-width: 1100px) { .how-steps.how-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1099px) { .how-steps.how-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; color: var(--ink-2); font-size: 0.9rem; }
.how-note svg { color: var(--mustard-ink); }

/* proyectos */
.projects { display: grid; gap: 16px; }
@media (min-width: 768px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.project-media { aspect-ratio: 4 / 3; background: var(--paper); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 16px; display: grid; gap: 6px; }
.project-body h3 { font-size: 1.05rem; font-weight: 800; }
.project-body p { color: var(--ink-2); font-size: 0.9rem; }

/* encabezados de página interiores */
.page-hero { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: var(--white); padding-block: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(40%, 420px); height: 5px; background: var(--mustard-light); }
.page-hero .page-title { color: var(--white); }
.page-hero .lead { color: rgba(255, 255, 255, 0.84); max-width: 62ch; margin-top: 10px; }
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(255, 255, 255, 0.72); }
.page-hero .kicker { color: var(--mustard-light); }
.page-hero .kicker::before { background: var(--mustard-light); }
.page-hero .hero-ctas { margin-top: 22px; }

/* soluciones: página */
.sol-groups { display: grid; gap: clamp(32px, 4vw, 48px); }
.sol-group-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sol-group-head h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; }
.sol-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--mustard-50); color: var(--mustard-ink); font-size: 0.9rem; border: 1px solid #efe0c4; }
.sol-service { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--r-lg); background: var(--navy); color: var(--white); }
.sol-service b { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.sol-service span { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }

/* servicios: página */
.svc-page-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .svc-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); color: var(--ink); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.svc-card:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--indigo), var(--navy)); display: grid; place-items: center; color: var(--mustard-light); }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-card-body { padding: 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.svc-card-body h2 { font-size: 1.2rem; font-weight: 800; }
.svc-card-body p { color: var(--ink-2); font-size: 0.92rem; }
.svc-tag { justify-self: start; font-size: 0.75rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: var(--blue-50); color: var(--blue-600); }
.svc-tag.is-survey { background: var(--mustard-50); color: var(--mustard-ink); }
.svc-card .solution-go { margin-top: 6px; }

/* Nosotros y contacto */
.about-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.about-lines { display: grid; gap: 12px; }
.about-lines a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.about-lines a:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); color: var(--ink); }
.about-lines .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.about-lines b { display: block; color: var(--navy); }
.about-lines small { color: var(--ink-3); }
.needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.needs li { padding: 14px 16px; border-radius: var(--r); background: var(--paper); }
.needs b { display: block; color: var(--navy); }
.needs span { font-size: 0.875rem; color: var(--ink-2); }
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); color: var(--ink); }
a.contact-card:hover { border-color: var(--navy); color: var(--ink); }
.contact-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--mustard-light); display: grid; place-items: center; }
.contact-card b { display: block; color: var(--navy); }
.contact-card span { color: var(--ink-2); font-size: 0.9rem; overflow-wrap: anywhere; }
.map-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg); }

/* panel: formulario en cuadrícula */
.form-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-grid .field-inline input, .form-grid .field-inline select, .form-grid .field-inline textarea { width: 100%; min-width: 0; }

/* foto ausente: estado neutro */
.photo-pending { background: linear-gradient(160deg, #f7f8fa, #eef1f5); color: #a9b2be; }
.photo-pending .ph-code { color: #9aa4b1; }
.product-listname { margin-top: 6px; font-size: 0.8125rem; color: var(--ink-3); }
.gallery-stage { position: relative; }
.gallery-zoom { position: absolute; z-index: 3; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gallery-zoom:hover { background: var(--white); }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10, 20, 45, 0.88); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); animation: fade 0.18s var(--ease); }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; width: auto; height: auto; object-fit: contain; background: var(--white); border-radius: var(--r); }
.lightbox-close { position: absolute; top: 14px; right: 14px; background: var(--white); }
.lightbox .ref-badge { top: auto; bottom: 18px; right: 18px; }
.prose-block { display: grid; gap: 14px; }
.prose-block p { color: var(--ink-2); }
.page-hero .about-globe { background: var(--white); border-radius: 50%; padding: 14px; width: 120px; height: 120px; object-fit: contain; }
@media (max-width: 699px) { .page-hero .about-globe { display: none; } }
.hs-frame.is-scene img { object-fit: cover; padding: 0; }
.hs-frame .ref-badge { top: 10px; bottom: auto; right: 10px; }
.hero-v5 h1 { font-size: clamp(2.05rem, 3.9vw, 3.2rem); max-width: 18ch; }
/* vista previa: acceso al panel al pie, sin tapar contenido */
.preview-admin-link, .has-quote-dock .preview-admin-link { position: static; display: block; width: max-content; margin: 14px auto calc(14px + env(safe-area-inset-bottom)); box-shadow: none; }
.has-buy-bar ~ .preview-admin-link { display: block; }
.hs-1 .ref-badge { right: auto; left: 10px; }
.kpi-value { font-size: clamp(1.15rem, 1.6vw, 1.6rem); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ v0.5 · carretera al desplazarse (inicio) */
.road-journey { position: relative; }
.road-svg { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; overflow: visible; }
.rd-edge { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(17, 37, 82, 0.25)); }
.rd-asphalt { fill: none; stroke: #2d333b; stroke-linejoin: round; }
.rd-tex { stroke-linejoin: round; pointer-events: none; }
.rd-tex-dot { fill: rgba(255, 255, 255, 0.14); }
.rd-guide { fill: none; stroke: rgba(255, 255, 255, 0.38); stroke-linejoin: round; }
.rd-paint { fill: none; stroke: var(--mustard-light); stroke-linejoin: round; stroke-linecap: butt; }
.rd-wet { fill: none; stroke: #ffe39b; stroke-linejoin: round; stroke-linecap: round; opacity: 0.95; filter: drop-shadow(0 0 4px rgba(255, 210, 120, 0.9)); }
.rd-mark circle { fill: var(--white); stroke: var(--line-2); stroke-width: 2; transition: fill 0.3s var(--ease), stroke 0.3s var(--ease); }
.rd-mark text { font-family: var(--font-head); font-size: 11px; font-weight: 800; fill: var(--ink-3); transition: fill 0.3s var(--ease); }
.rd-mark.is-lit circle { fill: var(--navy); stroke: var(--mustard-light); }
.rd-mark.is-lit text { fill: var(--mustard-light); }
.rd-machine { transition: opacity 0.25s var(--ease); }
.rd-halo { fill: var(--mustard-light); opacity: 0.22; }
.rd-head { fill: var(--navy); stroke: var(--mustard-light); stroke-width: 3; }
.rd-arrow { fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rd-splat { fill: var(--mustard-light); transform-box: fill-box; transform-origin: center; animation: rd-splat-fade 1.5s ease-out forwards; }
@keyframes rd-splat-fade { 0% { opacity: 0.9; transform: scale(0.4); } 25% { opacity: 0.85; transform: scale(1); } 100% { opacity: 0; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) {
  .rd-machine { display: none; }
  .rd-mark circle, .rd-mark text { transition: none; }
}
/* separadores que se pintan al aparecer cada sección */
.road-journey .kicker::before { transform-origin: left; transition: transform 0.6s cubic-bezier(0.55, 0.05, 0.3, 1), width 0.6s cubic-bezier(0.55, 0.05, 0.3, 1); }
.road-journey .kicker:not(.is-painted)::before { transform: scaleX(0); }
.road-journey .kicker.is-painted::before { width: 34px; }
@media (prefers-reduced-motion: reduce) {
  .road-journey .kicker::before { transition: none; transform: none; }
}


/* ==========================================================================
   v0.6 · Cotización por WhatsApp, precio por volumen y ajustes visuales
   ========================================================================== */

/* --- cabecera: sin franja superior redundante; WhatsApp comercial visible --- */
.wa-link { display: none; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: 0.875rem; padding: 6px 8px; border-radius: 8px; white-space: nowrap; transition: background-color 0.16s var(--ease); }
.wa-link svg { color: #1f8f4e; }
@media (hover: hover) and (pointer: fine) { .wa-link:hover { background: var(--paper); color: var(--navy); } }
@media (min-width: 1180px) { .wa-link { display: inline-flex; } }
/* barra de categorías: sólo donde caben completas (debajo de 1180 px están en el menú) */
.catnav { display: none; }
@media (min-width: 1180px) {
  .catnav { display: block; }
  .catnav .wrap { overflow: visible; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; }
  .catnav a { padding: 11px 10px; }
}

/* --- portada: composición ordenada (sin recortes superpuestos) --- */
.hs-frame { border: 0; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6); border-radius: 14px; }
.hs-frame.is-cutout { background: #f4f6f9; }
.hs-frame.is-cutout img { object-fit: contain; padding: 10%; background: transparent; }
.hs-label { font-size: 0.75rem; padding: 5px 9px; border-radius: 7px; box-shadow: none; }
.hs-frame .ref-badge { font-size: 0.625rem; padding: 2px 6px; background: rgba(17, 37, 82, 0.62); }
@media (min-width: 1000px) {
  .hero-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; aspect-ratio: auto; max-height: none; }
  .hs-frame { position: relative; inset: auto; width: auto; }
  .hs-1 { grid-column: span 2; aspect-ratio: 16 / 9; left: auto; top: auto; }
  .hs-2, .hs-3 { aspect-ratio: 4 / 3; right: auto; top: auto; bottom: auto; }
}
@media (max-width: 699px) {
  /* celular: la composición ocupa una franja corta; las categorías quedan al primer desplazamiento */
  .hero-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
  .hs-1 { grid-column: auto; aspect-ratio: 1 / 1; }
  .hs-2, .hs-3 { aspect-ratio: 1 / 1; }
  .hs-label { display: none; }
  .hs-frame .ref-badge { display: none; }
  .hero-v5 .eyebrow { display: none; }
  .benefits { display: none; }
}

/* --- líneas de producto con fotos reales recortadas --- */
.tile-cutout { background: linear-gradient(160deg, #22408a, var(--navy-deep)); }
.tile-cutout .tile-media { inset: 10px 10px 64px 38%; }
.tile-lg.tile-cutout .tile-media { inset: 14px 14px 70px 46%; }
.tile-cutout .tile-media img { object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); }
.tile-cutout::after { background: none; }

/* --- carretera: línea fina y discreta --- */
.rd-edge { display: none; }
.rd-asphalt { stroke: rgba(24, 48, 108, 0.1); }
.rd-tex-dot { fill: rgba(24, 48, 108, 0.16); }
.rd-paint { stroke: var(--mustard); }
.rd-wet { stroke: var(--mustard-light); filter: none; opacity: 0.9; }
.rd-mark circle { stroke-width: 1.5; }
.rd-mark text { font-size: 9px; }
.rd-halo { opacity: 0.18; }

/* --- precio por cantidad (ficha y cotizador) --- */
.vp { position: relative; display: grid; gap: 4px; }
.vp p { margin: 0; }
.vp-main b { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2rem); color: var(--navy); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vp-main small { color: var(--ink-3); font-size: 0.8125rem; margin-left: 4px; }
.vp-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--mustard-ink); }
.vp-regular { font-size: 0.875rem; color: var(--ink-3); }
.vp-regular s { font-variant-numeric: tabular-nums; }
.vp-tag { justify-self: start; font-size: 0.75rem; font-weight: 700; color: var(--navy-deep); background: #fbefd8; border-radius: 6px; padding: 3px 8px; }
.vp-line { font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vp-line b { color: var(--navy); }
.vp-manual { font-size: 0.875rem; font-weight: 600; color: var(--warn); margin: 0; }
.vp-busy { position: absolute; top: 0; right: 0; font-size: 0.75rem; color: var(--ink-3); }
.vp[aria-busy="true"] .vp-main b, .vp[aria-busy="true"] .vp-line b { opacity: 0.55; transition: opacity 0.16s var(--ease); }
.vp-error { font-size: 0.8125rem; color: var(--bad); margin: 0; }
.vp.is-compact { margin-top: 8px; gap: 2px; }
.vp.is-compact .vp-main b { font-size: 1.05rem; }
.vp.is-compact .vp-label { display: inline; margin-right: 6px; }
.vp.is-compact .vp-busy { position: static; }
.price-was { color: var(--ink-3); font-size: 0.8125rem; margin-right: 6px; }
.tag-vol { display: inline-block; font-size: 0.6875rem; font-weight: 700; color: var(--navy-deep); background: #fbefd8; border-radius: 5px; padding: 1px 6px; margin-left: 6px; font-style: normal; }

/* --- cotizador en cuatro pasos --- */
.quote-v6 .quote-head { align-items: center; }
.quote-v6 .steps li::before, .quote-v6 .steps li.is-done::before { display: none; content: none; }
.quote-v6 .steps li > span, .quote-v6 .steps li > button { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
.quote-v6 .steps li > button { cursor: pointer; }
.quote-v6 .steps li > button:hover { color: var(--navy); }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink-3); font-size: 0.75rem; font-weight: 700; border: 1.5px solid var(--line-2); flex: none; }
.steps li.is-on .step-n { background: var(--navy); border-color: var(--navy); color: var(--white); }
.steps li.is-done .step-n { background: var(--ok); border-color: var(--ok); color: var(--white); }
@media (max-width: 559px) {
  .quote-v6 .steps li span { display: inline-flex; }
  .quote-v6 .steps li span.step-n { display: grid; }
  .quote-v6 .steps li:not(.is-on) .step-l { display: none; }
  .quote-v6 .steps li:not(:last-child)::after { width: 12px; }
}
.quote-grid2 { display: grid; gap: 20px; }
.quote-aside { display: none; }
@media (min-width: 1000px) {
  .quote-grid2 { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .quote-aside { display: block; position: sticky; top: 16px; }
  .sum-mobile { display: none; }
}
.quote-main { min-width: 0; }
.quote-main > section { display: grid; gap: 16px; }
.step-title { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 800; outline: none; }
.step-sub { color: var(--ink-2); margin: -8px 0 0; }
.step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 8px; }
@media (max-width: 559px) { .step-actions { flex-direction: column-reverse; } .step-actions .btn { width: 100%; } }
.quote-main .form { max-width: 760px; }
.quote-main .field-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .quote-main .field-row { grid-template-columns: 1fr 1fr; } .field-row-doc { grid-template-columns: 160px 1fr !important; } }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.choice legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; padding: 0; }
.choice-list { display: grid; gap: 10px; }
@media (min-width: 640px) { .choice-list { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.choice-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--white); cursor: pointer; transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease); }
.choice-item input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.choice-item b { display: block; color: var(--navy); font-weight: 700; }
.choice-item small { display: block; color: var(--ink-3); font-size: 0.8125rem; margin-top: 2px; }
.choice-item.is-on { border-color: var(--navy); background: #f3f6fc; }
.choice-item:has(input:focus-visible) { outline: 3px solid var(--mustard-light); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .choice-item:hover { border-color: var(--navy); } }
.choice.has-error .choice-item { border-color: var(--bad); }
.cond { display: grid; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); animation: cond-in 0.2s var(--ease); }
@keyframes cond-in { from { opacity: 0; transform: translateY(-4px); } }
.geo { display: grid; gap: 6px; justify-items: start; }
.geo-ok { display: inline-flex; gap: 6px; align-items: center; font-size: 0.875rem; color: var(--ok); margin: 0; }
.line-gone { display: flex; gap: 6px; align-items: center; color: var(--bad); font-size: 0.8125rem; font-weight: 600; margin: 6px 0 0; }
.line.is-missing { border-color: #f2cfcc; background: #fffafa; }
.quote-v6 .line { grid-template-columns: 72px minmax(0, 1fr); }
@media (min-width: 700px) { .quote-v6 .line { grid-template-columns: 72px minmax(0, 1fr) auto; } .quote-v6 .line-actions { grid-column: auto; border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; } }
.review-block { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--white); display: grid; gap: 10px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-head h3 { font-size: 1rem; font-weight: 800; }
.review-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.review-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.review-lines li:last-child { border-bottom: 0; padding-bottom: 0; }
.review-lines small { display: block; color: var(--ink-3); }
.review-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.review-lines s { color: var(--ink-3); margin-right: 4px; }
@media (max-width: 559px) { .review-lines li { flex-direction: column; gap: 2px; } .review-lines .num { text-align: left; white-space: normal; } }
.price-changes { border: 1.5px solid #efe0c4; background: var(--warn-50); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; color: var(--ink); }
.price-changes h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; color: var(--warn); }
.price-changes ul { margin: 0; padding-left: 18px; font-size: 0.875rem; }
.send-box { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.send-note { font-size: 0.875rem; color: var(--ink-2); text-align: right; margin: 0; }
@media (max-width: 559px) { .send-note { text-align: left; } }
/* WhatsApp: verde reservado para continuar a WhatsApp */
.btn-wa { --bg: #1f8f4e; --fg: var(--white); --bd: #1f8f4e; }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { --bg: #187a42; --bd: #187a42; --fg: var(--white); } }
.btn-wa svg { color: currentColor; }
/* resumen */
.sum-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.sum-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sum-head h2 { font-size: 1.05rem; font-weight: 800; }
.sum-count { font-size: 0.8125rem; color: var(--ink-2); margin: 0; }
.sum-warn { font-size: 0.8125rem; color: var(--bad); margin: 0; }
.sum-rows { margin: 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--ink-2); }
.sum-rows dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.sum-rows .is-saving dd { color: var(--ok); }
.sum-total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.sum-total dt, .sum-total dd { color: var(--navy) !important; font-weight: 800; font-size: 1rem; }
.sum-transport dt { display: inline-flex; gap: 6px; align-items: center; }
.sum-pending dt { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); font-size: 0.8125rem; }
.sum-note { font-size: 0.75rem; color: var(--ink-3); margin: 0; }
.sum-mobile { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); margin-bottom: 14px; }
.sum-mobile > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-size: 0.9rem; }
.sum-mobile > summary::-webkit-details-marker { display: none; }
.sum-mobile > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 0.2s var(--ease); margin-left: 4px; }
.sum-mobile[open] > summary::after { transform: rotate(-135deg); }
.sum-mobile-total { margin-left: auto; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.sum-mobile .sum-card { border: 0; box-shadow: none; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
/* resultado */
.wa-parts { display: grid; gap: 8px; width: 100%; }
.wa-preview summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.wa-preview textarea { width: 100%; margin-top: 8px; font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--paper); color: var(--ink); resize: vertical; }
.contact-card.is-primary { border-color: #b9dcc7; background: #f2faf5; }
.contact-card.is-primary .ico { background: #1f8f4e; color: var(--white); }
/* panel */
.badge-vol { display: inline-block; margin-left: 8px; font-size: 0.6875rem; font-weight: 700; color: var(--navy-deep); background: #fbefd8; border-radius: 6px; padding: 2px 7px; vertical-align: middle; }
.table tr.is-vol td { background: #fffaf0; }
.table tr.seller-notice td { background: #fffaf0; font-size: 0.8125rem; color: var(--warn); font-weight: 600; padding-top: 0; }
.wa-panel { border-left: 4px solid #1f8f4e; }
.wa-states { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.wa-states li { padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 2px; }
.wa-states li b { font-size: 0.875rem; color: var(--ink-3); }
.wa-states li small { font-size: 0.75rem; color: var(--ink-3); }
.wa-states li.is-done { background: var(--ok-50); border-color: #cbe8d8; }
.wa-states li.is-done b { color: var(--ok); }
.wa-text pre { white-space: pre-wrap; font-size: 0.8125rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 420px; overflow: auto; }
@media (prefers-reduced-motion: reduce) { .cond { animation: none; } .sum-mobile > summary::after { transition: none; } }

/* v0.7 · disponibilidad */
.avail { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.avail-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mustard); }
.avail-ok .avail-dot { background: #1f8a4c; }
.avail-out .avail-dot { background: var(--bad, #b3261e); }
.variant.is-out { color: var(--ink-3, #5b6577); border-style: dashed; }
.variant.is-out.is-on { background: var(--white); color: var(--ink-3, #5b6577); border-color: var(--navy); }
.variant-out { font-weight: 500; font-size: 0.75rem; margin-left: 2px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.card-avail { font-size: 0.75rem; font-weight: 600; color: var(--ink-3, #5b6577); }
.card-avail.is-out { color: var(--bad, #b3261e); }

/* v0.8 · modelos agrupados por color y talla */
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(24, 48, 108, .35); flex: none; vertical-align: -4px; margin-right: 8px; }
.variant.has-swatch { display: inline-flex; align-items: center; }
.variant.is-na { opacity: .5; text-decoration: line-through; cursor: not-allowed; }
.variant:has(input:focus-visible) { outline: 3px solid var(--blue-500, #246cb4); outline-offset: 2px; }
.variant.is-on { box-shadow: inset 0 0 0 2px var(--navy, #18306c); }
.variant-fullname { margin: -4px 0 10px; }
.card-swatches { display: flex; gap: 6px; list-style: none; margin: 6px 0 2px; padding: 0; }
.card-swatches .swatch { margin: 0; width: 16px; height: 16px; }
.multi-order { margin: 28px 0; padding: 16px; border: 1px solid var(--line, #dfe3ea); border-radius: 12px; }
.multi-table td, .multi-table th { padding: 6px 8px; vertical-align: middle; }
.multi-table select, .multi-table input { min-height: 40px; }
@media (prefers-reduced-motion: no-preference) { .gallery-main { transition: opacity .15s ease; } }

/* Botón volver (v0.9) */
.back-bar{max-width:var(--wrap,1200px);margin:0 auto;padding:10px 16px 0}
.back-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line,#d9dee7);background:#fff;color:var(--navy,#18306c);font:inherit;font-size:.9rem;font-weight:600;padding:6px 12px;border-radius:999px;cursor:pointer}
.back-btn:hover{background:#f3f6fb}
.back-btn:focus-visible{outline:2px solid #246cb4;outline-offset:2px}

/* --- v0.9 · pulido visual de fotos de producto: fondo blanco parejo, margen interno y centrado --- */
.photo { background: var(--white); }
.photo:not(.is-cover) img { padding: 3%; box-sizing: border-box; object-position: center; }
.gallery-main { background: var(--white); }
.gallery-thumbs button { background: var(--white); border-color: var(--line); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--navy); }
.gallery-thumbs img { padding: 4%; box-sizing: border-box; }
.hs-frame.is-cutout { background: var(--white); }
.hs-frame.is-cutout img { padding: 3%; }
.suggest-thumb { background: var(--white); }
.suggest-thumb img { padding: 3%; box-sizing: border-box; }

/* video de fondo del hero (opcional) */
.hero-video { transform: scaleX(-1); position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .85; pointer-events: none; }
.hero-v5:has(.hero-video)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,33,73,.88) 0%, rgba(15,33,73,.62) 45%, rgba(15,33,73,.18) 100%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.ref-badge { display: none !important; }
.hero-v5 .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-v5 .hero-copy { max-width: 640px; }
@media (min-width: 768px) { .bento .tile:nth-child(5):last-child { grid-column: span 2; } }
