/* =============================================
   BRASA REAL — Estilos principales
   ============================================= */

:root {
  --red: #C0392B;
  --red-dark: #96281B;
  --red-glow: rgba(192,57,43,0.25);
  --primary: #C0392B;
  --dark: #1a1a1a;
  --dark-2: #2a2a2a;
  --cream: #f5e6c8;
  --cream-dark: #ecdcb4;
  --text: #1a1a1a;
  --text-muted: #666;
  --white: #ffffff;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { overflow-x: hidden; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

/* CONTAINERS */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 36px; font-size: 1.15rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--red);
  color: var(--white);
  animation: btnPulse 3s ease-in-out infinite;
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,57,43,0.5);
  animation: none;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(192,57,43,0.2); }
  50% { box-shadow: 0 4px 28px rgba(192,57,43,0.5); }
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  gap: 10px;
}
.btn--whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}
.btn--outline:hover { background: var(--red); color: var(--white); }

/* BADGE */
.badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}

/* SECTION LABELS */
.section__label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-fire {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(255,120,0,0.7));
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192,57,43,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,120,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; }

.hero__content .badge { margin-bottom: 24px; }

.hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 440px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__ship {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.hero__image {
  position: relative;
}

.hero__image img,
.hero__video {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 60px rgba(192,57,43,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero__image img:hover,
.hero__video:hover {
  transform: scale(1.02);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 80px rgba(192,57,43,0.2);
}

/* =============================================
   PROBLEMA
   ============================================= */
.problem {
  background: var(--cream);
  padding: 96px 0;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.problem__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.problem__icon svg {
  width: 48px;
  height: 48px;
}

.problem__item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================================
   SOLUCIÓN / FEATURES
   ============================================= */
.solution {
  padding: 96px 0;
  background: var(--dark);
}

.solution .section__title {
  color: var(--white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.feature:hover {
  border-color: var(--red);
  border-top-color: var(--red);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.03);
}

.feature__number {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.feature p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* =============================================
   CÓMO FUNCIONA
   ============================================= */
.how {
  padding: 96px 0;
  background: var(--white);
}

.steps {
  display: flex;
  align-items: center;
  gap: 24px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 40px 24px;
  background: var(--cream);
  border-radius: var(--radius);
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.step:hover {
  border-bottom-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.step__num {
  width: 56px; height: 56px;
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step__arrow {
  font-size: 2rem;
  color: var(--red);
  flex-shrink: 0;
}

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonios {
  padding: 96px 0;
  background: var(--dark);
}

.testimonios .section__title {
  color: var(--white);
}

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

.testimonio {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.testimonio:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.testimonio__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonio__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonio__author strong {
  color: var(--white);
  font-size: 0.9rem;
}

.testimonio__author span {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* =============================================
   PRODUCTO / COMPRAR
   ============================================= */
.product {
  padding: 96px 0;
  background: var(--cream);
  text-align: center;
}

.packs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

.pack {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pack:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

.pack--featured {
  border-color: var(--red);
  transform: scale(1.04);
  box-shadow: 0 12px 48px rgba(192,57,43,0.18);
}

.pack--featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pack__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pack__qty {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 6px;
}

.pack__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.pack__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pack__price-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

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

.pack__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
}

.product__shipping {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* =============================================
   MEMBRESÍA
   ============================================= */
.membresia {
  padding: 96px 0;
  background: var(--dark);
}

.membresia__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.membresia__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.membresia__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}

.membresia__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.membresia__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.membresia__benefits svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--red);
}

.membresia__card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.membresia__tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.membresia__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.membresia__price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.membresia__price-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--red);
}

.membresia__price-period {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding-bottom: 8px;
}

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

.membresia__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =============================================
   MAYORISTA
   ============================================= */
.mayorista {
  padding: 80px 0;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

.mayorista::before {
  content: '';
  position: absolute;
  top: 50%; left: -100px;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,211,102,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.mayorista__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.mayorista__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 16px;
  line-height: 1.1;
}

.mayorista__sub {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.7;
}

.mayorista .btn--whatsapp {
  flex-shrink: 0;
  white-space: nowrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer__logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.footer__brand p { font-size: 0.9rem; }

.footer__links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }

.footer__legal {
  text-align: center;
  padding: 12px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.footer__legal a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--red);
  text-decoration: underline;
}

.footer__legal span {
  margin: 0 8px;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   SHIPPING CALCULATOR
   ============================================= */
.shipping-calc {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  max-width: 400px;
}

.shipping-calc--light {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  margin: 32px auto 0;
  max-width: 480px;
}

.shipping-calc__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shipping-calc--light .shipping-calc__label {
  color: var(--text-muted);
}

.shipping-calc__row {
  display: flex;
  gap: 8px;
}

.shipping-calc__input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.shipping-calc__input::placeholder { color: rgba(255,255,255,0.35); }
.shipping-calc__input:focus { border-color: var(--red); }

.shipping-calc--light .shipping-calc__input {
  background: var(--cream);
  border-color: var(--cream-dark);
  color: var(--text);
}

.shipping-calc--light .shipping-calc__input::placeholder { color: #aaa; }

.shipping-calc__btn {
  padding: 10px 18px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}

.shipping-calc__btn:hover { background: var(--red-dark); }

.shipping-calc__result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.shipping-calc__result.ok {
  background: rgba(46,125,50,0.15);
  border: 1px solid rgba(46,125,50,0.3);
  color: #81c784;
}

.shipping-calc__result.ok.free {
  background: rgba(46,125,50,0.25);
  color: #a5d6a7;
}

.shipping-calc--light .shipping-calc__result.ok {
  color: #2e7d32;
  background: #e8f5e9;
  border-color: #a5d6a7;
}

.shipping-calc--light .shipping-calc__result.ok.free {
  background: #c8e6c9;
}

.shipping-calc__result.error {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.3);
  color: #ef9a9a;
}

.shipping-calc--light .shipping-calc__result.error {
  color: var(--red);
  background: #fdecea;
  border-color: #f5c6c2;
}

/* =============================================
   OVERLAY / LOADING
   ============================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.overlay.active { display: flex; }

.overlay__box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.overlay__box p { font-size: 1rem; color: var(--text-muted); }

.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--cream-dark);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 32px 64px;
    text-align: center;
  }

  .hero__content { order: 1; }
  .hero__image { order: 0; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }

  .problem__grid,
  .features__grid,
  .testimonios__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
  }

  .step__arrow { transform: rotate(90deg); }

  .packs__grid {
    grid-template-columns: 1fr;
  }

  .pack--featured {
    transform: none;
    order: -1;
  }

  .pack--featured:hover {
    transform: translateY(-4px);
  }

  .membresia__inner {
    grid-template-columns: 1fr;
  }

  .membresia__sub { max-width: 100%; }

  .mayorista__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .mayorista__sub { margin: 0 auto; }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav { padding: 12px 20px; }
  .hero { padding: 90px 20px 48px; }
  .problem, .solution, .how, .testimonios, .product, .membresia, .mayorista { padding: 64px 0; }
  .section__title { margin-bottom: 32px; }
  .mayorista__title { font-size: 2rem; }
}

/* =============================================
   CHAT WIDGET
   ============================================= */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-box {
  width: 320px;
  height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8e0d4;
}
.chat-header {
  background: var(--red);
  color: #fff;
  padding: 14px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #faf7f3;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.chat-msg--bot {
  background: #fff;
  border: 1px solid #e8e0d4;
  align-self: flex-start;
  color: var(--text);
}
.chat-msg--user {
  background: var(--red);
  color: #fff;
  align-self: flex-end;
}
.chat-msg--typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
}
.chat-msg--typing span {
  width: 7px;
  height: 7px;
  background: #bbb;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.chat-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
.chat-input-row {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #e8e0d4;
  background: #fff;
}
.chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-send:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 480px) {
  .chat-box { width: calc(100vw - 32px); }
  .chat-widget { bottom: 16px; right: 16px; }
}

/* =============================================
   FOCUS STYLES (ACCESSIBILITY)
   ============================================= */
*:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.shipping-calc__input:focus-visible,
.chat-input:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* ACTIVE STATES */
.btn:active { transform: scale(0.97); }
.btn--primary:active { transform: scale(0.97); animation: none; }
.pack--featured .btn:active { transform: scale(0.97); }

/* =============================================
   NAV SCROLL STATE
   ============================================= */
.nav {
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(26,26,26,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* =============================================
   HERO ENTRANCE ANIMATION
   ============================================= */
.hero__content .badge,
.hero__content .hero__title,
.hero__content .hero__sub,
.hero__content .hero__actions,
.hero__content .shipping-calc {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.7s ease forwards;
}

.hero__content .badge { animation-delay: 0.1s; }
.hero__content .hero__title { animation-delay: 0.25s; }
.hero__content .hero__sub { animation-delay: 0.4s; }
.hero__content .hero__actions { animation-delay: 0.55s; }
.hero__content .shipping-calc { animation-delay: 0.7s; }

.hero__image {
  opacity: 0;
  transform: translateX(40px);
  animation: heroSlideIn 0.8s ease 0.3s forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   REDUCED MOTION
   ============================================= */
/* Mobile: disable hero animation, show content immediately */
@media (max-width: 900px) {
  .hero__content .badge,
  .hero__content .hero__title,
  .hero__content .hero__sub,
  .hero__content .hero__actions,
  .hero__content .shipping-calc,
  .hero__image {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Safety: make content visible if JS hasn't loaded yet */
noscript + .reveal,
.reveal { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =============================================
   VOUCHER
   ============================================= */
.voucher-box {
  max-width: 420px;
  margin: 20px auto 0;
  text-align: center;
}
.voucher__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.voucher__row {
  display: flex;
  gap: 8px;
}
.voucher__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.voucher__input::placeholder { color: rgba(255,255,255,0.3); text-transform: none; letter-spacing: 0; }
.voucher__input:focus { outline: none; border-color: var(--red); }
.voucher__input:disabled { opacity: 0.5; }
.voucher__btn {
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.voucher__btn:hover { background: var(--red-dark); }
.voucher__btn:disabled { opacity: 0.6; cursor: default; }
.voucher__msg {
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 1.2em;
}
.voucher__msg.ok { color: #2ecc71; }
.voucher__msg.error { color: #e74c3c; }

/* =============================================
   AUTH — Nav buttons & Modal
   ============================================= */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav__auth-btn:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}
.nav__auth-btn svg { flex-shrink: 0; }

.nav__user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__user-name {
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav__logout-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav__logout-btn:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.auth-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.auth-modal__box {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: authSlideUp 0.3s ease;
}

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

.auth-modal__close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.auth-modal__close:hover { color: var(--text); }

.auth-modal__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
}
.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.auth-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.auth-modal__error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-height: 1.2em;
}
.auth-modal__success {
  color: #27ae60;
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-height: 1.2em;
}

.auth-modal form .btn {
  margin-top: 8px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .nav__auth-btn span:not(svg) { display: none; }
  .nav__auth-btn { padding: 6px 10px; font-size: 0; }
  .nav__auth-btn svg { width: 20px; height: 20px; }
  .auth-modal__box { padding: 24px 20px; }
}

@media (max-width: 400px) {
  .nav__actions { gap: 8px; }
  .nav__user-name { display: none; }
}
