/* GamGam landing — estilos compartidos (evento + marketing) */
/* Paleta FUEGO (rebrand v2): fondo cálido casi-negro + gradiente llama
   amarillo → naranja → rojo. Fuente de verdad: app móvil src/theme/colors.ts */
:root {
  --bg: #0A0506;
  --bg-elev: #1A0D0E;
  --bg-card: #1A0D0E;
  --bg-hover: #2B1416;
  --border: rgba(255, 122, 26, 0.22);
  --border-strong: rgba(255, 122, 26, 0.35);
  --text: #FFFFFF;
  --text-dim: #B8A8A5;
  --text-disabled: #6F5B58;

  /* Paradas del gradiente llama */
  --flame-1: #FFC93C;
  --flame-2: #FF7A1A;
  --flame-3: #E11D22;
  --flame: linear-gradient(135deg, #FFC93C 0%, #FF7A1A 45%, #E11D22 100%);
  --flame-h: linear-gradient(90deg, #FFC93C 0%, #FF7A1A 45%, #E11D22 100%);

  --brand: #FF7A1A;
  --brand-strong: #E11D22;

  --radius: 18px;
  --radius-sm: 14px;
  --max: 560px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Resplandor cálido tenue detrás del contenido (glow de marca) */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 122, 26, 0.14), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(225, 29, 34, 0.10), transparent 60%);
  background-attachment: fixed;
}

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

a { color: inherit; }

/* ---------- Header / Footer ---------- */
.site-header {
  padding: 20px;
  display: flex;
  justify-content: center;
}
.brand { display: inline-flex; text-decoration: none; }
.brand img { height: 34px; width: auto; }

.site-footer {
  margin-top: auto;
  padding: 28px 20px 36px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer a { color: var(--brand); text-decoration: none; }
.site-footer a:hover { color: var(--flame-1); text-decoration: underline; }
.footer-legal { margin: 8px 0 0; font-size: 12px; }
.footer-legal a { margin: 0 4px; }

/* ---------- Documentos legales (términos / privacidad) ---------- */
.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 22px 40px;
}
.legal h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 8px 0 12px;
}
.legal h2 {
  font-size: 19px;
  line-height: 1.3;
  margin: 34px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}
.legal p { color: var(--text-dim); font-size: 15.5px; margin: 0 0 14px; }
.legal p strong, .legal li strong { color: var(--text); font-weight: 700; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { color: var(--text-dim); font-size: 15.5px; margin-bottom: 8px; }
.legal a { color: var(--brand); text-decoration: none; }
.legal a:hover { color: var(--flame-1); text-decoration: underline; }

.legal-note { font-style: italic; color: var(--text-disabled); font-size: 14px; }
.legal-updated { color: var(--text-disabled); font-size: 14px; margin: 0 0 20px; }

.legal-lang { margin: 0 0 4px; font-size: 13px; text-align: right; }
.legal-lang a { color: var(--brand); text-decoration: none; }
.legal-lang a:hover { color: var(--flame-1); text-decoration: underline; }

.legal-disclaimer {
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 14px;
}
.legal-disclaimer a { color: var(--brand); text-decoration: none; }
.legal-disclaimer a:hover { color: var(--flame-1); text-decoration: underline; }

.legal-nav {
  display: inline-flex;
  gap: 10px;
  margin: 0 0 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 600;
}
.legal-nav a { color: var(--brand); text-decoration: none; }
.legal-nav a:hover { color: var(--flame-1); text-decoration: underline; }

/* ---------- Estados (loading / error) ---------- */
.event-page {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 28px;
}

.state {
  text-align: center;
  padding: 56px 16px;
}
.state-emoji { font-size: 44px; margin-bottom: 12px; }
.state-title { font-size: 22px; margin: 0 0 8px; }
.state-text { color: var(--text-dim); margin: 0 0 24px; }

.spinner {
  width: 34px; height: 34px;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tarjeta de evento ---------- */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.event-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-elev); }
.event-image { width: 100%; height: 100%; object-fit: cover; }
.event-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: capitalize;
}

.event-body { padding: 20px; }
.event-name { font-size: 24px; line-height: 1.25; margin: 0 0 16px; }

.event-meta { list-style: none; margin: 0 0 16px; padding: 0; }
.meta-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.meta-icon { flex: none; font-size: 15px; line-height: 1.6; }
.meta-text { color: var(--text-dim); font-size: 15px; }

.event-description {
  color: var(--text);
  font-size: 15px;
  margin: 0 0 20px;
  white-space: pre-line;
}

/* ---------- Botones ---------- */
.event-actions { margin-top: 4px; }

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--flame);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(225, 29, 34, 0.35), 0 0 0 1px rgba(255, 122, 26, 0.25) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(225, 29, 34, 0.45); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.96); }

.store-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.store-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 11px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-align: center;
}
.store-btn.is-placeholder { opacity: 0.6; cursor: not-allowed; }
.store-btn-sub { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px; }
.store-btn-main { font-size: 15px; font-weight: 700; }

.store-note {
  margin: 14px 2px 0;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Marketing (raíz) ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  max-width: 640px;
  margin: 0 auto;
}

/* Ícono real de la app, con el mismo halo cálido del onboarding */
.hero-logo {
  height: 116px;
  width: 116px;
  border-radius: 28px;
  margin-bottom: 26px;
  box-shadow:
    0 0 0 1px rgba(255, 122, 26, 0.30),
    0 18px 48px rgba(225, 29, 34, 0.35),
    0 0 60px rgba(255, 122, 26, 0.28);
}

/* Wordmark "GamGam" con el gradiente llama, brillo y respiración */
.hero-wordmark {
  position: relative;
  display: inline-block;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin: 0 0 22px;
  /* Gradiente llama animado: se mueve suave como una llama viva */
  background: linear-gradient(100deg, #FFC93C 0%, #FF7A1A 40%, #E11D22 70%, #FF7A1A 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Resplandor cálido detrás del texto */
  filter: drop-shadow(0 2px 18px rgba(255, 122, 26, 0.45));
  animation: flameShift 6s ease-in-out infinite;
}

@keyframes flameShift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark { animation: none; }
}

.hero h1 { font-size: 32px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.4px; }
.hero p { font-size: 18px; color: var(--text-dim); margin: 0 0 32px; max-width: 44ch; }
.hero .store-buttons { max-width: 360px; width: 100%; }

@media (min-width: 480px) {
  .event-name { font-size: 26px; }
  .hero-logo { height: 128px; width: 128px; }
  .hero-wordmark { font-size: 58px; }
  .hero h1 { font-size: 38px; }
}
