/* =============================================================
   Catálogo público — estilo galería claro/minimalista.
   Mobile-first. Inspirado en tiendas tipo "gallery e-commerce".
   ============================================================= */
:root {
  --bg: #ffffff;
  --bg-suave: #f4f4f2;
  --card: #ffffff;
  --texto: #111111;
  --suave: #8a8a85;
  --borde: #e7e7e3;
  --negro: #111111;
  --wa: #25d366;
  --wa-oscuro: #1da851;
  --radio: 4px;
  --maxw: 1600px;
  --fuente: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fuente);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* evita desbordamiento horizontal en celular (sin romper el sticky del encabezado) */
}

img { display: block; }

/* ---------- Barra de anuncio ---------- */
.anuncio {
  background: var(--negro);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  line-height: 1.4;
}

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--borde);
}
.encabezado-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 12px;
}
/* Tres zonas: izquierda (menú) · centro (logo) · derecha (carrito) */
.lado { flex: 1 1 0; display: flex; align-items: center; gap: 2px; min-width: 0; }
.lado-der { justify-content: flex-end; }
.logo-wrap {
  flex: 0 1 auto;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  font-size: clamp(15px, 4.6vw, 20px);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}
.logo-img { height: 32px; width: auto; max-width: 60vw; object-fit: contain; }

.icono-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--texto);
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}
.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #dc2626; /* círculo rojo del contador del carrito */
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Buscador ---------- */
.barra-busqueda {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 12px;
}
.buscador {
  width: 100%;
  padding: 11px 14px;
  font-size: 16px; /* 16px evita el zoom automático en iOS */
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--bg-suave);
  outline: none;
  transition: border-color .15s, background .15s;
}
.buscador:focus { border-color: var(--negro); background: #fff; }

/* ---------- Menú lateral (categorías) ---------- */
.menu-lateral {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: min(330px, 86%);
  height: 100%;
  background: var(--card);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 24px rgba(0, 0, 0, .14);
}
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  border-bottom: 1px solid var(--borde);
}
.menu-titulo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.menu-cats {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 16px;
}
.menu-cat {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--borde);
  cursor: pointer;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--texto);
  transition: background .12s;
}
.menu-cat:hover { background: var(--bg-suave); }
.menu-cat.activo { font-weight: 800; box-shadow: inset 3px 0 0 var(--negro); }

/* ---------- Menú: grupos desplegables (acordeón) ---------- */
.menu-grupo { border-bottom: 1px solid var(--borde); }
.menu-grupo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--texto);
  transition: background .12s;
}
.menu-grupo-head:hover { background: var(--bg-suave); }
.menu-grupo-head .chevron {
  flex: none;
  color: var(--suave);
  transition: transform .18s ease;
}
.menu-grupo.abierto .menu-grupo-head .chevron { transform: rotate(180deg); }

/* Subcategorías: ocultas hasta que el grupo está abierto */
.menu-sub { display: none; background: var(--bg-suave); }
.menu-grupo.abierto .menu-sub { display: block; }
.menu-sub .menu-cat {
  padding-left: 40px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--borde);
  background: none;
}
.menu-sub .menu-cat:last-child { border-bottom: none; }
.menu-sub .menu-cat:hover { background: rgba(0, 0, 0, .045); }

/* ---------- Interruptor de modo noche ---------- */
.tema-fila {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-top: 1px solid var(--borde);
}
.tema-fila-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--texto);
}
.tema-switch {
  position: relative; flex: none; width: 48px; height: 26px; padding: 0;
  border: none; border-radius: 13px; background: #8d8d88; cursor: pointer;
  transition: background .2s;
}
.tema-switch[aria-checked="true"] { background: var(--wa); }
.tema-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: left .2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.tema-switch[aria-checked="true"] .tema-knob { left: 25px; }

