:root {
  --bg: #05070d;
  --bg-secondary: #0a0f1f;
  --bg-elevated: #0d1424;
  --bg-card: #101828;
  --border: #1c2438;
  --text: #ffffff;
  --text-dim: #8b95ad;
  --neon-cyan: #2dd4e8;
  --neon-violet: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-text: #04141c;
  --whatsapp: #25d366;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 0; list-style: none; margin: 0; }
svg { display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--neon-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary,
.btn-whatsapp {
  background: var(--neon-cyan);
  color: var(--accent-text);
}
.btn-primary:hover,
.btn-whatsapp:hover {
  background: #52e1ee;
  box-shadow: 0 10px 30px rgba(45, 212, 232, 0.22);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

.btn-small { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Siempre clickeable: la validación de "Pagar contra-entrega" corre en el
   clic (ver iniciarPagoContraEntrega en carrito.js), así que nunca queda
   disabled y debe verse igual de "activo" que antes: fondo cyan sólido con
   texto oscuro (como .btn-primary/.btn-whatsapp), no el outline transparente
   de .btn-outline. */
#checkout-contraentrega { background: var(--neon-cyan); border-color: var(--neon-cyan); color: var(--accent-text); }
#checkout-contraentrega:hover { background: #52e1ee; color: var(--accent-text); border-color: #52e1ee; }

/* ---------- Barra de anuncio ---------- */
#announcement-bar {
  position: sticky;
  top: 0;
  z-index: 41;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0 16px;
  text-align: center;
  overflow: hidden;
}
#announcement-bar .accent { color: var(--neon-cyan); font-weight: 700; }

#announcement-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity 0.3s ease;
}
#announcement-text.fade-out { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  #announcement-text { transition: none; }
}

/* ---------- Header ---------- */
#site-header {
  position: sticky;
  top: 34px;
  z-index: 40;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 420px) {
  #announcement-bar { font-size: 11px; }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.logo-dot { color: var(--neon-cyan); }

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 14.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  border-color: var(--neon-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-link {
  position: relative;
  display: flex;
  color: var(--text-dim);
  padding: 4px;
  transition: color 0.15s ease;
}
.cart-link:hover, .cart-link.active { color: var(--text); }
.cart-link svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--neon-violet);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- Placeholder de imagen ---------- */
.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, var(--bg-secondary), var(--bg-elevated));
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  color: var(--text-dim);
  text-align: center;
  overflow: hidden;
  width: 100%;
}
.img-placeholder svg { width: 34px; height: 34px; opacity: 0.5; }
.img-placeholder span {
  max-width: 220px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.img-placeholder--hero { aspect-ratio: 4 / 5; }
.img-placeholder--wide { aspect-ratio: 16 / 10; }
.img-placeholder--square { aspect-ratio: 1 / 1; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: 46px;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 17px;
  max-width: 460px;
}

/* En producto.html el párrafo largo va justo debajo de los botones de
   compra; le damos un respiro para que no se vean pegados. */
.producto-detalle .hero-desc { margin-top: 18px; }

.hero-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin: 8px 0 22px;
}

.hero-benefits { margin-bottom: 32px; }
.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 15px;
}
.hero-benefits li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* "Comprar ahora" y "Agregar al carrito" deben quedar siempre lado a lado,
   incluso en celular: cada botón ocupa la mitad del ancho (flex:1) en vez de
   su ancho de contenido, y no se permite que salten de línea. Aplica tanto
   en la página de producto (.producto-detalle) como en el hero del inicio
   con el producto destacado (.hero), que usan los mismos botones. */
.producto-detalle .hero-actions,
.hero .hero-actions {
  flex-wrap: nowrap;
  gap: 10px;
}
.producto-detalle .hero-actions .btn,
.hero .hero-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  /* .btn trae white-space:nowrap (para que los botones normales no salten de
     línea); acá lo revertimos porque estos botones sí necesitan poder
     envolver texto en pantallas angostas en vez de desbordarse fuera de la
     píldora. */
  white-space: normal;
  text-align: center;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galería de producto (imagen principal + miniaturas) ---------- */
.producto-galeria { display: flex; flex-direction: column; gap: 12px; }

.galeria-principal {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.galeria-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.galeria-principal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.galeria-miniaturas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.galeria-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-elevated);
  cursor: pointer;
}
.galeria-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria-thumb:hover { border-color: var(--border); }
.galeria-thumb.active,
.galeria-thumb.active:hover { border-color: var(--neon-cyan); }

