:root{
  --text:#0f172a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#16a34a;
  --danger:#ef4444;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top, #f8fafc 0%, #f1f5f9 45%, #e5e7eb 100%);
}
a{color:inherit; text-decoration:none}
.wrapper{max-width:var(--max); margin:auto; padding:28px 16px 90px}

/* Top minimal */
.top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding-bottom:16px; border-bottom:1px solid var(--line);
}
.brand{font-weight:900; letter-spacing:.2px; display:flex; align-items:center; gap:10px}
.dotlogo{width:10px; height:10px; border-radius:99px; background:var(--accent)}
.nav{display:flex; gap:10px; color:var(--muted); font-size:14px}
.nav a{padding:8px 10px; border:1px solid var(--line); border-radius:999px}

/* Layout */
.grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:48px;
  align-items:start;
  padding-top:22px;
}

/* Sticky media */
.media{position:sticky; top:18px}
.main-img{
  width:100%;
  height:min(72vh, 640px);
  min-height:520px;
  object-fit:cover;
  display:block;
  background:#f3f4f6;
}
.thumbs{
  display:flex; gap:12px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  overflow:auto;
}
.thumbs button{
  border:1px solid var(--line);
  background:#fff;
  padding:0;
  width:80px; height:90px;
  cursor:pointer;
}
.thumbs img{width:100%; height:100%; object-fit:cover; display:block; opacity:.65}
.thumbs button[aria-current="true"] img{opacity:1}
.thumbs button[aria-current="true"]{border-color: var(--text)}

/* Right side */
.kicker{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  color:var(--muted); font-size:13px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.tag{
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  color:var(--text);
  font-weight:800;
}
.tag.promo{color:var(--accent); border-color:rgba(22,163,74,.35)}
.tag.hot{color:var(--danger); border-color:rgba(239,68,68,.35)}

h1{
  margin:18px 0 10px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height:1.08;
  letter-spacing:-.6px;
}
.sub{
  margin:0 0 16px;
  color:var(--muted);
  font-size:16px;
  line-height:1.65;
}

/* Rating + reviews */
.rating{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  padding:12px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:10px 0 18px;
}
.stars{
  font-weight:900; letter-spacing:.6px;
}
.rating small{color:var(--muted); font-weight:700}
.review-link{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset: 3px;
  font-weight:800;
  cursor:pointer;
}

/* Price + urgency */
.priceRow{
  display:flex; flex-wrap:wrap; gap:14px; align-items:baseline;
  margin:10px 0 10px;
}
.priceRow del{color:#9ca3af; font-weight:800}
.priceRow strong{color:var(--accent); font-size:36px; font-weight:1000; letter-spacing:-.6px}
.smallline{color:var(--muted); font-size:13px; line-height:1.5}

/* Countdown (line style) */
.countdown{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  padding:12px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:14px 0 18px;
}
.countdown b{font-weight:950}
.timer{
  font-variant-numeric: tabular-nums;
  font-weight:950;
  letter-spacing:.6px;
}

/* CTA big but flat */
.cta{
  margin:14px 0 18px;
}
.btn{
  width:100%;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  padding:16px 16px;
  font-size:25px;
  font-weight:950;
  cursor:pointer;
}
.btn span{display:block; font-size:13px; font-weight:800; opacity:.95; margin-top:2px}
.btn2{
  margin-top:10px;
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:14px 16px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

/* Trust line icons as plain lines */
.trust{
  display:grid;
  grid-template-columns: 1fr;
  gap:0;
  margin:18px 0;
  border-top:1px solid var(--line);
}
.trustItem{
  padding:14px 0;
  border-bottom:1px solid var(--line);
  display:flex; justify-content:space-between; gap:14px;
}
.trustItem b{font-weight:950}
.trustItem small{color:var(--muted); font-weight:700}

/* Sections */
.section{
  padding:22px 0;
  border-top:1px solid var(--line);
}
.section h2{margin:0 0 10px; font-size:30px; font-weight:950}
.section ul{margin:0; padding-left:18px; color:var(--muted); line-height:1.8}
.quote{
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  line-height:1.7;
}
.quote b{color:var(--text)}
details{
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
summary{cursor:pointer; font-weight:900; font-size: 20px}
details p{margin:8px 0 0; color:var(--muted); line-height:1.7}

/* Mobile bar */
.mobileBar{
  position:fixed; left:0; right:0; bottom:0;
  border-top:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  display:none;
}
.mobileBar .btn{padding:14px 14px; font-size:15px}

/* Responsive */
@media(max-width:980px){
  .grid{grid-template-columns:1fr; gap:22px}
  .media{position:relative; top:auto}
  .main-img{min-height:360px; height:min(60vh,520px)}
  .nav{display:none}
  .mobileBar{display:block}
  .wrapper{padding-bottom:110px}
}

/* === Animaciones CRO === */
@keyframes pulseWarn{
  0%,100%{transform:scale(1); opacity:1}
  50%{transform:scale(1.05); opacity:.75}
}
#stockText{animation:pulseWarn 1.05s ease-in-out infinite}

@keyframes offerGlow{
  0%,100%{opacity:1; transform:translateY(0)}
  50%{opacity:.8; transform:translateY(-1px)}
}
.offerAnim{display:inline-block; animation:offerGlow 1.1s ease-in-out infinite}

@keyframes shakeX{
  0%{transform:translateX(0)}
  8%{transform:translateX(-2px)}
  16%{transform:translateX(2px)}
  24%{transform:translateX(-2px)}
  32%{transform:translateX(2px)}
  40%{transform:translateX(-1px)}
  48%{transform:translateX(1px)}
  56%{transform:translateX(0)}
  100%{transform:translateX(0)}
}
.shake{
  animation: shakeX 4.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  #stockText,.offerAnim,.shake{animation:none !important}
}


/* FIX layout */
.container, .wrap, main {
  max-width: 1200px;
  margin: auto;
}
img {
  max-width: 100%;
  height: auto;
}
.gallery, .thumbs {
  overflow-x: auto;
}

.dots{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  margin-top:12px;
}
.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.25);
  background:transparent;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}
.dot[aria-current="true"]{
  background:rgba(0,0,0,.7);
  transform:scale(1.15);
}



/* === Galería: flechas + dots === */
.galleryFrame{position:relative}
.gArrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.18);
  background:rgba(255,255,255,.82);
  color:var(--text);
  font-size:26px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(6px);
}
.gArrow:hover{background:rgba(255,255,255,.95)}
.gArrow.prev{left:12px}
.gArrow.next{right:12px}
@media(max-width:980px){
  .gArrow{width:40px;height:40px;font-size:24px}
}