/* ---------- Cabecera de la grilla (título de sección) ---------- */
.cabecera-grilla {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 18px;
}
.cabecera-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.titulo-seccion {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.titulo-seccion:empty { display: none; }
.conteo-productos {
  font-size: 11px;
  color: var(--suave);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Controles: filtro de talla + orden */
.controles {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.control-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--card);
  border: 1px solid var(--borde);
  border-radius: 8px;
  color: var(--texto);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  height: 40px;
  padding: 0 32px 0 12px;
  cursor: pointer;
  max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.control-select:focus { outline: none; border-color: var(--negro); }
.control-select:disabled { opacity: .5; cursor: not-allowed; }

/* Botón que abre el desplegable de tallas (mismo look que un select) */
.control-btn {
  display: inline-flex;
  align-items: center;
  text-align: left;
  white-space: nowrap;
  max-width: 60vw;
}
.control-btn span { overflow: hidden; text-overflow: ellipsis; }
.control-btn[aria-expanded="true"] { border-color: var(--negro); }

/* Desplegable de tallas con casillas */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 170px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  padding: 6px;
}
.talla-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.talla-opt:hover { background: var(--bg-suave); }
.talla-opt input { width: 16px; height: 16px; accent-color: var(--negro); cursor: pointer; }
.dropdown-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  padding: 6px 4px 2px;
  border-top: 1px solid var(--borde);
}
.dropdown-foot button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--suave);
}
.dropdown-foot button:hover { color: var(--negro); }
.dropdown-vacio { margin: 0; padding: 12px; font-size: 12px; color: var(--suave); text-align: center; }

