/* ════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Fondo */
  --bg:           #06060f;
  --bg-2:         #0c0c1d;
  /* Superficies glass */
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-hover:  rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(10, 10, 30, 0.85);
  /* Bordes */
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(167, 139, 250, 0.45);
  /* Texto */
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  /* Acentos */
  --purple:       #7c3aed;
  --purple-light: #a78bfa;
  --blue:         #2563eb;
  --blue-light:   #60a5fa;
  --gold:         #f59e0b;
  --gold-light:   #fbbf24;
  /* Glows */
  --glow-purple:  rgba(124, 58, 237, 0.35);
  --glow-blue:    rgba(37, 99, 235, 0.3);
  /* UI */
  --radius:       12px;
  --radius-sm:    8px;
  --ease:         0.22s ease;
  --sidebar-w:    380px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.hidden { display: none !important; }

/* ════════════════════════════════════════════
   GALAXIA: ESTRELLAS + NEBULOSAS
   ════════════════════════════════════════════ */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.nebula-1 {
  width: 55vw;
  height: 55vw;
  top: -20vw;
  left: -15vw;
  background: radial-gradient(ellipse, rgba(109, 40, 217, 0.2) 0%, transparent 70%);
}

.nebula-2 {
  width: 50vw;
  height: 50vw;
  bottom: -15vw;
  right: -15vw;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
}

.nebula-3 {
  width: 30vw;
  height: 30vw;
  top: 40%;
  left: 55%;
  background: radial-gradient(ellipse, rgba(219, 39, 119, 0.08) 0%, transparent 70%);
}

/* Todo el contenido encima del fondo */
header, main, .overlay,
.cart-sidebar, .modal {
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 15, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

/* Línea inferior con gradiente galaxia */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 58, 237, 0.6) 30%,
    rgba(96, 165, 250, 0.6) 70%,
    transparent 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  gap: 5px;
}

.logo-cloud {
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-perfumes {
  color: var(--text);
}

/* ── Nav principal ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 4px 0;
  border: none;
  background: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  transition: color var(--ease);
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: none;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 700;
  background: none;
  border: none;
  box-shadow: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--blue-light));
}

/* ── Cart button ── */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: var(--text-muted);
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--ease);
}

.cart-btn:hover {
  border-color: var(--border-hover);
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.15);
  box-shadow: 0 0 20px var(--glow-purple);
}

/* ── Padding top para páginas sin hero ── */
.page-section {
  padding-top: 48px;
}

/* Mobile: 2-row header (nav below logo+cart) */
@media (max-width: 560px) {
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 0;
  }
  .logo { order: 1; }
  .cart-btn { order: 2; }
  .main-nav {
    order: 3;
    width: 100%;
    padding: 8px 0 6px;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
  }
  .nav-link { font-size: 13px; }
  .logo-text { font-size: 15px; }
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--ease), transform var(--ease);
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.15);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
  padding: 48px 0 30px;
}

.hero-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════
   PRODUCTS GRID
   ════════════════════════════════════════════ */
.products-section {
  padding-bottom: 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

/* ── Tarjeta producto ── */
.product-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.product-card:hover {
  border-color: var(--border-hover);
  background: var(--glass-hover);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.15), 0 8px 32px rgba(0,0,0,0.4);
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

/* Placeholder cuando no hay foto todavía */
.product-img.no-photo {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(37,99,235,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(37,99,235,0.1));
  color: rgba(167,139,250,0.4);
  font-size: 40px;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.55), rgba(37,99,235,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}

.product-img-wrap:hover .img-overlay {
  opacity: 1;
}

.img-overlay span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color var(--ease);
  line-height: 1.4;
}

.product-name:hover {
  color: var(--purple-light);
}

.product-sizes {
  display: flex;
  gap: 7px;
}

.size-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all var(--ease);
}

.size-btn:hover {
  border-color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25);
}

.size-btn:active {
  transform: scale(0.96);
}

.size-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.size-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
}

.size-btn:hover .size-label {
  color: var(--purple-light);
}