.galeria-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 13, 0.45);
}
.galeria-play svg { width: 20px; height: 20px; color: #fff; }

/* ---------- Value strip ---------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.value-item svg {
  width: 19px;
  height: 19px;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-secondary); }
.section-title { font-size: 32px; margin-bottom: 10px; }
.section-sub { max-width: 560px; margin-bottom: 44px; font-size: 16px; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Split section (marca / producto destacado) ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-section.reverse .split-media { order: 2; }
.split-section.reverse .split-text { order: 1; }

.split-text h2 { font-size: 30px; }
.split-text p { font-size: 16px; }

.split-benefits { margin: 24px 0 28px; }
.split-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 15px;
}
.split-benefits li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  flex-shrink: 0;
}

.split-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 22px;
}

/* ---------- Value proposition / benefit cards ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.benefit-card:hover { border-color: rgba(45, 212, 232, 0.35); transform: translateY(-3px); }
.benefit-card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(45, 212, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-card svg { width: 22px; height: 22px; color: var(--neon-cyan); }
.benefit-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.benefit-card p { font-size: 14px; margin: 0; }

/* ---------- Product grid / cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: rgba(45, 212, 232, 0.4);
  transform: translateY(-4px);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-elevated);
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(45, 212, 232, 0.12);
  border: 1px solid rgba(45, 212, 232, 0.4);
  color: var(--neon-cyan);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.product-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.rating-number { color: var(--text); font-weight: 600; }
.rating-stars { display: flex; align-items: center; gap: 2px; }
.rating-stars svg { width: 14px; height: 14px; }
.rating-stars .star-filled { color: var(--neon-cyan); }
.rating-stars .star-empty { color: var(--text-dim); opacity: 0.5; }
.rating-count { color: var(--text-dim); }

.product-card-name { font-size: 18px; margin-bottom: 6px; }
.product-card-desc { font-size: 14px; flex: 1; }
.product-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.product-card--placeholder { cursor: default; }
.product-card--placeholder:hover { transform: none; border-color: var(--border); }
.product-card--placeholder .product-card-name,
.product-card--placeholder .product-card-price { color: var(--text-dim); }

/* ---------- Fila de precio + badge de valor (catálogo y detalle) ---------- */
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.price-row .product-card-price,
.price-row .hero-price { margin-bottom: 0; }

.ahorro-badge {
  display: inline-block;
  background: rgba(45, 212, 232, 0.12);
  border: 1px solid rgba(45, 212, 232, 0.4);
  color: var(--neon-cyan);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: 999px;
}

.delivery-info-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 6px 20px;
  margin-top: 28px;
}
.delivery-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-dim);
}
.delivery-info-row:last-child { border-bottom: none; }
.delivery-info-row svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--neon-cyan);
}

.spec-list {
  max-width: 640px;
  margin-top: 64px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-dim); }
.spec-value { color: var(--text); font-weight: 500; text-align: right; }

.back-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--neon-cyan); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text-dim);
}

/* ---------- About page ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(45, 212, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.info-card svg { width: 22px; height: 22px; color: var(--neon-cyan); }

/* ---------- Legal pages ---------- */
.legal-updated { color: var(--text-dim); font-size: 14px; margin: -8px 0 0; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 20px; margin-top: 40px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--neon-cyan); text-decoration: underline; text-underline-offset: 2px; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin: 0 0 1em; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 6px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron {
  transition: transform 0.2s ease, color 0.2s ease;
  color: var(--text-dim);
  flex-shrink: 0;
}
.faq-item[open] summary .chevron { transform: rotate(180deg); color: var(--neon-cyan); }
.faq-item .faq-answer { padding: 0 4px 22px; margin: 0; font-size: 14.5px; }

/* ---------- CTA final ---------- */
.final-cta-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.final-cta-inner .section-title { font-size: 34px; }
.final-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ---------- Formulario de entrega ---------- */
.delivery-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}
.delivery-form h2 { font-size: 18px; margin-bottom: 4px; }
.delivery-form .form-sub { font-size: 13.5px; margin-bottom: 4px; }

.form-section-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  font-weight: 700;
  margin: 22px 0 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; color: var(--text-dim); font-weight: 500; }

.form-field input,
.form-field select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  width: 100%;
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--neon-cyan);
}
.form-field input::placeholder { color: var(--text-dim); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 34px; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 45%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--text-dim);
  border-bottom: 1.6px solid var(--text-dim);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