/* ---------- Banner (hero) ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .32);
}
.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 48px 20px;
  max-width: 720px;
}
.hero-titulo {
  font-size: clamp(22px, 4.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero-subtitulo {
  font-size: clamp(13px, 3.4vw, 17px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 22px;
  opacity: .92;
}
.hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--negro);
  border: none;
  padding: 13px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .15s;
}
.hero-cta:hover { opacity: .85; }

@media (min-width: 760px) { .hero { min-height: 420px; } }

/* ---------- Banner chico (dentro de una categoría / búsqueda) ---------- */
.mini-banner {
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
  color: #fff;
  text-align: center;
  padding: 22px 20px;
}
.mini-banner span {
  display: inline-block;
  font-size: clamp(16px, 4vw, 24px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Contenido / grilla ---------- */
.contenido {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 16px 40px;
}
/* Indicador de carga a pantalla completa (lo PRIMERO que se ve mientras llegan los productos).
   Reserva un alto de pantalla para que el pie de página arranque abajo y NO salte cuando aparece
   el contenido (eso penaliza el puntaje por "movimiento de diseño" / CLS). Se oculta solo al
   terminar de cargar. */
.cargando-inicial {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--suave);
  font-size: 14px; letter-spacing: 0.03em; padding: 40px 16px;
}
.estado {
  text-align: center;
  color: var(--suave);
  padding: 48px 0;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.grilla {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
}
@media (min-width: 560px) { .grilla { grid-template-columns: repeat(3, 1fr); gap: 22px 16px; } }
@media (min-width: 900px) { .grilla { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; } }
@media (min-width: 1200px) { .grilla { grid-template-columns: repeat(5, 1fr); gap: 32px 22px; } }

/* ---------- Tarjeta de producto ---------- */
.card {
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.card-foto {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-suave);
  overflow: hidden;
  cursor: pointer;
}
.card-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-foto img { transform: scale(1.04); }
.card-foto .sin-foto {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8b8b2;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Etiquetas (badges) */
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.badge-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 5px;
  line-height: 1;
}
.badge-nuevo { background: var(--negro); color: #fff; }

/* Quick add (overlay sobre la foto) */
.card-add {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px;
  z-index: 2;
}
.btn-agregar {
  width: 100%;
  padding: 4px 5px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--negro);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-agregar:active { opacity: .85; }

/* En desktop con mouse: el botón aparece al pasar por encima */
@media (hover: hover) and (pointer: fine) {
  .card-add {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .card:hover .card-add { opacity: 1; transform: translateY(0); }
}

/* control +/- cuando ya está en el carrito */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--negro);
}
.stepper button {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--negro);
}
.stepper button:disabled { color: #c7ccd1; cursor: not-allowed; }
.stepper .cant { font-size: 14px; font-weight: 700; }

.card-cuerpo {
  padding: 10px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card-nombre {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  /* máximo 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: var(--texto);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.card-meta:empty { display: none; }
.card-precio {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- Pie de página ---------- */
.footer {
  background: var(--negro);
  color: #fff;
  padding: 40px 16px 26px;
  margin-top: 30px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-col { min-width: 200px; }
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.footer-info {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
  margin: 0;
  max-width: 360px;
}
.footer-enlaces { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: .85;
}
.footer-link:hover { opacity: 1; text-decoration: underline; }
.footer-copy {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, .55);
  text-align: center;
}

/* ---------- Carrito (panel lateral) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 40;
}
.panel-carrito {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(420px, 100%);
  height: 100%;
  background: var(--card);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .14);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--borde);
}
.panel-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-cerrar {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--suave);
}
.items-carrito {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 16px;
}
.carrito-vacio {
  text-align: center;
  color: var(--suave);
  padding: 48px 0;
  font-size: 14px;
  line-height: 1.6;
}
.item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--borde);
}
.item img, .item .item-sinfoto {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: var(--bg-suave);
  flex: 0 0 auto;
}
.item-info { flex: 1; min-width: 0; }
.item-nombre {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.item-meta { font-size: 11px; color: var(--suave); text-transform: uppercase; letter-spacing: 0.03em; }
.item-precio { font-size: 13px; font-weight: 700; margin-top: 4px; }
.item .stepper { width: 120px; margin-top: 8px; }
.item .stepper button { width: 36px; height: 34px; }
.item-quitar {
  background: none;
  border: none;
  color: #b03333;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}

.panel-footer {
  border-top: 1px solid var(--borde);
  padding: 16px;
}
.resumen-fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333333;
}
.total-fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.total-fila strong { font-size: 22px; letter-spacing: 0; }
.btn-enviar-wa {
  width: 100%;
  padding: 15px;
  border: none;
  background: var(--wa);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.btn-enviar-wa:hover { background: var(--wa-oscuro); }
.btn-enviar-wa:disabled { background: #cfd4d8; cursor: not-allowed; }
.btn-seguir {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: #fff;
  color: var(--negro);            /* letras en color fuerte (negro de marca) */
  border: 1.5px solid var(--negro);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-seguir:hover { background: var(--negro); color: #fff; }
.nota-envio {
  font-size: 11.5px;
  color: var(--suave);
  text-align: center;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* ---------- Página de producto ---------- */
.vista-producto {
  position: fixed;
  inset: 0;
  z-index: 35; /* cubre el header (20); el carrito (40/50) y el visor (60) quedan por encima */
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.vp-barra {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--borde);
}
.vp-volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--texto);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 4px;
}
.vp-cuerpo {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* no encadenar el scroll al fondo en celular */
}
.vp-detalle {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 16px 16px 8px;
}
.vp-galeria { min-width: 0; position: relative; }
/* Carrusel deslizable de fotos (scroll-snap nativo) */
.vp-carrusel {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; /* deslizar fotos NO dispara el "atrás" del navegador */
  scrollbar-width: none;          /* ocultar barra (Firefox) */
}
.vp-carrusel::-webkit-scrollbar { display: none; } /* ocultar barra (WebKit) */
.vp-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 3 / 4;
  background: var(--bg-suave);
  overflow: hidden;
  cursor: zoom-in;
}
.vp-slide img { width: 100%; height: 100%; object-fit: cover; }
.vp-foto-principal {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-suave);
  overflow: hidden;
  cursor: zoom-in;
}
.vp-foto-principal img { width: 100%; height: 100%; object-fit: cover; }
.vp-foto-principal .sin-foto {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8b8b2;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.vp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.vp-thumb {
  width: 56px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--borde);
  background: var(--bg-suave);
  cursor: pointer;
  overflow: hidden;
}
.vp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vp-thumb.activa { border-color: var(--negro); }
.vp-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Badge "Nuevo" en la esquina sup-izq de la foto (página de producto) */
.vp-badges-foto {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.vp-codigo {
  margin-left: 10px;
  color: var(--suave);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.vp-nombre {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
}
.vp-meta {
  font-size: 13px;
  color: var(--texto);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vp-meta:empty { display: none; }
.vp-precio { font-size: 22px; font-weight: 700; margin: 4px 0 8px; }
.vp-accion { margin-top: 4px; }
.btn-agregar-grande {
  width: 100%;
  padding: 15px;
  border: none;
  background: var(--negro);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-agregar-grande:hover { opacity: .88; }
.stepper-grande { width: 100%; height: 52px; }
.stepper-grande button { width: 64px; height: 100%; font-size: 22px; }
.vp-nota { font-size: 12px; color: var(--suave); margin: 10px 0 0; line-height: 1.5; }
.vp-similares {
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding: 18px 16px 48px;
  border-top: 1px solid var(--borde);
}
.vp-similares-titulo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 6px 0 16px;
  text-align: center;
}

/* Apartados desplegables (acordeones) bajo el botón */
.vp-acordeon { margin-top: 14px; }
.vp-seccion { border-bottom: 1px solid var(--borde); }
.vp-seccion:first-child { border-top: 1px solid var(--borde); }
.vp-seccion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 2px;
  color: var(--texto);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}
.vp-seccion-icono {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.vp-seccion-icono::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--texto);
}
.vp-seccion.abierta .vp-seccion-icono::before { content: "−"; }
.vp-seccion-body {
  display: none;
  padding: 0 2px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--texto);
}
.vp-seccion.abierta .vp-seccion-body { display: block; }
.vp-seccion-body p { margin: 0 0 8px; }
.vp-seccion-body p:last-child { margin-bottom: 0; }
.vp-seccion-body ul { margin: 0 0 8px; padding-left: 18px; }
.vp-seccion-txt { white-space: normal; }

/* ---- Guía de tallas (dentro del acordeón) ---- */
.gt-intro { margin: 0 0 12px; }
.gt-img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto 14px;
  border-radius: 8px;
}
.gt-paso { margin: 12px 0 6px; font-weight: 600; }
.gt-tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  font-size: 13px;
}
.gt-tabla th,
.gt-tabla td {
  border: 1px solid var(--borde);
  padding: 7px 10px;
  text-align: center;
}
.gt-tabla th {
  background: var(--fondo-suave, rgba(0, 0, 0, 0.04));
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.gt-tabla tr td:last-child { font-weight: 700; }
.gt-nota { margin: 10px 0 0; font-size: 12px; color: var(--text-muted, #777); }

@media (min-width: 760px) {
  .vp-detalle {
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    padding: 28px 16px 16px;
  }
  .vp-info { position: sticky; top: 20px; align-self: start; }
  .vp-nombre { font-size: 24px; }
}

[hidden] { display: none !important; }

/* ---------- Inicio curado: tiras + 3 líneas ---------- */
.inicio-curado {
  max-width: var(--maxw); margin: 0 auto;
  padding: 8px 12px 24px;
  display: flex; flex-direction: column;
  gap: 32px;                                /* separación entre las 3 secciones (celular) */
}
.tira-seccion, .lineas-seccion { margin: 0; }   /* el gap del contenedor maneja la separación */
.tira-titulo {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0 0 12px; padding: 0 4px; color: var(--texto);
}
.tira-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x proximity;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 0 4px 12px;
}
.tira-scroll::-webkit-scrollbar { display: none; }
.tira-scroll > .card { flex: 0 0 46%; scroll-snap-align: start; }
@media (min-width: 600px) { .tira-scroll > .card { flex: 0 0 30%; } }
@media (min-width: 900px) {
  .tira-scroll { gap: 16px; }
  .tira-scroll > .card { flex: 0 0 20%; }
}

.lineas-grid {
  display: grid;
  gap: 14px 8px;
  grid-template-columns: repeat(3, 1fr);    /* celular: 3 columnas */
}
@media (min-width: 600px) {
  .lineas-grid { gap: 18px 10px; grid-template-columns: repeat(4, 1fr); }   /* tablet: 4 */
}
@media (min-width: 900px) {
  .lineas-grid { gap: 32px 20px; grid-template-columns: repeat(5, 1fr); }   /* compu: 5 con más aire */
}

@media (min-width: 900px) {
  .inicio-curado { gap: 56px; padding: 16px 16px 40px; }   /* compu: secciones más separadas */
}

/* Cabecera de la grilla del medio: chips Ver todo / Camisas / Pantalones / Suéteres */
.lineas-cabecera { display: flex; align-items: center; margin-bottom: 14px; padding: 0 4px; }
.lineas-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lineas-tab {
  background: transparent;
  border: 1px solid var(--borde);
  color: var(--texto);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.lineas-tab:hover { background: var(--bg-suave); }
.lineas-tab.activo { background: var(--negro); color: #fff; border-color: var(--negro); }
@media (min-width: 900px) {
  .lineas-cabecera { margin-bottom: 22px; }
  .lineas-tab { font-size: 12px; padding: 8px 16px; }
}

.ver-todos-box {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;                       /* mismo formato que las cartas */
  background: var(--bg-suave); border: 1px solid var(--borde);
  cursor: pointer; padding: 0;
  display: flex;
  transition: transform .15s;
}
.ver-todos-box:hover { transform: scale(1.01); }
.ver-todos-foto {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ver-todos-overlay {
  position: relative;                        /* va por encima de la foto */
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  color: var(--texto);                       /* fallback sin foto */
}
.ver-todos-box.con-foto { border-color: transparent; color: #fff; }
.ver-todos-box.con-foto .ver-todos-overlay {
  background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .55));
  color: #fff;
}
.ver-todos-txt { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ver-todos-arrow { font-size: 22px; line-height: 1; }
@media (min-width: 900px) {
  .ver-todos-txt { font-size: 14px; }
  .ver-todos-arrow { font-size: 26px; }
}

/* ---------- Atajos en el carrito vacío ---------- */
.carrito-atajos {
  padding: 4px 14px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.atajo-btn {
  background: transparent;
  border: 1px solid var(--borde);
  color: var(--texto);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 6px;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.atajo-btn:hover {
  background: var(--negro);
  color: #fff;
  border-color: var(--negro);
}

/* ---------- Vista de Preguntas Frecuentes ---------- */
.vista-faq {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 60;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.faq-cuerpo {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 18px 60px;
}
.faq-titulo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto);
  margin: 12px 0 20px;
}
.faq-item {
  border-top: 1px solid var(--borde);
  padding: 14px 0;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--borde); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--texto);
}
.faq-item[open] > summary::after { content: '−'; }
.faq-resp {
  margin-top: 10px;
  color: var(--suave);
  font-size: 13.5px;
  line-height: 1.55;
}
.faq-resp strong { color: var(--texto); font-weight: 600; }
@media (min-width: 600px) {
  .faq-titulo { font-size: 26px; margin: 18px 0 24px; }
  .faq-item > summary { font-size: 15px; }
  .faq-resp { font-size: 14px; }
  .faq-item { padding: 18px 0; }
}

/* ---------- Modo noche (tema oscuro) ---------- */
html[data-tema="oscuro"] {
  --bg: #0f0f0f;
  --bg-suave: #1c1c1c;
  --card: #1a1a1a;
  --texto: #f3f3f1;
  --suave: #9b9b96;
  --borde: #2c2c2c;
  /* --negro, --wa, --wa-oscuro se mantienen */
}
/* Superficies de "tinta negra": que sigan resaltando sobre el fondo negro */
html[data-tema="oscuro"] .anuncio { background: #000; border-bottom: 1px solid var(--borde); }
html[data-tema="oscuro"] .footer  { background: #000; border-top: 1px solid var(--borde); }
html[data-tema="oscuro"] .badge-nuevo,
html[data-tema="oscuro"] .btn-agregar-grande { background: var(--texto); color: var(--bg); }
/* Botón "Continuar comprando" (contorneado) */
html[data-tema="oscuro"] .btn-seguir { background: transparent; color: var(--texto); border-color: var(--texto); }
html[data-tema="oscuro"] .btn-seguir:hover { background: var(--texto); color: var(--bg); }
/* Indicador de categoría activa en el menú */
html[data-tema="oscuro"] .menu-cat.activo { box-shadow: inset 3px 0 0 var(--texto); }
/* Colores fijos varios */
html[data-tema="oscuro"] .buscador:focus { background: var(--card); }
html[data-tema="oscuro"] .stepper { background: var(--bg-suave); border-color: var(--borde); }
html[data-tema="oscuro"] .stepper button,
html[data-tema="oscuro"] .stepper .cant { background: var(--bg-suave); color: var(--texto); }
html[data-tema="oscuro"] .btn-agregar { background: rgba(20, 20, 20, .85); border-color: rgba(255, 255, 255, .12); color: var(--texto); }
html[data-tema="oscuro"] .resumen-fila { color: #d4d4d4; }
html[data-tema="oscuro"] .item-quitar { color: #ef6b6b; }
html[data-tema="oscuro"] .btn-enviar-wa:disabled { background: #333; color: #888; }
html[data-tema="oscuro"] .menu-sub .menu-cat:hover { background: rgba(255, 255, 255, .06); }
html[data-tema="oscuro"] .overlay { background: rgba(0, 0, 0, .6); }
/* Chips del inicio curado: el activo se invierte en oscuro (claro sobre fondo oscuro) */
html[data-tema="oscuro"] .lineas-tab.activo { background: var(--texto); color: var(--bg); border-color: var(--texto); }
/* Atajos del carrito vacío: hover claro sobre oscuro */
html[data-tema="oscuro"] .atajo-btn:hover { background: var(--texto); color: var(--bg); border-color: var(--texto); }

/* ---------- CTA de Preguntas Frecuentes en el inicio ---------- */
.inicio-faq-cta {
  text-align: center;
  padding: 32px 18px 8px;
  border-top: 1px solid var(--borde);
  margin-top: 24px;
}
.inicio-faq-titulo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--texto);
  margin: 0 0 14px;
}
.inicio-faq-btn {
  background: transparent;
  border: 1px solid var(--texto);
  color: var(--texto);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.inicio-faq-btn:hover { background: var(--texto); color: var(--bg); }

/* ---------- Redes / contacto al final del inicio ---------- */
.inicio-redes {
  text-align: center;
  padding: 28px 18px 40px;
}
.inicio-redes-titulo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--suave);
  margin: 0 0 18px;
}
.inicio-redes-iconos {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.inicio-red-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  color: var(--texto);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.inicio-red-icono:hover {
  background: var(--texto);
  color: var(--bg);
  border-color: var(--texto);
  transform: translateY(-2px);
}
@media (min-width: 600px) {
  .inicio-faq-titulo { font-size: 18px; }
  .inicio-red-icono { width: 58px; height: 58px; }
}

/* ---------- Sub-acordeones de "Guía de tallas" dentro del FAQ ---------- */
.faq-guia-intro {
  margin: 0 0 14px;
  color: var(--suave);
  font-size: 13px;
  line-height: 1.5;
}
.faq-guia-cat {
  border: 1px solid var(--borde);
  margin-bottom: 8px;
}
.faq-guia-cat > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-guia-cat > summary::-webkit-details-marker { display: none; }
.faq-guia-cat > summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--texto);
}
.faq-guia-cat[open] > summary::after { content: '−'; }
.faq-guia-cat[open] > summary { border-bottom: 1px solid var(--borde); }
.faq-guia-cat-cuerpo {
  padding: 14px;
  font-size: 13px;
  color: var(--suave);
}
.faq-guia-cat-cuerpo .gt-intro { color: var(--suave); }
.faq-guia-cat-cuerpo .gt-paso { color: var(--texto); }

/* ---------- Aviso: se quitó una prenda agotada del carrito ---------- */
.aviso-agotado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid var(--borde);
  color: var(--texto);
  font-size: 12.5px;
  line-height: 1.4;
  padding: 10px 12px;
  margin: 8px 14px 12px;
  border-radius: 2px;
}
.aviso-cerrar {
  background: transparent;
  border: 0;
  color: var(--texto);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
html[data-tema="oscuro"] .aviso-agotado { background: rgba(255, 255, 255, .05); }
