/* ============================================================================
   CONDIMPLAST · DESIGN SYSTEM
   Aesthetic: industria peruana · limpia + sólida · azul Condimplast
   Fonts: Bricolage Grotesque (display) · Plus Jakarta Sans (body)
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* color */
  --ink:        var(--sys-ink, #1E2A46);
  --ink-soft:   #344563;
  --muted:      var(--sys-muted, #5E6C84);
  --muted-2:    #99A1AC;
  --line:       var(--sys-line, #DCE3EB);
  --line-2:     #EDF2F8;
  --bg:         var(--sys-surface, #FFFFFF);
  --bg-2:       var(--sys-blue-soft, #E9F2FF);
  --bg-3:       var(--sys-blue-softer, #F7FAFF);
  --page-base:  var(--sys-bg, #F1F4FB); /* base; el tema intercambiable puede sobrescribirla */

  --brand:      var(--sys-blue, #014191);
  --brand-d:    var(--sys-dark, #003D8F);
  --brand-l:    var(--sys-blue-soft, #E9F2FF);
  --brand-glow: rgba(1,65,145,.26);

  --gold:       var(--sys-amber, #D88A00);
  --gold-d:     #A96B00;
  --green:      var(--sys-green, #138A4B);
  --green-l:    #E5F5EC;
  --blue:       var(--sys-blue, #014191);

  /* radii */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* shadow */
  --sh-sm: 0 1px 2px rgba(16,21,28,.06), 0 1px 3px rgba(16,21,28,.05);
  --sh:    0 6px 20px rgba(16,21,28,.07), 0 2px 6px rgba(16,21,28,.04);
  --sh-lg: 0 20px 50px rgba(16,21,28,.12), 0 6px 16px rgba(16,21,28,.06);
  --sh-brand: 0 12px 28px var(--brand-glow);

  /* type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --container: 1240px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; font-size: var(--root-fs, 100%); }
body {
  font-family: var(--font-body);
  font-weight: var(--text-weight, 400);
  color: var(--ink);
  background: var(--page-base, #F1F4FB);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* fondo oficial: capa fija real (estable en móvil, sin el salto de background-attachment) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 48% at 50% -6%, var(--page-glow, rgba(1,65,145,.14)), transparent 60%),
    linear-gradient(180deg, var(--page-top, #F7FAFF), var(--page-base, #F1F4FB));
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }

/* ---------- UTIL ---------- */
.hide-sm { display: inline; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .55rem;
}
.eyebrow--gold { color: var(--gold-d); }
.eyebrow--light { color: rgba(255,255,255,.85); }

/* ============================================================================
   TOPBAR (marquee)
   ========================================================================== */
.topbar {
  background: var(--topbar-1, var(--brand));
  color: #fff;
  font-size: .82rem;
  overflow: hidden;
  position: relative;
}
.topbar__track {
  display: flex; gap: 3rem; white-space: nowrap; width: max-content;
  padding: .55rem 0;
  animation: marquee 32s linear infinite;
}
.topbar__track span { display: inline-flex; align-items: center; gap: .4rem; opacity: .96; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .topbar__track{ animation: none; } }

/* ============================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg, rgba(255,255,255,.9));
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--header-border, rgba(43,91,255,.14));
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(30,71,214,.10); }
.header__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 3vw, 2rem);
}
.header .header__menu { display: grid; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.header .header__menu:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-l); }
.header .header__menu svg { width: 23px; height: 23px; }

.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--brand);
  box-shadow: var(--sh-brand);
  letter-spacing: -.04em; overflow: hidden;
}
.brand__mark--img { width: 238px; height: 58px; border-radius: 0; background: none !important; box-shadow: none; }
.brand__img { width: 100%; height: 100%; object-fit: var(--logo-fit, contain); object-position: var(--logo-x, 50%) var(--logo-y, 50%); transform: scale(var(--logo-scale, 1)); transform-origin: center; display: block; }
.brand__mark--img + .brand__text { display: none; }
.brand__mark--text { width: auto; max-width: 280px; height: 58px; padding: 0; border-radius: 0; color: var(--brand-text-color, var(--ink)); background: none; box-shadow: none; font-size: var(--brand-text-size, 1.35rem); line-height: 1.05; letter-spacing: -.035em; text-align: left; overflow-wrap: anywhere; }
.brand__mark--text + .brand__text { display: none; }
.brand__text { font-family: var(--font-display); font-weight: 500; font-size: var(--brand-text-size, 1.15rem); letter-spacing: -.02em; color: var(--brand-text-color, inherit); }
.brand__text strong { font-weight: 800; }
.brand__text--light { color: #fff; }

/* branch selector */
.branch {
  display: flex; align-items: center; gap: .55rem;
  padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--bg); transition: .2s var(--ease); flex-shrink: 0;
}
.branch:hover { border-color: var(--brand); box-shadow: var(--sh-sm); }
.branch__icon { font-size: 1.15rem; }
.branch__col { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.branch__col small { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.branch__col strong { font-size: .82rem; font-weight: 700; }
.branch__chev { width: 16px; height: 16px; color: var(--muted); }

/* search */
.search {
  flex: 1; position: relative; display: flex; align-items: center;
  background: var(--search-bg, #fff); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 0 .9rem; max-width: 460px; transition: .2s var(--ease); box-shadow: var(--sh-sm);
}
.search:focus-within { border-color: var(--search-accent, var(--brand)); box-shadow: 0 0 0 4px var(--brand-l); }
.search__icon { width: 19px; height: 19px; color: var(--search-accent, var(--brand)); flex-shrink: 0; }
.search input { flex: 1; border: none; background: none; padding: .65rem .6rem; font-size: .92rem; }
.search input::placeholder { color: var(--muted-2); }
.search kbd {
  font-family: var(--font-body); font-size: .72rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; background: var(--bg);
}

/* nav */
.nav { display: flex; gap: .3rem; flex-shrink: 0; }
.nav a {
  padding: .5rem .8rem; border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; color: var(--nav-color, var(--ink-soft));
  transition: .18s var(--ease);
}
.nav a:hover { background: var(--brand-l); color: var(--brand); }
.nav a:focus-visible { color: var(--brand); }

.header__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* cart button */
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  box-shadow: var(--sh-brand); transition: .2s var(--ease);
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px var(--brand-glow); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--gold); color: #1a1205; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff; transform: scale(0); transition: transform .25s var(--ease);
}
.cart-btn__count.show { transform: scale(1); }

/* ============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .92rem; border-radius: var(--r-pill);
  padding: .7rem 1.3rem; transition: .2s var(--ease); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn-1, var(--brand)); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-2px); background: var(--btn-hover, var(--btn-2, var(--brand-d))); box-shadow: 0 16px 34px var(--btn-hover-glow, var(--brand-glow)); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: var(--bg-2); color: var(--ink); }
.btn--ghost:hover { background: var(--line); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  color: var(--ink); transition: .18s var(--ease); font-size: 1rem;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--pill-bg, var(--brand-l)); color: var(--pill-color, var(--brand-d));
  font-weight: var(--pill-weight, 700); font-size: var(--pill-size, .82rem); padding: .4rem .9rem; border-radius: var(--r-pill);
  border: var(--pill-bw, 0px) solid var(--pill-border, transparent);
  font-family: var(--pill-font, inherit);
}

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%,
              rgba(255,255,255,.5) 0%, rgba(255,255,255,.2) 45%, transparent 75%);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 6rem);
}
.hero__content, .hero__card { position: relative; z-index: 2; }
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
  max-width: var(--container); margin: 0 auto;
}
/* atmosphere */
.hero__bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob--1 { width: 460px; height: 460px; top: -120px; right: -80px;
  background: radial-gradient(circle, var(--hero-glow, var(--brand)) 0%, transparent 70%); }
.blob--2 { width: 380px; height: 380px; bottom: -120px; left: -60px;
  background: radial-gradient(circle, var(--grad-2, #9B8CFF) 0%, transparent 70%); opacity: .35; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .6;
}

.hero__title { color: var(--hero-title-color, inherit); font-size: var(--hero-title-size, clamp(2.2rem, 5.2vw, 4rem)); font-weight: var(--hero-title-weight, 800); font-family: var(--hero-title-font, var(--font-display)); }
.hero__title .grad {
  color: var(--brand);
}
.hero__sub { font-size: var(--hero-sub-size, clamp(1rem, 1.5vw, 1.18rem)); color: var(--hero-sub-color, var(--ink-soft)); max-width: 38ch; margin: 1.2rem 0 1.9rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.hero__stats small { color: var(--muted); font-size: .82rem; font-weight: 600; }

/* floating cards */
.hero__card { position: relative; height: 540px; }
.floatcard {
  --float-x: 7px; --float-x-back: -4px; --float-y: -16px; --float-r: .7deg;
  position: absolute; display: flex; align-items: center; gap: .9rem;
  background: var(--fc-bg, rgba(255,255,255,.92)); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.85); border-radius: var(--r-lg);
  padding: 1rem 1.25rem; box-shadow: var(--sh-lg);
  width: max-content; max-width: 248px; will-change: transform;
}
.floatcard__emoji { font-size:var(--fc-icon-size,2.1rem); width:4rem; height:4rem; border-radius:18px;
  display:grid; place-items:center; overflow:hidden; background:linear-gradient(145deg,#fff,var(--brand-l)); flex-shrink:0;
  border:1px solid rgba(255,255,255,.96); box-shadow:0 8px 18px color-mix(in srgb,var(--brand) 18%,transparent),inset 0 1px 0 #fff; }
.floatcard__emoji img { display:block; width:100%; height:100%; padding:0; object-fit:cover; object-position:center;
  border-radius:inherit; image-rendering:auto; backface-visibility:hidden; }
.floatcard__emoji img[src*="benefit-whatsapp-3d"] { object-fit:contain; padding:.28rem; background:linear-gradient(145deg,#fff,#eafff1); }
.floatcard small { display: block; font-size: var(--fc-text-size, .74rem); color: var(--fc-text-color, var(--muted)); font-weight: 600; }
.floatcard strong { display: block; font-size: var(--fc-title-size, 1.05rem); color: var(--fc-title-color, inherit); font-family: var(--font-display); margin: .04rem 0; }
.floatcard .price { color: var(--brand); font-weight: 800; font-size: .98rem; }
/* 5 tarjetas, repartidas para que no se amontonen */
.floatcard--a { --float-x:8px; --float-x-back:-5px; --float-y:-17px; --float-r:.8deg; top:6%; left:-2%; animation:float 6s var(--ease) infinite; }
.floatcard--b { --float-x:-7px; --float-x-back:4px; --float-y:-13px; --float-r:-.7deg; top:1%; right:-2%; animation:float 7s var(--ease) infinite .5s; }
.floatcard--d { --float-x:-5px; --float-x-back:7px; --float-y:-18px; --float-r:.6deg; top:44%; left:3%; animation:float 6.6s var(--ease) infinite .9s; }
.floatcard--f { --float-x:9px; --float-x-back:-4px; --float-y:-15px; --float-r:-.8deg; top:40%; right:-4%; animation:float 6.9s var(--ease) infinite .3s; }
.floatcard--c { --float-x:5px; --float-x-back:-7px; --float-y:-12px; --float-r:.5deg; bottom:3%; left:29%; animation:float 6.3s var(--ease) infinite 1.2s; }
.floatcard:hover { z-index:4; animation-play-state:paused; }
.floatcard:hover .floatcard__emoji { border-color:color-mix(in srgb,var(--brand) 34%,white); box-shadow:0 10px 22px color-mix(in srgb,var(--brand) 23%,transparent),inset 0 1px 0 #fff; }
.badge { position: absolute; top: -10px; left: -10px; font-size: .7rem; font-weight: 800;
  padding: .2rem .55rem; border-radius: var(--r-pill); }
.badge--gold { background: var(--gold); color: var(--ink); }
@keyframes float {
  0%,100% { transform:translate3d(0,0,0) rotate(0); }
  34% { transform:translate3d(var(--float-x),var(--float-y),0) rotate(var(--float-r)); }
  68% { transform:translate3d(var(--float-x-back),-6px,0) rotate(0); }
}
@media (prefers-reduced-motion: reduce){ .floatcard{ animation:none; } }

/* ============================================================================
   IDENTIDAD CORPORATIVA Y SISTEMAS PVC
   ========================================================================== */
.company {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 3vw, 2rem);
  scroll-margin-top: 7rem;
}
.company__intro {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.6rem, 4vw, 3.2rem); box-shadow: var(--sh);
}
.company__intro h2 { color: #0f2747; font-size: clamp(2rem, 4vw, 3.4rem); }
.company__copy { color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.14rem); }
.company__copy p + p { margin-top: 1.25rem; }
.company__signature { color: var(--brand); font-weight: 800; }
.solutions {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem; padding-top: 1rem; scroll-margin-top: 7rem;
}
.solution-card {
  min-height: 220px; padding: 1.5rem; border-radius: var(--r-lg);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; box-shadow: var(--sh); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.solution-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.solution-card span { margin-bottom: auto; font-size: .78rem; font-weight: 800; letter-spacing: .12em; opacity: .82; }
.solution-card strong { font: 800 clamp(1.35rem, 2vw, 1.75rem)/1.1 var(--font-display); }
.solution-card p { margin-top: .7rem; font-size: .88rem; opacity: .9; }
.solution-card--water { background: #0795e8; }
.solution-card--drain { background: #0f6fac; }
.solution-card--sel { background: #0f2747; }
.solution-card--sap { background: #176b58; }

/* ============================================================================
   BENEFITS
   ========================================================================== */
.benefits {
  max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem,3vw,2rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem;
  transform: translateY(-26px);
}
.benefits article {
  --benefit-accent: var(--brand); --benefit-soft: var(--brand-l);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 3.25rem 1fr; gap: .9rem; align-items: center;
  min-height: 6.35rem; padding: 1rem 1.05rem;
  background: #fff; border: 1px solid #dce6f3; border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,39,71,.1), 0 2px 5px rgba(15,39,71,.05);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.benefits article::after { content:""; position:absolute; inset:auto 1rem 0; height:3px; border-radius:999px 999px 0 0; background:var(--benefit-accent); opacity:0; transform:scaleX(.55); transition:opacity .24s var(--ease),transform .24s var(--ease); }
.benefits article:hover { border-color:color-mix(in srgb,var(--benefit-accent) 38%,#dce6f3); box-shadow:0 16px 32px rgba(15,39,71,.14),0 3px 8px rgba(15,39,71,.06); transform:translateY(-4px); }
.benefits article:hover::after { opacity:1; transform:scaleX(1); }
.benefits .benefit-card--water { --benefit-accent:#0795e8; --benefit-soft:#e2f5ff; }
.benefits .benefit-card--drainage { --benefit-accent:#f59e0b; --benefit-soft:#fff4d6; }
.benefits .benefit-card--sel { --benefit-accent:#7c3aed; --benefit-soft:#f0e9ff; }
.benefits .benefit-card--sap { --benefit-accent:#16a36a; --benefit-soft:#e2f8ee; }
.benefit-icon { width:3.25rem; height:3.25rem; padding:.72rem; display:grid; place-items:center; color:var(--benefit-accent); background:var(--benefit-soft); border-radius:13px; transition:transform .24s var(--ease),background-color .24s var(--ease); }
.benefits article:hover .benefit-icon { transform:translateY(-2px) scale(1.04); }
.benefit-icon svg { width:100%; height:100%; overflow:visible; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.benefit-icon--image { padding:.18rem; overflow:hidden; background:#fff; border:1px solid color-mix(in srgb,var(--benefit-accent) 28%,#d9e5ef); }
.benefit-icon--image img { width:100%; height:100%; display:block; object-fit:contain; }
.benefit-icon__fallback { font-size:1.45rem; line-height:1; }
.benefits strong { font-family:var(--font-display); font-size:var(--bn-title-size,1rem); color:var(--bn-title-color,var(--ink)); display:block; line-height:1.25; letter-spacing:-.01em; }
.benefits p { margin-top:.28rem; font-size:var(--bn-text-size,.78rem); line-height:1.43; color:var(--bn-text-color,var(--muted)); }
@media (prefers-reduced-motion:reduce){.benefits article,.benefit-icon{transition:none}.benefits article:hover,.benefits article:hover .benefit-icon{transform:none}}

/* ============================================================================
   SECTIONS
   ========================================================================== */
.section { max-width: var(--container); margin: 0 auto; padding: clamp(2.5rem,5vw,4.5rem) clamp(1rem,3vw,2rem); }
.section--tight { padding-top: 1rem; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__head h2 { color: var(--sec-title-color, inherit); font-size: var(--sec-title-size, clamp(1.7rem, 3vw, 2.5rem)); font-family: var(--sec-title-font, var(--font-display)); }
.section__desc { color: var(--muted); max-width: 36ch; }

/* ---------- categories ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 1rem;
}
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1/1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; cursor: pointer; border: none; color: #fff; text-align: left;
  transition: .3s var(--ease); isolation: isolate;
}
.cat-card::before { content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(150deg, var(--c1), var(--c2)); }
.cat-card::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35)); }
.cat-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--sh-lg); }
.cat-card.is-active { box-shadow: 0 0 0 3px var(--ink), var(--sh-lg); }
.cat-card__emoji { font-size: var(--cat-emoji-size, 2.4rem); position: absolute; top: 1rem; right: 1rem; opacity: .92;
  transition: .3s var(--ease); }
.cat-card:hover .cat-card__emoji { transform: scale(1.15) rotate(-6deg); }
.cat-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--cat-name-size, 1.02rem); line-height: 1.1; color: var(--cat-name-color, inherit); }
.cat-card__count { font-size: .74rem; opacity: .85; font-weight: 600; }

/* ============================================================================
   TOOLBAR / FILTERS
   ========================================================================== */
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar__heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.toolbar__title { font-size: clamp(1.5rem,2.5vw,2rem); }
.filter-toggle { display: none; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); padding: .62rem .75rem; font-weight: 800; }
.filter-toggle span { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; margin-left: .25rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem; }
.toolbar__controls { display: flex; gap: .8rem; }
.select { display: flex; flex-direction: column; gap: .25rem; }
.select label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.select select {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .55rem 2rem .55rem .8rem;
  background: var(--brand-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717A87' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .55rem center / 16px;
  font-weight: 600; font-size: .88rem; appearance: none; cursor: pointer; min-width: 150px;
  transition: .18s var(--ease);
}
.select select:hover { border-color: var(--brand); }
.price-range { display: flex; align-items: center; gap: .35rem; }
.price-range input {
  width: 78px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: .55rem .6rem; font-weight: 600; font-size: .88rem; background: var(--brand-l);
  color: var(--ink); transition: .18s var(--ease); appearance: textfield; -moz-appearance: textfield;
}
.price-range input::-webkit-outer-spin-button,
.price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range input:hover { border-color: var(--brand); }
.price-range input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.price-range span { color: var(--muted); }
.stock-toggle {
  display: flex; align-items: center; gap: .45rem; align-self: flex-end;
  font-size: .85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; padding: .55rem 0;
}
.stock-toggle input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.result-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; font-size: .88rem; color: var(--muted); }
.chip-clear { color: var(--brand); font-weight: 700; font-size: .85rem; }
.chip-clear:hover { text-decoration: underline; }

/* ============================================================================
   PRODUCT GRID + CARDS
   ========================================================================== */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min,145px),1fr)); gap: 1rem;
}
.product-grid--offers { grid-template-columns: repeat(auto-fill, minmax(var(--card-min,150px),1fr)); }

/* === Vista compacta de la rejilla (~40% más pequeña): solo reduce el TAMAÑO DE LA VISTA,
   no el contenido ni la calidad de las fotos. Afecta únicamente las tarjetas de producto (.card). === */
.card .card__panel { padding: .5rem .62rem .58rem; }
.card .card__brandline { padding-right: 2rem; }
.card .card__brand { font-size: .6rem; letter-spacing: .05em; }
.card .card__rate { font-size: .66rem; }
.card .card__rate svg { width: 12px; height: 12px; }
.card .card__name { font-size: .8rem; margin: .18rem 0 .3rem; }
.card .price-now { font-size: .98rem; }
.card .price-old { font-size: .76rem; }
.card .price-may, .card .price-locked { font-size: .68rem; }
.card .card__add { width: 36px; height: 36px; top: -18px; right: .6rem; border-width: 2px; }
.card .card__add svg { width: 17px; height: 17px; }

.card {
  --pcolor: 130,150,180;
  --pimg: none;
  background: var(--bg); border: 1.5px solid rgba(var(--pcolor), .32); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: .28s var(--ease); position: relative;
}
.card:hover { transform: translateY(-6px); border-color: var(--card-hover, var(--brand)); box-shadow: 0 0 0 2px var(--card-hover, var(--brand)), 0 18px 38px rgba(var(--pcolor), .28); }

.card__media {
  position: relative; aspect-ratio: var(--card-aspect, 1); overflow: hidden; cursor: pointer;
  background: #eaf7ff;
}
/* fondo: la PROPIA foto difuminada llenando el recuadro (la nítida va encima) */
.card__media::before {
  content: none;
}
.card__media .thumb { position: absolute; inset: 0; z-index: 1; }
.thumb.has-image .thumb-ph { visibility: hidden; }
.thumb.has-image.img-err .thumb-ph { visibility: visible; }
.thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; max-width: none; padding: 0;
  z-index: 1; transition: transform .45s var(--ease);
}
.card:hover .thumb-img { transform: scale(1.06); }
.thumb-ph {
  position: absolute; inset: 0; display: grid; place-items: center; gap: .4rem;
  align-content: center; text-align: center;
  background:
    radial-gradient(120% 120% at 30% 18%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--c1) 16%, var(--bg-2)), color-mix(in srgb, var(--c2) 12%, var(--bg-3)));
}
.thumb-ph__icon { font-size: 3rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.12)); }
.thumb--big .thumb-ph__icon { font-size: 5rem; }
.thumb-ph__brand { font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); opacity: .65; }
.card__tags { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; }
.tag { font-size: .68rem; font-weight: 800; padding: .22rem .55rem; border-radius: var(--r-pill); letter-spacing: .02em; }
.tag--new { background: var(--ink); color: #fff; }
.tag--off { background: var(--brand); color: #fff; }
.tag--low { background: var(--gold); color: #fff; }
.tag--promo { background: #fff; color: var(--brand); border: 1.5px solid var(--brand);
  box-shadow: 0 2px 6px rgba(var(--pcolor), .25); }

.card__fav {
  position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px); display: grid; place-items: center;
  color: var(--fav-color, var(--ink-soft)); z-index: 5; opacity: 0; transform: translateY(-6px); transition: .22s var(--ease);
}
.tag--quote { background: var(--brand); color: #fff; }
.price-quote { color: var(--brand); font-size: .95rem; line-height: 1.2; }
.card:hover .card__fav { opacity: 1; transform: translateY(0); }
.card__fav:hover { color: var(--fav-color, var(--brand)); }
.card__fav.is-fav { color: var(--fav-color, var(--brand)); opacity: 1; transform: translateY(0); }
.card__fav.is-fav svg { fill: var(--fav-color, var(--brand)); }
body.fav-always .card__fav { opacity: 1; transform: none; }
body.fav-off .card__fav { display: none; }
body.fav-left .card__fav { right: auto; left: .6rem; }

.card__body { padding: .7rem .85rem .85rem; display: flex; flex-direction: column; flex: 1;
  position: relative; overflow: hidden; background: var(--bg); }
/* fondo: la propia foto difuminada detrás del texto (igual que el área de imagen) */
.card__body::before {
  content: none;
}
.card__body::after {
  content: none;
}
.card__body > * { position: relative; z-index: 1; }
/* Interruptores del panel: apagar la foto como fondo */
body.pf-off .card__media::before,
body.pf-off .pview__media::before,
body.pf-off .gallery__main::before { display: none; }
body.pd-off .card__body::before,
body.pd-off .card__body::after,
body.pd-off .pview__info::before,
body.pd-off .pview__info::after { display: none; }
.card__brand { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card__name { font-family: var(--font-display); font-weight: 600; font-size: .88rem; line-height: 1.22;
  margin: .2rem 0 .35rem; min-height: 2.2em; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__name:hover { color: var(--brand); }
.card__rate { display: flex; align-items: center; gap: .25rem; font-size: .76rem; color: var(--muted); margin-bottom: .4rem; }
.card__rate .stars { color: var(--gold); letter-spacing: -1px; }

.card__price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.price-now { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.price-old { font-size: .85rem; color: var(--muted-2); text-decoration: line-through; }
.price-may {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem;
  font-size: .76rem; font-weight: 700; color: var(--green);
  background: var(--green-l); padding: .15rem .5rem; border-radius: var(--r-pill); width: fit-content;
}
.price-locked {
  margin-top: .35rem; font-size: .74rem; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: .3rem; cursor: pointer;
}
.price-locked:hover { color: var(--brand); }

/* Botón Agregar: redondo, verde WhatsApp, en la unión foto/panel */
.card__add {
  position: absolute; top: -22px; right: .8rem; z-index: 5;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cart-bg, var(--wa, #25D366)); color: #fff; border: 2.5px solid var(--bg);
  box-shadow: 0 5px 14px rgba(0,0,0,.18); transition: .2s var(--ease);
}
.card__add:hover { filter: brightness(1.05); transform: translateY(-2px); }
.card__add svg { width: 21px; height: 21px; }
.card__add.added { background: var(--green); }
.card__add-ic { font-size: 17px; line-height: 1; }
/* Interruptor: ocultar el botón de carrito de las tarjetas */
body.cart-off .card__add { display: none; }
@media (hover: hover) {
  body.cart-hover .card__add { opacity: 0; transform: translateY(-6px) scale(.92); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  body.cart-hover .card:hover .card__add,
  body.cart-hover .card:focus-within .card__add { opacity: 1; transform: none; pointer-events: auto; }
}
/* TÁCTIL: con "carrito al pasar el mouse", en celular se revela SOLO al tocar el producto */
@media (hover: none) {
  body.cart-hover .card__add { opacity: 0; transform: translateY(-6px) scale(.92); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  body.cart-hover .card.tocada .card__add { opacity: 1; transform: none; pointer-events: auto; }
}
body.cart-pos-price .card__add { position: absolute; top: auto; left: auto; right: .65rem; bottom: .6rem; margin: 0; width: 38px; height: 38px; border-width: 2px; box-shadow: 0 3px 8px rgba(0,0,0,.18); z-index: 5; }
body.cart-pos-price .card__add svg { width: 18px; height: 18px; }
body.cart-pos-price .card__price { align-items: center; padding-right: 3rem; }
body.cart-pos-price .card__panel .price-may { padding-right: 3rem; }
/* === Plantilla de tarjeta "Galeria": foto grande con el titulo superpuesto === */
body.skin-overlay .card { aspect-ratio: 3 / 4; border: 1px solid rgba(176,136,224,.45); box-shadow: 0 16px 40px rgba(150,108,210,.34), 0 4px 12px rgba(120,88,180,.22); }
body.skin-overlay .card__media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; width: 100%; }
body.skin-overlay .card__media .thumb { position: absolute; inset: 0; }
body.skin-overlay .card__media .thumb-img { width: 100%; height: 100%; object-fit: cover; }
body.skin-overlay .card__panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: var(--ov-h, 55%); display: flex; flex-direction: column; justify-content: flex-end; background: var(--ov-gradient, linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.42) 50%, transparent)); padding: 0 .7rem .95rem; }
body.skin-overlay .card__brandline, body.skin-overlay .card__rate, body.skin-overlay .card__price, body.skin-overlay .card__panel .price-may { display: none; }
body.skin-overlay .card__name { color: #fff !important; text-align: center; font-size: 1.12rem; font-weight: 800; line-height: 1.2; margin: 0; }
body.skin-overlay .product-grid, body.skin-overlay .product-grid--offers { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
body.skin-overlay .card__fav { color: var(--fav-color, #fff); }
/* Sucursal: ocultar el selector (una sola sucursal, salvo que se fuerce visible) */
body.branch-hidden .branch { display: none !important; }

/* Panel blanco inferior con los datos (la tarjeta crece y se ve como una sola pieza) */
.card__panel { position: relative; background: var(--card-panel-bg, var(--bg)); padding: .7rem .9rem .7rem; }
.card__brandline { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-right: 2.6rem; }
.card__brand { font-size: .67rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.card__rate { display: inline-flex; align-items: center; gap: .2rem; font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.card__rate svg { width: 13px; height: 13px; fill: var(--gold); }
.card__name {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; line-height: 1.22;
  color: var(--ink); margin: .25rem 0 .4rem; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__name:hover { color: var(--brand); }
.card__price { display: flex; align-items: baseline; gap: .5rem; }
.card__panel .price-may { margin-top: .45rem; }

/* loader */
.sentinel { height: 1px; }
.loader { display: flex; justify-content: center; gap: .5rem; padding: 2rem; }
.loader span { width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
  animation: bounce .6s var(--ease) infinite alternate; }
.loader span:nth-child(2){ animation-delay: .15s; }
.loader span:nth-child(3){ animation-delay: .3s; }
@keyframes bounce { to { transform: translateY(-12px); opacity: .4; } }

.grid-empty { text-align: center; padding: 4rem 1rem; }
.grid-empty span { font-size: 3rem; display: block; margin-bottom: .5rem; }
.grid-empty h3 { font-size: 1.3rem; }
.grid-empty p { color: var(--muted); }

/* ============================================================================
   OFFERS section
   ========================================================================== */
.offers { background: var(--bg-3); border-radius: var(--r-xl); margin-top: 1rem; }

/* ============================================================================
   APP CTA
   ========================================================================== */
.appcta {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  margin: 4rem clamp(1rem,3vw,2rem) 0; border-radius: var(--r-xl);
  max-width: calc(var(--container)); margin-left: auto; margin-right: auto;
}
.appcta::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%); opacity: .4;
  top: -150px; right: -100px; }
.appcta::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%); opacity: .25;
  bottom: -150px; left: 10%; }
.appcta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 2rem; align-items: center; padding: clamp(2rem,4vw,3.5rem); }
.appcta__text h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); }
.appcta__text > p { color: rgba(255,255,255,.7); margin: 1rem 0 1.5rem; max-width: 40ch; }
.checklist { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.8rem; }
.checklist li { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.9); font-size: .92rem; }
.checklist li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.appcta__buttons { display: flex; gap: .8rem; flex-wrap: wrap; }
.appcta__meta { display: flex; gap: 2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.appcta__meta strong { font-family: var(--font-display); font-size: 1.4rem; display: block; }
.appcta__meta small { color: rgba(255,255,255,.6); font-size: .78rem; }

/* phone mockup */
.appcta__phone { display: grid; place-items: center; perspective: 1100px; }
.phone { width: 292px; height: 584px; padding: 10px; border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(145deg,#2b343e 0%,#0c1117 46%,#252d36 100%); border-radius: 46px;
  box-shadow: 0 38px 90px rgba(0,0,0,.55), 0 8px 22px rgba(0,0,0,.4),
    inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 4px #070a0e;
  position: relative; animation: float 8s var(--ease) infinite; transform: rotateY(-4deg) rotateX(1deg); }
.phone::after { content: ''; position: absolute; inset: 12px auto 12px 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(transparent,rgba(255,255,255,.28),transparent); pointer-events: none; }
.phone__button { position: absolute; width: 4px; border-radius: 3px 0 0 3px; background: #28313a; left: -4px; }
.phone__button--silent { top: 94px; height: 28px; }
.phone__button--volume { top: 138px; height: 72px; }
.phone__button--power { left: auto; right: -4px; top: 150px; height: 88px; border-radius: 0 3px 3px 0; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 106px; height: 28px; background: #090d12; border-radius: 0 0 17px 17px; z-index: 4; }
.phone__notch::after { content: ''; position: absolute; width: 7px; height: 7px; right: 20px; top: 7px;
  border-radius: 50%; background: #172838; box-shadow: inset 0 0 0 2px #0b121a,0 0 4px rgba(36,134,202,.45); }
.phone__screen { width: 100%; height: 100%; background: #f4f8fc; border: 1px solid rgba(255,255,255,.12);
  border-radius: 37px; overflow: hidden; display: flex; flex-direction: column; color: #0f2747; }
.phone__status { height: 27px; padding: 8px 17px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: .56rem; line-height: 1; font-weight: 800; color: #13243a; }
.phone__status-icons { font-size: .48rem; letter-spacing: 1px; }
.phone__head { display: flex; justify-content: space-between; align-items: center; padding: .45rem .85rem .5rem;
  font-family: var(--font-display); font-weight: 800; font-size: .72rem; color: #0f2747; }
.phone__brand { display: flex; align-items: center; gap: .42rem; text-transform: uppercase; letter-spacing: .02em; }
.phone__logo { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px;
  background: #0795e8; color: #fff; font-size: .55rem; box-shadow: 0 4px 10px rgba(7,149,232,.28); }
.phone__cart { position: relative; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center;
  background: #e8f5fd; font-size: .78rem; }
.phone__cart b { position: absolute; right: -2px; top: -3px; width: 13px; height: 13px; border-radius: 50%;
  display: grid; place-items: center; background: #ff8a00; color: #fff; font: 700 .44rem/1 sans-serif; }
.phone__search { margin: 0 .75rem .55rem; padding: .48rem .65rem; display: flex; align-items: center; gap: .4rem;
  border: 1px solid #cfe5f4; border-radius: 11px; background: #fff; color: #7890a7; font-size: .58rem;
  box-shadow: 0 4px 12px rgba(15,39,71,.06); }
.phone__search > span:first-child { color: #0795e8; font-size: .9rem; line-height: .6; }
.phone__hero { margin: 0 .75rem; min-height: 78px; padding: .7rem .8rem; border-radius: 15px; color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: linear-gradient(112deg,#0795e8 0%,#0f5ea8 67%,#ff8a00 100%); box-shadow: 0 9px 20px rgba(7,109,177,.25); }
.phone__hero small { font-size: .42rem; font-weight: 800; letter-spacing: .1em; opacity: .82; }
.phone__hero strong { max-width: 15ch; margin: .2rem 0; font: 800 .78rem/1.12 var(--font-display); }
.phone__hero span { font-size: .46rem; font-weight: 700; opacity: .92; }
.phone__filters { display: flex; gap: .32rem; padding: .58rem .75rem .45rem; overflow: hidden; }
.phone__filters span { white-space: nowrap; padding: .27rem .48rem; border: 1px solid #d4e8f5; border-radius: 999px;
  background: #fff; color: #52708d; font-size: .48rem; font-weight: 700; }
.phone__filters span:first-child { background: #0795e8; border-color: #0795e8; color: #fff; }
.phone__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .48rem; padding: 0 .75rem .55rem; flex: 1; min-height: 0; }
.phone__cards .pc { min-width: 0; background: #fff; border: 1px solid #d7e9f5; border-radius: 12px;
  box-shadow: 0 5px 14px rgba(15,39,71,.08); overflow: hidden; display: flex; flex-direction: column; }
.phone__cards .pc__img { height: 74px; flex: 0 0 74px; padding: 3px; display: grid; place-items: center;
  overflow: hidden; background: #eaf7ff; }
.phone__cards .pc__img img { width: 100%; height: 100%; object-fit: contain; display: block; filter: saturate(1.03) contrast(1.02); }
.phone__cards .pc__brand { margin: .28rem .38rem .08rem; color: #0795e8; font-size: .4rem; font-weight: 800; letter-spacing: .04em; }
.phone__cards .pc__name { height: 1.7em; margin: 0 .38rem .18rem; overflow: hidden; color: #183b5d; font-size: .49rem; line-height: .86em; font-weight: 700; }
.phone__cards .pc__price { font-size: .57rem; font-weight: 900; color: #0f2747; margin: auto .38rem .34rem; }
.phone__cards .pc--empty { grid-column: 1/-1; min-height: 120px; align-items: center; justify-content: center; padding: 1rem; color: #52708d; font-size: .58rem; font-weight: 700; text-align: center; }
.phone__bar { display: flex; justify-content: space-around; padding: .45rem .55rem .32rem; background: #fff;
  border-top: 1px solid #dbeaf4; color: #6f8498; }
.phone__bar > span { min-width: 42px; display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .82rem; }
.phone__bar small { font-size: .4rem; font-weight: 700; }
.phone__bar .is-active { color: #0795e8; }
.phone__home { width: 88px; height: 4px; margin: 2px auto 6px; border-radius: 4px; background: #142337; flex: 0 0 auto; }

/* ============================================================================
   REVIEWS
   ========================================================================== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.2rem; }
.review {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--sh-sm); transition: .25s var(--ease);
}
.review:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.review__stars { color: var(--gold); margin-bottom: .7rem; letter-spacing: 1px; }
.review__text { font-size: .96rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.review__author { display: flex; align-items: center; gap: .7rem; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-family: var(--font-display);
  background: linear-gradient(135deg, var(--brand), var(--gold-d)); }
.review__author strong { display: block; font-size: .9rem; font-family: var(--font-display); }
.review__author small { color: var(--muted); font-size: .78rem; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--footer-bg, var(--ink)); color: var(--footer-text, #C8CDD4); margin-top: 4rem; }
.footer__inner {
  max-width: var(--container); margin: 0 auto; padding: clamp(2.5rem,4vw,3.5rem) clamp(1rem,3vw,2rem) 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 2rem;
}
.footer__brand p { font-size: .9rem; color: rgba(255,255,255,.6); margin: 1rem 0 1.2rem; max-width: 28ch; }
.social { display: flex; gap: .6rem; }
.social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; font-weight: 700; transition: .2s var(--ease); }
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.social a svg { width: 19px; height: 19px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__col a, .footer__col p { display: block; font-size: .88rem; color: rgba(255,255,255,.65);
  margin-bottom: .55rem; transition: .18s var(--ease); }
.footer__col a:hover { color: var(--brand); }
.newsletter { display: flex; gap: .5rem; margin-top: .3rem; }
.newsletter input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill); padding: .65rem 1rem; color: #fff; font-size: .85rem; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter .btn { padding: .65rem 1.1rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem clamp(1rem,3vw,2rem);
  max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.45);
}

/* ============================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.wa-float {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: .25s var(--ease); animation: waPulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; stroke: none; }
@keyframes waPulse { 0%{ box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0);} }

/* ============================================================================
   DRAWER (cart)
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.drawer.open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(16,21,28,.5); opacity: 0; transition: .3s var(--ease); }
.drawer.open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 1.5rem; right: 1.25rem; bottom: auto;
  height: auto; max-height: min(640px, calc(100% - 3rem));
  width: min(350px, 92vw);
  background: var(--bg); display: flex; flex-direction: column;
  border-radius: var(--r-xl); overflow: hidden;
  transform: translateX(calc(100% + 1.5rem)); transition: transform .35s var(--ease); box-shadow: var(--sh-lg);
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.25rem; }
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.4rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty span { font-size: 3.4rem; display: block; margin-bottom: 1rem; }
.cart-empty p { color: var(--muted); margin-bottom: 1.5rem; }
.cart-list { display: flex; flex-direction: column; gap: .9rem; }
.cart-item { display: flex; gap: .9rem; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--line-2); }
.cart-item__thumb { width: 60px; height: 60px; border-radius: var(--r-sm); display: grid; place-items: center;
  font-size: 1.8rem; background: var(--bg-2); flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-family: var(--font-display); font-weight: 600; font-size: .88rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__price { color: var(--brand); font-weight: 800; font-size: .92rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); margin-top: .3rem; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; font-weight: 800; color: var(--ink-soft); }
.qty button:hover { color: var(--brand); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; font-size: .85rem; }
.cart-item__remove { color: var(--muted-2); font-size: .9rem; align-self: flex-start; }
.cart-item__remove:hover { color: var(--brand); }
.drawer__foot { border-top: 1px solid var(--line); padding: 1.3rem 1.4rem; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; }
.cart-total strong { font-family: var(--font-display); font-size: 1.6rem; }
.ck-igv { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.ck-igv__lbl { font-size: .8rem; font-weight: 700; color: var(--muted); }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; }
.seg__btn { font-size: .8rem; font-weight: 700; color: var(--muted); padding: .35rem .8rem; border-radius: var(--r-pill); transition: .15s var(--ease); }
.seg__btn.is-on { background: var(--brand); color: #fff; box-shadow: var(--sh-sm); }
.cart-sum { margin-bottom: 1rem; }
.cart-sum__row { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--ink-soft); padding: .15rem 0; }
.cart-sum__total { margin-top: .35rem; padding-top: .5rem; border-top: 1px dashed var(--line); }
.cart-sum__total span { font-weight: 700; color: var(--ink); }
.cart-sum__total strong { font-family: var(--font-display); font-size: 1.55rem; color: var(--ink); }
.cart-note { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.cart-who { font-size: .82rem; color: var(--ink-soft); margin: -.4rem 0 .9rem; display: flex; align-items: center; gap: .4rem; }
.cart-who b { color: var(--ink); }
.cart-coupon { display: flex; gap: .5rem; margin-bottom: .8rem; }
.cart-coupon input { flex: 1; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; color: var(--ink); min-width: 0; }
.cart-coupon input:focus { outline: none; border-color: #25D366; }
.cart-coupon .btn { white-space: nowrap; }
.cart-sum__desc { color: #12A150; font-weight: 600; }
.cart-sum__desc button { background: none; border: none; color: var(--muted-2); font-size: .82rem; margin-left: .35rem; cursor: pointer; padding: 0; }
.cart-sum__desc button:hover { color: #D92D20; }

/* ===== Carrito: identidad WhatsApp + compacto ===== */
#cartDrawer .drawer__head { background: #075E54; padding: .8rem 1.1rem; border-bottom: none; }
#cartDrawer .drawer__head h3 { color: #fff; font-size: 1.05rem; }
#cartDrawer .drawer__head .icon-btn { color: #fff; }
#cartDrawer .drawer__body { padding: .7rem 1.1rem; }
#cartDrawer .drawer__foot { padding: .8rem 1.1rem .9rem; background: #F5FBF4; }
#cartDrawer .cart-item { gap: .7rem; padding-bottom: .55rem; margin-bottom: .55rem; }
#cartDrawer .cart-item__thumb { width: 46px; height: 46px; }
#cartDrawer .cart-item__name { font-size: .83rem; }
#cartDrawer .cart-item__price { color: #075E54; font-size: .88rem; }
#cartDrawer .cart-sum { margin-bottom: .55rem; }
#cartDrawer .cart-sum__row { font-size: .85rem; padding: .08rem 0; }
#cartDrawer .cart-sum__total { margin-top: .25rem; padding-top: .4rem; }
#cartDrawer .cart-sum__total strong { font-size: 1.25rem; }
#cartDrawer .cart-who { font-size: .8rem; margin: 0 0 .6rem; }
#cartDrawer #btnCheckout { background: #25D366; border-color: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.32); }
#cartDrawer #btnCheckout:hover { background: #1da851; border-color: #1da851; }
.ck-fields { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .9rem; }
.ck-fields input { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--brand-l); font-size: .9rem; transition:.18s var(--ease); }
.ck-fields input:hover { border-color:var(--brand); background:var(--bg); }
.ck-fields input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); background: var(--bg); }

/* ============================================================================
   MODALS
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 110; visibility: hidden; overflow: hidden; }
.modal.open { visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(16,21,28,.55); backdrop-filter: blur(4px);
  opacity: 0; transition: .3s var(--ease); }
.modal.open .modal__overlay { opacity: 1; }
.modal__box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.96);
  width: min(440px, 92vw); max-height: 90vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--sh-lg);
  opacity: 0; transition: .32s var(--ease);
}
.modal.open .modal__box { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal__box--wide { width: min(560px, 92vw); }
.modal__box--product { width: min(980px, 96vw); padding: 0; max-height: 94vh; overflow-y: auto; }
#productModal .modal__x { background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.14); z-index: 6; }
.modal__box--branch { width: min(500px, 92vw); }
.modal__box--orders { width: min(560px, 94vw); }
.orders-head { margin-bottom: 1.1rem; }
.orders-head h3 { font-family: var(--font-display); font-size: 1.4rem; }
.orders-head p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.orders-body { display: flex; flex-direction: column; gap: .9rem; }
.orders-loading, .orders-empty { text-align: center; color: var(--muted); padding: 2rem 1rem; line-height: 1.55; }
.orders-empty span { font-size: .85rem; color: var(--muted-2); }
.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; background: #fff; }
.order-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .2rem; }
.order-card__id { display: flex; flex-direction: column; line-height: 1.25; }
.order-card__id strong { font-family: var(--font-display); font-size: 1rem; }
.order-card__id small { color: var(--muted); font-size: .78rem; }
.order-card__items { list-style: none; display: flex; flex-direction: column; gap: .35rem; margin: .6rem 0; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-card__items li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.order-card__items li span:first-child { color: var(--ink-soft); }
.order-card__items li span:last-child { color: var(--muted); white-space: nowrap; }
.order-card__row { display: flex; justify-content: space-between; font-size: .85rem; color: #12A150; font-weight: 600; margin-bottom: .4rem; }
.order-card__total { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.order-card__total strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--brand); }
.order-badge { font-size: .72rem; font-weight: 800; padding: .28rem .6rem; border-radius: var(--r-pill); white-space: nowrap; }
.st-nuevo { background: var(--brand-l); color: var(--brand-d); }
.st-proceso { background: #FEF3C7; color: #92400E; }
.st-entregado { background: #DCFCE7; color: #166534; }
.st-cancelado { background: #FEE2E2; color: #991B1B; }
.modal__box--flyer { width: min(760px, 94vw); padding: 0; overflow: hidden; }
.flyer { display: grid; grid-template-columns: .85fr 1.15fr; }
.flyer__side { background: linear-gradient(160deg, var(--brand), var(--brand-d)); color: #fff; padding: 2rem 1.6rem; }
.flyer__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
.flyer__brand .brand__mark { background: rgba(255,255,255,.18); box-shadow: none; }
.flyer__brand strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.flyer__side h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.flyer__benes { display: flex; flex-direction: column; gap: 1rem; }
.flyer__benes li { display: flex; gap: .7rem; align-items: flex-start; }
.flyer__benes span { font-size: 1.25rem; line-height: 1; }
.flyer__benes strong { display: block; font-size: .9rem; font-weight: 700; }
.flyer__benes p { font-size: .78rem; color: rgba(255,255,255,.82); }
.flyer__main { padding: 2.2rem 2rem; }
.tabs { display: flex; gap: .3rem; background: var(--bg-2); border-radius: var(--r-pill); padding: 4px; margin-bottom: 1.5rem; }
.tab { flex: 1; padding: .55rem; border-radius: var(--r-pill); font-weight: 700; font-size: .9rem; color: var(--muted); transition: .15s var(--ease); }
.tab.is-on { background: var(--bg); color: var(--ink); box-shadow: var(--sh-sm); }
.flyer__form h3 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.flyer__note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .2rem; }

/* Flyer login/registro — íconos, scroll y detalles (referencia) */
[hidden] { display: none !important; }
.modal__box--flyer, .flyer, .flyer__side, .flyer__main { max-height: 94vh; }
.flyer__side, .flyer__main { overflow-y: auto; }
.flyer__form { gap: .7rem; }
.flyer__title { font-size: 1.3rem; display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: .35rem; }
.flyer__badge { background: var(--brand); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .03em; padding: .25rem .55rem; border-radius: var(--r-pill); }
.flyer__lead { font-size: .84rem; color: var(--muted); line-height: 1.5; margin-bottom: .9rem; }
.ifield { position: relative; display: flex; align-items: center; }
.ifield__ico { position: absolute; left: .85rem; width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; }
.ifield input, .ifield select { width: 100%; padding-left: 2.5rem !important; }
.ifield:has(.ifield__eye) input { padding-right: 2.6rem !important; }
.ifield__eye { position: absolute; right: .55rem; color: var(--muted-2); padding: .25rem; display: grid; place-items: center; }
.ifield__eye svg { width: 18px; height: 18px; }
.ifield__eye:hover { color: var(--brand); }
.flyer__or { display: flex; align-items: center; gap: .7rem; color: var(--muted-2); font-size: .76rem; margin: .5rem 0; }
.flyer__or::before, .flyer__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.flyer__form .btn--outline { border-color: var(--brand); color: var(--brand); }
.flyer__form .btn--outline:hover { background: var(--brand); color: #fff; }
.flyer__success { text-align: center; align-items: stretch; padding-top: 1rem; }
.flyer__success-icon { width: 58px; height: 58px; margin: 0 auto .35rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-l); color: var(--green); font-size: 1.8rem; font-weight: 800; }
.flyer__success .flyer__title { justify-content: center; margin-bottom: .25rem; }
.flyer__request { padding: .7rem; border-radius: var(--r-sm); background: var(--bg-2); color: var(--ink-soft); font-size: .85rem; }
.flyer__close { background: #8A93A2; color: #fff; }
.flyer__close:hover { background: #717A8A; }
.flyer__card { margin-top: 1.4rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: .9rem 1rem; }
.flyer__card strong { display: block; font-size: .85rem; color: #fff; margin-bottom: .35rem; }
.flyer__card p { font-size: .76rem; color: rgba(255,255,255,.9); line-height: 1.45; }
.flyer__card b { color: #FFD774; }
@media (max-width: 620px) {
  .flyer { grid-template-columns: 1fr; }
  .flyer__side { display: none; }
  .flyer__main { padding: 1.6rem 1.3rem; }
}
.modal__x { position: absolute; top: 1rem; right: 1rem; z-index: 3; }
.modal__head { text-align: center; margin-bottom: 1.5rem; }
.modal__icon { font-size: 2.4rem; display: block; margin-bottom: .5rem; }
.modal__head h3 { font-size: 1.5rem; }
.modal__head p { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.modal__divider { text-align: center; position: relative; margin: 1.3rem 0; }
.modal__divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.modal__divider span { position: relative; background: var(--bg); padding: 0 .8rem; color: var(--muted); font-size: .85rem; }

/* forms */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .7rem .9rem;
  background: var(--brand-l); font-size: .92rem; transition: .18s var(--ease); resize: vertical;
}
.field input:hover, .field select:hover, .field textarea:hover { background:var(--bg); border-color:var(--brand); }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--bg); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-l); outline: none;
}
.field small { font-size: .74rem; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .82rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); margin-top: .1rem; }

/* branch list */
.branch-list { display: flex; flex-direction: column; gap: .7rem; }
.branch-list li {
  display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line);
  border-radius: var(--r-lg); cursor: pointer; transition: .2s var(--ease);
}
.branch-list li:hover { border-color: var(--brand); background: var(--brand-l); }
.branch-list li.is-active { border-color: var(--brand); background: var(--brand-l); box-shadow: var(--sh-sm); }
.branch-list .b-icon { font-size: 1.8rem; }
.branch-list strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.branch-list small { color: var(--muted); font-size: .82rem; }
.branch-list .b-check { margin-left: auto; color: var(--brand); font-weight: 800; opacity: 0; }
.branch-list li.is-active .b-check { opacity: 1; }

/* product view */
.pview { --pcolor: 130,150,180; --pimg: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pview__media { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--r-xl) 0 0 var(--r-xl); padding: .6rem;
  background: var(--pview-bg, var(--img-open-bg, var(--bg-2))); }
.pview__media::before { display: none; }
.pview__media > * { position: relative; z-index: 1; }
.gallery__main { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--r-lg);
  background: var(--pview-bg, var(--img-open-bg, var(--bg-2))); }
.gallery__main::before { display: none; }
.gallery__main .thumb-img { position: relative; z-index: 1; inset: auto; height: 100%; width: 100%; object-fit: contain; transform: none; padding: 0; }
.gallery__role { position: absolute; top: 10px; left: 10px; z-index: 3; padding: .32rem .68rem; border-radius: 999px; background: #014191; color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .02em; }
.gallery__thumbs { display: flex; gap: .6rem; overflow-x: auto; padding-top: .6rem; flex-shrink: 0; }
.gallery__thumb { width: 94px; min-height: 78px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); flex-shrink: 0; background: #eaf7ff; cursor: pointer; padding: 3px; color: var(--ink); }
.gallery__thumb.is-on { border-color: var(--brand); }
.gallery__thumb img { width: 100%; height: 52px; object-fit: contain; display: block; }
.gallery__thumb span { display: block; padding: 2px 2px 1px; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.gallery__zoom { position: absolute; z-index: 2; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(8,12,20,.55); color: #fff; display: grid; place-items: center; font-size: .95rem; pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: var(--lightbox-bg, rgba(8,12,20,.93)); display: flex; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out; animation: lbfade .18s ease; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; margin: auto; object-fit: contain; border-radius: 10px; }
.lightbox__x { position: fixed; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 1.1rem; display: grid; place-items: center; cursor: pointer; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.pview__info { padding: 2.2rem; position: relative; overflow: hidden; }
.pview__info::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--pimg); background-size: cover; background-position: center;
  filter: blur(30px) saturate(1.3); transform: scale(1.2); opacity: .5; pointer-events: none; }
.pview__info::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.72)); }
.pview__info > * { position: relative; z-index: 1; }
.pview__promo { display: inline-flex; align-items: center; gap: .4rem; margin: .2rem 0 .4rem;
  font-size: .8rem; font-weight: 700; color: var(--brand);
  background: var(--brand-l); border: 1px solid var(--brand); border-radius: var(--r-pill);
  padding: .25rem .7rem; width: fit-content; }
.pview__brand { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pview__name { font-size: 1.7rem; margin: .4rem 0; }
.pview__rate { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.pview__rate .stars { color: var(--gold); }
.pview__price { display: flex; align-items: baseline; gap: .7rem; margin: 1rem 0 .3rem; }
.pview__price .price-now { font-size: 2rem; }
.pview__desc { color: var(--ink-soft); font-size: .92rem; margin: 1.2rem 0; }
.pview__meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; font-size: .85rem; }
.pview__meta div strong { display: block; font-family: var(--font-display); }
.pview__meta div small { color: var(--muted); }
.pview__actions { display: flex; gap: .7rem; }

/* ============================================================================
   TOASTS
   ========================================================================== */
.toasts { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: .6rem; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: .5rem;
  animation: toastIn .35s var(--ease), toastOut .35s var(--ease) 2.6s forwards;
}
.toast--success { background: var(--green); }
.toast--error { background: #D92D20; }
.toast--brand { background: var(--brand); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }

.offline-status {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 190; border: 0;
  border-radius: var(--r-pill); padding: .65rem 1rem; background: var(--brand);
  color: #fff; font: inherit; font-size: .78rem; font-weight: 800;
  box-shadow: var(--sh-lg); cursor: pointer;
}
.offline-status.is-offline { background: #5f6673; }
.offline-status.has-conflict { background: #b42318; }
.order-card--offline { border: 2px dashed color-mix(in srgb, var(--brand) 50%, #fff); }
.offline-queue-summary { margin-bottom: .8rem; padding: .7rem .85rem; border-radius: var(--r-md); background: var(--brand-l); color: var(--brand-d); font-size: .84rem; font-weight: 700; }
.offline-queue-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.offline-queue-actions .btn { flex: 1; }
.offline-order-card { border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--r-lg); padding: .85rem; background: #fff; }
.offline-order-card.is-conflict,.offline-order-card.is-rejected { border-left-color: #b42318; }
.offline-order-card.is-needs-auth { border-left-color: #b7791f; }
.offline-order-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.offline-order-head strong { display: block; color: var(--ink); }
.offline-order-head small,.offline-order-meta { color: var(--muted); font-size: .78rem; }
.offline-order-badge { border-radius: var(--r-pill); padding: .25rem .55rem; font-size: .7rem; font-weight: 800; color: #fff; background: var(--brand); white-space: nowrap; }
.offline-order-card.is-conflict .offline-order-badge,.offline-order-card.is-rejected .offline-order-badge { background: #b42318; }
.offline-order-card.is-needs-auth .offline-order-badge { background: #b7791f; }
.offline-order-items { margin: .6rem 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .84rem; }
.offline-order-row { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }
.offline-order-buttons { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.offline-order-buttons .btn { width: auto; min-height: 38px; padding: .5rem .75rem; font-size: .76rem; }
.offline-delete-confirm { background: #b42318 !important; border-color: #b42318 !important; color: #fff !important; }

/* ============================================================================
   REVEAL on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .company__intro { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: 1fr 1fr; }
  .appcta__inner { grid-template-columns: 1fr; }
  .appcta__phone { display: none; }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .solutions { grid-template-columns: 1fr; }
  .solution-card { min-height: 180px; }
  .benefits {
    display:flex; grid-template-columns:none; gap:.85rem; overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none;
    padding-right:1rem; padding-bottom:1rem; transform:translateY(-18px); touch-action:pan-x pan-y;
  }
  .benefits::-webkit-scrollbar { display:none; }
  .benefits article { flex:0 0 calc(100% - 1.5rem); min-width:0; scroll-snap-align:start; scroll-snap-stop:always; }
  .hide-sm { display: none; }
  .header__inner { flex-wrap: wrap; }
  .branch__col small { display: none; }
  /* Móvil (teléfonos ≤760): cabecera minimal (menú + marca + carrito); lo demás aparece al desplazar */
  .header .branch { display: none; }
  .header .search { order: 4; flex-basis: 100%; margin-top: .5rem; }
  .header .header__actions { margin-left: auto; }                       /* empuja el carrito a la derecha */
  .header .header__actions > .btn { display: none; }                    /* oculta Mis pedidos / Cliente; el carrito (.cart-btn) queda visible */
  .header--show .branch { display: flex; }
  .header--show .search { order: 5; flex-basis: 100%; max-width: none; }
  .header--show .nav { display: flex; order: 6; flex-basis: 100%; flex-wrap: wrap; gap: .25rem; margin-top: .15rem; }
  .header--show .header__actions > .btn:not([hidden]) { display: inline-flex; }
  .toolbar { display: block; }
  .toolbar__heading { width: 100%; }
  .filter-toggle { display: inline-flex; align-items: center; }
  .toolbar__controls { display: none; width: 100%; margin-top: .7rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
  .toolbar__controls.is-open { display: flex; }
  .toolbar__controls .select { flex: 1; }
  .select select { min-width: 0; width: 100%; }
  .pview { grid-template-columns: 1fr; }
  .modal__box--product { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  #productModal .modal__x { position: fixed; top: .7rem; right: .7rem; z-index: 10; }
  .pview__media { border-radius: 0; padding: 0; background: var(--pview-bg, var(--img-open-bg, transparent)); }
  .pview__media .gallery__main { aspect-ratio: auto; width: 100%; height: calc(100dvh - 3.2rem); margin: 0; border-radius: 0; box-shadow: none; background: var(--pview-bg, var(--img-open-bg, transparent)); }
  .pview__media .gallery__thumbs { position: absolute; left: 0; right: 0; bottom: 1rem; z-index: 4; justify-content: center; padding: 0; }
  .pview__media .gallery__thumb { background: rgba(255,255,255,.92); }
  .form--grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar__controls { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .benefits { transform: translateY(-15px); }
  .hero__stats { gap: 1.4rem; }
  .section#categorias { overflow: hidden; }
  .cat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .65rem; padding: .15rem 1px .6rem; scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-card { flex: 0 0 132px; aspect-ratio: 1.15 / 1; scroll-snap-align: start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .card__name { font-size: .85rem; }
  .price-now { font-size: 1.1rem; }
  .modal__box { padding: 1.5rem; }
  .select { min-width: 0; }
  .toolbar__controls > * { min-width: 0; }
  .price-range input { width: 100%; }
}

.pwa-nav { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .pwa-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: grid; grid-template-columns: repeat(5,1fr); padding: .35rem .25rem max(.35rem,env(safe-area-inset-bottom)); background: color-mix(in srgb,var(--bg) 94%,transparent); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,20,40,.09); backdrop-filter: blur(14px); }
  .pwa-nav a,.pwa-nav button { min-width: 0; min-height: 50px; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .08rem; font: inherit; text-decoration: none; }
  .pwa-nav span { font-size: 1.15rem; line-height: 1; }
  .pwa-nav small { font-size: .65rem; font-weight: 800; }
  .pwa-nav .is-active { color: var(--brand); }
  .wa-float { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .offline-status { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ============================================================================
   MODO OSCURO  (lo activa el panel · ajustes.modo = 'oscuro')
   ========================================================================== */
body.theme-dark {
  --ink: #ECEEF5; --ink-soft: #C7CCD8; --muted: #9AA1B2; --muted-2: #6E7689;
  --line: #2B2F3B; --line-2: #242834;
  --bg: #1B1E27; --bg-2: #232734; --bg-3: #1F2330;
  --sh-sm: 0 1px 2px rgba(0,0,0,.45); --sh: 0 6px 20px rgba(0,0,0,.5); --sh-lg: 0 22px 55px rgba(0,0,0,.6);
}
body.theme-dark .header { background: rgba(20,22,30,.82); border-bottom-color: rgba(255,255,255,.08); }
body.theme-dark .search { background: var(--bg-2); }
body.theme-dark .floatcard { background: rgba(30,33,45,.92); border-color: rgba(255,255,255,.08); }
body.theme-dark .card__fav { background: rgba(28,31,42,.85); }
body.theme-dark .card__body::after { background: linear-gradient(180deg, rgba(18,20,28,.5), rgba(18,20,28,.72)); }
body.theme-dark .pview__info::after { background: linear-gradient(180deg, rgba(18,20,28,.5), rgba(18,20,28,.72)); }
body.theme-dark .gallery__thumb { background: var(--bg-2); border-color: var(--line); }
body.theme-dark .tag--promo { background: var(--bg-2); color: #fff; border-color: var(--brand); }
body.theme-dark .appcta { background: #0E1016; }
body.theme-dark .review-card, body.theme-dark .rev-card { background: var(--bg-2); }

/* ---- Tarjetas flotantes: tamaños (panel) y posiciones extra ---- */
#heroCard.fc-sm .floatcard { padding:.65rem .8rem; gap:.6rem; max-width:208px; }
#heroCard.fc-sm .floatcard__emoji { width:44px; height:44px; font-size:1.45rem; border-radius:13px; }
#heroCard.fc-sm .floatcard strong { font-size:.92rem; }
#heroCard.fc-sm .floatcard small { font-size:.68rem; }
#heroCard.fc-sm .floatcard .price { font-size:.85rem; }
#heroCard.fc-lg .floatcard { padding:1.1rem 1.25rem; gap:1rem; max-width:318px; }
#heroCard.fc-lg .floatcard__emoji { width:92px; height:92px; font-size:2.5rem; border-radius:20px; background:#eaf7ff; }
#heroCard.fc-lg .floatcard strong { font-size:1.2rem; }
#heroCard.fc-lg .floatcard .price { font-size:1.1rem; }
.floatcard--e { top: 20%; left: 31%; animation: float 5.8s var(--ease) infinite .8s; }
.floatcard--g { bottom: 24%; left: 1%;  animation: float 6.4s var(--ease) infinite 1.1s; }
.floatcard--h { top: 70%; right: 2%;    animation: float 6.1s var(--ease) infinite .4s; }

/* === FIX: el botón del carrito funciona en TODAS las plantillas (Galería incluida) === */
body.skin-overlay .card__add{position:absolute;top:auto;left:auto;right:.6rem;bottom:.6rem;z-index:4;width:40px;height:40px;border-width:2px;box-shadow:0 4px 14px rgba(0,0,0,.4)}
body.skin-overlay .card__add svg{width:18px;height:18px}
body.skin-overlay .card__name{padding-right:2.4rem}
body.cart-off .card__add{display:none!important}          /* apagarlo desde el panel SIEMPRE gana */
/* === Botón flotante de WhatsApp: interruptor y posición desde el panel === */
body.wa-off .wa-float{display:none!important}
body.wa-left .wa-float{right:auto;left:1.4rem}

/* corazón con líneas rosa (las líneas siguen tu 'Color del corazón' si lo defines) */
.card__fav:not(.is-fav){ color: var(--fav-color, #ff4d8d); }
.card__fav:not(.is-fav) svg{ stroke: currentColor; }

/* ===== Dropdown de busqueda estilo Google ===== */
.search-drop{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--bg,#fff);border:1px solid var(--line,#e5e5e5);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.14);overflow:hidden;z-index:120;max-height:70vh;overflow-y:auto}
.search-drop[hidden]{display:none}
.search-drop__item{display:flex;align-items:center;gap:.7rem;width:100%;padding:.6rem .8rem;background:none;border:none;border-bottom:1px solid var(--line,#eee);cursor:pointer;text-align:left}
.search-drop__item:last-child{border-bottom:none}
.search-drop__item:hover{background:var(--brand-l,#fbe9f1)}
.search-drop__thumb{width:46px;height:46px;border-radius:10px;overflow:hidden;flex-shrink:0;display:grid;place-items:center;background:var(--bg-2,#f4f4f4)}
.search-drop__thumb img{width:100%;height:100%;object-fit:cover}
.search-drop__ph{font-size:1.3rem}
.search-drop__txt{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1}
.search-drop__name{font-weight:600;font-size:.92rem;color:var(--ink,#1a1a1a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-drop__meta{font-size:.78rem;color:var(--muted-2,#888)}
.search-drop__price{font-weight:700;color:var(--brand,#d6336c);white-space:nowrap;font-size:.9rem}
.search-drop__empty{padding:1rem;text-align:center;color:var(--muted-2,#888);font-size:.9rem}


/* ===== Buscador movil con lupa ===== */
.header__searchtoggle{display:none;width:44px;height:44px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
.header__searchtoggle:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-l)}
.header__searchtoggle svg{width:22px;height:22px}
@media (max-width:760px){
  .header__searchtoggle{display:grid;place-items:center}
  .header .search{display:none}
  .header.search-open .search{display:flex;order:9;flex-basis:100%;max-width:none;margin-top:.55rem}
  .header.search-open .header__searchtoggle{border-color:var(--brand);color:var(--brand);background:var(--brand-l)}
}

/* ===== Ajuste cabecera movil: una sola fila, compacta y elegante ===== */
@media (max-width:760px){
  .header__inner{flex-wrap:wrap;gap:.5rem;padding:.6rem .8rem}
  .brand{flex:1;min-width:0}
  .brand__mark--img{width:178px;height:46px}.brand__mark--text{max-width:178px;height:46px;font-size:clamp(.95rem,4vw,1.25rem)}
  .brand__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .header__menu,.header__searchtoggle{width:40px;height:40px;flex-shrink:0}
  .header__actions{gap:.4rem;margin-left:0;flex-shrink:0}
  .cart-btn{width:40px;height:40px;flex-shrink:0}
  /* La barra desplegada ocupa toda la fila inferior */
  .header.search-open .search{display:flex;order:9;flex-basis:100%;max-width:none;margin-top:.5rem}
}

/* ===== Movil: cabecera fija reforzada + carrito flotante ===== */
@media (max-width:760px){
  .header{position:sticky;position:-webkit-sticky;top:0;z-index:200}
  /* Saca el carrito de la cabecera y lo hace flotante abajo-derecha */
  .header .header__actions .cart-btn{
    position:fixed;top:74px;right:14px;z-index:190;
    width:52px;height:52px;border-radius:50%;
    box-shadow:0 8px 22px var(--brand-glow,rgba(214,51,108,.4));
  }
  .header .header__actions .cart-btn svg{width:24px;height:24px}
}

/* ===== Carrito flotante 3D (estilo WhatsApp) ===== */
@media (max-width:760px){
  .header .header__actions .cart-btn{
    background:var(--brand,#d6336c);
    color:#fff;
    box-shadow:0 6px 16px rgba(214,51,108,.45), 0 2px 6px rgba(0,0,0,.18), inset 0 1px 2px rgba(255,255,255,.35);
    transition:transform .18s ease, box-shadow .18s ease;
    animation:cartPop .35s ease;
  }
  .header .header__actions .cart-btn:active{
    transform:scale(.92);
    box-shadow:0 3px 10px rgba(214,51,108,.4), inset 0 2px 5px rgba(0,0,0,.2);
  }
  .header .header__actions .cart-btn svg{color:#fff;stroke:#fff}
}
@keyframes cartPop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}

/* ===== RESET cabecera movil: todo en su sitio, ordenado ===== */
@media (max-width:760px){
  /* Carrito vuelve a la cabecera (anula el flotante) */
  .header .header__actions .cart-btn{
    position:static;top:auto;right:auto;
    width:42px;height:42px;border-radius:13px;
    animation:none;
  }
  /* Cabecera en una fila: menu, marca, lupa, carrito */
  .header__inner{flex-wrap:wrap;gap:.5rem;align-items:center}
  .brand{flex:1;min-width:0}
  .header__menu,.header__searchtoggle{width:42px;height:42px;flex-shrink:0}
  .header__actions{gap:.45rem;margin-left:0;flex-shrink:0}
  /* Barra de busqueda: limpia, ocupa toda la fila al abrir */
  .header .search{display:none}
  .header.search-open .search{display:flex;order:9;flex-basis:100%;max-width:none;margin-top:.55rem;box-shadow:none}
  .header.search-open .search kbd{display:none}
}

/* ===== RESET cabecera movil: todo en su sitio, ordenado ===== */
@media (max-width:760px){
  .header .header__actions .cart-btn{position:static;top:auto;right:auto;width:42px;height:42px;border-radius:13px;animation:none}
  .header__inner{flex-wrap:wrap;gap:.5rem;align-items:center}
  .brand{flex:1;min-width:0}
  .header__menu,.header__searchtoggle{width:42px;height:42px;flex-shrink:0}
  .header__actions{gap:.45rem;margin-left:0;flex-shrink:0}
  .header .search{display:none}
  .header.search-open .search{display:flex;order:9;flex-basis:100%;max-width:none;margin-top:.55rem;box-shadow:none}
  .header.search-open .search kbd{display:none}
}

/* ===== Fix: X del carrito visible al hover ===== */
#cartDrawer .drawer__head .icon-btn:hover{background:rgba(255,255,255,.22);color:#fff}
#cartDrawer .drawer__head .icon-btn:hover svg{stroke:#fff}

/* ===== Fix: quitar recuadro feo de la barra de busqueda ===== */
.search input:focus,.search input:focus-visible{outline:none;border-radius:0}
.search:focus-within{box-shadow:0 0 0 3px var(--brand-l)}

/* ===== Movil: cabecera FIJA real + capas ordenadas ===== */
@media (max-width:760px){
  /* fixed se mantiene clavada aunque aparezca/desaparezca la barra del navegador */
  .header{position:fixed;top:0;left:0;right:0;z-index:300;width:100%}
  /* empuja el contenido para que no quede oculto bajo la cabecera fija */
  body{padding-top:64px}
  /* el cajon del carrito por encima de todo (cubre la cabecera al abrir) */
  #cartDrawer.drawer{z-index:400}
}

/* ===== Fix movil: contador carrito dentro + nombre adaptable ===== */
@media (max-width:760px){
  /* contador pegado a la esquina del carrito, sin salirse */
  .header .header__actions .cart-btn{position:relative;overflow:visible}
  .header .header__actions .cart-btn__count{top:-4px;right:-4px;min-width:18px;height:18px;font-size:.65rem;border-width:1.5px}
  /* nombre de la marca: mas grande y que use el espacio disponible */
  .brand{flex:1;min-width:0}
  .brand__text{font-size:1.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ===== Fix: anclas no tapadas por la cabecera fija ===== */
#inicio,#nosotros,#soluciones,#ofertas,#app,#contacto,#categorias,#catalogo{scroll-margin-top:110px}

/* ===== Tema Condimplast: composición móvil sin desbordes ===== */
@media (max-width:760px){
  .topbar{position:fixed;top:0;left:0;right:0;z-index:310;height:38px}
  .header{top:38px}
  body{padding-top:102px}
  .hero__content,.company__intro>*,.company__copy{min-width:0}
  .hero__title{overflow-wrap:anywhere}
  .hero__cta{display:grid;grid-template-columns:1fr}
  .hero__cta .btn{width:100%;white-space:normal}
  .hero__stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}
  .company__intro h2{overflow-wrap:anywhere}
}
@media (max-width:480px){
  .hero__title{font-size:clamp(2rem,10vw,2.55rem)}
}

/* ===== Menú móvil estable: apertura intencional, sin cierre provocado por el scroll ===== */
@media (max-width:760px){
  .header.header--show{box-shadow:0 16px 34px rgba(25,20,45,.16)}
  .header--show .header__inner{padding-bottom:.8rem}
  .header--show .branch{display:flex;order:5;flex:1 1 calc(50% - .5rem);min-width:0;justify-content:center}
  .header--show .nav{display:flex;order:7;flex:1 0 100%;gap:.35rem;padding:.45rem;border:1px solid var(--line);border-radius:16px;background:var(--bg)}
  .header--show .nav a{flex:1;text-align:center;background:var(--bg-2)}
  .header--show .header__actions>.btn:not([hidden]){display:inline-flex}
  .header--show .header__menu{border-color:var(--brand);color:var(--brand);background:var(--brand-l)}
  .header--show .header__menu svg path{stroke-width:2.2}
  .header--show .branch,.header--show .nav,.header--show .header__actions>.btn:not([hidden]){animation:mobileMenuEnter .2s var(--ease) both}
}
@keyframes mobileMenuEnter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.header--show .branch,.header--show .nav,.header--show .header__actions>.btn:not([hidden]){animation:none}}

/* ===== Selectores de variante en la ficha del producto ===== */
.vgroup{margin:.8rem 0}
.vgroup__lbl{display:block;font-size:.85rem;font-weight:700;color:#374151;margin-bottom:.45rem}
.vgroup__opts{display:flex;flex-wrap:wrap;gap:.5rem}
.vopt{
  padding:.5rem .9rem;border:1.5px solid #d1d5db;border-radius:10px;
  background:#fff;color:#374151;font-size:.9rem;font-weight:600;cursor:pointer;
  transition:.15s;line-height:1;
}
.vopt:hover{border-color:#075E54;color:#075E54}
.vopt.is-sel{background:#075E54;border-color:#075E54;color:#fff}


/* Controles de navegación de producto y visor. */

.cp-product-back {
  position: sticky;
  top: 0;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 44px;
  margin: 0 0 .75rem;
  padding: .65rem .9rem;
  border-radius: .75rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  color: var(--brand, #014191);
  font-weight: 900;
  box-shadow: 0 10px 25px var(--brand-glow);
}

.cp-product-back:active {
  transform: translateY(1px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,10,15,.92);
  display: grid;
  place-items: center;
  padding: 18px;
}

.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox__x {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

@media (max-width: 720px) {
  .cp-product-back {
    width: 100%;
    border-radius: .65rem;
    margin-top: env(safe-area-inset-top);
  }
}


/* El visor se cierra tocando fuera de la imagen; no duplica controles. */
.lightbox__x {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Control operativo publicado desde Ajustes. */
.store-maintenance{min-height:100vh;display:grid;place-items:center;padding:clamp(1.5rem,5vw,5rem);background:radial-gradient(circle at 82% 15%,rgba(7,149,232,.22),transparent 30%),linear-gradient(145deg,#eef7ff,#fff 55%,#eaf4ff)}
.store-maintenance[hidden]{display:none!important}.store-maintenance__card{width:min(720px,100%);padding:clamp(2rem,6vw,4.5rem);text-align:center;background:#fff;border:1px solid #cfe2f6;border-radius:32px;box-shadow:0 30px 90px rgba(1,65,145,.18)}
.store-maintenance__card img{max-width:min(100%,340px);height:auto;object-fit:contain}.store-maintenance__card>span{display:block;margin:1.4rem 0 .6rem;color:#0676b8;font-size:.78rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.store-maintenance__card h1{margin:0;color:#06336b;font-size:clamp(2rem,5vw,3.8rem);line-height:1.04}.store-maintenance__card p{max-width:560px;margin:1.1rem auto 1.8rem;color:#52647b;font-size:clamp(1rem,2vw,1.2rem);line-height:1.65}
body.storefront-maintenance> :not(#storeMaintenance):not(script):not(style){display:none!important}
body.storefront-no-checkout .cart-btn,body.storefront-no-checkout [data-add],body.storefront-no-checkout [data-pwa-action="cart"],body.storefront-no-checkout #btnCheckout,body.storefront-no-checkout .cart-coupon{display:none!important}
body.storefront-hide-prices .search-drop__price,body.storefront-hide-prices .card__price .price-now,body.storefront-hide-prices .card__price .price-old,body.storefront-hide-prices .price-may,body.storefront-hide-prices .pview__price,body.storefront-hide-prices .cart-item__price,body.storefront-hide-prices .cart-sum,body.storefront-hide-prices .pc__price{display:none!important}
body.storefront-hide-stock .stock-toggle,body.storefront-hide-stock .tag--low,body.storefront-hide-stock .pview__meta>div:first-child{display:none!important}
body.storefront-hide-topbar #topbar,body.storefront-hide-floatcards #heroCard,body.storefront-hide-benefits #benefitsRow,body.storefront-hide-offers #ofertas,body.storefront-hide-app #app,body.storefront-hide-reviews #resenas{display:none!important}
body.storefront-no-registration #tabRegister,body.storefront-no-registration #btnGoRegister,body.storefront-no-registration #registerForm{display:none!important}