/* Honeypot anti-bots: oculto para personas (fuera de pantalla + opacity 0,
   nunca con "hidden"/display:none, que los bots detectan y evitan rellenar). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.form-hint {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 10px 0 0;
}
.form-hint.success { color: var(--neon-cyan); }
.form-hint a { color: var(--neon-cyan); text-decoration: underline; }

.mapa-entrega {
  height: 220px;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.15s ease;
}
.mapa-entrega.confirmada { border-color: var(--neon-cyan); }

.mapa-locate-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mapa-locate-btn:hover { background: var(--bg-elevated); border-color: var(--neon-cyan); }
.mapa-locate-btn svg { width: 18px; height: 18px; }
.mapa-locate-btn.loading { opacity: 0.55; cursor: wait; }

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
}
.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-elevated);
}
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--text-dim); font-size: 14px; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.qty-control button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
}
.qty-control span { min-width: 20px; text-align: center; }

.remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 18px;
}
.remove-btn:hover { color: #ff6b6b; }

.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-dim);
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.summary-total span:last-child { color: var(--neon-cyan); }
.envio-gratis { color: var(--neon-cyan); font-weight: 700; }

.checkout-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  margin: 8px 0 16px;
}

.discount-note {
  background: rgba(45, 212, 232, 0.08);
  border: 1px solid rgba(45, 212, 232, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  text-align: center;
}
.discount-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.discount-prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.price-old {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.price-new {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* ---------- Checkout drawer (panel de "Comprar ahora" en producto.html) ---------- */
/* Ventana flotante centrada sobre el producto, no un panel a pantalla
   completa: el fondo se ve oscurecido y desenfocado (blur), y el panel en sí
   ocupa ~80% del ancho/alto, con esquinas redondeadas, dando la sensación de
   estar "encima" de la página en vez de navegar a una nueva. */
.checkout-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 55;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.checkout-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.checkout-drawer-panel {
  position: relative;
  width: 80%;
  height: 80%;
  max-width: 720px;
  overflow-y: auto;
  background: #ffffff;
  padding: 32px 24px 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.25s ease;

  /* Tema claro SOLO para lo que vive dentro del panel: redefine acá las
     mismas variables de color que ya usan .cart-item, .form-field,
     .summary-box, .qty-control, etc. — no se toca ni una de esas clases ni
     sus declaraciones base (siguen igual en css/styles.css), solo el VALOR
     que "ven" mientras están dentro de este contenedor. Fuera de acá
     (carrito.html completo, el resto de producto.html, cualquier otra
     página) esas variables siguen resolviendo a los valores oscuros del
     :root, intactas. */
  --bg-card: #f7f8fa;
  --bg-elevated: #eef0f3;
  --text: #111827;
  --text-dim: #4b5563;
  --border: #dfe3e8;
  color: var(--text);
}
.checkout-drawer-overlay.open .checkout-drawer-panel { transform: scale(1); }
.checkout-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.checkout-drawer-panel .cart-layout { grid-template-columns: 1fr; margin-top: 24px; }
.checkout-drawer-panel .summary-box { position: static; }
body.checkout-drawer-abierto { overflow: hidden; }

/* --neon-cyan (el cyan de marca) se deja tal cual: como fondo de botón
   (#checkout-contraentrega) o como borde (foco de inputs, mapa confirmado)
   se sigue viendo bien sobre blanco. Como TEXTO plano sí se lava sobre
   fondo blanco, así que esos casos puntuales se oscurecen a un teal legible
   — sin tocar la variable --neon-cyan en sí, solo estas clases, y solo
   dentro del panel. */
