/* ============ Tokens — blanco y negro, todo en Manrope ============ */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #000000;
  --ink-80: rgba(0, 0, 0, 0.72);
  --line: #e4e4e4;
  --img-bg: #f4f4f4;
  --dark: #000000;

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

  --gutter: 20px;            /* mobile 20 → desktop 64 */
  --section-y: 56px;         /* mobile 56 → desktop 96 */
}
@media (min-width: 768px)  { :root { --gutter: 40px; --section-y: 80px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; --section-y: 96px; } }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: var(--bg);
}
.nav__logo img { width: 92px; height: auto; }
.nav__links {
  display: none;
  position: absolute;
  inset: 100% 0 auto;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav__links.is-open { display: flex; }
.nav__links a {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 0;
}

@media (min-width: 900px) {
  .nav { height: 96px; padding-block: 0; }
  .nav__logo img { width: 122px; }
  .nav__toggle { display: none; }
  .nav__links,
  .nav__links.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    gap: clamp(20px, 2.8vw, 40px);
    padding: 0;
    border: 0;
    background: none;
  }
  .nav__links a { padding: 0; }
  /* hover en negrita: el ::after reserva el ancho en bold para que el menú no se mueva */
  .nav__links a { display: inline-flex; flex-direction: column; }
  .nav__links a::after {
    content: attr(data-label);
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: 800;
  }
  .nav__links a:hover, .nav__links a:focus-visible { font-weight: 800; }
}

/* ============ Banner (foto campaña) ============ */
.banner {
  height: max(319px, 52.9vw);  /* 762 / 1440 */
  max-height: 762px;
  overflow: hidden;
}
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* ============ Barra "Ver productos" (botón fijo) ============ */
.drop-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 18px var(--gutter);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.drop-bar__arrow { width: 26px; height: 26px; transition: transform .2s ease; }
.drop-bar:hover .drop-bar__arrow,
.drop-bar:focus-visible .drop-bar__arrow { transform: translateX(6px); }
.drop-bar:focus-visible { outline: 2px solid var(--bg); outline-offset: -6px; }

@media (min-width: 900px) {
  .drop-bar { gap: 20px; min-height: 80px; font-size: clamp(28px, 2.6vw, 36px); }
  .drop-bar__arrow { width: 34px; height: 34px; }
}

/* ============ Intro / Sobre Pouch ============ */
.intro { padding: var(--section-y) var(--gutter) 0; }
.intro__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}
.intro__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-80);
}
.intro__body p + p { margin-top: 1.55em; }
.intro__body em { font-style: italic; font-weight: 600; }
.intro__body em:not(.em-strong) { font-weight: 500; }

@media (min-width: 900px) {
  .intro__text { gap: 28px; }
  .intro__body { font-size: 17px; }
}

/* ============ Encabezado de sección ============ */
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head .title { font-size: clamp(30px, 2.8vw, 40px); }
.section-head__lead {
  max-width: 395px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-80);
}
@media (min-width: 900px) {
  .section-head { gap: 16px; }
  .section-head__lead { font-size: 15px; }
}

/* ============ Catálogo ============ */
.catalogo {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}
@media (min-width: 1024px) {
  .catalogo { gap: 48px; }
  /* 6 columnas: cada producto ocupa 2 (3 por fila); "doble" (opcional) ocupa 3 */
  .product-grid { grid-template-columns: repeat(6, 1fr); gap: 56px 32px; }
  .product { grid-column: span 2; }
  .product--doble { grid-column: span 3; }
  /* si la última fila queda con 2 productos, se centra */
  .product:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }
}

.product { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1248 / 1632;  /* mismo formato que las fotos de producto */
  overflow: hidden;
  background: var(--img-bg);
  cursor: zoom-in;
}
.product__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product__photo--contain img { object-fit: contain; }
.product__photo:hover img { transform: scale(1.03); }

.product__name { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
@media (min-width: 1024px) { .product__name { font-size: 22px; } }

.acc + .acc { border-top: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-weight: 500;
  font-size: 13px;
  list-style: none;
  cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__icon {
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-80);
  transition: transform .2s;
}
.acc[open] .acc__icon { transform: rotate(45deg); }
.acc p {
  padding: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-80);
}

