/* ============================================================
   HEAD / HEADER — v3.0 Clean & Refined
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg:         #f5f3ef;
  --bg-2:       #edeae3;
  --surface:    #ffffff;
  --surface-2:  #f8f6f2;
  --text:       #1a1814;
  --text-2:     #4a4640;
  --muted:      #8c8680;
  --gold:       #b8892a;
  --gold-light: #d4a84d;
  --gold-soft:  rgba(184,137,42,0.10);
  --gold-glow:  rgba(184,137,42,0.20);
  --border:     rgba(0,0,0,0.06);
  --border-md:  rgba(0,0,0,0.11);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 260ms var(--ease);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

body.dark {
  --bg: #141210;
  --bg-2: #1c1a17;
  --surface: #201e1b;
  --surface-2: #2a2723;
  --text: #f0ece4;
  --text-2: #c0bab0;
  --muted: #7a7570;
  --gold: #c9a24d;
  --gold-light: #e0bb6a;
  --gold-soft: rgba(201,162,77,0.12);
  --gold-glow: rgba(201,162,77,0.24);
  --border: rgba(255,255,255,0.06);
  --border-md: rgba(255,255,255,0.11);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.5);
}

@keyframes fadeUp  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: var(--font-body);
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 20px;
  line-height: 1.6;
  transition: background 0.4s, color 0.3s;
  font-family: var(--font-body);
}

.container {
  max-width: 1080px;
  margin: auto;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  animation: fadeUp 0.5s var(--ease) both;
}

.hero-left h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--text);
  transition: color 0.3s;
}

body.dark .hero-left h1 {
  background: linear-gradient(135deg, var(--text) 40%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── HERO BOTTOM ────────────────────────────────────────────── */
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  gap: 12px;
}

/* ── MAIN NAV ─────────────────────────────────────────────── */
.main-nav {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.nav-link::after { display: none; }

/* ── HEADER CONTROLS ─────────────────────────────────────── */
.header-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-controls select,
.header-controls button {
  font-family: var(--font-body);
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}
.header-controls select {
  background: var(--surface) url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='none' height='16' viewBox='0 0 20 20' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%238c8680' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  padding-right: 28px;
  -webkit-appearance: none;
  appearance: none;
}
.header-controls button:hover,
.header-controls select:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

#toggleDark {
  font-size: 0.95rem;
  width: 36px; height: 36px;
  padding: 0;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
#toggleDark:hover { transform: rotate(20deg); }

#modoProBtn1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  padding: 7px 14px;
  transition: all var(--t-fast);
}
#modoProBtn1.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
  color: #000 !important;
  border-color: transparent !important;
  box-shadow: 0 3px 12px var(--gold-glow);
}
#modoProBtn1:hover { background: var(--gold-soft); border-color: var(--gold); }

/* ── INTRO TEXT ─────────────────────────────────────────── */
.intro-text {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.intro-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  body { padding: 20px 14px; }
  .hero-bottom { flex-direction: column; align-items: center; gap: 10px; }
  .main-nav { justify-content: center; flex-wrap: wrap; }
  .header-controls { justify-content: center; }
}