/* =========================================================
   BACHA COLLECTION — Streetwear Minimalista
   Paleta: Negro / Blanco / Crudo (beige)
========================================================= */

:root {
  --black: #0d0d0d;
  --near-black: #161616;
  --white: #ffffff;
  --off-white: #f7f2e9;
  --crudo: #e8d9b8;
  --crudo-dark: #c9a869;
  --crudo-deep: #a9824a;
  --gray: #6f6f6f;
  --gray-light: #ded2b0;
  --line: rgba(13,13,13,0.12);

  --font-display: 'Anton', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 2px;
  --header-h: 116px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* <picture> solo elige qué archivo baja el navegador; no debe existir para el
   layout. Si no, un width en % del <img> se resuelve contra el <picture> en vez
   de contra el contenedor real. */
picture { display: contents; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 600;
  margin: 0 0 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-desc {
  max-width: 620px;
  color: var(--gray);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0 0 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--black);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--crudo-deep);
}
.btn-outline:hover {
  background: var(--crudo-deep);
  color: var(--white);
  border-color: var(--crudo-deep);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 0.9rem;
}
.btn-block { width: 100%; }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================
   ANNOUNCEMENT BAR
========================================================= */
.announce-bar {
  background: var(--black);
  color: var(--off-white);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.announce-track {
  display: inline-flex;
  gap: 14px;
  animation: marquee 22s linear infinite;
  padding-left: 100%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(245,243,239,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Las alturas del logo son de arte real: los archivos de /logo vienen
   recortados, sin relleno transparente alrededor. */
.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--black);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--black);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--black);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle { display: none; }

/* =========================================================
   HERO
========================================================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--off-white);
  padding: 0 24px 100px;
}
.hero-bg-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 26vw, 22rem);
  color: var(--crudo-dark);
  opacity: 0.35;
  -webkit-text-stroke: 1.5px rgba(169,130,74,0.25);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 90px;
}
.hero-people {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  height: 82%;
  max-height: 640px;
  z-index: 1;
  pointer-events: none;
}
.hero-people img { height: 100%; width: auto; object-fit: contain; }
.hero-people-left { left: 0%; }
.hero-people-right { right: 0%; }
/* height:auto es obligatorio: los atributos width/height del <img> entran como
   presentational hints, y si el CSS solo pisa el ancho, la altura queda clavada
   en el valor del atributo y el logo sale estirado. */
/* La composición del hero es: logo arriba de todo, el "BACHA" gigante de fondo
   en el medio y el titular abajo. El logo se sube con top negativo (no cambia el
   flujo) y el margin-bottom estira el bloque para que .hero-bg-text —que se
   ubica al 40% del alto del hero— baje lo suficiente y no lo pise. */
.hero-logo {
  width: clamp(240px, 22vw, 340px);
  height: auto;
  position: relative;
  top: -50px;
  margin-bottom: 440px;
}
.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.02;
  margin: 0 0 22px;
  text-transform: uppercase;
}
.hero-desc {
  color: var(--gray);
  line-height: 1.7;
  margin: 0 0 34px;
  font-size: 1.02rem;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--black);
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* =========================================================
   CATALOGO
========================================================= */
.catalogo-section {
  padding: 100px 0 90px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  background: transparent;
  border: 1.5px solid var(--black);
  color: var(--black);
  padding: 10px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 30px;
  transition: all 0.2s ease;
}
.filter-btn:hover { background: var(--crudo); }
.filter-btn.active {
  background: var(--black);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(13,13,13,0.1);
}
.product-media {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--crudo) 0%, var(--crudo-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media i {
  font-size: 3.4rem;
  color: rgba(13,13,13,0.32);
}
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--crudo-deep);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 20px;
}
.product-badge.low-stock { background: #b23b3b; }
.product-quickview {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}
.product-card:hover .product-quickview {
  opacity: 1;
  transform: translateY(0);
}
.card-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--black);
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
}
.product-card:hover .card-nav-btn { opacity: 1; }
.card-nav-btn:hover { background: var(--white); }
.card-nav-prev { left: 10px; }
.card-nav-next { right: 10px; }
.card-nav-dots {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.card-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: background 0.2s ease;
}
.card-nav-dot.active { background: var(--white); }
.product-info {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  font-weight: 700;
}
.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.product-material {
  font-size: 0.78rem;
  color: var(--gray);
  margin: 0;
}
.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 8px 0 12px;
}
.product-card .btn {
  margin-top: auto;
  padding: 11px 20px;
  font-size: 0.72rem;
}

