/* ==========================================================================
   GOD MARKET — Premium / Luxury Design System
   Concepto A: Elegancia, exclusividad y sofisticación.
   Colores profundos, detalles dorados y fotografía de alta calidad.
   ========================================================================== */

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

:root {
  /* ── Brand Palette GOD MARKET (Luxury Dark Forest Emerald & Pure Gold) ── */
  --primary: #D4AF37;               /* Classic Roman Gold */
  --primary-hover: #E5C365;
  --primary-light: rgba(212, 175, 55, 0.12);
  --primary-gradient: linear-gradient(135deg, #F5DFAC 0%, #D4AF37 50%, #9F7624 100%);
  --gold-shine: linear-gradient(90deg, #D4AF37, #FFF0BE, #D4AF37);

  --green-deep: #051610;            /* Background canvas */
  --green-dark: #081E16;            /* Header / navigation */
  --green-mid: #0D271E;             /* Surfaces */
  --green-card: #0A2219;            /* Cards surface */
  --green-surface: #102C21;
  --green-border: rgba(212, 175, 55, 0.20);
  --green-border-subtle: rgba(255, 255, 255, 0.08);

  --cream: #FAF6F0;                 /* Ivory White */
  --cream-muted: #CBD8D1;           /* Soft Sage */
  --cream-subtle: rgba(250, 246, 240, 0.65);
  --white-glass: rgba(255, 255, 255, 0.05);

  /* ── Legacy aliases (keep JS compatibility) ── */
  --bg-app: var(--green-deep);
  --bg-surface: var(--green-card);
  --bg-surface-secondary: var(--green-surface);
  --text-main: var(--cream);
  --text-secondary: var(--cream-muted);
  --text-muted: rgba(212,201,176,0.55);
  --border-light: var(--green-border);
  --border-subtle: var(--green-border-subtle);

  --accent-gold: #C9A84C;
  --accent-gold-light: rgba(201,168,76,0.12);
  --accent-mint: #5A9B76;
  --accent-mint-light: rgba(90,155,118,0.15);

  --success: #5A9B76;
  --warning: #C9A84C;
  --danger: #C0392B;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA5A;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.25);
  --shadow-float: 0 16px 48px rgba(201,168,76,0.22);

  /* ── Radius ── */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* No dark mode needed — always dark luxury */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--green-deep);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201,168,76,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(27,58,45,0.6) 0%, transparent 70%);
  color: var(--cream);
  min-height: 100%;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; user-select: none; }

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

/* ── App Layout ── */
.app-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--green-deep);
  padding-bottom: 130px;
  box-shadow:
    0 0 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(201,168,76,0.06);
}

.section-container {
  padding: 0 16px;
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
}

.section-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* Gold badge */
.badge-count {
  font-size: 0.72rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201,168,76,0.25);
  letter-spacing: 0.02em;
}

/* ── Micro-animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes goldPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.animate-fade { animation: fadeIn 0.4s ease forwards; }

/* ── Glassmorphism ── */
.glass {
  background: rgba(15,35,24,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Gold divider ── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 0 16px;
  opacity: 0.4;
}
