/* GroovyStore — estilos */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e9e6e1;
  --soft: #f6f4f1;
  --sale: #c8202f;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 14px;
  --display: "Abril Fatface", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Barra superior ---------- */
.promo-bar {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 13px; font-weight: 500; padding: 8px 16px; line-height: 1.35;
}

/* ---------- Encabezado ---------- */
#site-header { min-height: 104px; }
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1; }
.logo-main { font-family: var(--display); font-size: 30px; letter-spacing: .02em; }
.logo-sub { font-family: var(--display); font-size: 9px; letter-spacing: .08em; margin-top: 2px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; border-radius: 50%; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 24px; height: 24px; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 4px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}
.nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.header-wa { color: var(--wa-dark); }
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav, .nav.open { display: flex; flex-direction: row; position: static; gap: 22px; padding: 0; border: 0; box-shadow: none; }
  .nav.open a { padding: 8px 4px; border: 0; }
  .logo-main { font-size: 34px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { background: var(--soft); }
.btn-block { width: 100%; }

/* ---------- Banner ---------- */
.hero { position: relative; background: var(--soft); }
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
/* La foto deja espacio para el texto: todo el banner se ve sin bajar */
.slide-media {
  position: relative; width: 100%; overflow: hidden;
  height: calc(100vh - 360px); height: calc(100svh - 360px); min-height: 230px; max-height: 125vw;
}
.slide-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 3.5s ease-out; }
.slide.is-active .slide-media img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .slide-media img { transform: none; transition: none; } }
.slide-text { padding: 14px 20px 40px; background: var(--soft); }
.slide-text h1, .slide-text h2 { font-size: clamp(1.7rem, 7.5vw, 3.6rem); margin-bottom: .15em; }
.slide-text p { font-size: 16px; color: #333; margin-bottom: 12px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--sale); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; }
.hero-dots button {
  width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.hero-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.22); transition: width .2s; }
.hero-dots button[aria-current="true"]::after { width: 22px; border-radius: 4px; background: var(--ink); }
@media (min-width: 768px) {
  .slide { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .slide-media { height: min(620px, calc(100vh - 170px)); min-height: 380px; max-height: none; order: 2; }
  .slide-text {
    order: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 48px 56px 48px max(56px, calc((100vw - var(--wrap)) / 2 + 16px));
  }
  .slide-text p { font-size: 19px; }
  .hero-dots { right: 50%; bottom: 24px; }
}

/* ---------- Confianza ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 20px 8px; }
.trust-item svg { width: 30px; height: 30px; flex: none; }
.trust-item strong { display: block; font-size: 15px; line-height: 1.3; }
.trust-item span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } .trust-item { padding: 28px 12px; } }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Videos ---------- */
.reels-section { background: var(--ink); color: #fff; }
.reels-section .section-head p { color: #bbb; }
.reels {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 0 16px;
}
.reels::-webkit-scrollbar { display: none; }
.reel {
  position: relative; flex: 0 0 72%; max-width: 300px; margin: 0; scroll-snap-align: center; cursor: pointer;
}
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; border-radius: var(--radius); background: #222; }
/* El texto va debajo del video para no tapar los letreros que traen los videos */
.reel figcaption { padding: 10px 2px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reel figcaption b { font-size: 15px; }
.reel figcaption .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; white-space: nowrap; }
.reel-sound {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.5) no-repeat center / 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z' fill='white'/%3E%3Cpath d='M17 9l4 6M21 9l-4 6'/%3E%3C/svg%3E");
}
.reel.sound-on .reel-sound {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z' fill='white'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12'/%3E%3C/svg%3E");
}
@media (min-width: 768px) {
  .reels { margin: 0; padding: 0; }
  .reel { flex: 0 0 210px; }
  .reel:first-child { margin-left: auto; }
  .reel:last-child { margin-right: auto; }
}

/* ---------- Filtros ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .chips { justify-content: center; flex-wrap: wrap; } }
.chip {
  flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Grilla de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media img.wide { object-fit: contain; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px; text-transform: uppercase;
}
.badge-sale { background: var(--sale); color: #fff; }
.card-body { padding: 12px 2px 0; }
.card-title { font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1.3; margin: 0 0 4px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price-now { font-weight: 700; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .9em; }
.price-off { color: var(--sale); font-weight: 700; font-size: .85em; }
.dots { display: flex; gap: 4px; margin-top: 8px; align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.dots small { color: var(--muted); font-size: 12px; margin-left: 4px; white-space: nowrap; }
@media (max-width: 420px) { .dots small { display: none; } }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }

/* ---------- Cómo comprar ---------- */
.steps { display: grid; gap: 16px; counter-reset: paso; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: #fff; border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: paso; content: counter(paso);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--display); font-size: 20px; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Medios de pago ---------- */
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 0; list-style: none; }
.pay-list li { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; background: #fff; }

/* ---------- Preguntas frecuentes / acordeones ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-weight: 700; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details .content { padding: 0 0 18px; color: #333; }
details .content ul { margin: 0; padding-left: 20px; }
details .content li { margin-bottom: 6px; }

/* ---------- Redes ---------- */
.social-cta { text-align: center; }
.social-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.social-links svg { width: 20px; height: 20px; }

/* ---------- Pie de página ---------- */
.footer { background: var(--ink); color: #ddd; padding: 48px 0 24px; font-size: 14px; }
.footer a { color: #ddd; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { color: #fff; align-items: flex-start; }
.footer .logo-sub { align-self: flex-end; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer h3 { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer-brand p { margin: 14px 0 0; max-width: 320px; color: #bbb; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #444; border-radius: 50%; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 36px; padding-top: 20px; color: #999; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: var(--wa-dark); }

/* ---------- Página de producto ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0 8px; }
.breadcrumb a { color: var(--muted); }
.product { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 768px) { .product { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; } .product-info { position: sticky; top: 88px; } }
.gallery-main { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); background: var(--soft);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; }
.gallery-track img { width: 100%; height: 100%; object-fit: contain; }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button {
  flex: none; width: 68px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: var(--soft); cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 8px; }
.product-info .lead { color: #444; margin-bottom: 14px; }
.product-info .price { font-size: 24px; margin-bottom: 4px; }
.product-tag { display: inline-block; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.option-label { font-weight: 700; margin: 22px 0 10px; font-size: 15px; }
.option-label span { font-weight: 400; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18); padding: 0;
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.buy { display: grid; gap: 10px; margin: 24px 0 8px; }
.buy-note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.info-box { background: var(--soft); border-radius: var(--radius); padding: 18px; margin: 18px 0; display: grid; gap: 14px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.info-row svg { width: 24px; height: 24px; flex: none; }
.info-row strong { display: block; }
.info-row span { color: #555; }
.measures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 0 0 12px; }
.measures div { background: var(--soft); border-radius: 10px; padding: 12px 4px; }
.measures b { display: block; font-size: 20px; }
.measures small { color: var(--muted); }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-buy.show { transform: none; }
.sticky-buy .price { flex: 1; font-size: 15px; line-height: 1.2; display: block; }
.sticky-buy .price small { display: block; color: var(--muted); font-weight: 400; }
.sticky-buy .btn { min-height: 46px; padding: 10px 18px; font-size: 15px; }
@media (min-width: 768px) { .sticky-buy { display: none; } }
.related { border-top: 1px solid var(--line); }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 0 64px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--soft); }
.callout { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
