/* ═══════════════════════════════════════════════════════
   Lumbre — Web Styles
   Estética "brasa nocturna" — carbón cálido, degradado
   de fuego y tipografía serif íntima.
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* ── Palette (from mockup) ───────────────────── */
:root {
  --bg:          #150F0C;
  --bg-card:     #1E1612;
  --bg-card-alt: #261C16;
  --bg-elevated: #2E2118;
  --cream:       #F4E2CF;
  --cream-muted: #C9B49E;
  --orange:      #EC7A2C;
  --red-ember:   #C5381C;
  --gold:        #F6B15E;
  --muted:       #7A6A5A;
  --card-border: rgba(244, 226, 207, 0.07);
  --glow-orange: rgba(236, 122, 44, 0.12);
  --radius:      16px;
  --max-width:   1100px;
}

/* ── Typography ──────────────────────────────── */
h1, h2, h3 { font-family: 'Fraunces', serif; color: var(--cream); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; line-height: 1.25; }
h3 { font-size: 1.3rem; font-weight: 500; }
p { color: var(--cream-muted); line-height: 1.7; }
.text-muted { color: var(--muted); }
.text-fire { color: var(--orange); }
.text-amber { color: var(--gold); }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── Layout ──────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ── Navigation ──────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(21, 15, 12, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 600;
  color: var(--cream); text-decoration: none;
}
.nav__logo svg { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 28px; list-style: none; }
.nav__links a {
  color: var(--cream-muted); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.5px; transition: color 0.2s;
}
.nav__links a:hover { color: var(--orange); }

/* ── Hero ────────────────────────────────────── */
.section--hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Massive warm glow behind hero — like the mockup */
.section--hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(236, 122, 44, 0.20) 0%,
    rgba(197, 56, 28, 0.12) 25%,
    rgba(246, 177, 94, 0.06) 45%,
    rgba(21, 15, 12, 0) 70%
  );
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Breathing ember — exact effect from lumbre-pantallas.html */
.hero__ember {
  position: relative;
  width: 220px; height: 220px;
  border-radius: 50%;
  margin: 0 auto 40px;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 45%,
    #ffd9a0 0%,
    var(--gold) 24%,
    var(--orange) 52%,
    var(--red-ember) 74%,
    #5a160c 100%
  );
  box-shadow:
    0 0 60px 6px rgba(236, 122, 44, 0.55),
    0 0 120px 30px rgba(197, 57, 28, 0.28);
  animation: breathe 4.6s ease-in-out infinite;
}

.hero__ember::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 235, 200, 0.9),
    rgba(255, 200, 120, 0) 70%
  );
  animation: flicker 3.1s ease-in-out infinite;
}

/* Hide the SVG icon — the gradient IS the ember */
.hero__ember svg { display: none; }

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 55px 4px rgba(236, 122, 44, 0.5), 0 0 110px 26px rgba(197, 57, 28, 0.24);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 78px 12px rgba(236, 122, 44, 0.62), 0 0 150px 40px rgba(197, 57, 28, 0.32);
  }
}
@keyframes flicker {
  0%, 100% { opacity: 0.85; }
  45% { opacity: 0.55; }
  70% { opacity: 0.95; }
}

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

.hero__subtitle {
  font-family: 'Inter', sans-serif; font-size: 1.1rem;
  color: var(--cream-muted); margin-top: 16px; max-width: 500px;
  margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}

/* ── Store Badges ────────────────────────────── */
.store-badges {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.store-badge {
  height: 54px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  border-radius: 0;
  display: block;
}
.store-badge--gplay {
  height: 80px;
  margin: -13px 0;
}
.store-badges {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
  position: relative; z-index: 1;
  align-items: center;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(236, 122, 44, 0.2);
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(236, 122, 44, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(236, 122, 44, 0.06);
}
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(236, 122, 44, 0.15), rgba(246, 177, 94, 0.08));
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 24px; height: 24px; color: var(--orange); }

/* ── Features Grid ───────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 48px;
}

/* ── Section Divider glow ────────────────────── */
.section--alt {
  background: var(--bg-card);
  position: relative;
}
.section--alt::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 122, 44, 0.3), transparent);
}

