/* =============================================================
   CasaVigía — styles.css
   Archetype: Editorial Light Cream (adaptado a tienda de 1 producto)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f8f3ee;   /* crema cálida (estilo lurestoo) */
  --bg-2:      #f1e7df;   /* arena clara */
  --paper:     #fffdfc;   /* tarjeta */
  --ink:       #463a34;   /* marrón cálido (titulares) */
  --ink-soft:  #5a4a44;   /* texto */
  --ink-mute:  #8e817b;   /* texto secundario */
  --accent:    #d98b73;   /* terracota suave */
  --accent-d:  #c97c66;
  --accent-l:  #e6a98f;
  --honey:     #e0a955;   /* dorado (estrellas) */
  --honey-d:   #c4892f;
  --danger:    #c0502f;
  --line:      rgba(70,58,52,0.13);
  --line-2:    rgba(70,58,52,0.07);

  --serif: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1180px;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(29,27,22,0.06);
  --shadow:    0 18px 50px -20px rgba(29,27,22,0.28);
  --shadow-lg: 0 40px 90px -30px rgba(29,27,22,0.40);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.4rem);
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.015em; font-weight: 600; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.025em; }
h1 em, h2 em { font-style: normal; color: var(--accent); font-weight: 800; }

.kicker {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.section-head .kicker { display: block; margin-bottom: .9rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }

.stars { color: var(--honey); letter-spacing: .08em; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  transition: transform .35s var(--ease-out), background-color .3s var(--ease-out), box-shadow .35s var(--ease-out), color .3s;
  will-change: transform;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(217,139,115,.8); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(217,139,115,.85); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

/* precios */
.price-now { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); }
.price-old { color: var(--ink-mute); text-decoration: line-through; font-size: 1.1rem; }
.price-tag {
  background: var(--honey); color: #2a1f08; font-weight: 700;
  font-size: .82rem; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .02em;
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Barra de aviso --- */
.topbar {
  background: var(--accent);
  color: #f3ecdf;
  font-size: .82rem;
  letter-spacing: .04em;
  overflow: hidden;
  white-space: nowrap;
}
.topbar-track {
  display: flex; width: max-content; gap: 1.1rem; align-items: center;
  padding: .55rem 0;
  animation: marquee 55s linear infinite;
  will-change: transform;
}
.topbar-track .sep { opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: .9rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: none; gap: 1.6rem; margin-left: auto; font-weight: 500; }
.nav-links a { color: var(--ink-soft); position: relative; padding: .2rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: auto; padding: .62rem 1.2rem; }
.nav-links + .nav-cta { margin-left: 0; }
.nav.is-scrolled {
  background: rgba(255,253,249,0.82);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(29,27,22,.5);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(255,253,249,0.7); backdrop-filter: blur(14px) saturate(160%); }
}

/* --- Hero --- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); overflow: clip; }
.hero-glow {
  position: absolute; z-index: 0;
  top: -10%; right: -10%; width: 70%; height: 90%;
  background: radial-gradient(45% 45% at 60% 40%, rgba(47,179,156,.30), transparent 70%),
              radial-gradient(40% 40% at 80% 70%, rgba(211,154,60,.22), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
.hero-copy .kicker { margin-bottom: 1.1rem; }
.hero-title { font-size: clamp(2.4rem, 7.5vw, 4.6rem); line-height: 1.02; text-wrap: balance; }
.hero-sub { margin-top: 1.3rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; }
.hero-price { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-proof { margin-top: 1.5rem; color: var(--ink-soft); font-size: .96rem; }
.hero-proof strong { color: var(--ink); }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-product { width: min(82%, 420px); filter: drop-shadow(0 40px 50px rgba(29,27,22,.28)); }
.hero-photo { width: min(94%, 470px); aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); background: var(--paper); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.hero-chip {
  position: absolute; background: var(--paper); box-shadow: var(--shadow);
  border-radius: 999px; padding: .5rem .9rem; font-size: .85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line-2);
}
.chip-live { top: 8%; left: 0%; }
.chip-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(192,80,47,.6); animation: pulse 1.8s infinite; }
.chip-alert { bottom: 10%; right: 0%; color: var(--accent-d); }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(192,80,47,.5);} 70%{ box-shadow: 0 0 0 9px rgba(192,80,47,0);} 100%{ box-shadow:0 0 0 0 rgba(192,80,47,0);} }

/* --- Tira de confianza --- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
.trust-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.3rem 1rem; gap: .15rem;
}
.trust-item strong { font-size: 1.02rem; }
.trust-item span { color: var(--ink-mute); font-size: .85rem; }

/* --- Secciones genéricas --- */
.section { padding-block: clamp(2.8rem, 8vw, 8rem); }
.section-alt { background: var(--bg-2); }

/* --- Cards 3 (miedos) --- */
.cards-3 { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.fear-card {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.fear-ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(217,139,115,.1); color: var(--accent); margin-bottom: .85rem; }
.fear-ico svg { width: 30px; height: 30px; }
.fear-card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.fear-card p { color: var(--ink-soft); }

/* --- Cómo funciona --- */
.how-grid { display: grid; gap: clamp(2rem,5vw,4rem); align-items: center; }
.steps { display: grid; gap: 1.5rem; margin: 2rem 0; }
.steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-n {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--accent); color: #fff; font-family: var(--serif);
}
.steps h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.steps p { color: var(--ink-soft); }
.how-visual { display: grid; place-items: center; }
.phone-wrap { width: min(70%, 280px); filter: drop-shadow(0 40px 60px rgba(29,27,22,.32)); }
.how-photo { width: 100%; max-width: 460px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-2); }