/* =========================================================
   QUALITY STRIP
========================================================= */
.quality-strip {
  background: var(--black);
  color: var(--off-white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 30px 24px;
  gap: 20px;
}
.quality-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.quality-item i { font-size: 1.3rem; color: var(--crudo-deep); }

/* =========================================================
   NOSOTROS
========================================================= */
.nosotros-section {
  padding: 100px 0;
  background: var(--off-white);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.nosotros-visual {
  background: var(--crudo);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  aspect-ratio: 1/1;
}
.nosotros-logo { width: 78%; height: auto; }
.nosotros-text p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.02rem;
  margin: 0 0 18px;
}
.nosotros-text p:last-child {
  color: var(--black);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   ENVIOS
========================================================= */
.envios-section {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.envios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.envios-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 36px 28px;
  border-radius: var(--radius);
}
.envios-card i {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
  color: var(--crudo-deep);
}
.envios-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.envios-card p {
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* =========================================================
   CONTACTO
========================================================= */
.contacto-section {
  padding: 110px 0;
  background: var(--black);
  color: var(--off-white);
  text-align: center;
}
.contacto-section .section-eyebrow { color: var(--crudo-dark); }
.contacto-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contacto-desc {
  max-width: 560px;
  color: rgba(245,243,239,0.7);
  line-height: 1.7;
  margin-bottom: 34px;
}
.contacto-section .btn-primary {
  background: var(--off-white);
  color: var(--black);
  border-color: var(--off-white);
}
.contacto-section .btn-primary:hover {
  background: transparent;
  color: var(--off-white);
}
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}
.social-links a {
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(245,243,239,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}
.social-links a:hover {
  background: var(--off-white);
  color: var(--black);
  border-color: var(--off-white);
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--near-black);
  color: rgba(245,243,239,0.6);
  padding: 36px 24px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* El logo es negro sobre transparente y el footer es --near-black: hay que
   invertirlo. brightness() no sirve, multiplica, y negro x N sigue siendo negro. */
.footer-logo { height: 36px; opacity: 0.9; filter: invert(1); }
.site-footer p { font-size: 0.8rem; margin: 0; }

/* =========================================================
   MOBILE NAV OVERLAY
========================================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.nav-overlay.open { transform: translateY(0); }
.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
}
.nav-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}
.nav-overlay-links a {
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================
   PRODUCT MODAL
========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--off-white);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1rem;
}
.modal-media {
  position: relative;
  background: linear-gradient(145deg, var(--crudo) 0%, var(--gray-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  max-height: 88vh;
  overflow: hidden;
}
.modal-media i { font-size: 5rem; color: rgba(13,13,13,0.28); }
.modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-thumbs {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.modal-thumb-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  opacity: 0.8;
  transition: all 0.2s ease;
}
.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-thumb-btn.active {
  border-color: var(--black);
  opacity: 1;
}
.modal-thumb-btn:hover { opacity: 1; }

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--black);
  z-index: 2;
  transition: background 0.2s ease;
}
.modal-nav-btn:hover { background: var(--white); }
.modal-nav-prev { left: 14px; }
.modal-nav-next { right: 14px; }

/* Size chart modal */
.size-chart-box {
  background: var(--off-white);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius);
  position: relative;
  padding: 40px 36px;
}
.size-chart-box h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.size-chart-box h3 i { color: var(--crudo-deep); }
.size-chart-note {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 18px 0 0;
}
.size-chart-diagram {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 22px;
}
.size-chart-diagram img {
  width: 130px;
  flex-shrink: 0;
}
.size-chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.size-chart-legend li {
  font-size: 0.82rem;
  color: var(--gray);
}
.size-chart-legend li strong {
  color: var(--black);
  background: var(--crudo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  margin-right: 6px;
}
.size-chart-table-wrap { overflow-x: auto; }
.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.size-chart-table th, .size-chart-table td {
  padding: 12px 14px;
  text-align: center;
  border: 1px solid var(--line);
}
.size-chart-table th {
  background: var(--crudo);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.size-chart-size { font-weight: 800; background: rgba(232,217,184,0.3); }
.modal-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
  font-weight: 700;
  margin: 0 0 6px;
}
.modal-info h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.modal-price {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 16px;
}
.modal-desc {
  color: var(--gray);
  line-height: 1.7;
  margin: 0 0 22px;
  font-size: 0.92rem;
}
.option-group { margin-bottom: 22px; }
.option-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.option-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.option-label-row .option-label { margin-bottom: 0; }
.size-chart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--crudo-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: underline;
  padding: 0;
}
.size-chart-btn:hover { color: var(--black); }

.color-options, .size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-swatch {
  padding: 8px 16px;
  border: 1.5px solid var(--black);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.2s ease;
}
.color-swatch.active,
.color-swatch:hover { background: var(--black); color: var(--white); }

.size-swatch {
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  background: transparent;
  transition: all 0.2s ease;
}
.size-swatch.active { background: var(--black); color: var(--white); }
.size-swatch:disabled {
  opacity: 0.3;
  border-color: var(--gray);
  text-decoration: line-through;
  cursor: not-allowed;
}
.stock-hint {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 8px;
}
.stock-hint strong { color: #b23b3b; }

.modal-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================================
   CART DRAWER
========================================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.5);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 92vw;
  background: var(--off-white);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-header h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-drawer-header button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 24px;
}
.cart-empty {
  text-align: center;
  color: var(--gray);
  padding: 60px 20px;
}
.cart-empty i { font-size: 2.4rem; margin-bottom: 14px; display: block; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-media {
  width: 64px;
  height: 78px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--crudo) 0%, var(--gray-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-media i { color: rgba(13,13,13,0.28); font-size: 1.3rem; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 4px; font-size: 0.9rem; }
.cart-item-meta {
  font-size: 0.75rem;
  color: var(--gray);
  margin: 0 0 6px;
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
}
.qty-control button {
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
}
.qty-control span { min-width: 20px; text-align: center; font-size: 0.85rem; font-weight: 700; }
.cart-item-price { font-weight: 700; font-size: 0.88rem; }
.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 0.85rem;
}
.cart-item-remove:hover { color: #b23b3b; }

.cart-footer {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.cart-customer-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.cart-customer-fields input {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--white);
}
.cart-customer-fields input:focus {
  outline: none;
  border-color: var(--black);
}
.cart-note {
  font-size: 0.72rem;
  color: var(--gray);
  text-align: center;
  margin: 10px 0 0;
}

/* =========================================================
   MERCADO PAGO CHECKOUT MODAL
========================================================= */
.checkout-modal-box {
  display: block;
  max-width: 480px;
  padding: 28px 24px;
  max-height: 88vh;
  overflow-y: auto;
}
.checkout-modal-box h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.checkout-total-row {
  color: var(--gray);
  margin: 0 0 18px;
}
.checkout-total-row strong {
  color: var(--black);
}
#checkout-result {
  margin-top: 16px;
}
.checkout-success,
.checkout-pending,
.checkout-error {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.checkout-success {
  background: rgba(47,122,77,0.1);
  color: #2f7a4d;
}
.checkout-pending {
  background: rgba(169,130,74,0.12);
  color: var(--crudo-deep);
}
.checkout-error {
  background: rgba(179,38,30,0.1);
  color: #b3261e;
}

/* Campos de envío obligatorios en el carrito */
.cart-fields-hint {
  font-size: 0.72rem;
  color: var(--gray);
  margin: 6px 0 0;
}
.cart-customer-fields input.field-missing {
  border-color: #b3261e;
  background: rgba(179,38,30,0.05);
}

/* =========================================================
   COMPROBANTE DEL PEDIDO (post-pago)
========================================================= */
.receipt-note {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 12px 0 0;
}
.receipt-ref {
  background: rgba(232,217,184,0.28);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 16px;
}
.receipt-ref span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}
.receipt-ref strong {
  font-size: 0.95rem;
  color: var(--black);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.receipt-items {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.receipt-item-name {
  display: block;
  font-size: 0.88rem;
  color: var(--black);
}
.receipt-item-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--gray);
  margin-top: 2px;
}
.receipt-item-price {
  font-size: 0.88rem;
  color: var(--black);
  white-space: nowrap;
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 0;
  font-size: 1rem;
  color: var(--black);
}
.receipt-shipping {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 0.85rem;
  line-height: 1.5;
}
.receipt-shipping span {
  display: block;
  color: var(--gray);
}
.receipt-shipping strong {
  color: var(--black);
}
/* Paso siguiente tras el pago: mismo mensaje que el mail de confirmación.
   Va sobre fondo propio para que no se lea como una nota al pie más. */
.receipt-contact {
  margin-top: 20px;
  padding: 18px;
  background: #f0faf3;
  border: 1px solid #cdeed8;
  border-radius: var(--radius);
}
.receipt-contact strong {
  display: block;
  color: var(--black);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.receipt-contact p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--gray);
}
#receipt-close-btn {
  margin-top: 22px;
}

