/* =========================================================
   ESTILOS GENERALES — StoreShop
   Colores y tipografía en variables: cámbialas aquí y se
   actualiza todo el sitio.
   Colores de marca (tomados del logo):
     azul  #0470DD · verde #97D71F · azul marino #273848
   ========================================================= */
:root {
  --bg: #f5f8fc;
  --bg-alt: #e9f0f8;
  --surface: #ffffff;
  --ink: #273848;           /* azul marino del logo */
  --ink-soft: #465a6e;
  --muted: #5f7185;
  --line: #d9e3ee;
  --accent: #0470dd;        /* azul de marca, botón principal */
  --accent-ink: #ffffff;
  --accent-dark: #035cb8;
  --brand-blue: #0470dd;
  --brand-green: #97d71f;
  --brand-mid: #3390a2;
  --brand-grad: linear-gradient(120deg, #0470dd 0%, #3390a2 48%, #97d71f 100%);
  --ok: #2f8a4f;
  --danger: #c0392b;

  --font: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px -12px rgba(20, 35, 55, .25);
  --header-h: 72px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.display { font-size: clamp(44px, 8.5vw, 112px); font-weight: 300; letter-spacing: -.025em; }
.h2 { font-size: clamp(30px, 4vw, 46px); }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); font-weight: 300; }
/* evita que el contenido de una celda de grid desborde la pantalla */
.intro-grid > *, .product-grid > *, .cat-grid > *, .trust > *, .footer-grid > *, .checkout > *, .contact-grid > *, .pdp > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent;
  font-weight: 500; font-size: 15px; letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-inner {
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand img { height: 44px; width: auto; }
/* Logo claro sobre fotos/fondos oscuros; oscuro cuando el encabezado es blanco */
.brand .logo-dark { display: none; }
.site-header.is-solid .brand .logo-dark { display: block; }
.site-header.is-solid .brand .logo-light { display: none; }
.main-nav { display: flex; gap: 34px; }
.main-nav a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; padding: 6px 0; }
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a.is-active { font-weight: 600; }
.header-actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; position: relative; }
.icon-btn:hover { background: rgba(127,127,127,.12); }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.only-mobile { display: none; }
main { min-height: 60vh; }
.page-top { padding-top: var(--header-h); }

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .only-mobile { display: inline-grid; }
  .hide-mobile { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand img { height: 36px; }
  .main-nav {
    position: fixed; inset: 0; z-index: 60;
    background: var(--bg); color: var(--ink);
    flex-direction: column; justify-content: center; align-items: center; gap: 22px;
    transform: translateX(-100%); transition: transform .35s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 22px; letter-spacing: .06em; text-transform: none; font-weight: 300; }
  .nav-close { position: absolute; top: 10px; left: var(--gutter); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 860px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: #1d2b3a;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,28,44,.55) 0%, rgba(15,28,44,.05) 30%, rgba(15,28,44,.2) 55%, rgba(15,28,44,.78) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 8vw, 96px); }
.hero-content .eyebrow { color: rgba(255,255,255,.85); margin-bottom: 14px; }
.hero-content p.lead { color: rgba(255,255,255,.9); max-width: 520px; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- intro + destacados (como la referencia) ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.intro-grid h2 { position: sticky; top: calc(var(--header-h) + 24px); }
.intro-grid .intro-copy p { margin-top: 18px; max-width: 360px; }
.intro-grid .intro-copy .link-arrow { margin-top: 26px; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid h2 { position: static; }
}

/* ---------- tarjetas de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid, .product-grid.cols-2 { grid-template-columns: 1fr; } }

.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #f7f9fc; border-radius: var(--radius); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .6s ease; mix-blend-mode: multiply; }
.product-card:hover .product-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
}
.product-info { display: flex; flex-direction: column; gap: 2px; }
.product-name { font-size: 17px; font-weight: 400; }
.product-price { display: flex; gap: 10px; align-items: baseline; color: var(--ink-soft); }
.product-price s { color: var(--muted); font-size: 14px; }
.add-btn { align-self: flex-start; }

.soon-card {
  aspect-ratio: 1; border-radius: var(--radius);
  background: var(--tono, var(--bg-alt));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px;
}
.soon-icon { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(39,56,72,.25); display: grid; place-items: center; margin-bottom: 8px; }
.soon-card strong { font-weight: 400; font-size: 20px; }

/* ---------- categorías grandes ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: clamp(320px, 44vw, 560px);
  display: flex; align-items: flex-end; padding: clamp(20px, 3vw, 36px);
  color: #fff; background: var(--ink);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55)); }
.cat-tile > div { position: relative; z-index: 1; }
.cat-tile h3 { font-size: clamp(28px, 3.4vw, 40px); }
.cat-tile p { opacity: .85; margin-top: 4px; }
.cat-tile.is-soon { color: var(--ink); background: var(--tono); }
.cat-tile.is-soon::after { display: none; }
.cat-tile.is-soon .soon-mosaic { position: absolute; inset: 0; display: grid; place-items: center; }
.cat-tile.is-soon .soon-mosaic .row { display: flex; gap: 18px; }
.cat-tile.is-soon .soon-mosaic span {
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(39,56,72,.22);
  display: grid; place-items: center; background: rgba(255,255,255,.35);
}
.cat-tile.is-soon .soon-mosaic svg { width: 30px; height: 30px; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border: 1px solid currentColor; border-radius: 99px; margin-bottom: 12px; }
@media (max-width: 720px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- barra de confianza ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.trust-item { display: flex; gap: 14px; align-items: center; }
.trust-item svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.trust-item strong { display: block; font-weight: 500; }
.trust-item span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .trust { grid-template-columns: 1fr; } }

/* ---------- boletín ---------- */
.newsletter {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(4,112,221,.45), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(151,215,31,.30), transparent 60%),
    #1b2a3a;
}
.newsletter::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 14px);
}
.newsletter .container { position: relative; }
.newsletter p { opacity: .85; margin: 10px 0 28px; }
.inline-form { display: flex; max-width: 460px; margin: 0 auto; }
.inline-form input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff; color: var(--ink); }
.inline-form .btn { border-radius: 0 var(--radius) var(--radius) 0; min-height: 50px; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 22px; }