/* --- Características --- */
.features { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.feature {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.feat-ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 13px; background: rgba(217,139,115,.1); color: var(--accent);
  margin-bottom: 1rem;
}
.feat-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); font-size: .96rem; }

@media (hover: hover) {
  .fear-card:hover, .feature:hover { box-shadow: var(--shadow); border-color: var(--line); }
}

/* --- Casos de uso --- */
.usecase-grid { display: grid; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.usecase-copy .kicker { display:block; margin-bottom:.8rem; }
.usecase-copy h2 { font-size: clamp(1.8rem,4.4vw,2.8rem); }
.usecase-copy > p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }
.ticks { margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: rgba(217,139,115,.12); color: var(--accent);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.usecase-visual .scene { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.paw-card {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(150deg, #bcd2cd, #8aa6a0); box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden;
}
.paw-emoji { font-size: clamp(4rem, 14vw, 7rem); filter: drop-shadow(0 10px 16px rgba(0,0,0,.2)); }
.paw-feed {
  position: absolute; top: .9rem; left: .9rem;
  background: rgba(21,18,14,.78); color: #fff; font-size: .8rem; font-weight: 600;
  padding: .4rem .75rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem;
}
.paw-feed .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }

/* --- Estadísticas --- */
.stats { background: var(--ink); color: #f3ecdf; padding-block: clamp(2.5rem,6vw,4rem); }
.stats-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; text-align: center; }
.stat-n { display: block; font-family: var(--serif); font-size: clamp(2.2rem,6vw,3.2rem); color: var(--accent-l); line-height: 1; }
.stat-l { display: block; margin-top: .5rem; color: #cabfab; font-size: .9rem; letter-spacing: .02em; }

/* --- Opiniones --- */
.rating-line { display: flex; align-items: center; gap: .5rem; }
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 1rem; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.reviews::-webkit-scrollbar { height: 6px; }
.reviews::-webkit-scrollbar-track { background: transparent; }
.reviews::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
.review {
  scroll-snap-align: start; background: var(--ink); color: #f4ece4;
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.review-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; display: block; background: var(--bg-2); }
.review-body { padding: 1.15rem 1.25rem 1.35rem; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.review-name { font-weight: 700; color: #fff; font-size: .98rem; }
.review .stars { font-size: .9rem; }
.review-verified { display: inline-block; margin-top: .25rem; color: #9cc79a; font-size: .8rem; font-weight: 600; }
.review blockquote { margin-top: .75rem; font-style: italic; font-size: 1rem; line-height: 1.55; color: #e7e0d3; }
.reviews-hint { text-align: center; color: var(--ink-mute); font-size: .85rem; margin-top: .7rem; }

/* --- Comprar (oferta + formulario) --- */
.buy-grid { display: grid; gap: clamp(1.6rem,4vw,2.6rem); align-items: start; }
.offer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.4rem); box-shadow: var(--shadow-sm); }
.offer .kicker { display:block; margin-bottom:.7rem; }
.offer h2 { font-size: clamp(1.7rem,4vw,2.4rem); }
.offer-price { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; flex-wrap: wrap; }
.offer-price .price-now { font-size: 2.3rem; }
.includes { display: grid; gap: .7rem; margin-bottom: 1.3rem; }
.includes li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); }
.includes li::before { content:"✓"; position:absolute; left:0; color: var(--accent); font-weight:700; }
.stock-note { font-weight: 600; color: var(--honey-d); font-size: .95rem; }

.order { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.2rem); box-shadow: var(--shadow); }
.order-form h3, .order-success h3 { font-size: 1.4rem; margin-bottom: 1.2rem; font-family: var(--serif); }
.qty { margin-bottom: 1.3rem; }
.qty-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .55rem; }
.qty-options { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.qty-options.cols-2 { grid-template-columns: repeat(2,1fr); }
.qty-options label { cursor: pointer; }
.qty-options input { position: absolute; opacity: 0; pointer-events: none; }
.qty-options span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  height: 100%; padding: .7rem .4rem; border: 1.5px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: .92rem; transition: border-color .25s, background-color .25s, transform .25s;
}
.qty-options span small { font-weight: 500; color: var(--ink-mute); font-size: .78rem; }
.qty-options label:hover span { border-color: var(--ink-mute); }
.qty-options input:checked + span { border-color: var(--accent); background: rgba(217,139,115,.07); }
.qty-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,139,115,.15); }
.field input:user-invalid { border-color: var(--danger); }
.order-total {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.3rem 0 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: 1.05rem;
}
.order-total small { color: var(--ink-mute); font-weight: 400; }
.order-total strong { font-family: var(--serif); font-size: 1.7rem; }
.order-fine { margin-top: .8rem; font-size: .8rem; color: var(--ink-mute); text-align: center; }

