/* ============================================
   TIENDA DE SEMILLAS - ESTILO ACTUALIZADO
   Tema: Oro/Negro - Referencia: boceto.html (Saadhu Seeds Bank)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   AGE GATE (Verificaci�n de edad)
   ============================================ */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background:
    linear-gradient(180deg, rgba(12, 2, 4, 0.94), rgba(0, 0, 0, 0.98)),
    repeating-linear-gradient(90deg, rgba(251, 191, 36, 0.07) 0 1px, transparent 1px 72px);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.age-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 22%, rgba(251, 191, 36, 0.13) 22% 23%, transparent 23% 58%),
    linear-gradient(250deg, transparent 0 48%, rgba(16, 185, 129, 0.10) 48% 49%, transparent 49% 100%);
  opacity: 0.8;
}

.age-gate-panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;

  background: transparent;

  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.age-gate-header h2 {
  color: var(--accent-primary);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.age-gate-subtitle {
  color: var(--text-light);
  opacity: 0.92;
  font-weight: 600;
  font-size: 0.95rem;
}


.age-gate-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #060202;
}

.age-gate-hero::before {
  content: '';
  position: absolute;
  inset: -26px;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.76)),
    url('./images/intro.png') center / cover no-repeat;
  filter: blur(18px) saturate(0.9) brightness(0.55);
  transform: scale(1.04);
}

.age-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.2rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.24) 0%, rgba(0,0,0,0.30) 42%, rgba(0,0,0,0.70) 100%);
}

.age-gate-header h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.55);
}

.age-gate-header {
  width: min(92vw, 520px);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(82, 10, 22, 0.76), rgba(5, 0, 2, 0.84));
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 6px rgba(251, 191, 36, 0.06);
}

.age-gate-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.26) 0%,
    rgba(20,2,8,0.18) 35%,
    rgba(0,0,0,0.78) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.age-gate-hero img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


@media (max-width: 768px) {
  .age-gate {
    align-items: stretch;
  }

  .age-gate-panel {
    width: 100vw;
    height: 100vh;
    height: 100svh;
  }

  .age-gate-hero {
    border-radius: 0;
  }

  .age-gate-hero img {
    inset: auto auto auto 50%;
    top: max(0.9rem, env(safe-area-inset-top));
    width: calc(100vw - 1rem);
    height: auto;
    max-height: 42vh;
    max-height: 42svh;
    aspect-ratio: 1799 / 874;
    object-fit: contain;
    object-position: center;
    transform: translateX(-50%);
    border: 1px solid rgba(251, 191, 36, 0.55);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.68);
    box-shadow:
      0 22px 70px rgba(0, 0, 0, 0.72),
      0 0 0 5px rgba(251, 191, 36, 0.07);
  }

  .age-gate-overlay {
    justify-content: flex-start;
    gap: 0.85rem;
    padding: calc(max(0.9rem, env(safe-area-inset-top)) + 48vw + 1rem) 1rem max(1rem, env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.18) 28%, rgba(8,0,3,0.86) 62%, rgba(0,0,0,0.98) 100%);
    overflow-y: auto;
  }

  .age-gate-header {
    width: min(430px, calc(100vw - 2rem));
    padding: 1rem;
  }

  .age-gate-header h2 {
    font-size: 1.15rem;
  }

  .age-gate-subtitle {
    font-size: 0.88rem;
  }

  .age-gate-actions {
    width: min(430px, calc(100vw - 2rem));
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 0;
  }

  .age-gate-actions .btn-primary,
  .age-gate-actions .btn-checkout {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 768px) and (max-height: 680px) {
  .age-gate-hero img {
    max-height: 35vh;
    max-height: 35svh;
  }

  .age-gate-header {
    padding: 0.85rem;
  }

  .age-gate-actions .btn-primary,
  .age-gate-actions .btn-checkout {
    min-height: 44px;
  }
}

html.is-android .age-gate {
  background: #050202;
  backdrop-filter: none;
}

html.is-android .age-gate::before,
html.is-android .age-gate-hero::before {
  display: none;
}

html.is-android .age-gate-hero {
  background: #050202 url('./images/fondoandroidpng.png') center / cover no-repeat;
}

html.is-android .age-gate-hero::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.22) 42%, rgba(0,0,0,0.76) 100%);
}

html.is-android .age-gate-hero img {
  display: none;
}

html.is-android .age-gate-overlay {
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.28) 44%, rgba(0,0,0,0.70) 100%);
}

html.is-android .age-gate-header {
  background:
    linear-gradient(180deg, rgba(82, 10, 22, 0.68), rgba(5, 0, 2, 0.78));
  backdrop-filter: blur(8px);
}

.age-gate-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-gate-message {
  margin-top: 1rem;
  color: #fca5a5;
  font-weight: 700;
}


/* ============================================
   ?? VARIABLES Y COLORES - CAMBIO CR�TICO
   ============================================
   TEMA: SAADHU SEEDS BANK - Premium Black & Gold
   
   Referencia: boceto.html utiliza:
   - Background: Negro puro (#080808 / #000000)
   - Primario: Amarillo/Oro (#FFB400 / #FBBF24)
   - Texto: Amarillo claro (#FBBF24 / #FCD34D)
   - Acentos: Gris claro para descripciones
   ============================================ */

:root {
  /* =========================================================
     TEMA: SAADHU PREMIUM � NEGRO & ORO � CINEM�TICO
     ========================================================= */

  /* Fondos base - NEGRO PURO */
  --bg-darker: #000000;
  --bg-dark: #080808;

  /* Acentos principales - AMARILLO/ORO */
  --accent-primary: #FBBF24; /* Amarillo Premium */
  --accent-primary-light: #FCD34D;
  --accent-primary-dark: #D97706;

  /* Acentos vegetales (menos relevante pero mantenemos) */
  --accent-green: #2F6B4F;
  --accent-green-2: #1C3B2A;

  /* Tierra / arcilla */
  --accent-earth: #6B4E2E;
  --accent-moss: #4E7C5A;

  /* Cream -> Amarillo claro */
  --accent-cream: #FBBF24;

  /* Texto */
  --text-light: #FBBF24;
  --text-muted: rgba(255, 255, 255, 0.6);

  /* UI glass */
  --glass-bg: rgba(0, 0, 0, 0.5);
  --glass-border: rgba(251, 191, 36, 0.2);
  --border-light: rgba(251, 191, 36, 0.15);

  /* Sombras */
  --shadow-sm: 0 10px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.62);

  /* Gradientes */
  --grad-seed: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(217, 119, 6, 0.8));
  --grad-forest: radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.25), transparent 55%),
                 radial-gradient(circle at 90% 20%, rgba(217, 119, 6, 0.2), transparent 55%),
                 radial-gradient(circle at 55% 85%, rgba(0, 0, 0, 0.3), transparent 60%);

  /* Alturas compartidas para que navbar, categorias y heroes no se encimen */
  --nav-shell-height: 82px;
  --category-shell-height: 54px;
}


/* ============================================
   RESET Y BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-darker);
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
  /* fondo base por si el usuario desactiva pseudo-elementos */
  background-color: var(--bg-darker);
}


/* ============================================
   FONDO CON PART�CULAS ANIMADAS
   ============================================ */

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.9) blur(0.1px);
  opacity: 0.5;
}