/* ════════════════════════════════════════════
   QUICKINFO (resumen en página decants)
   ════════════════════════════════════════════ */
.quickinfo-section {
  padding: 0 0 72px;
}

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

@media (max-width: 700px) {
  .quickinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quickinfo-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.quickinfo-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.quickinfo-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.quickinfo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.quickinfo-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ════════════════════════════════════════════
   BLOQUES DE PAGO DENTRO DEL FAQ
   ════════════════════════════════════════════ */
.faq-payment-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-payment-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 2px;
}

.faq-mp-link {
  color: var(--blue-light);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ease);
}

.faq-mp-link:hover {
  color: #fff;
}

/* ════════════════════════════════════════════
   SECCIÓN CONFIANZA / TESTIMONIOS
   ════════════════════════════════════════════ */
.trust-section {
  padding: 0 0 64px;
}

.trust-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-card {
  width: 220px;
  flex-shrink: 0;
  flex-grow: 0;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.trust-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

.trust-screenshot {
  width: 220px;
  height: 160px;
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
}

.trust-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.4s ease;
}

.trust-card:hover .trust-screenshot img {
  transform: scale(1.03);
}

/* Overlay con lupa al hacer hover */
.trust-expand-hint {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
  color: #fff;
}

.trust-card:hover .trust-expand-hint {
  opacity: 1;
}

.trust-quote {
  padding: 11px 14px 13px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  border-top: 1px solid var(--border);
}

.trust-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  text-align: center;
}

.trust-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  margin-top: -8px;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(4, 4, 12, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
}

.lightbox-img {
  max-width: min(400px, 88vw);
  max-height: 84dvh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 0 80px rgba(124, 58, 237, 0.3);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 560px) {
  .trust-card { width: 160px; }
  .trust-screenshot { width: 160px; height: 120px; }
  .trust-quote { font-size: 11px; }
}

/* ════════════════════════════════════════════
   SECCIÓN INFORMACIÓN / FAQ
   ════════════════════════════════════════════ */
.info-section {
  padding: 0 0 80px;
}

.info-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Acordeón FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.faq-item[open] {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.12);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: color var(--ease);
}

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

.faq-item:hover .faq-question {
  color: var(--purple-light);
}

.faq-item[open] .faq-question {
  color: var(--purple-light);
}

.faq-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform var(--ease), color var(--ease);
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--purple-light);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-answer p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer strong {
  color: var(--text);
  font-weight: 600;
}

.faq-answer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.faq-answer ul li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.faq-answer ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-weight: 700;
}

/* ── Bloque contacto WhatsApp ── */
.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.contact-text {
  font-size: 15px;
  color: var(--text-muted);
}

.btn-wa-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-wa-contact:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.35);
}

.btn-wa-contact:active {
  transform: scale(0.98);
}

/* ════════════════════════════════════════════
   VISTA: PRODUCTO INDIVIDUAL
   ════════════════════════════════════════════ */
.product-view {
  padding: 32px 0 80px;
  min-height: calc(100dvh - 64px);
}

.detail-nav {
  margin-bottom: 32px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px 8px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: all var(--ease);
}

.back-btn:hover {
  border-color: var(--border-hover);
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.08);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Imagen detalle */
.detail-img-col {
  position: sticky;
  top: 88px;
}

.detail-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  background: var(--glass);
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(37,99,235,0.1));
  font-size: 72px;
  color: rgba(167,139,250,0.3);
}

.detail-img-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* Info detalle */
.detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.detail-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-sizes-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.detail-option:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.12);
}

.detail-option-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-option-ml {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.detail-option-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.detail-option-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-option-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
}

.btn-add-detail {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}

.btn-add-detail:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px var(--glow-purple);
}

.btn-add-detail:active {
  transform: scale(0.97);
}

.detail-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ════════════════════════════════════════════
   OVERLAY
   ════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 12, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
}

