/* =====================================================================
   SISTEMA DE DISEÑO ULTRA-PREMIUM - TRAZABILIDAD CAFETERA DEL SUMAPAZ
   Paleta: Obsidian Luxury, Deep Velvet Espresso, Brushed Gold, Emerald, Terracotta
   ===================================================================== */

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

:root {
  /* Fondo y Superficies */
  --bg-dark: #0a0706;
  --bg-surface: #120d0b;
  --bg-card: rgba(22, 16, 13, 0.78);
  --bg-card-hover: rgba(34, 25, 21, 0.92);
  --bg-card-active: rgba(45, 32, 27, 0.98);

  /* Acentos y Metales Nobles */
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-warm: #c88647;
  --gold-dark: #8c5825;
  --gold-glow: rgba(212, 175, 55, 0.22);
  --gold-border: rgba(212, 175, 55, 0.25);
  --gold-border-hover: rgba(212, 175, 55, 0.6);

  /* Acentos de Taza y Procesos */
  --accent-terra: #e76f51;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-ruby: #e11d48;

  /* Tipografía */
  --text-main: #fdfbf7;
  --text-muted: #c4b5a5;
  --text-sub: #8a776a;

  /* Geometría y Sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--gold-border);
  --shadow-card-hover: 0 20px 48px -6px rgba(0, 0, 0, 0.85), 0 0 20px var(--gold-glow);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.35);

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(231, 111, 81, 0.05) 0%, transparent 65%),
    linear-gradient(to bottom, #0a0706, #0e0908 50%, #080504);
  background-attachment: fixed;
}

/* Tipografía Especial */
h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* =====================================================================
   NAVBAR ULTRA-LUXURY
   ===================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2.5rem;
  background: rgba(10, 7, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-primary), #6b3e15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.nav-brand:hover .brand-icon {
  transform: rotate(6deg) scale(1.05);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-link:hover {
  color: #fff;
  background: rgba(212, 175, 55, 0.12);
}

.nav-link.active {
  color: #0f0b09;
  background: linear-gradient(135deg, var(--gold-primary), #e6be44);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

/* =====================================================================
   LAYOUT & GLASS CARDS
   ===================================================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
}

.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* =====================================================================
   BADGES & PILLS
   ===================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: var(--transition-fast);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.badge-presidential {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(231, 111, 81, 0.25));
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.5);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.badge-excellent, .badge-specialty {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.badge-stage {
  background: rgba(231, 111, 81, 0.18);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.35);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), #99582a);
  color: #0f0b09;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, #e6be44, #b06933);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(10px);
}

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

/* =====================================================================
   FORMS & INPUTS
   ===================================================================== */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(14, 10, 8, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 0 15px rgba(212, 175, 55, 0.2);
  background: rgba(18, 13, 10, 0.95);
}

/* Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* =====================================================================
   TIMELINE
   ===================================================================== */
.timeline {
  position: relative;
  padding-left: 2.25rem;
  margin: 1.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-primary), var(--accent-emerald), var(--accent-terra));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
}

.timeline-marker {
  position: absolute;
  left: -2.25rem;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 4px solid var(--bg-dark);
  box-shadow: 0 0 12px var(--gold-primary);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold-border-hover);
  transform: translateX(4px);
}

/* =====================================================================
   GRID UTILITIES
   ===================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.35rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .navbar { flex-direction: column; gap: 1rem; padding: 1rem 1.25rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; width: 100%; }
  .nav-link { font-size: 0.8rem; padding: 0.45rem 0.75rem; }
  .container { padding: 1.25rem 1rem; }
}