.product__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
}
@media (min-width: 1024px) {
  .product__price { min-height: 64px; font-size: 22px; }
}
.product__price > span { white-space: nowrap; }
/* card angosta (mobile o 3 columnas en pantallas chicas): precio arriba y botón de ancho completo */
.product { container-type: inline-size; }
@container (max-width: 400px) {
  .product__price { flex-direction: column; align-items: stretch; gap: 14px; }
  .product__price .btn { width: 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn svg { transition: transform .2s ease; }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- Flechita "ver más fotos" ---- */
.product__more {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  transform: translateY(-50%);
  transition: transform .2s ease;
}
.product__more svg { width: 30px; height: 30px; }
.product__photo:hover .product__more,
.product__photo:focus-visible .product__more { transform: translate(3px, -50%); }

/* ---- Etiquetas de stock ---- */
.product__photo { position: relative; }
.product__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product--agotado .product__photo img { opacity: .45; }
.product--agotado .product__badge { background: var(--bg); color: var(--ink); }

/* ---- Aviso "copiamos el nombre" ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transform: translateX(-50%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

/* ============ Cómo comprar ============ */
.comprar {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
}
.steps { list-style: none; padding: 0; display: grid; }
.steps { gap: 40px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step__num { font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.step__title { font-weight: 600; font-size: 20px; }
.step__text { font-size: 14px; line-height: 1.45; color: var(--ink-80); }

@media (min-width: 768px) {
  .comprar { gap: 56px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .step { gap: 12px; }
  .step__num { font-size: 72px; }
  .step__title { font-size: 16px; }
  .step__text { font-size: 13px; }
}
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 290px)); }
}

/* ============ Galería producción ============ */
.galeria { padding-bottom: 30px; }
.galeria__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.galeria__track::-webkit-scrollbar { display: none; }
.galeria__track img {
  flex: 0 0 100%;
  height: 460px;
  object-fit: cover;
  scroll-snap-align: start;
}
.galeria__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.galeria__dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  transition: background .2s;
}
.galeria__dots span.is-active { background: var(--ink); }

@media (min-width: 768px) {
  .galeria { padding: 0; }
  /* 2 columnas en tablet, 4 en desktop */
  .galeria__track { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .galeria__track img { width: 100%; min-width: 0; height: auto; aspect-ratio: 720 / 900; }
  .galeria__dots { display: none; }
}

@media (min-width: 1200px) {
  .galeria__track { grid-template-columns: repeat(4, 1fr); }
}

/* ============ Preguntas frecuentes ============ */
.faq {
  display: grid;
  gap: 32px;
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
}
.faq__list { border-bottom: 1px solid var(--line); }
.acc--faq { border-top: 1px solid var(--line); }
.acc--faq summary { gap: 24px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.acc--faq .acc__icon { font-size: 22px; color: var(--ink); }
.acc--faq p { max-width: 62ch; padding-bottom: 22px; font-size: 15px; line-height: 1.6; }

@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(40px, 5.5vw, 80px); align-items: start; }
  .acc--faq summary { font-size: 19px; padding: 24px 0; }
  .acc--faq p { font-size: 16px; }
}

/* ============ Footer ============ */
.footer { padding: 40px var(--gutter) 32px; }
.footer__logo { width: 100%; height: auto; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-80);
}
@media (min-width: 900px) {
  .footer { padding: 64px var(--gutter) 48px; }
  .footer__bottom { margin-top: 128px; padding-top: 48px; font-family: var(--sans); }
}

/* ============ Modal fotos ============ */
.modal {
  width: min(711px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 32px 24px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.85); }
.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--sans);
  font-size: 14px;
  z-index: 1;
}
.modal__main {
  width: auto;
  max-width: 100%;
  height: min(62dvh, 600px);
  aspect-ratio: 1248 / 1632;
  margin: 16px auto 0;
  object-fit: cover;
  background: var(--img-bg);
}
.modal__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
@media (max-width: 600px) {
  .modal__main { width: 100%; height: auto; max-height: 60dvh; }
  .modal .modal__thumbs button { width: 60px; }
}
.modal__thumbs:empty { display: none; }
.modal__thumbs button {
  width: 72px;
  aspect-ratio: 1248 / 1632;
  border: 2px solid transparent;
  border-radius: 2px;
  background: var(--img-bg);
  overflow: hidden;
}
.modal__thumbs button.is-active { border-color: var(--ink); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

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