/* Respeta accesibilidad: si el usuario prefiere menos movimiento, bajamos la intensidad */
@media (prefers-reduced-motion: reduce) {
  #particles-js {
    opacity: 0.3;
  }

  body::before,
  body::after {
    animation: none !important;
  }
}


body::before {
  content: '';
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(251, 191, 36, 0.15) 0 18%, transparent 58%),
    radial-gradient(ellipse at 85% 22%, rgba(251, 191, 36, 0.1) 0 16%, transparent 60%),
    radial-gradient(ellipse at 65% 80%, rgba(251, 191, 36, 0.08) 0 15%, transparent 62%),
    radial-gradient(ellipse at 25% 85%, rgba(251, 191, 36, 0.05) 0 14%, transparent 58%),
    linear-gradient(135deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.98) 38%,
      rgba(0, 0, 0, 0.98) 72%,
      rgba(0, 0, 0, 1) 100%);
  background-size: 160% 160%;
  z-index: 0;
  pointer-events: none;
  animation: colorBurstAurora 14s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* Capa suave tipo �breeze� para dar refinamiento */
  background:
    var(--grad-forest),
    radial-gradient(circle at 50% 30%, rgba(251, 191, 36, 0.08), transparent 55%),
    linear-gradient(120deg, rgba(251, 191, 36, 0.05), rgba(0, 0, 0, 0.5), rgba(0,0,0,0));

  opacity: 0.95;
  transform: translate3d(0, 0, 0);
  animation: colorFrostDrift 16s ease-in-out infinite alternate;
}



@keyframes colorBurstAurora {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
    filter: hue-rotate(0deg) saturate(1.15);
  }
  50% {
    transform: translate3d(5%, 3.5%, 0) scale(1.07);
    filter: hue-rotate(16deg) saturate(1.25);
  }
  100% {
    transform: translate3d(2%, -5%, 0) scale(1.03);
    filter: hue-rotate(-10deg) saturate(1.18);
  }
}


@keyframes frostingDrift {
  0% {
    transform: translateX(-7%) translateY(0) scale(1);
  }
  100% {
    transform: translateX(7%) translateY(-4%) scale(1.03);
  }
}

/* ============================================
   NAVBAR / ENCABEZADO
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;

  /* Bosque nocturno con brillo orgánico */
  background: linear-gradient(180deg, rgba(7, 10, 8, 0.72), rgba(7, 10, 8, 0.55));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);

  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}


.brand-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
}

.brand-title::before {
  content: '';
  color: var(--accent-primary);
}

.brand-title::after {
  content: '';
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.page-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  min-height: 100vh;
}

/* ============================================
   SECCI�N DE PRODUCTOS
   ============================================ */

.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--grad-seed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.products-header p {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
}

/* Asegurar que el subt�tulo mantenga contraste si se usa <p class="subtitle"> */
.subtitle {
  color: #000000 !important;
  opacity: 1 !important;
  font-weight: 600;
  text-shadow: none;
}




.title {
  font-size: 2rem;
  font-weight: 700;
}

.subtitle {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ============================================
   SECCI�N ALL PRODUCTS (VISIBLE)
   ============================================ */

#all-products {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* ============================================
   WELCOME CAROUSEL EST�TICO (BANER GRANDE)
   ============================================ */

.welcome-carousel {
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 0, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  background: rgba(0,0,0,0.25);
}

.welcome-carousel.carousel {
  width: 100%;
  margin: 0;
}

.welcome-carousel .carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1799 / 874;
  min-height: 280px;
  max-height: 560px;
}

.welcome-carousel .carousel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.welcome-carousel .carousel-item.active {
  display: block;
  z-index: 1;
}

.welcome-carousel-slide {
  width: 100%;
  height: 100%;
}

.welcome-carousel-slide img,
.welcome-carousel-slide video,
.welcome-banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.welcome-carousel .carousel-indicators {
  z-index: 12;
}

.welcome-carousel .carousel-control-prev,
.welcome-carousel .carousel-control-next {
  z-index: 12;
}

.mobile-visual-showcase {
  display: none;
}

.mobile-showcase-hero,
.mobile-showcase-rail {
  position: relative;
  overflow: hidden;
}

.mobile-showcase-hero picture,
.mobile-showcase-rail picture {
  display: block;
}

.mobile-showcase-hero picture {
  width: 100%;
  height: 100%;
}

.mobile-showcase-hero img,
.mobile-showcase-rail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.mobile-showcase-hero::after,
.mobile-showcase-rail::before,
.mobile-showcase-rail::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.mobile-showcase-hero::after {
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(90deg, rgba(251, 191, 36, 0.16), transparent 28%, transparent 72%, rgba(103, 232, 249, 0.1));
}

.mobile-showcase-rail::before,
.mobile-showcase-rail::after {
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 54px;
}

.mobile-showcase-rail::before {
  left: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.mobile-showcase-rail::after {
  right: 0;
  background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.mobile-showcase-track {
  display: flex;
  gap: 0.62rem;
  width: max-content;
}

.mobile-showcase-controls {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  z-index: 6;
  display: flex;
  gap: 0.5rem;
  pointer-events: none;
}

.mobile-showcase-control {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  background: rgba(7, 10, 10, 0.78);
  color: #fff7d6;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(-6px) scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  pointer-events: none;
}

.mobile-showcase-control span {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
}

.mobile-showcase-control--close span::before,
.mobile-showcase-control--close span::after {
  content: '';
  position: absolute;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-showcase-control--close span::before {
  transform: rotate(45deg);
}

.mobile-showcase-control--close span::after {
  transform: rotate(-45deg);
}

.mobile-showcase-control--reset span::before {
  content: '\21BA';
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
}


.welcome-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.25) 55%,
    rgba(0,0,0,0.55) 100%
  );
}




.welcome-carousel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem 2.2rem 2.0rem 2.2rem;
  gap: 0.9rem;
  z-index: 3;
  pointer-events: none;
}

.welcome-carousel-content .title {
  pointer-events: auto;
  position: relative;
  z-index: 4;
  background: rgba(9, 14, 11, 0.35);

  border: 1px solid rgba(233, 196, 106, 0.22);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0.65rem 1rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);

  font-size: clamp(1.6rem, 3.2vw, 2.8rem);

  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0;
}

.welcome-carousel-content .subtitle {
  max-width: 780px;
  opacity: 0.95;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-light) !important;
}