.order-success { text-align: center; padding: 1rem 0; }
.order-success .check { width: 72px; margin: 0 auto 1rem; }
.order-success p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.check svg { width: 100%; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .15s var(--ease-out) forwards; }
.check circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- FAQ --- */
.faq-wrap { max-width: 760px; margin-inline: auto; }
.faq { display: grid; gap: .8rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem;
  font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .3s var(--ease-out); line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* --- Garantía --- */
.guarantee { background: var(--bg-2); border-top: 1px solid var(--line); }
.guarantee-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.6rem 1rem; padding-block: clamp(2.2rem,5vw,3rem); }
.g-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.g-item span { font-size: 1.7rem; }
.g-item strong { font-size: 1.02rem; }
.g-item small { color: var(--ink-mute); }

/* --- Footer --- */
.footer { background: var(--ink); color: #d9cfbd; padding-top: clamp(2.8rem,6vw,4rem); }
.footer-inner { display: grid; gap: 2.2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
.footer .brand { color: #f3ecdf; margin-bottom: .9rem; }
.footer-brand p { max-width: 36ch; color: #b3a892; font-size: .95rem; }
.footer h4 { color: #f3ecdf; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; font-family: var(--sans); }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a, .footer-contact a { color: #b3a892; transition: color .25s; }
.footer-nav a:hover, .footer-contact a:hover { color: #f3ecdf; }
.footer-contact p { margin-top: .7rem; color: #b3a892; font-size: .9rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  border-top: 1px solid rgba(243,236,223,.12); padding-block: 1.4rem 1.6rem;
  font-size: .82rem; color: #8c8270;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }
.footer-legal a { color: #8c8270; transition: color .25s; }
.footer-legal a:hover { color: #f3ecdf; }

/* --- Barra de compra fija (móvil) --- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem,4vw,1.4rem);
  background: rgba(255,253,249,.92); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(29,27,22,.5);
  transform: translateY(120%); transition: transform .4s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) { .buybar { background: rgba(255,253,249,.8); backdrop-filter: blur(12px); } }
.buybar.is-visible { transform: translateY(0); }
.buybar-info { display: flex; flex-direction: column; line-height: 1.1; }
.buybar-info strong { font-family: var(--serif); font-size: 1.3rem; }
.buybar-info small { color: var(--ink-mute); text-decoration: line-through; font-size: .8rem; }
.buybar .btn { padding: .8rem 1.4rem; }

/* --- Fotos reales: galería, casos de uso, oferta, garantía --- */
.gallery { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.gallery-item { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); background: var(--paper); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
@media (hover: hover) { .gallery-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); } }

.usecase-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-2); aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }

.offer-media { border-radius: 14px; overflow: hidden; margin: 1.2rem 0; border: 1px solid var(--line-2); }
.offer-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; display: block; }

/* Carrusel de fotos en la sección de compra */
.offer-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: .6rem; margin: 1.2rem 0 .5rem;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.offer-gallery::-webkit-scrollbar { height: 6px; }
.offer-gallery::-webkit-scrollbar-track { background: transparent; }
.offer-gallery::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
.offer-slide {
  scroll-snap-align: center; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg-2); display: block;
}
.offer-gallery-hint { text-align: center; color: var(--ink-mute); font-size: .82rem; margin-bottom: 1.2rem; }

/* Línea de tiempo de entrega */
.delivery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); border-radius: 16px; overflow: hidden;
  margin-top: clamp(1.6rem, 4vw, 2.8rem);
}
.delivery-step { text-align: center; padding: clamp(1rem, 3vw, 1.5rem) .7rem; border-right: 1px solid rgba(243,236,223,.1); }
.delivery-step:last-child { border-right: 0; }
.d-time { display: block; color: var(--honey); font-weight: 700; font-size: clamp(.78rem, 2.4vw, .95rem); letter-spacing: .05em; margin-bottom: .35rem; }
.d-label { display: block; color: #d9cfbd; font-size: clamp(.82rem, 2.4vw, .98rem); }

/* === Checkout (paleta clara de la web) === */
.co-eyebrow { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; margin-bottom: .6rem; }

.co-step { display: flex; align-items: center; gap: .7rem; margin: 1.7rem 0 .9rem; }
.co-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: .95rem; display: grid; place-items: center; }
.co-step h3 { margin: 0; color: var(--ink); font-size: 1.15rem; font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }

.co-ship { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border: 1.5px solid var(--accent); border-radius: 12px; background: rgba(217,139,115,.07); }
.co-ship-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); position: relative; }
.co-ship-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.co-ship-name { flex: 1; color: var(--ink); font-weight: 600; }
.co-ship-free { color: var(--accent); font-weight: 700; }

