/* GamaGold: tema oscuro con dorado. Un solo archivo para todas las páginas. */
:root {
  --bg: #0E1116; --panel: #161A22; --panel2: #12161D; --foot: #0A0D12;
  --line: #232936; --line2: #3A4254;
  --fg: #E8EAEE; --soft: #C9CED8; --muted: #A3AAB8;
  --gold: #D8AE45; --gold-ink: #1A1405;
  --wa: #25D366; --wa-ink: #07301A;
  --warn: #E5A24A; --danger: #D9534F; --ok: #8FD19E;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #EBC96B; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 480px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.section { padding-top: 48px; padding-bottom: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.h1 { margin: 8px 0 12px; font: 700 56px/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.h2 { margin: 0; font: 600 38px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.lead { max-width: 620px; margin: 0 0 20px; color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { .h1 { font-size: 44px; } .h2 { font-size: 32px; } }

/* Botones y chips */
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent; font: 600 15px var(--text); text-decoration: none; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #EBC96B; color: var(--gold-ink); }
.btn-line { border-color: var(--line2); color: var(--fg); background: transparent; min-height: 44px; font-size: 14px; }
.btn-line:hover { border-color: var(--gold); color: var(--fg); }
.btn-wa { background: var(--wa); color: var(--wa-ink); min-height: 44px; }
.btn-wa:hover { background: #3BE07C; color: var(--wa-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line2); color: var(--fg); font: 500 14px var(--text); text-decoration: none; }
.chip:hover { border-color: var(--gold); color: var(--fg); }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.link, .link-btn { font: 600 14px var(--text); text-decoration: none; }
.link-btn { background: none; border: 0; color: var(--gold); cursor: pointer; min-height: 44px; padding: 0; }

/* Encabezado */
.hdr { border-bottom: 1px solid var(--line); background: var(--bg); }
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-mark { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--gold-ink); border-radius: 4px; font: 700 22px var(--display); }
.brand-name { font: 600 26px var(--display); letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 8px; flex: 1 1 320px; }
.nav a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--muted); font: 500 14px var(--text); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { color: var(--fg); }
.nav a.is-active { color: var(--fg); border-bottom-color: var(--gold); }
.hdr-user { display: flex; align-items: center; gap: 12px; }
.hdr-user form { margin: 0; }
.chip-user { min-height: 44px; display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--gold); border-radius: 4px; color: var(--fg); font: 600 14px var(--text); text-decoration: none; }

/* Portada */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding-top: 56px; padding-bottom: 24px; }
.hero-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero-text .h1 { margin: 0; font-size: 64px; }
.hero-text .lead { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feat { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.feat-img { flex: 1 1 auto; min-height: 260px; position: relative; background: repeating-linear-gradient(135deg, #1B212C 0 14px, #1F2633 14px 28px); }
.feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-tag { position: absolute; left: 16px; top: 16px; padding: 4px 10px; background: var(--gold); color: var(--gold-ink); border-radius: 3px; font: 600 12px var(--text); letter-spacing: .1em; text-transform: uppercase; }
.feat-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.feat-body h2 { margin: 0; font: 600 32px/1.1 var(--display); text-wrap: balance; }
.meta { font-size: 13px; color: var(--muted); }
.block { padding-top: 40px; padding-bottom: 24px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.block-note { font-size: 14px; color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid-news { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-links { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-promos { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.grid-tiles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-width: 0; }
.card-img { height: 120px; position: relative; background: repeating-linear-gradient(135deg, #1B212C 0 14px, #1F2633 14px 28px); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-region { position: absolute; left: 12px; top: 12px; padding: 3px 9px; background: var(--bg); border: 1px solid var(--line2); border-radius: 3px; font: 500 12px var(--text); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.card-body h3 { margin: 0; font: 600 24px/1.12 var(--display); text-wrap: balance; }
.card-body .go { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; }
.linkcard { display: flex; flex-direction: column; gap: 4px; min-height: 72px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--fg); text-decoration: none; min-width: 0; }
.linkcard:hover { border-color: var(--gold); color: var(--fg); }
.linkcard .lc-name { font: 600 25px/1.1 var(--display); }
.linkcard .lc-sub { font-size: 13px; color: var(--muted); }
.linkcard .lc-go { margin-top: 6px; color: var(--gold); font-weight: 600; font-size: 14px; }
.linkcard.is-off { opacity: .7; }
.promo { display: flex; gap: 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.promo-img { flex: 0 0 96px; height: 96px; border-radius: 4px; background: repeating-linear-gradient(135deg, #1B212C 0 10px, #1F2633 10px 20px); overflow: hidden; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.promo-body h3 { margin: 2px 0 0; font: 600 22px/1.15 var(--display); }
.promo-label { font: 600 12px var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.promo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-actions .btn { min-height: 44px; padding: 0 14px; font-size: 13px; }
.empty { padding: 40px 24px; border: 1px dashed var(--line2); border-radius: 6px; text-align: center; color: var(--muted); }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel2); margin-top: 24px; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--fg); text-decoration: none; min-width: 0; }
.tile:hover { border-color: var(--gold); color: var(--fg); }
.tile svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-name { font: 600 26px var(--display); text-transform: uppercase; }
.tile-text { font-size: 15px; color: var(--muted); }

/* Acceso */
.login-card { max-width: 460px; margin: 0 auto; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 20px; }
.btn-google { min-height: 52px; background: #fff; color: #1F1F1F; }
.btn-google:hover { background: #F1F1F1; color: #1F1F1F; }
.notebox { padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.notebox strong { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.alert { padding: 10px 14px; border: 1px solid var(--warn); border-radius: 4px; background: #2A2113; color: #F3D9A6; font-size: 14px; }

/* Pie */
.ftr { margin-top: 48px; border-top: 1px solid var(--gold); background: var(--foot); }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.ftr-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; align-items: flex-start; }
.ftr-col p { margin: 0; font-size: 15px; }
.ftr-title { font: 600 22px var(--display); color: var(--gold); }
.ftr-brand { font-size: 30px; }
.ftr-sub { margin-top: 8px; }
.ftr-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ftr-list a { min-height: 32px; display: flex; align-items: center; color: var(--fg); }
.ftr-legal { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ftr-legal a { color: var(--fg); }

@media (max-width: 640px) {
  .hero-text .h1 { font-size: 46px; }
  .promo { flex-direction: column; }
  .promo-img { flex-basis: auto; width: 100%; height: 140px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