@media (max-width: 768px) {
  .welcome-carousel-content {
    padding: 1.3rem 1.1rem;
  }

  #welcome-banner-carousel {
    display: none;
  }

  .mobile-visual-showcase {
    display: grid;
    gap: 0.72rem;
    width: 100%;
    margin: 0 auto;
    padding: 0.72rem;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 18px;
    background:
      radial-gradient(circle at 18% 0%, rgba(251, 191, 36, 0.18), transparent 42%),
      radial-gradient(circle at 95% 20%, rgba(52, 211, 153, 0.12), transparent 34%),
      rgba(0, 0, 0, 0.55);
    box-shadow:
      0 22px 64px rgba(0, 0, 0, 0.62),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
  }

  .mobile-showcase-hero {
    --showcase-scale: 1;
    --showcase-pan-x: 0px;
    --showcase-pan-y: 0px;
    aspect-ratio: 16 / 8.6;
    border: 1px solid rgba(251, 191, 36, 0.36);
    border-radius: 14px;
    background: #080808;
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.46),
      0 0 0 1px rgba(255, 255, 255, 0.03);
    cursor: zoom-in;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: height 0.28s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  }

  .mobile-showcase-hero::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.62rem;
    z-index: 4;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.95), rgba(103, 232, 249, 0.9));
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.38);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
  }

  .mobile-showcase-hero.is-progressing::before {
    opacity: 0.86;
    animation: mobileShowcaseProgress 5s linear forwards;
  }

  .mobile-showcase-hero picture {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .mobile-showcase-hero.is-switching picture {
    opacity: 0.34;
    transform: scale(0.985);
  }

  .mobile-showcase-hero img {
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    transition: transform 0.18s ease, object-fit 0.18s ease, filter 0.18s ease;
    will-change: transform;
  }

  .mobile-showcase-hero.is-zoomed {
    height: min(76vh, 620px);
    aspect-ratio: auto;
    border-color: rgba(103, 232, 249, 0.48);
    cursor: grab;
    touch-action: none;
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.66),
      0 0 0 1px rgba(103, 232, 249, 0.16),
      0 0 36px rgba(251, 191, 36, 0.12);
    overscroll-behavior: contain;
  }

  .mobile-showcase-hero.is-zoomed::before {
    opacity: 0;
    animation: none;
  }

  .mobile-showcase-hero.is-zoomed::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.3)),
      linear-gradient(90deg, rgba(251, 191, 36, 0.08), transparent 34%, transparent 66%, rgba(103, 232, 249, 0.08));
  }

  .mobile-showcase-hero.is-zoomed img {
    object-fit: contain;
    filter: saturate(1.04) contrast(1.04);
    transform: translate3d(var(--showcase-pan-x), var(--showcase-pan-y), 0) scale(var(--showcase-scale));
  }

  .mobile-showcase-hero.is-dragging {
    cursor: grabbing;
  }

  .mobile-showcase-hero.is-zoomed .mobile-showcase-controls,
  .mobile-visual-showcase.is-zoomed .mobile-showcase-controls {
    pointer-events: auto;
  }

  .mobile-showcase-hero.is-zoomed .mobile-showcase-control,
  .mobile-visual-showcase.is-zoomed .mobile-showcase-control {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .mobile-showcase-control:active {
    transform: translateY(1px) scale(0.96);
  }

  .mobile-showcase-control:focus-visible,
  .mobile-showcase-rail picture:focus-visible {
    outline: 2px solid rgba(103, 232, 249, 0.95);
    outline-offset: 3px;
  }

  @supports (height: 100dvh) {
    .mobile-showcase-hero.is-zoomed {
      height: min(76dvh, 620px);
    }
  }

  .mobile-showcase-rail {
    margin-inline: -0.72rem;
    padding-inline: 0.72rem;
    touch-action: pan-y;
  }

  .mobile-showcase-rail picture {
    position: relative;
    flex: 0 0 auto;
    width: clamp(124px, 38vw, 172px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  }

  .mobile-showcase-rail picture::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .mobile-showcase-rail picture.is-active {
    transform: translateY(-2px) scale(1.025);
    border-color: rgba(251, 191, 36, 0.82);
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.5),
      0 0 24px rgba(251, 191, 36, 0.26);
  }

  .mobile-showcase-rail picture.is-active::after {
    border-color: rgba(103, 232, 249, 0.64);
    box-shadow: inset 0 0 18px rgba(103, 232, 249, 0.12);
  }

  .mobile-visual-showcase.is-zoomed .mobile-showcase-track {
    animation-play-state: paused;
  }

  .mobile-showcase-rail--bottom picture {
    width: clamp(144px, 45vw, 196px);
    aspect-ratio: 16 / 9;
  }

  .mobile-showcase-rail--top .mobile-showcase-track {
    animation: mobileShowcaseDrift 34s linear infinite;
  }

  .mobile-showcase-rail--bottom .mobile-showcase-track {
    animation: mobileShowcaseDriftReverse 42s linear infinite;
  }

  @keyframes mobileShowcaseDrift {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 0.31rem)); }
  }

  @keyframes mobileShowcaseDriftReverse {
    from { transform: translateX(calc(-50% - 0.31rem)); }
    to { transform: translateX(0); }
  }

  @keyframes mobileShowcaseProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .mobile-showcase-hero,
  .mobile-showcase-hero picture,
  .mobile-showcase-hero img,
  .mobile-showcase-rail picture,
  .mobile-showcase-control {
    transition: none !important;
  }

  .mobile-showcase-hero::before {
    animation: none !important;
    opacity: 0.42;
    transform: scaleX(1);
  }

  .mobile-showcase-track {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    animation: none !important;
  }

  .mobile-showcase-rail picture {
    scroll-snap-align: start;
  }
}



/* Ajuste mobile: reducir espacio entre barra de categor�as y el header */
@media (max-width: 768px) {
  #all-products {
    padding: 1.5rem 1rem;
  }

  .products-header {
    margin-bottom: 2rem;
  }
}


/* ============================================
   �NDICE DE CATEGOR�AS
   ============================================ */

.category-index {
  position: sticky;
  top: 70px;
  z-index: 50;
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: rgba(7, 10, 8, 0.62);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233, 196, 106, 0.18);
  overflow-x: auto;
  scroll-behavior: smooth;
}


.category-btn {
  padding: 0.6rem 1.2rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1.5px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  color: rgba(251, 191, 36, 0.7);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
  color: var(--accent-primary);
}

.category-btn.active {
  background: var(--accent-primary);
  color: #000000;
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
}

/* T�tulo de Categor�a */
.category-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 2rem 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.category-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(to bottom, var(--accent-cream), var(--accent-primary), var(--accent-primary-dark));
  border-radius: 2px;
}

/* ============================================
   GRID DE PRODUCTOS
   ============================================ */

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
  gap: 2rem;
  margin-bottom: 3rem;
  grid-auto-rows: minmax(450px, auto);
  justify-content: center;
  justify-items: center;
}

/* ============================================
   TARJETA DE PRODUCTO (BLACK & GOLD PREMIUM)
   ============================================ */

.product-container {
  position: relative;
  width: 300px;
  
  /* Fondo negro premium con borde dorado */
  background: linear-gradient(to bottom, #1a0b00, #000000);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1.5px solid rgba(251, 191, 36, 0.25);
  
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65);
  
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Efecto Glow en Hover */
.product-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(251, 191, 36, 0.2),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.product-container:hover::before {
  opacity: 1;
}

.product-container:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(251, 191, 36, 0.3);
}

/* Imagen del Producto */
.carousel-inner {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.product-container img,
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.95) contrast(1.05);
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   ALERTA STOCK 0 (visual)
   - Muestra proximamente.png encima
   - Convierte la imagen base a B/N
   ============================================ */

.product-container[data-stock-zero="true"] .product-image {
  filter: grayscale(1) brightness(0.85) contrast(1.05);
}

.product-container[data-stock-zero="true"] .stock-zero-overlay {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.stock-zero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.stock-zero-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}