/* === Mejoras responsive === */
.logo{width:220px; max-width:60vw; height:auto; display:block}
.bannerEnvio{width:100%; max-width:460px; height:auto; display:block; margin:8px 0 0}

.main-img{
  /* evita desbordes en móviles */
  min-height:0;
  height:clamp(320px, 52vh, 640px);
  object-fit:contain; /* mejor para producto */
  background:#f3f4f6;
}

.thumbs{scrollbar-width:thin}
.thumbs button{flex:0 0 auto}
.thumbs button{width:80px; height:90px}

/* Mejor lectura en pantallas pequeñas */
@media(max-width:640px){
  .wrapper{padding:18px 14px 110px}
  .top{gap:10px}
  h1{font-size:clamp(26px, 7vw, 34px)}
  .sub{font-size:15px}
  .priceRow strong{font-size:32px}
  .kicker{gap:8px}
  .tag{padding:6px 9px}
  .trustItem{flex-direction:column; align-items:flex-start}
  .trustItem small{margin-top:2px}
  .thumbs{gap:10px}
  .thumbs button{width:72px; height:56px}
  .gArrow{width:38px;height:38px;font-size:22px}
  .gArrow.prev{left:10px}
  .gArrow.next{right:10px}
}

/* Extra pequeño */
@media(max-width:420px){
  .logo{width:190px; max-width:70vw}
  .thumbs button{width:66px; height:52px}
  .dots{gap:8px}
  .dot{width:9px;height:9px}
  .btn{padding:14px 14px}
  .btn2{padding:12px 14px}
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stock {
  display: inline-block;
  color: #b91c1c;
  font-weight: 700;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.06); opacity: .85; }
  100% { transform: scale(1); opacity: 1; }
}