.checkout-drawer-panel .form-hint.success,
.checkout-drawer-panel .form-hint a,
.checkout-drawer-panel .envio-gratis,
.checkout-drawer-panel .summary-total span:last-child,
.checkout-drawer-panel .price-new,
.checkout-drawer-panel .discount-badge,
.checkout-drawer-panel .mapa-locate-btn {
  color: #0e7490;
}
.checkout-drawer-panel .mapa-locate-btn:hover { border-color: #0e7490; }

/* .empty-state usa un borde punteado en rgba(255,255,255,...) pensado para
   fondo oscuro (no es una variable, así que la redefinición de arriba no lo
   alcanza) — se oscurece a mano para que se vea sobre el panel blanco. */
.checkout-drawer-panel .empty-state { border-color: rgba(17, 24, 39, 0.14); }

@media (max-width: 640px) {
  /* En mobile, ~80% se queda muy angosto para el formulario (dos columnas,
     mapa, etc.), así que el panel crece a casi toda la pantalla — sigue
     "flotando" (se ve el fondo desenfocado alrededor) pero sin desperdiciar
     el poco ancho que hay. */
  .checkout-drawer-panel { width: 94%; height: 90%; max-width: 100%; border-radius: 20px; padding: 28px 16px 32px; }

  /* Checkout más compacto en mobile: menos aire entre secciones y entre
     campos. Solo se recorta el padding/margen vertical (arriba/abajo) de
     las cajas y el espacio ENTRE campos — nunca el padding horizontal ni el
     tamaño de los inputs, para no perder área de toque. Todo escapado bajo
     .checkout-drawer-panel: no afecta a carrito.html, que comparte estas
     mismas clases (.cart-item, .delivery-form, .form-grid, .form-field). */
  .checkout-drawer-panel .cart-item { padding: 10px 16px; margin-bottom: 8px; }
  .checkout-drawer-panel .delivery-form { margin-top: 10px; padding: 16px 24px; }
  .checkout-drawer-panel .form-section-title { margin: 14px 0 8px; }
  .checkout-drawer-panel .form-grid { gap: 10px; }
  .checkout-drawer-panel .form-field { margin-bottom: 8px; }
}

/* ---------- Footer ---------- */
#site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 56px 0 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-text { font-size: 14px; margin-bottom: 6px; }
.footer-link { color: var(--neon-cyan); }
.footer-col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-list a { font-size: 14px; color: var(--text-dim); transition: color 0.15s ease; }
.footer-nav-list a:hover { color: var(--neon-cyan); }
.footer-bottom {
  text-align: center;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Floating WhatsApp button ---------- */
/* Además de <a> (el flotante genérico "Elige tus productos"), esta clase
   también se usa en un <button> (la pestaña "Paga al recibir en casa" de
   producto.html), de ahí el reset de border/cursor/font. */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  background: var(--neon-cyan);
  color: var(--accent-text);
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 8px 28px rgba(45, 212, 232, 0.28);
}
.whatsapp-float svg { width: 19px; height: 19px; }
.whatsapp-float[hidden] { display: none; }

/* ---------- Modal & toast ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--neon-cyan);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 60;
  max-width: calc(100vw - 40px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .producto-galeria { order: -1; }
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse .split-media,
  .split-section.reverse .split-text { order: initial; }
  .info-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link {
    padding: 13px 14px;
    border-radius: 10px;
    border-bottom: none;
  }
  .nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.05); border-color: transparent; }
  .nav-toggle { display: block; }
  .header-actions .btn-small { display: none; }
}

@media (max-width: 640px) {
  .value-strip { grid-template-columns: 1fr; gap: 16px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 32px; }
  /* Más chico que el .hero-title general de arriba: en producto.html el
     nombre del producto necesita entrar en una sola línea en anchos de
     celular típicos (375-414px) — medido con el nombre más largo del
     catálogo (23 caracteres), 32px todavía cortaba en dos líneas. */
  .producto-detalle .hero-title { font-size: 28px; }
  .section-title { font-size: 26px; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item .qty-control, .cart-item .remove-btn { grid-column: 2; }

  /* Dentro del panel de checkout, el selector de cantidad y la "X" comparten
     la segunda fila en vez de apilarse uno debajo del otro: el cajón de
     cantidad se ajusta a su contenido (no se estira a todo el ancho) y la
     "X" queda al costado, en la misma fila. Escapado bajo
     .checkout-drawer-panel porque .cart-item también lo usa carrito.html
     tal cual, sin este ajuste. */
  .checkout-drawer-panel .cart-item { grid-template-columns: 60px 1fr auto; }
  .checkout-drawer-panel .cart-item .qty-control {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .checkout-drawer-panel .cart-item .remove-btn {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  /* Menos padding y letra más chica para que "Comprar ahora" y "Agregar al
     carrito" no corten su texto al compartir el ancho a la mitad cada uno. */
  .producto-detalle .hero-actions,
  .hero .hero-actions { gap: 8px; }
  .producto-detalle .hero-actions .btn,
  .hero .hero-actions .btn {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 13.5px;
  }

  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .spec-value { text-align: left; }
}