/* Cuando la imagen es �muy alta� (detectada en JS) no queremos recortar: */
.product-image.is-high-resolution {
  /* Ajuste autom�tico al recuadro sin recorte */
  object-fit: contain;
  object-position: 50% 50%;
  background: transparent;
}

/* Ajuste autom�tico para cualquier imagen del carrusel (fallback est�tico) */
.product-container img.product-image.auto-fit {
  object-fit: contain;
  object-position: 50% 50%;
  background: transparent;
}

.product-container:hover .product-image {
  transform: scale(1.05);
}

/* Contenido del Producto */
.product-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.product-container h3 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1.2;
  text-align: left;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

/* Descripción: ver bloque scroll más abajo (.product-description-scroll) */

.product-container h1 {
  font-size: 1.6rem;
  text-align: center;
  color: var(--accent-primary);
  font-weight: 700;
  margin: 1rem 0 0.5rem 0;
  padding: 0.8rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  letter-spacing: 0.5px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}

.product-price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.product-stock {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 8px;
  width: fit-content;
}

/* ============================================
   BOT�N AGREGAR (AMARILLO PREMIUM)
   ============================================ */

.button-add {
  width: 100%;
  padding: 1rem;
  margin: 1.5rem 0 0 0;
  
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  
  background: var(--accent-primary);
  color: #000000;
  
  position: relative;
  z-index: 2;
  
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.button-add::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.button-add:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
  opacity: 0.9;
}

.button-add:active {
  transform: translateY(-1px);
}

/* Descripción con scroll: ver sección PREMIUM UI al final del archivo */

.product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 20;
}

.button-secondary {
  flex: 1 1 auto;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.button-detail {
  min-width: 110px;
}

.button-characteristics {
  width: 100%;
  margin: 0.25rem 0 0.75rem;
  border-radius: 14px;
  flex: none;
}

/* ============================================
   FORMULARIO (ORDEN)
   ============================================ */

.order-container {
  position: relative;
  z-index: 10;
  
  max-width: 480px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  
  background: rgba(250, 246, 233, 0.96);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  border: 1px solid rgba(116, 118, 81, 0.18);
  
  box-shadow:
    0 25px 70px rgba(29, 50, 29, 0.16),
    inset 0 0 40px rgba(255, 255, 255, 0.16);
}

/* Glow Efecto para el Formulario */
.order-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(251, 191, 36, 0.1),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 24px;
  z-index: 0;
  pointer-events: none;
}

.order-container:hover::before {
  opacity: 1;
}

.order-container > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   T�TULOS DEL FORMULARIO
   ============================================ */

.order-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #22322e;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(34, 115, 54, 0.18);
}

.order-section-title:first-of-type {
  margin-top: 0;
}

/* ============================================
   CAMPOS DE FORMULARIO
   ============================================ */

.shipping-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #27332d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inputs y Selects */
.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(107, 119, 90, 0.37);
  background: rgba(255, 255, 248, 0.98);
  color: #1f2937;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(79, 89, 79, 0.6);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  background: rgba(255, 250, 253, 0.98);
  border-color: rgba(251, 191, 36, 0.95);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

/* Opciones del select: mejor contraste */
.form-control option,
.form-select option {
  background: #2a1a24;
  color: #f9e7ef;
}


/* Select personalizado */
.form-select {
  color-scheme: dark;
}

.form-control option,
.form-select option {
  background: #ffffff;
  color: #1f2937;
}

/* ============================================
   TABLA DE ORDEN
   ============================================ */

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.order-table th {
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
  color: var(--accent-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(34, 54, 43, 0.12);
  color: #243334;
  background: rgba(250, 250, 245, 0.96);
}

.order-table tbody tr {
  transition: background 0.2s;
}

.order-table tbody tr:hover {
  background: rgba(251, 191, 36, 0.05);
}

/* ============================================
   BOTONES DE ACCI�N
   ============================================ */

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Contenedor para el bot�n de pago de MercadoPago */
.order-actions {
  margin-top: 1.5rem;
  min-height: 60px;
}

.btn-primary,
.btn-checkout {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent-primary);
  color: #000000;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
}

.btn-checkout {
  background: transparent;
  backdrop-filter: none;
  color: var(--accent-primary);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
}

.btn-checkout:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.6);
}


/* ============================================
   LOADER Y MENSAJES
   ============================================ */

.loader-container {
  position: fixed;
  inset: 0;
  background: rgba(255, 248, 241, 0.76);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.loader-container.show {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(251, 191, 36, 0.2);
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  position: absolute;
  bottom: 20%;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Banner de Error */
.error-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  z-index: 200;
  display: none;
  animation: slideDown 0.3s ease;
}

.error-banner.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.footer {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 252, 250, 0.58);
}


/* Botón Instagram (footer) */
.footer-instagram-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding: 0.85rem 1.2rem;

  background: rgba(251, 191, 36, 0.14);
  border: 1.5px solid rgba(251, 191, 36, 0.35);
  color: #0a0a0a;
  text-decoration: none;

  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;

  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-instagram-btn:hover{
  transform: translateY(-2px);
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 18px 46px rgba(0,0,0,0.24);
}

.footer-instagram-btn:active{
  transform: translateY(-1px);
}

.footer-instagram-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 14px rgba(214, 41, 118, 0.25));
}

.footer-instagram-label{
  position: relative;
}

/* Instagram gradient based button */
.footer-instagram-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.9rem 1.35rem;

  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;

  color: #0b0b0f;
  background: linear-gradient(135deg, #FEDA75 0%, #FA7E1E 25%, #D62976 55%, #962FBF 100%);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.14) inset,
    0 0 32px rgba(214, 41, 118, 0.18);

  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-instagram-btn::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 15% 30%, rgba(255,255,255,0.55), transparent 40%);
  opacity: 0.55;
}

.footer-instagram-btn{
  position: relative;
}

.footer-instagram-btn:hover{
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.08);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.32),
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 0 40px rgba(214, 41, 118, 0.28);
}

.footer-instagram-btn:active{
  transform: translateY(-1px) scale(0.99);
}

.footer-instagram-btn:focus-visible{
  outline: 3px solid rgba(214, 41, 118, 0.35);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  .footer-instagram-btn{ transition: none; }
}

@media (max-width: 480px){
  .footer-instagram-btn{
    width: calc(100% - 1rem);
    margin-inline: 0.5rem;
    justify-content: center;
    padding: 0.85rem 1.05rem;
  }
}


@media (max-width: 480px){
  .footer-instagram-btn{
    width: calc(100% - 1rem);
    margin-inline: 0.5rem;
    justify-content: center;
  }
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Carrusel Bootstrap Compatibility */
.carousel {
  position: relative;
  width: calc(100% - 2rem);
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background: var(--accent-primary);
  width: 24px;
  border-radius: 4px;
}

/* Botones de navegaci�n del carrusel */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  color: var(--accent-primary);
  font-size: 1.2rem;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev::before,
.carousel-control-next::before {
  content: '';
  font-weight: bold;
}

.carousel-control-prev-icon::before {
  content: '←';
  font-size: 1.8rem;
  color: var(--accent-primary);
}

.carousel-control-next-icon::before {
  content: '→';
  font-size: 1.8rem;
  color: var(--accent-primary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: bold;
  font-size: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Acorde�n / Informaci�n del Producto */
.accordion {
  position: relative;
  z-index: 2;
}

.accordion-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(251, 191, 36, 0.3);
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.56);
  border: none;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-primary);
}