/* === Header full width + mobile menu === */
.siteHeader{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(15,23,42,.08);
}
.navInner{
  max-width:1160px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.siteNav{
  display:flex;
  align-items:center;
  gap:18px;
  font-weight:600;
  color:var(--text);
}
.siteNav a{color:inherit; text-decoration:none; opacity:.85}
.siteNav a:hover{opacity:1}
.navCta{
  border:1px solid rgba(15,23,42,.14);
  padding:9px 12px;
  border-radius:999px;
  background:#0f172a;
  color:#fff !important;
  opacity:1 !important;
}
.navToggle{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-direction:column;
}
.navToggle span{
  width:20px; height:2px;
  background:rgba(15,23,42,.85);
  display:block;
  border-radius:2px;
}
.mobileMenu{
  display:none;
  max-width:1160px;
  margin:0 auto;
  padding:6px 18px 14px;
  border-top:1px solid rgba(15,23,42,.06);
}
.mobileMenu a{
  display:block;
  padding:12px 8px;
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  border-radius:10px;
}
.mobileMenu a:hover{background:rgba(15,23,42,.04)}
.mobileMenu .navCta{
  margin-top:6px;
  text-align:center;
}
.mobileMenu .navWhats{
  margin-top:10px;
  text-align:center;
  border:1px solid rgba(15,23,42,.12);
}

/* Empuja el contenido si usas sticky (mantiene look) */
.wrapper{padding-top:10px}

/* Breakpoint: menú desktop a móvil */
@media(max-width:860px){
  .siteNav{display:none}
  .navToggle{display:flex}
  .siteHeader.isOpen .mobileMenu{display:block}
}

/* === Footer === */
.siteFooter{
  margin-top:48px;
  border-top:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
}
.footerInner{
  max-width:1160px;
  margin:0 auto;
  padding:26px 18px;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:22px;
}
.footerLogo{width:160px; height:auto; display:block; margin-bottom:10px}
.fText{color:rgba(15,23,42,.78); font-size:14px; line-height:1.5; margin:0}
.fCol h4{margin:0 0 10px; font-size:14px; letter-spacing:.02em}
.fLink{display:block; color:rgba(15,23,42,.82); text-decoration:none; margin:7px 0}
.fLink:hover{color:rgba(15,23,42,1)}
.fMuted{display:block; color:rgba(15,23,42,.65); font-size:13px; margin:6px 0}
.footerBottom{
  max-width:1160px;
  margin:0 auto;
  padding:14px 18px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:rgba(15,23,42,.65);
  font-size:13px;
  border-top:1px solid rgba(15,23,42,.06);
}
.toTop{color:rgba(15,23,42,.85); text-decoration:none; font-weight:700}
.toTop:hover{text-decoration:underline}

@media(max-width:860px){
  .footerInner{grid-template-columns:1fr; gap:16px}
}

/* ===== Footer ===== */
.site-footer{
  border-top:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(241,245,249,1) 100%);
}
.footer-inner{
  max-width:1120px;
  margin:0 auto;
  padding:32px 20px;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:22px;
}
.footer-brand{
  display:flex; align-items:center; gap:12px;
  margin-bottom:10px;
}
.footer-brand img{height:38px; width:auto; display:block}
.footer-title{font-weight:800; letter-spacing:.2px}
.footer-desc{color:var(--muted); line-height:1.55; margin-top:8px; max-width:44ch}
.footer-col h4{
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin:6px 0 12px;
}
.footer-links{display:flex; flex-direction:column; gap:10px}
.footer-links a{
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid transparent;
  width:fit-content;
}
.footer-links a:hover{border-bottom-color:rgba(15,23,42,.25)}
.footer-meta{
  border-top:1px solid rgba(15,23,42,.08);
  padding:14px 20px;
  color:var(--muted);
  font-size:12px;
}
.footer-badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.badge{
  border:1px solid rgba(15,23,42,.12);
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  color:var(--text);
  background:rgba(255,255,255,.6);
}
@media(max-width:900px){
  .footer-inner{grid-template-columns:1fr; gap:18px}
}