/* ── How Steps ───────────────────────────────── */
.step-number {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--red-ember));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CTA glow ────────────────────────────────── */
.section--cta {
  position: relative;
  text-align: center;
}
.section--cta::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(236, 122, 44, 0.10) 0%,
    rgba(197, 56, 28, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* ── Footer ──────────────────────────────────── */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0 32px; text-align: center;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 400px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 122, 44, 0.25), transparent);
}
.footer__links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.footer__links a { color: var(--muted); font-size: 0.85rem; }
.footer__links a:hover { color: var(--cream); }
.footer__copy { color: var(--muted); font-size: 0.8rem; margin-top: 24px; }

/* ── Legal Pages ─────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.legal h1 { margin-bottom: 8px; }
.legal .legal__date { color: var(--muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; color: var(--gold); }
.legal h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; color: var(--cream); }
.legal p { margin-bottom: 16px; font-size: 0.95rem; }
.legal ul { margin: 8px 0 16px 24px; color: var(--cream-muted); }
.legal ul li { margin-bottom: 6px; font-size: 0.95rem; }

/* ── Support ─────────────────────────────────── */
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 40px;
  max-width: 600px; margin: 32px auto 0;
}
.support-card__email {
  font-family: 'Fraunces', serif; font-size: 1.4rem;
  color: var(--orange); display: block; margin-top: 12px;
}
.support-card details summary {
  cursor: pointer; color: var(--cream); font-weight: 500; padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  transition: color 0.2s;
}
.support-card details summary:hover { color: var(--orange); }
.support-card details[open] summary { color: var(--gold); }
.support-card details p {
  padding: 8px 0 8px 16px; font-size: 0.9rem;
  border-left: 2px solid rgba(236, 122, 44, 0.2);
  margin-left: 4px;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 14px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn--fire {
  background: linear-gradient(135deg, #F6B15E, #EC7A2C, #C5381C);
  color: var(--bg);
}
.btn--fire:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(236, 122, 44, 0.35);
}
.btn--outline {
  background: transparent; border: 1px solid var(--card-border);
  color: var(--cream);
}
.btn--outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── Admin ───────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; padding-top: 65px; }
.admin-sidebar {
  width: 240px; background: var(--bg-card);
  border-right: 1px solid var(--card-border); padding: 24px 0;
  position: fixed; top: 65px; bottom: 0; overflow-y: auto;
}
.admin-sidebar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; color: var(--cream-muted);
  font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.admin-sidebar__item:hover { background: var(--bg-elevated); color: var(--cream); }
.admin-sidebar__item.active { color: var(--orange); background: rgba(236, 122, 44, 0.08); border-right: 2px solid var(--orange); }
.admin-sidebar__item svg { width: 18px; height: 18px; }
.admin-main { flex: 1; margin-left: 240px; padding: 32px; }
.admin-stat {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px;
}
.admin-stat__value { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--cream); }
.admin-stat__label { color: var(--muted); font-size: 0.85rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }

/* ── Table ───────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--card-border); }
td { padding: 14px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--card-border); color: var(--cream-muted); }
tr:hover td { background: var(--bg-elevated); }

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(21, 15, 12, 0.85);
  display: none; align-items: center; justify-content: center; z-index: 200;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px; max-width: 500px; width: 90%;
}
.modal h3 { margin-bottom: 20px; }
.modal .form-group { margin-bottom: 16px; }
.modal label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.modal input, .modal textarea, .modal select {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 12px 14px; color: var(--cream);
  font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none;
}
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: var(--orange); }
.modal__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ── Badge ───────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.badge--fire { background: rgba(236, 122, 44, 0.15); color: var(--orange); }
.badge--green { background: rgba(76, 175, 80, 0.15); color: #4CAF50; }
.badge--amber { background: rgba(246, 177, 94, 0.15); color: var(--gold); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .section--hero { padding: 120px 0 60px; }
  .hero__ember { width: 160px; height: 160px; }
  .hero__ember::after { inset: 30px; }
  .section--hero::before { width: 500px; height: 500px; }
}