.accordion-button:hover {
  background: rgba(251, 191, 36, 0.08);
}

.accordion-button::after {
  content: '?';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.accordion-button.collapsed::after {
  transform: rotate(-90deg);
}

.accordion-collapse {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.accordion-collapse.show {
  max-height: 500px;
}

.accordion-body {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.52);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid rgba(238, 143, 169, 0.14);
}

/* ? Selectores de Atributos Din�micos */
.variant-selectors {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: rgba(251, 191, 36, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.attribute-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.attribute-selector label {
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.attribute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.attr-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid rgba(238, 143, 169, 0.16);
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.attr-btn:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}

.attr-btn.active {
  background: linear-gradient(135deg, var(--accent-primary-dark), var(--accent-primary));
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4), 0 4px 12px rgba(251, 191, 36, 0.2);
  transform: scale(1.05);
}

/* Lista de Variantes - Optimizada */
.variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.52);
  border-radius: 10px;
  border: 1px solid rgba(238, 143, 169, 0.14);
}

.variant-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(251, 191, 36, 0.08);
  border-radius: 8px;
  border: 1.5px solid rgba(251, 191, 36, 0.2);
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.variant-option:hover {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}

.variant-image {
  display: none;
}

.variant-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.variant-info p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 600;
}

.variant-price {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.variant-btn {
  background: linear-gradient(135deg, var(--accent-primary-dark), var(--accent-primary));
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.variant-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
}

/* ============================================
   DROPDOWN DE VARIANTES
   ============================================ */

.variants-dropdown {
  margin: 0.8rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.05);
}

.variants-toggle {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: none;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.variants-toggle:hover {
  background: rgba(251, 191, 36, 0.2);
}

.variants-toggle .arrow {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.variants-toggle.open .arrow {
  transform: rotate(180deg);
}

.variants-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.variants-content.open {
  max-height: 800px;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

@media (max-width: 768px) {
  .product-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
    gap: 1.5rem;
    grid-auto-rows: minmax(450px, auto);
    justify-content: center;
  }
  
  .product-container {
    width: 280px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .order-container {
    max-width: 100%;
    margin: 1rem;
    padding: 1.5rem 1rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
    min-height: auto;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .nav-quad {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    gap: 0.6rem;
  }

  .nav-main-links {
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-icon-btn {
    min-width: auto;
    height: 38px;
    min-height: 38px;
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .nav-icon-btn span {
    font-size: 0.72rem;
  }

  .nav-cart-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .products-header h1 {
    font-size: 1.8rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
  }
  
  .category-index {
    top: 60px;
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }
  
  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .category-section-title {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
  }
}

@media (max-width: 480px) {
  .product-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.5rem;
  }
  
  .product-container {
    width: 100%;
  }

  .products-header h1 {
    font-size: 1.5rem;
  }

  .brand-title {
    font-size: 1rem;
    flex: 1 1 100%;
    text-align: center;
  }

  .navbar {
    padding: 0.5rem 0.75rem;
    justify-content: center;
  }

  .nav-quad {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
  }

  .nav-icon-btn {
    min-width: auto;
    height: 36px;
    min-height: 36px;
    padding: 0.45rem 0.55rem;
    font-size: 0.65rem;
  }

  .nav-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .nav-icon-btn span {
    font-size: 0.65rem;
  }

  .nav-cart-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .cart-total {
    display: none;
  }
  
  .category-index {
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }
  
  .category-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .category-section-title {
    font-size: 1.1rem;
    margin: 1rem 0 0.8rem 0;
  }
}

/* ============================================
   BOT�N DE CARRITO EN NAVBAR
   ============================================ */

.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  color: #000000;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
  transition: all 0.3s ease;
  text-shadow: none;
}

.nav-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.4);
  opacity: 0.9;
}

.nav-cart-btn:active {
  transform: translateY(0);
}

.cart-icon-wrap {
  font-size: 1.1rem;
  filter: none;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff6f91;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--bg-darker);
}

/* ============================================
   COMPROBANTE DE ORDEN
   ============================================ */

.receipt-container {
  max-width: 700px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 70px rgba(168, 96, 125, 0.18), inset 0 0 40px rgba(255, 255, 255, 0.22);
}

.receipt-header {
  text-align: center;
  margin-bottom: 2rem;
}

.receipt-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.receipt-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.receipt-status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.receipt-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.receipt-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.receipt-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.receipt-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.receipt-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.receipt-col p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.receipt-table th {
  text-align: left;
  padding: 0.8rem;
  color: var(--accent-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.receipt-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 0.95rem;
}

.receipt-table td:last-child {
  text-align: right;
}

.receipt-total-row td {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.receipt-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CYBERPUNK FAILURE MODAL
   ============================================ */

:root {
  --cyber-red: #ff6f91;
  --cyber-glow: #b8f2d0;
  --neon-purple: #c7b6ff;
}

.failure-modal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
}

.failure-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cyberFadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.detail-modal,
.characteristics-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: radial-gradient(circle at 20% 15%, rgba(251, 191, 36, 0.15), rgba(0, 0, 0, 0.86) 45%, rgba(0, 0, 0, 0.95) 100%);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.detail-modal.show,
.characteristics-modal.show {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.detail-modal-panel,
.characteristics-modal-panel {
  width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(15, 20, 29, 0.98), rgba(8, 10, 16, 0.98));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 22px;
  padding: 2.2rem 2rem 1.8rem;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(251, 191, 36, 0.12) inset;
  position: relative;
  animation: detailModalIn 0.22s ease-out;
}

.detail-close,
.characteristics-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

#detail-modal-title {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

#characteristics-modal-title {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

#detail-modal-text {
  line-height: 1.8;
  color: #f7f3e8;
  white-space: pre-wrap;
  font-size: 1rem;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.35rem;
}

/* ============================================
   ESTILOS PARA DETALLES ESTRUCTURADOS
   ============================================ */

.detail-modal-content {
  width: 100%;
  overflow: visible;
}

.characteristics-modal-content {
  width: 100%;
  overflow: visible;
}

.detail-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

/* Cuando el grid está dentro de la tarjeta (product-description-scroll): más compacto */
.product-description-scroll .detail-modal-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin-top: 0;
}

.product-description-scroll .detail-field {
  padding: 0.7rem;
  border-radius: 8px;
  gap: 0.6rem;
}