.co-fields { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.co-field { display: flex; flex-direction: column; gap: .4rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.co-field input, .co-field select {
  font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: normal; text-transform: none;
  color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: .8rem .9rem;
  transition: border-color .25s, box-shadow .25s;
}
.co-field input::placeholder { color: var(--ink-mute); }
.co-field input:focus, .co-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,139,115,.16); }
.co-field input:user-invalid, .co-field select:user-invalid { border-color: var(--danger); }
.co-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238e817b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

.co-pay { display: grid; gap: .8rem; }
.co-pay-opt { position: relative; display: flex; align-items: flex-start; gap: .8rem; padding: 1.1rem 1.2rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.co-pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-pay-mark { flex: none; margin-top: .15rem; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: border-color .25s; }
.co-pay-opt input:checked + .co-pay-mark { border-color: var(--accent); }
.co-pay-opt input:checked + .co-pay-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.co-pay-opt:has(input:checked) { border-color: var(--accent); background: rgba(217,139,115,.06); }
.co-pay-text strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: .2rem; font-weight: 700; }
.co-pay-text small { display: block; color: var(--ink-mute); font-size: .88rem; line-height: 1.45; }

.co-total { display: flex; align-items: center; justify-content: space-between; margin: 1.7rem 0 1.1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.co-total span { color: var(--ink-soft); }
.co-total small { color: var(--ink-mute); font-weight: 400; }
.co-total strong { color: var(--ink); font-family: var(--serif); font-size: 1.7rem; }
.co-secure { text-align: center; color: var(--ink-mute); font-size: .82rem; margin-top: .9rem; }

.g-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(217,139,115,.1); color: var(--accent); margin-bottom: .35rem; }
.g-ico svg { width: 24px; height: 24px; }