/* =========================================================
   WHATSAPP FLOAT BUTTON
========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 800;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}

/* =========================================================
   TOAST
========================================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast i { color: var(--crudo-dark); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
  .hero-people { height: 64%; max-height: 460px; opacity: 0.85; }
  .hero-content { margin-top: 60px; }
  .hero-bg-text { top: 62%; }
}

@media (max-width: 1024px) {
  :root { --header-h: 92px; }
  .brand-logo img { height: 40px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-visual { max-width: 340px; margin: 0 auto; }
  .envios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 80px; }
  .brand-logo img { height: 36px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .modal-box { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal-media { height: 260px; min-height: 260px; max-height: 260px; }
  .modal-info { max-height: none; overflow-y: visible; }
  .hero-bg-text { top: 58%; font-size: clamp(5rem, 30vw, 12rem); }
  .hero-people { height: 48%; max-height: 340px; opacity: 0.9; }
  .size-chart-diagram { flex-direction: column; text-align: center; }
  .size-chart-legend { align-items: center; }
}

@media (hover: none) {
  .card-nav-btn { opacity: 1; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  /* Desde acá el <picture> del header sirve la versión "mark" (sin COLLECTION). */
  .brand-logo img { height: 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-container { padding: 0 16px; }
  .hero-section { padding: 30px 16px 70px; min-height: auto; }
  .hero-bg-text { top: 50%; font-size: clamp(4rem, 32vw, 9rem); opacity: 0.28; }
  .hero-content { margin-top: 0; }
  /* En celular el bloque ya entra sin pisar el fondo: sin subida ni margen extra. */
  .hero-logo { width: clamp(180px, 52vw, 260px); top: 0; margin-bottom: 14px; }
  .hero-people {
    top: auto;
    bottom: 0;
    transform: none;
    height: 30vh;
    max-height: 210px;
    opacity: 0.35;
    z-index: 0;
  }
  .hero-people-left { left: -10%; }
  .hero-people-right { right: -10%; }
  .quality-strip { flex-direction: column; align-items: center; }
  .cart-drawer { width: 100%; max-width: 100%; }
  .envios-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  :root { --header-h: 60px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .brand-logo img { height: 26px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3rem); }
  .header-inner { padding: 0 16px; gap: 10px; }
  .hero-people { height: 24vh; max-height: 160px; opacity: 0.3; }
  .hero-people-left { left: -14%; }
  .hero-people-right { right: -14%; }
}

/* =========================================================
   SEO — links de tarjeta, FAQ y footer con datos de contacto
========================================================= */

/* La foto de la tarjeta es un <a> real a /producto/<slug>. Tiene que
   ocupar todo el .product-media para que la imagen siga llenándolo. */
.product-photo-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-name a {
  color: inherit;
}

.product-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Preguntas frecuentes ---- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--crudo-deep);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 20px;
  line-height: 1.75;
  color: var(--gray);
  font-size: 0.94rem;
}

.faq-item a {
  color: var(--crudo-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Footer con datos de contacto (señal NAP) ---- */
.footer-nap {
  margin: 18px 0 6px;
  text-align: center;
}

.footer-nap p {
  margin: 6px 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray-light);
}

.footer-nap a {
  color: var(--crudo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nap a:hover {
  color: var(--white);
}