.product-description-scroll .field-label {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.product-description-scroll .field-value {
  font-size: 0.85rem;
  line-height: 1.4;
}

.product-description-scroll .field-icon {
  font-size: 1.3rem;
}

.detail-field {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(212, 165, 116, 0.08);
  border-radius: 12px;
  border-left: 3px solid #d4a574;
  transition: all 0.3s ease;
  min-height: 80px;
  overflow: hidden;
}

.detail-field:hover {
  background: rgba(212, 165, 116, 0.15);
  transform: translateX(4px);
}

.field-icon {
  font-size: 1.8rem;
  min-width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-content {
  flex: 1;
  min-width: 0;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #d4a574;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

.field-value {
  font-size: 1rem;
  color: #f7f3e8;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.characteristics-modal .field-value {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  white-space: pre-wrap;
}

.characteristics-modal .detail-field {
  overflow: visible;
  min-height: auto;
}

.detail-fallback {
  line-height: 1.8;
  color: #f7f3e8;
  font-size: 1rem;
  padding: 1rem;
  background: rgba(212, 165, 116, 0.08);
  border-radius: 12px;
  margin-top: 1rem;
}

.detail-fallback p {
  margin: 0;
  white-space: pre-wrap;
}

@keyframes detailModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .detail-modal,
  .characteristics-modal {
    inset: var(--mobile-modal-offset-top, 0px) 0 auto 0;
    height: 100vh;
    height: var(--mobile-modal-vvh, 100vh);
    min-height: 0;
    align-items: flex-end;
    padding: 4.25rem 0.85rem 5.25rem;
    padding-top: max(4.25rem, calc(env(safe-area-inset-top) + 1rem));
    padding-bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 1rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .detail-modal-panel,
  .characteristics-modal-panel {
    width: 100%;
    max-height: calc(100vh - 9.5rem);
    max-height: calc(var(--mobile-modal-vvh, 100vh) - 9.5rem);
    padding: 1.15rem 1.15rem max(5rem, calc(var(--mobile-modal-offset-bottom, 0px) + 5rem));
    border-radius: 16px;
  }

  .detail-close,
  .characteristics-close {
    position: fixed;
    top: auto;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, calc(var(--mobile-modal-offset-bottom, 0px) + 1rem), env(safe-area-inset-bottom));
    z-index: 1601;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: rgba(15, 20, 29, 0.92);
    border: 1px solid rgba(251, 191, 36, 0.28);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  }

  @supports (height: 100dvh) {
    .detail-modal,
    .characteristics-modal {
      height: var(--mobile-modal-vvh, 100dvh);
    }

    .detail-modal-panel,
    .characteristics-modal-panel {
      max-height: calc(var(--mobile-modal-vvh, 100dvh) - 9.5rem);
    }
  }

  #detail-modal-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

  #characteristics-modal-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

  #detail-modal-text {
    font-size: 0.95rem;
    max-height: 70vh;
  }

  /* Mobile: una columna para evitar cuadrados angostos y texto cortado */
  .detail-modal-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* En la tarjeta, Genética / Tipo / Perfil se leen como filas completas */
  .product-description-scroll .detail-modal-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .detail-field {
    padding: 0.7rem;
    border-radius: 8px;
    min-height: 70px;
  }

  .product-description-scroll .detail-field {
    padding: 0.65rem 0.7rem;
    min-height: auto;
    gap: 0.55rem;
  }

  .field-label {
    font-size: 0.85rem;
  }

  .product-description-scroll .field-label {
    font-size: 0.72rem;
    margin-bottom: 0.15rem;
  }

  .field-value {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
  }

  .product-description-scroll .field-value {
    display: block;
    font-size: 0.82rem;
    line-height: 1.4;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .field-icon {
    font-size: 1.6rem;
  }

  .product-description-scroll .field-icon {
    font-size: 1.1rem;
    min-width: 1.5rem;
  }

  .button-characteristics {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.85rem;
    margin: 0.35rem 0 0.8rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@keyframes cyberFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.failure-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.5),
    inset 0 0 50px rgba(255, 255, 255, 0.05);
}

/* Holographic border glow */
.failure-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    transparent, 
    var(--cyber-glow), 
    var(--neon-purple), 
    var(--accent-primary), 
    transparent
  );
  border-radius: 24px;
  z-index: 0;
  animation: cyberBorder 3s linear infinite;
  filter: blur(8px);
}

@keyframes cyberBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.failure-panel > * {
  position: relative;
  z-index: 1;
}

.failure-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-icon {
  width: 80px;
  height: 80px;
  background: rgba(239, 68, 68, 0.2);
  border: 3px solid var(--cyber-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 
    0 0 30px rgba(239, 68, 68, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
  }
}

.failure-title {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyber-red), var(--cyber-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.failure-message {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.countdown-container {
  margin: 2rem 0;
}

.countdown-neon {
  font-size: 4rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, var(--cyber-glow), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 0 20px var(--cyber-glow),
    0 0 40px var(--cyber-glow),
    0 0 60px var(--accent-primary);
  animation: neonFlicker 0.15s infinite alternate;
  display: block;
  margin-bottom: 0.5rem;
}

@keyframes neonFlicker {
  0% { 
    text-shadow: 
      0 0 20px var(--cyber-glow),
      0 0 40px var(--cyber-glow),
      0 0 60px var(--accent-primary);
  }
  100% { 
    text-shadow: 
      0 0 15px var(--cyber-glow),
      0 0 30px var(--cyber-glow),
      0 0 45px var(--accent-primary),
      0 0 5px var(--cyber-red);
  }
}

#countdown-text {
  color: var(--cyber-glow);
  font-weight: 700;
}

.btn-cyberpunk {
  background: linear-gradient(135deg, var(--cyber-glow), var(--neon-purple));
  color: #000;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 10px 30px rgba(0, 255, 136, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-cyberpunk::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-cyberpunk:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 20px 50px rgba(0, 255, 136, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-cyberpunk:hover::before {
  transform: translateX(100%);
}

.btn-cyberpunk:active {
  transform: translateY(-1px);
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-glow), transparent);
  animation: scanLineMove 3s linear infinite;
}

@keyframes scanLineMove {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Cyberpunk transition para redirect */
.cyber-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle, var(--cyber-glow) 0%, var(--bg-darker) 70%);
  opacity: 0;
  pointer-events: none;
}

.cyber-transition.show {
  opacity: 1;
  animation: cyberWarp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes cyberWarp {
  0% { 
    opacity: 1;
    transform: scale(1) rotateX(0deg);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.5) rotateX(45deg);
  }
  100% { 
    opacity: 0;
    transform: scale(2) rotateX(90deg);
  }
}

/* Glitch effect */
.glitch {
  animation: glitchAnim 0.3s infinite;
}

@keyframes glitchAnim {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* Responsive para modal */
@media (max-width: 480px) {
  .failure-panel {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .countdown-neon {
    font-size: 3rem;
  }
  
  .failure-title {
    font-size: 1.3rem;
  }
}

/* ============================================
   ESTILOS DE IMPRESI�N (Comprobante)
   ============================================ */

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  
  #particles-js,
  .navbar,
  .footer,
  .receipt-actions,
  #all-products,
  #order,
  #category-index,
  #loader,
  #error-message {
    display: none !important;
  }
  
  #receipt-section {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .receipt-container {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    color: #000 !important;
    border-radius: 0 !important;
    padding: 20px !important;
    max-width: 100% !important;
  }
  
  .receipt-container h2,
  .receipt-container h3,
  .receipt-container h4 {
    color: #000 !important;
  }
  
  .receipt-table th {
    color: #000 !important;
    border-bottom: 2px solid #ccc !important;
  }
  
  .receipt-table td {
    color: #000 !important;
    border-bottom: 1px solid #ddd !important;
  }
  
  .receipt-total-row td {
    color: #000 !important;
    border-top: 2px solid #ccc !important;
  }
  
  .receipt-col p {
    color: #000 !important;
  }
  
  .receipt-status {
    border: 1px solid #000 !important;
    color: #000 !important;
    background: #f0f0f0 !important;
  }
  
  .receipt-divider {
    background: #ccc !important;
  }
}