/* ---------- nosotros / contacto ---------- */
.about { max-width: 760px; margin: 0 auto; }
.about h2 { margin-bottom: 36px; }
.about p { color: var(--ink-soft); margin-bottom: 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact-grid .contact-lines { margin-top: 32px; display: grid; gap: 8px; font-size: 18px; font-weight: 500; }
.contact-lines a { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- formularios ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--ink-soft); }
.field label small { color: var(--accent); font-size: 12px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 2px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0;
  transition: border-color .2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.boxed input, .field.boxed select, .field.boxed textarea { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: #fff; }
.field.boxed input:focus, .field.boxed select:focus, .field.boxed textarea:focus { border-color: var(--ink); }
.field .err { color: var(--danger); font-size: 13px; min-height: 0; }
.field.invalid input, .field.invalid select { border-color: var(--danger) !important; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- catálogo ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head p { margin-top: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 99px;
  padding: 8px 16px; font-size: 14px; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: .6; margin-left: 4px; }
.search { position: relative; }
.search input { height: 42px; border: 1px solid var(--line); border-radius: 99px; padding: 0 16px 0 40px; background: #fff; width: 240px; max-width: 100%; }
.search svg { position: absolute; left: 13px; top: 11px; width: 19px; height: 19px; color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty .soon-icon { margin: 0 auto 16px; }
@media (max-width: 560px) { .search, .search input { width: 100%; } }

/* ---------- detalle de producto ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); padding-top: calc(var(--header-h) + 32px); }
.gallery-main { aspect-ratio: 1; background: #f7f9fc; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; background: #fff; }
.thumbs button.is-active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.pdp-info .price { font-size: 28px; font-weight: 400; display: flex; gap: 12px; align-items: baseline; }
.pdp-info .price s { font-size: 18px; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 48px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; display: grid; place-items: center; }
.qty button svg { width: 16px; height: 16px; }
.qty input { width: 40px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.mini-trust { display: grid; gap: 10px; padding: 18px; background: var(--bg-alt); border-radius: var(--radius); font-size: 14px; }
.mini-trust div { display: flex; gap: 10px; align-items: center; }
.mini-trust svg { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp-info { position: static; } }

/* ---------- carrito / checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.panel { background: #fff; border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 22px; font-weight: 400; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; display: grid; place-items: center; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 76px; height: 76px; object-fit: contain; background: var(--bg); border-radius: var(--radius); }
.cart-line .name { font-weight: 500; }
.cart-line .controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart-line .qty { height: 38px; }
.cart-line .qty button { width: 34px; }
.cart-line .remove { border: 0; background: none; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.cart-line .remove svg { width: 16px; height: 16px; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 20px; font-weight: 500; }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .2s; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.pay-opt input { margin-top: 5px; accent-color: var(--ink); }
.pay-opt strong { font-weight: 500; display: block; }
.pay-opt span { font-size: 14px; color: var(--muted); }
.pay-opt.disabled { opacity: .5; cursor: not-allowed; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }
.cart-line > * { min-width: 0; }
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 64px 1fr; gap: 12px; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line > strong { grid-column: 2; }
}

.success { max-width: 620px; margin: 0 auto; text-align: center; }
.success h2 { justify-content: center; margin-bottom: 0; }
.success .ok-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 24px; }
.success .ok-icon svg { width: 36px; height: 36px; }
.order-no { display: inline-block; font-family: ui-monospace, monospace; font-size: 18px; background: #fff; border: 1px dashed var(--line); padding: 8px 16px; border-radius: var(--radius); margin: 16px 0 24px; }

/* ---------- pie ---------- */
.site-footer { background: #1b2a3a; color: #c9d3de; padding: 64px 0 28px; margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-grad); }
.site-footer .brand img { height: 48px; }
.site-footer .brand .logo-dark { display: none; }
.site-footer .brand .logo-light { display: block; }
.site-footer .muted { color: #93a3b5; margin-top: 14px; max-width: 280px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: #fff; margin-bottom: 14px; }
.footer-grid a, .footer-grid span { display: block; margin-bottom: 8px; font-size: 15px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #334558; margin-top: 44px; padding-top: 22px; font-size: 13px; color: #8395a8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- flotantes ---------- */
/* Botón de WhatsApp: late y lanza ondas para llamar la atención.
   Para calmarlo, sube la duración (1.6s) o quita .wa-ring */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,.7);
  animation: wa-beat 1.6s ease-in-out infinite;
}
.wa-float:hover { animation-play-state: paused; }
.wa-float:hover .wa-ring { animation-play-state: paused; opacity: 0; }
.wa-float svg { width: 30px; height: 30px; position: relative; }
.wa-ring {
  position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  z-index: -1; animation: wa-ring 1.6s ease-out infinite;
}
.wa-ring.r2 { animation-delay: .8s; }
@keyframes wa-ring {
  0%   { transform: scale(1);   opacity: .75; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes wa-beat {
  0%, 100% { scale: 1;    filter: brightness(1); }
  14%      { scale: 1.14; filter: brightness(1.18); }
  28%      { scale: 1;    filter: brightness(1); }
  42%      { scale: 1.1;  filter: brightness(1.12); }
  60%      { scale: 1;    filter: brightness(1); }
}
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  transform: translate(-50%, 140%); transition: transform .35s ease;
  background: var(--ink); color: #fff; border-radius: 99px;
  padding: 10px 12px 10px 18px; display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); font-size: 14px;
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #7ad19b; flex: none; }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast a { background: #fff; color: var(--ink); border-radius: 99px; padding: 6px 14px; font-weight: 500; white-space: nowrap; }

/* ---------- animación ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* con "reducir movimiento" el botón no late, pero las ondas siguen (más lentas) */
  .wa-float { animation: none; }
  .wa-ring { animation-duration: 2.6s; }
  .wa-ring.r2 { animation-delay: 1.3s; }
}
.skeleton { background: linear-gradient(90deg, var(--bg-alt), #f3f6fa, var(--bg-alt)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- detalles de marca ---------- */
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow.brand-eyebrow { color: var(--accent); }

/* ---------- ficha: modo de uso e ingredientes ---------- */
.pdp-more { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pdp-more details { border-bottom: 1px solid var(--line); }
.pdp-more summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 500; position: relative; }
.pdp-more summary::-webkit-details-marker { display: none; }
.pdp-more summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.pdp-more details[open] summary::after { transform: rotate(45deg); }
.pdp-more details > div { padding: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.pdp-more .inci { font-size: 13px; line-height: 1.7; color: var(--muted); letter-spacing: .01em; }

/* ---------- términos y condiciones ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 9vw, 120px); }
.legal > * { min-width: 0; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; font-size: 14px; }
.legal-toc strong { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--accent); }
.legal-doc { max-width: 760px; }
.legal-doc section { padding-top: 8px; margin-bottom: 34px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-doc h2 { font-size: clamp(21px, 2.2vw, 25px); font-weight: 500; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.legal-doc h2 .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; transform: translateY(-2px); }
.legal-doc p, .legal-doc li { color: var(--ink-soft); }
.legal-doc p + p { margin-top: 10px; }
.legal-doc ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin-top: 12px; }
.legal-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.legal-card dt { color: var(--muted); font-size: 14px; }
.legal-card dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.legal-note { font-size: 14px; background: var(--bg-alt); border-radius: var(--radius); padding: 12px 16px; margin-top: 12px; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 520px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-card dl { grid-template-columns: 1fr; gap: 0; }
  .legal-card dd { margin-bottom: 8px; }
}
