/* ==========================================================================
   SUMAQ CAFÉ - ULTRA PREMIUM DESIGN SYSTEM & STYLESHEET
   Inspirado en la mística del café de altura andino, oro inca y tostado fino.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Paleta Cromática Andina de Especialidad */
  --bg-dark: #0f0b09;
  --bg-surface: #17110e;
  --bg-card: rgba(28, 20, 16, 0.85);
  --bg-card-hover: rgba(38, 28, 23, 0.95);
  --bg-glass: rgba(23, 17, 14, 0.72);
  --bg-glass-border: rgba(212, 175, 55, 0.18);
  
  --gold-primary: #d4af37;
  --gold-light: #f3c64f;
  --gold-dark: #997d21;
  --gold-gradient: linear-gradient(135deg, #f5d77f 0%, #d4af37 50%, #aa8420 100%);
  --gold-glow: 0 0 24px rgba(212, 175, 55, 0.35);

  --coffee-rich: #2e1d15;
  --coffee-medium: #4e3223;
  --coffee-crema: #d8c2aa;
  --coffee-roast: #1a100a;

  --terracotta: #c84b31;
  --terracotta-glow: 0 0 20px rgba(200, 75, 49, 0.35);
  --emerald-green: #2a9d8f;
  
  --text-main: #fcf9f5;
  --text-muted: #b8a698;
  --text-dim: #7f6e62;

  --border-subtle: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(212, 175, 55, 0.38);

  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(200, 75, 49, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(78, 50, 35, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.03em;
  font-weight: 700;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   ANNOUNCEMENT BAR & NAVBAR
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #1c130e 0%, #362215 50%, #1c130e 100%);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  padding: 7px 0;
  text-align: center;
  color: var(--coffee-crema);
  font-weight: 500;
  position: relative;
  z-index: 101;
}

.announcement-bar .badge-gold {
  background: var(--gold-gradient);
  color: #120c06;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
  margin-right: 8px;
  text-transform: uppercase;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.25));
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-name span {
  font-size: 0.72rem;
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Botones y controles de la cabecera */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #120c06;
  border: 1px solid rgba(255, 235, 175, 0.4);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
  filter: brightness(1.05);
}

.btn-outline-gold {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-admin {
  background: rgba(200, 75, 49, 0.12);
  border: 1px solid rgba(200, 75, 49, 0.4);
  color: #ff9d8c;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-admin:hover {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--terracotta-glow);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--border-gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.user-chip:hover {
  background: rgba(212, 175, 55, 0.16);
  transform: translateY(-2px);
}

.user-chip img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--gold-primary);
}

.user-chip-info {
  text-align: left;
  line-height: 1.2;
}

.user-chip-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.user-chip-tier {
  font-size: 0.68rem;
  color: var(--gold-primary);
  font-weight: 600;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 20px;
  color: #fff;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
}

.hero-card-featured {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.hero-card-featured:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.hero-card-banner {
  position: absolute;
  top: 18px;
  right: -36px;
  background: var(--gold-gradient);
  color: #120c06;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

.hero-card-img-wrap {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
  position: relative;
}

.hero-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card-featured:hover .hero-card-img-wrap img {
  transform: scale(1.05);
}

.hero-card-origin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-card-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #fff;
}

.hero-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  color: var(--coffee-crema);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.hero-card-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
}

.hero-card-price span {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 6px;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  padding: 12px 18px;
  background: rgba(23, 17, 14, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  animation: float 4s ease-in-out infinite alternate;
}

.floating-badge.badge-1 {
  bottom: -20px;
  left: -20px;
}

.floating-badge.badge-2 {
  top: 30px;
  left: -35px;
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   SISTEMA DE AFILIACIÓN (20, 40, 50 COMPRAS) & MEMBRESÍA VIP
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

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

.loyalty-section {
  padding: 90px 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 17, 12, 0.5) 50%, transparent 100%);
}

.loyalty-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}

/* Card de Afiliación & Sellos */
.loyalty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.loyalty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.loyalty-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.loyalty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 700;
}

.loyalty-stamps-bar {
  margin: 24px 0 30px;
}

.stamps-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.stamps-progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.stamps-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* Hitos de compras 20, 40, 50 */
.milestones-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.milestone-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.milestone-item.reached {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.milestone-item.permanent {
  border-color: var(--gold-light);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(26, 17, 12, 0.8) 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.milestone-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.milestone-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.milestone-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.milestone-status-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.milestone-status-tag.unlocked {
  background: rgba(42, 157, 143, 0.25);
  color: #52ddc8;
  border: 1px solid #2a9d8f;
}

.milestone-status-tag.pending {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

/* Card de Membresía Mensual VIP */
.membership-card {
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.18) 0%, var(--bg-card) 65%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card), 0 0 35px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.membership-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold-gradient);
  color: #120c06;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.membership-price-box {
  margin: 20px 0 26px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
}

.price-frequency {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.membership-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.membership-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--coffee-crema);
}

.perk-check {
  color: var(--gold-primary);
  font-size: 1rem;
  line-height: 1.2;
}

/* ==========================================================================
   CATÁLOGO DE PRODUCTOS DE ESPECIALIDAD
   ========================================================================== */
.shop-section {
  padding: 90px 0;
}

.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--gold-gradient);
  color: #120c06;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.shop-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  width: 260px;
  transition: var(--transition);
}

.shop-search-box:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

.shop-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  width: 100%;
  margin-left: 8px;
}

/* Grid de Productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card), 0 10px 25px rgba(0, 0, 0, 0.5);
}

.product-img-wrapper {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  background: #1e1511;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 12, 9, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-description {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--coffee-crema);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-light);
}

.product-price-old {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 4px;
}

.btn-add-cart {
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* ==========================================================================
   CARRITO SLIDE-OVER (DRAWER)
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-gold);
  z-index: 151;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
}

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

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #241913;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.cart-item-price {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(18, 13, 10, 0.95);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-summary-line.total {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 800;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

/* ==========================================================================
   MODALES (CHECKOUT, BOLETA, LOGIN, PERFIL, EMAILS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-body {
  padding: 28px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--coffee-crema);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Estilo de Boleta Electrónica Oficial */
.boleta-receipt-sheet {
  background: #ffffff;
  color: #222222;
  border-radius: var(--radius-md);
  padding: 30px;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.boleta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 2px dashed #444;
  margin-bottom: 20px;
}

.boleta-brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
}

.boleta-rut-box {
  border: 2px solid #b32d1e;
  padding: 8px 14px;
  text-align: center;
  color: #b32d1e;
  font-weight: 800;
  line-height: 1.25;
}

.boleta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}

.boleta-table th {
  border-bottom: 1px solid #333;
  padding: 6px 0;
  text-align: left;
}

.boleta-table td {
  padding: 6px 0;
  border-bottom: 1px dotted #ccc;
}

.boleta-totals {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px dashed #444;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.boleta-qr-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.qr-code-box {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  text-align: center;
  font-family: sans-serif;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: slideInUp 0.3s ease;
  min-width: 300px;
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
  background: #090605;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .loyalty-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .milestones-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