/* ============================================
   ANIMACIONES GENERALES
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-container {
  animation: fadeIn 0.6s ease backwards;
}

.product-container:nth-child(1) { animation-delay: 0.1s; }
.product-container:nth-child(2) { animation-delay: 0.2s; }
.product-container:nth-child(3) { animation-delay: 0.3s; }
.product-container:nth-child(4) { animation-delay: 0.4s; }
.product-container:nth-child(5) { animation-delay: 0.5s; }
.product-container:nth-child(6) { animation-delay: 0.6s; }
.product-container:nth-child(7) { animation-delay: 0.7s; }

/* ============================================
   ESTILOS PARA LA PÁGINA DE HISTORIA
   ============================================ */

.history-content {
  position: relative;
  z-index: 1;
}

.history-content article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.history-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.history-intro {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.03));
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.history-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 0;
  font-style: italic;
}

.history-section {
  margin-bottom: 3rem;
}

.history-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.history-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  text-align: justify;
}

.history-section p:last-child {
  margin-bottom: 0;
}

.history-section strong {
  color: var(--accent-primary);
}

.history-page {
  max-width: 1040px;
}

.history-story {
  position: relative;
  margin-bottom: 3.5rem;
  padding: 2.4rem;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(10, 14, 11, 0.92), rgba(20, 16, 10, 0.76)),
    radial-gradient(circle at top right, rgba(103, 232, 249, 0.08), transparent 34%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.history-story::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.12), transparent 36%, rgba(52, 211, 153, 0.08));
  opacity: 0.8;
}

.history-story > * {
  position: relative;
  z-index: 1;
}

.history-story--featured {
  border-color: rgba(251, 191, 36, 0.3);
}

.history-kicker {
  margin: 0 0 0.7rem;
  color: rgba(251, 191, 36, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.history-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.35rem;
  padding: 0;
  list-style: none;
}

.history-list li {
  position: relative;
  padding: 0.72rem 0.9rem 0.72rem 2.1rem;
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-light);
  line-height: 1.5;
}

.history-list li::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 1.2rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);
}

.history-list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-list--pills {
  display: flex;
  flex-wrap: wrap;
}

.history-list--pills li {
  flex: 0 1 auto;
  padding: 0.62rem 1rem;
}

.history-list--pills li::before {
  display: none;
}

.history-signature {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 14px 14px 0;
  background: rgba(251, 191, 36, 0.07);
}

.history-signature p {
  color: var(--text-light);
  line-height: 1.75;
  margin: 0 0 0.8rem;
}

.history-signature p:last-child {
  margin-bottom: 0;
}

.history-signature strong {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .history-content article {
    padding: 0 1rem;
  }

  .history-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .history-intro {
    padding: 1.5rem;
  }

  .history-intro p {
    font-size: 1rem;
  }

  .history-section h3 {
    font-size: 1.3rem;
  }

  .history-section p {
    font-size: 0.95rem;
  }

  .history-story {
    padding: 1.5rem;
  }

  .history-list--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .history-content h2 {
    font-size: 1.4rem;
  }

  .history-section h3 {
    font-size: 1.1rem;
  }

  .history-section p {
    font-size: 0.9rem;
  }

  .history-intro p {
    font-size: 0.9rem;
  }

  .history-story {
    padding: 1.1rem;
    border-radius: 14px;
  }
}

/* ============================================
   ESTILOS PARA PÁGINAS DE FOROS/COMENTARIOS
   ============================================ */

/* Navegación Simplificada para Páginas Secundarias */
.simple-nav {
  padding: 1rem 2rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2rem !important;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  max-width: 900px;
  margin-left: auto;
}

.nav-main-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-quad {
  padding: 0.6rem 1.2rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1.5px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  color: rgba(251, 191, 36, 0.7);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  line-height: 1;
}

.nav-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.nav-icon-btn span {
  display: block;
  font-size: 0.82rem;
  line-height: 1;
}

.nav-quad:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
  color: var(--accent-primary);
}

.nav-quad.active {
  background: var(--accent-primary);
  color: #000000;
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
}

/* Hero Header para Foros */
.forum-hero {
  position: relative;
  min-height: 300px;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
  margin-top: 60px;
}

.forum-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(251, 191, 36, 0.15) 0%, 
    rgba(251, 191, 36, 0.05) 50%, 
    rgba(0, 0, 0, 0.3) 100%);
  z-index: 0;
}

.forum-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.forum-hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.forum-hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0;
}

.page-banner {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  min-height: 360px;
  aspect-ratio: 1799 / 874;
  margin: 112px auto 0;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 26px;
  background: #060606;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.page-banner-image {
  position: absolute;
  inset: 0;
  /* Asegurar que el banner quede por encima de capas del fondo/overlays */
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Quitar filtro para que se vea tal cual */
  filter: none;
}

/* ==============================
   AJUSTE SOLO MOBILE (evitar recorte)
   ============================== */
@media (max-width: 768px) {
  .page-banner {
    /* deja que el contenedor crezca según el contenido en vez de forzar un ratio fijo */
    aspect-ratio: auto;
    min-height: 280px;
  }

  .page-banner-image {
    /* si la imagen tiene que encajar sin recortarse */
    object-fit: contain;
    object-position: center;
  }
}



.page-banner-caption {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0.9rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(9, 14, 11, 0.92), rgba(22, 16, 9, 0.82)),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.08), transparent 36%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  text-align: left;
}

.page-banner-caption h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--accent-primary);
}

.page-banner-caption p {
  max-width: 720px;
  margin: 0;
  color: var(--text-light);
  opacity: 0.95;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.6;
}

/* Contenedor Principal de Foros */
.forum-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: 60vh;
}

/* Formulario de Comentarios */
.comment-form {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(0, 0, 0, 0.2));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.comment-form h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.comment-form > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Campos del Formulario */
.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  color: var(--text-light);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(251, 191, 36, 0.5);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.field.row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}

.field.row > div {
  flex: 1;
}

.field.row .actions {
  flex: 0 0 auto;
}

.actions {
  display: flex;
  gap: 1rem;
}

#submitComment {
  background: linear-gradient(135deg, var(--accent-primary-dark), var(--accent-primary));
  color: #000000;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

#submitComment:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.4);
}

#submitComment:active {
  transform: translateY(0);
}

/* Mensaje de Estado del Formulario */
.form-msg {
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
}

.form-msg.success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-msg.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Lista de Comentarios */
.comment-list {
  margin-top: 3rem;
}

.comment-list h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 2rem;
}