/* ════════════════════════════════════════════
   CARRITO LATERAL
   ════════════════════════════════════════════ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-w);
  max-width: 100vw;
  height: 100dvh;
  background: rgba(8, 8, 22, 0.97);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color var(--ease);
  font-weight: 300;
}

.close-btn:hover {
  color: var(--text);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  font-size: 13px;
  gap: 8px;
}

/* ── Cart item ── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-size {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  line-height: 1;
}

.qty-btn:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
}

.qty-display {
  font-size: 13px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  min-width: 58px;
  text-align: right;
  flex-shrink: 0;
}

.cart-footer {
  padding: 20px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}

.cart-total-row strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
}

/* ════════════════════════════════════════════
   BOTONES
   ════════════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff;
  border: none;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 24px var(--glow-purple);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.btn-full { width: 100%; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

/* ════════════════════════════════════════════
   MODALES
   ════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 600px) {
  .modal {
    align-items: center;
    padding: 24px;
  }
}

/* ── Modal checkout ── */
.modal-content {
  background: rgba(8, 8, 22, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 92dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

@media (min-width: 600px) {
  .modal-content {
    border-radius: var(--radius);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8, 8, 22, 0.98);
  z-index: 1;
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.section-block {
  display: flex;
  flex-direction: column;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ── Shipping options ── */
.shipping-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  background: var(--glass);
}

.shipping-option:last-child { margin-bottom: 0; }

.shipping-option input[type="radio"] {
  accent-color: var(--purple-light);
  margin-top: 3px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.shipping-option.selected {
  border-color: var(--border-hover);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.12);
}

.shipping-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shipping-details strong {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.shipping-details span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Formulario datos ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.field-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field-input:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.field-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

@media (max-width: 420px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field--full {
    grid-column: 1;
  }
}

/* ── Address ── */
.address-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  width: 100%;
  resize: vertical;
  min-height: 72px;
  transition: border-color var(--ease);
}

.address-input:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.address-input::placeholder { color: var(--text-muted); }

/* ── Modal items ── */
.modal-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.modal-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 12px;
}

.modal-item-name { color: var(--text-muted); }

.modal-item-price {
  font-weight: 600;
  color: var(--gold-light);
  flex-shrink: 0;
}

.modal-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.modal-total-row strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  color: var(--gold-light);
}

.shipping-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.modal-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: rgba(8, 8, 22, 0.98);
  flex-shrink: 0;
}

/* ── Modal confirmación rápida ── */
.confirm-content {
  background: rgba(10, 10, 26, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.15);
}

@media (min-width: 600px) {
  .confirm-content {
    border-radius: var(--radius);
  }
}

.confirm-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.confirm-product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.confirm-product-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.confirm-product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.confirm-product-size {
  font-size: 12px;
  color: var(--text-muted);
}

.confirm-product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
}

.confirm-question {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-actions .btn-ghost,
.confirm-actions .btn-primary {
  flex: 1;
  text-align: center;
}

/* ════════════════════════════════════════════
   VISTA: CONFIRMACIÓN POST-COMPRA
   ════════════════════════════════════════════ */
.confirmation-view {
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.confirmation-card {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--purple-light);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
}

.confirmation-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.confirmation-sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.payment-intro {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.payment-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  width: 100%;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.payment-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.payment-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.payment-icon {
  font-size: 16px;
  line-height: 1;
}

.payment-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  gap: 16px;
}

.payment-row:last-child { border-bottom: none; }
.payment-row span { color: var(--text-muted); flex-shrink: 0; }
.payment-row strong { font-weight: 600; text-align: right; }

.mp-link {
  color: var(--blue-light);
  word-break: break-all;
}

.payment-row-note {
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 8px;
  font-style: italic;
}

.confirmation-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.step-num {
  width: 22px;
  height: 22px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--purple-light);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ════════════════════════════════════════════
   SCROLLBAR
   ════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.4); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cart-sidebar { width: 100vw; }

  .hero { padding: 32px 0 20px; }

  .detail-option-price { font-size: 17px; }

  .btn-add-detail { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 360px) {
  .size-price { font-size: 12px; }
  .products-grid { gap: 8px; }
}