/* =============================================================
   7. Effects (reveal, float, tilt)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensa (sin uso, por seguridad) */

[data-float] { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

[data-tilt] { transform-style: preserve-3d; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 600px) {
  .trust-row { grid-template-columns: repeat(4,1fr); }
  .cards-3 { grid-template-columns: repeat(3,1fr); }
  .features { grid-template-columns: repeat(2,1fr); }
  .reviews { grid-auto-columns: 46%; }
  .gallery { grid-template-columns: repeat(3,1fr); }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .guarantee-row { grid-template-columns: repeat(4,1fr); }
  .stats-row { grid-template-columns: repeat(4,1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .how-grid { grid-template-columns: 1.1fr .9fr; }
  .features { grid-template-columns: repeat(4,1fr); }
  .reviews { grid-auto-columns: 30%; }
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .usecase-grid.reverse .usecase-copy { order: 2; }
  .buy-grid { grid-template-columns: 1fr 1.05fr; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; }
  .buybar { display: none; }
}

/* --- Ajustes específicos de móvil (la mayoría compra desde el móvil) --- */
@media (max-width: 600px) {
  .hero { padding-top: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-photo { width: 100%; }
  .nav-cta { padding: .55rem 1rem; font-size: .9rem; }
  .section-head { margin-bottom: 1.6rem; }
  .section-head h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .usecase-copy > p { font-size: .96rem; }
  .cards-3, .features { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .feature, .fear-card { padding: 1rem .9rem; }
  .feat-ico, .fear-ico { width: 40px; height: 40px; margin-bottom: .5rem; border-radius: 12px; }
  .feat-ico svg { width: 21px; height: 21px; }
  .fear-ico svg { width: 23px; height: 23px; }
  .feature h3, .fear-card h3 { font-size: 1rem; margin-bottom: .2rem; }
  .fear-card p, .feature p { font-size: .82rem; line-height: 1.45; }
  .btn-lg { padding: .95rem 1.6rem; }
}

/* =============================================================
   9. Reduced-motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-float] { animation: none; }
  .topbar-track { animation: none; }
  .chip-live .dot { animation: none; }
  .check path, .check circle { animation: none; stroke-dashoffset: 0; }
}

/* =============================================================
   10. Páginas legales
   ============================================================= */
.legal-page { background: var(--bg); }
.legal-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1.1rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10; background: rgba(255,253,252,.9);
}
@supports (backdrop-filter: blur(10px)) { .legal-nav { background: rgba(255,253,252,.75); backdrop-filter: blur(12px); } }
.legal-nav .back { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.legal-nav .back:hover { color: var(--accent); }
.legal-main { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 2.4rem) 4rem; }
.legal-main h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .4rem; }
.legal-updated { color: var(--ink-mute); font-size: .9rem; margin-bottom: 1.8rem; }
.legal-disclaimer { background: #f7e9e1; border: 1px solid var(--accent); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 2.2rem; font-size: .9rem; color: var(--ink-soft); }
.legal-main h2 { font-size: 1.3rem; margin: 2.1rem 0 .6rem; }
.legal-main h3 { font-size: 1.05rem; margin: 1.3rem 0 .35rem; }
.legal-main p, .legal-main li { color: var(--ink-soft); margin-bottom: .8rem; line-height: 1.7; }
.legal-main ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-main ul li { margin-bottom: .4rem; }
.legal-main a { color: var(--accent); text-decoration: underline; }
.legal-foot { border-top: 1px solid var(--line); padding: 1.5rem clamp(1.1rem, 4vw, 2.4rem); text-align: center; color: var(--ink-mute); font-size: .85rem; }
.legal-foot a { color: var(--accent); }