/* Contenedor de Comentarios */
.comments {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tarjeta de Comentario */
.comment {
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 15px;
  padding: 1.8rem;
  transition: all 0.3s ease;
}

.comment:hover {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.1);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.comment-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-rating {
  display: flex;
  gap: 0.3rem;
  font-size: 1.2rem;
}

.star {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.star-empty {
  color: rgba(251, 191, 36, 0.3);
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 1rem 0;
}

/* Estado Vacío */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  background: rgba(251, 191, 36, 0.05);
  border: 2px dashed rgba(251, 191, 36, 0.2);
  border-radius: 15px;
  border-radius: 15px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, rgba(7, 10, 8, 0.3), rgba(7, 10, 8, 0.5));
  border-top: 1px solid rgba(251, 191, 36, 0.15);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

/* Responsive para Foros */
@media (max-width: 768px) {
  .page-banner {
    width: calc(100% - 1.2rem);
    min-height: 280px;
    margin-top: 104px;
    border-radius: 18px;
  }

  .page-banner-caption {
    width: calc(100% - 1.2rem);
    margin-top: 0.7rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
  }

  .page-banner-caption h1 {
    font-size: 2rem;
  }

  .page-banner-caption p {
    font-size: 0.98rem;
  }

  .forum-hero {
    min-height: 250px;
    padding: 2.5rem 1rem;
    margin-top: 60px;
  }

  .forum-hero-content h1 {
    font-size: 2rem;
  }

  .forum-hero-content p {
    font-size: 0.95rem;
  }

  .forum-content {
    padding: 2rem 1rem;
  }

  .comment-form {
    padding: 1.8rem;
  }

  .comment-form h2 {
    font-size: 1.4rem;
  }

  .field.row {
    flex-direction: column;
    gap: 1rem;
  }

  .field.row .actions {
    width: 100%;
  }

  .field.row .actions button {
    width: 100%;
  }

  #submitComment {
    width: 100%;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-quad {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .simple-nav {
    padding: 0.75rem 1rem !important;
    gap: 1rem !important;
  }

  .comment {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-banner {
    min-height: 230px;
    margin-top: 96px;
  }

  .page-banner-caption {
    padding: 0.9rem;
  }

  .page-banner-caption h1 {
    font-size: 1.55rem;
  }

  .page-banner-caption p {
    font-size: 0.9rem;
  }

  .forum-hero-content h1 {
    font-size: 1.5rem;
  }

  .forum-hero-content p {
    font-size: 0.9rem;
  }

  .comment-form {
    padding: 1.5rem;
  }

  .comment-form h2 {
    font-size: 1.2rem;
  }

  .field.row {
    flex-direction: column;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.3rem;
  }

  .simple-nav .nav-quad {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    gap: 0.6rem;
  }

  .nav-main-links {
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-icon-btn {
    min-width: auto;
    min-height: 38px;
    height: 38px;
    padding: 0.5rem 0.7rem;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .nav-icon-btn span {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .nav-icon-btn {
    min-height: 36px;
    height: 36px;
    padding: 0.45rem 0.55rem;
  }

  .nav-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}

/* ============================================
   RESPONSIVE SHELL: NAVBAR + CATEGORIAS
   ============================================ */

.navbar {
  min-height: var(--nav-shell-height);
  flex-wrap: nowrap;
}

.brand-title {
  letter-spacing: 0;
}

.page-content {
  padding-top: var(--nav-shell-height);
}

.category-index {
  top: var(--nav-shell-height);
  min-height: var(--category-shell-height);
  align-items: center;
  background: linear-gradient(180deg, rgba(18, 5, 8, 0.94), rgba(0, 0, 0, 0.90));
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  border-bottom: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.forum-hero {
  margin-top: var(--nav-shell-height);
}

.nav-main-links,
.nav-links {
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  :root {
    --nav-shell-height: 96px;
    --category-shell-height: 48px;
  }

  .age-gate-actions {
    width: min(430px, calc(100vw - 2rem));
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 0;
  }

  .age-gate-actions .btn-primary,
  .age-gate-actions .btn-checkout {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
  }

  .navbar:not(.nav-shell) {
    height: var(--nav-shell-height);
    min-height: var(--nav-shell-height);
    padding: 0.5rem 0.65rem 0.55rem;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 28px 40px;
    justify-content: stretch;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.97), rgba(18, 4, 8, 0.94));
    border-bottom: 1px solid rgba(251, 191, 36, 0.46);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  }

  .navbar:not(.nav-shell) .brand-title {
    width: 100%;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: none;
  }

  .navbar:not(.nav-shell) .nav-actions {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: 0.45rem;
  }

  .navbar:not(.nav-shell) .nav-main-links,
  .navbar:not(.nav-shell) .nav-links {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 1rem;
    position: relative;
    z-index: 101;
  }

  .navbar:not(.nav-shell) .nav-main-links::-webkit-scrollbar,
  .navbar:not(.nav-shell) .nav-links::-webkit-scrollbar,
  .category-index::-webkit-scrollbar {
    display: none;
  }

  .navbar:not(.nav-shell) .nav-icon-btn,
  .navbar:not(.nav-shell).simple-nav .nav-quad {
    flex: 0 0 auto;
    height: 36px;
    min-height: 36px;
    width: auto;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    font-size: 0.68rem;
  }

  .nav-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .nav-icon-btn span {
    font-size: 0.66rem;
  }

  .nav-cart-btn {
    flex: 0 0 auto;
    height: 36px;
    min-height: 36px;
    padding: 0 0.65rem;
    border-radius: 8px;
    font-size: 0.78rem;
  }

  .cart-total {
    display: none;
  }

  .simple-nav {
    height: var(--nav-shell-height);
    min-height: var(--nav-shell-height);
    padding: 0.5rem 0.65rem 0.55rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 28px 40px;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 0.35rem !important;
  }

  .simple-nav .nav-links {
    flex-direction: row;
    justify-content: flex-start;
  }

  .page-content {
    padding-top: var(--nav-shell-height);
  }

  #all-products {
    padding-top: 1rem;
  }

  .category-index:not(.category-rail-track) {
    top: var(--nav-shell-height);
    min-height: var(--category-shell-height);
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    z-index: 95;
    background: linear-gradient(180deg, rgba(29, 6, 12, 0.98), rgba(0, 0, 0, 0.96));
    border-top: 1px solid rgba(251, 191, 36, 0.28);
    border-bottom: 1px solid rgba(251, 191, 36, 0.58);
  }

  .forum-hero {
    margin-top: var(--nav-shell-height);
    min-height: 190px;
    padding: 2rem 1rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .forum-hero-content,
  .forum-hero-content p,
  .forum-content,
  .history-content article,
  .history-intro,
  .comment-form,
  .comment-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .forum-hero-content p,
  .history-content h2,
  .history-intro p,
  .history-section h3,
  .history-section p,
  .comment-text {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-shell-height: 92px;
  }

  .navbar:not(.nav-shell),
  .simple-nav:not(.nav-shell) {
    grid-template-rows: 26px 38px;
    padding: 0.45rem 0.55rem 0.5rem !important;
  }

  .navbar:not(.nav-shell) .brand-title {
    font-size: 0.84rem;
  }

  .navbar:not(.nav-shell) .nav-icon-btn,
  .simple-nav:not(.nav-shell) .nav-quad {
    height: 34px;
    min-height: 34px;
    padding: 0.42rem 0.5rem;
  }

  .nav-cart-btn {
    height: 34px;
    min-height: 34px;
  }

  .forum-hero {
    min-height: 168px;
    padding: 1.55rem 0.9rem 1.4rem;
  }
}

@media (max-width: 390px) {
  .nav-main-links,
  .nav-links {
    justify-content: center;
    overflow-x: visible;
  }

  .nav-icon-btn,
  .simple-nav .nav-quad {
    width: 38px;
    min-width: 38px;
    padding: 0.42rem;
  }

  .nav-icon-btn span {
    display: none;
  }
}
