/* =========================================================
   SIMULADOR MUNDIAL 2026 — Dark Premium Sports
   ========================================================= */

:root {
  --bg-0: #07090d;
  --bg-1: #0d1117;
  --bg-2: #131a24;
  --bg-3: #1a2230;
  --line: #232c3a;
  --line-soft: #1a2230;
  --text: #e7ecf3;
  --text-dim: #98a3b3;
  --text-mute: #6b7585;
  --accent: #00e5a8;
  --accent-2: #ffd84d;
  --accent-3: #ff5e6c;
  --gold: #ffc83a;
  --silver: #c9d2dc;
  --bronze: #e08855;
  --uefa: #4ea1ff;
  --conmebol: #ffd84d;
  --concacaf: #00e5a8;
  --caf:    #ff8a3d;
  --afc:    #ff5e6c;
  --ofc:    #b48cff;
  --shadow: 0 8px 30px rgba(0,0,0,.45);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0,229,168,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(78,161,255,.05), transparent 60%),
    var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}

/* ====================== HEADER ====================== */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,17,23,.92), rgba(13,17,23,.7));
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: #F2C200;
  display: grid; place-items: center;
  padding: 5px; overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.brand-sub { margin: 2px 0 0; font-size: 12px; color: var(--text-mute); }
.top-actions { display: flex; gap: 10px; }

.btn {
  appearance: none; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text);
  padding: 9px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, border-color .15s, background .15s;
}
.btn:hover { border-color: #2e3a4d; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), #00b889);
  color: #062018; border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-small { padding: 6px 10px; font-size: 12px; }

/* ====================== HERO STATS ====================== */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 18px 32px 0;
}
.stat {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.stat-label { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .8px; }

/* ====================== TABS ====================== */
.tabs {
  display: flex; gap: 4px;
  padding: 18px 32px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab {
  appearance: none; background: transparent; color: var(--text-dim);
  border: none; padding: 12px 16px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.tab-panel { display: none; padding: 28px 32px 80px; }
.tab-panel.active { display: block; }
.panel-head { margin-bottom: 22px; }
.panel-head h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.panel-sub { margin: 6px 0 0; color: var(--text-mute); font-size: 13px; max-width: 720px; }

/* ====================== GROUPS ====================== */
.groups-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px;
}
.group-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.group-title { font-size: 15px; font-weight: 700; letter-spacing: .5px; color: var(--text); }
.group-meta { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; }

.standings {
  width: 100%; border-collapse: collapse; font-size: 12.5px;
  margin-bottom: 14px;
}
.standings th {
  text-align: left; color: var(--text-mute); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  padding: 6px 6px; border-bottom: 1px solid var(--line);
}
.standings th.num, .standings td.num { text-align: right; font-variant-numeric: tabular-nums; }
.standings td {
  padding: 8px 6px; border-bottom: 1px solid var(--line-soft);
  color: var(--text);
}
.standings tr.qualified-1 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.standings tr.qualified-2 td:first-child { box-shadow: inset 3px 0 0 var(--silver); }
.standings tr.qualified-3 td:first-child { box-shadow: inset 3px 0 0 var(--bronze); }

.team-cell { display: flex; align-items: center; gap: 8px; }
.flag { font-size: 18px; line-height: 1; }
.team-name { font-weight: 600; }
.prob-pill {
  display: inline-block; margin-left: 8px;
  background: var(--bg-3); color: var(--text-dim);
  padding: 2px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.prob-pill.up { color: #6dffce; background: rgba(0,229,168,.1); }
.prob-pill.down { color: #ff9aa3; background: rgba(255,94,108,.1); }

/* RANKING FIFA CHIP */
.fifa-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(78,161,255,.08);
  border: 1px solid rgba(78,161,255,.25);
  color: #aacdff;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}
.fifa-chip::before { content: "#"; opacity: .65; font-weight: 600; }
.fifa-chip.top10 {
  background: rgba(255,200,58,.1);
  border-color: rgba(255,200,58,.35);
  color: var(--gold);
}

/* CONFED DOT */
.confed-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}
.confed-dot[data-c="UEFA"]     { background: var(--uefa); }
.confed-dot[data-c="CONMEBOL"] { background: var(--conmebol); }
.confed-dot[data-c="CONCACAF"] { background: var(--concacaf); }
.confed-dot[data-c="CAF"]      { background: var(--caf); }
.confed-dot[data-c="AFC"]      { background: var(--afc); }
.confed-dot[data-c="OFC"]      { background: var(--ofc); }

/* MATCHES */
.matches { display: flex; flex-direction: column; gap: 8px; }
.jornada-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-mute);
  margin-top: 8px; padding: 0 2px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.matches > .jornada-label:first-child { margin-top: 0; }
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}
.match-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.match-side.right { justify-content: flex-end; }
.match-side .team-label {
  font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.score-input {
  width: 38px; padding: 5px 6px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px; font-weight: 700;
  text-align: center; border-radius: 6px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,229,168,.15); }

.score-mid {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-mute);
}

/* GAP FIFA strip below match */
.match-gap {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-mute);
  border-top: 1px dashed var(--line-soft);
  padding-top: 6px;
}
.match-gap .gap-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.match-gap .gap-tag {
  padding: 2px 7px; border-radius: 999px; font-weight: 700; font-size: 10.5px;
  letter-spacing: .3px;
}
.gap-tag.even   { background: rgba(255,216,77,.1);  color: var(--accent-2); }
.gap-tag.mid    { background: rgba(78,161,255,.1);  color: var(--uefa); }
.gap-tag.heavy  { background: rgba(0,229,168,.1);   color: var(--accent); }
.gap-edge { color: var(--text-dim); }
.gap-edge strong { color: var(--text); }

/* ====================== THIRDS ====================== */
.thirds-wrap {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.thirds-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.thirds-table th {
  text-align: left; color: var(--text-mute);
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.thirds-table th.num, .thirds-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.thirds-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.thirds-table tr.qualified td { background: rgba(0,229,168,.04); }
.thirds-table tr.qualified td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.thirds-table td.rank-cell { font-weight: 700; color: var(--text-dim); width: 40px; }

/* ====================== BRACKET ====================== */
.bracket-actions { display: flex; gap: 8px; margin-top: 12px; }
.bracket-scroll {
  overflow-x: auto;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.bracket {
  display: flex; gap: 26px; min-width: 1400px;
}
.bracket-round {
  display: flex; flex-direction: column;
  justify-content: space-around;
  min-width: 220px;
  gap: 10px;
}
.bracket-round h4 {
  margin: 0 0 8px; font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-mute);
}
.match-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.match-card:hover { border-color: #2e3a4d; }
.match-card .mc-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0;
}
.match-card .mc-line.winner { color: var(--accent); font-weight: 700; }
.match-card .mc-line.winner .mc-name::after { content: "✓"; margin-left: 6px; color: var(--accent); font-size: 11px; }
.match-card .mc-name { display: flex; align-items: center; gap: 8px; }
.match-card .mc-prob { color: var(--text-mute); font-size: 11px; font-variant-numeric: tabular-nums; }
.match-card .mc-meta {
  font-size: 10px; color: var(--text-mute); margin-top: 6px;
  letter-spacing: .5px; text-transform: uppercase;
}
.champion-banner {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(255,200,58,.12), rgba(0,229,168,.08));
  border: 1px solid rgba(255,200,58,.25);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 18px;
}
.trophy { font-size: 46px; }
.champion-label { display: block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-mute); }
.champion-name { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.4px; }

/* ====================== CONFEDERATIONS ====================== */
.confed-tabs { display: flex; gap: 6px; margin-top: 12px; }
.confed-tab {
  appearance: none; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text-dim);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.confed-tab.active { background: var(--accent); color: #062018; border-color: transparent; }

.confed-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.confed-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.confed-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--text-mute);
}
.confed-card[data-c="UEFA"]::before     { background: var(--uefa); }
.confed-card[data-c="CONMEBOL"]::before { background: var(--conmebol); }
.confed-card[data-c="CONCACAF"]::before { background: var(--concacaf); }
.confed-card[data-c="CAF"]::before      { background: var(--caf); }
.confed-card[data-c="AFC"]::before      { background: var(--afc); }
.confed-card[data-c="OFC"]::before      { background: var(--ofc); }
.confed-name { font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.confed-sub  { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.confed-eff  {
  margin-top: 10px; font-size: 22px; font-weight: 800;
  letter-spacing: -.4px; font-variant-numeric: tabular-nums;
}
.confed-eff small { font-size: 12px; font-weight: 500; color: var(--text-mute); margin-left: 4px; }
.confed-bar {
  margin-top: 8px; height: 4px;
  background: var(--bg-3); border-radius: 999px; overflow: hidden;
}
.confed-bar > span { display: block; height: 100%; background: var(--accent); }

.confed-table-wrap {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.confed-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.confed-table th, .confed-table td { padding: 12px 14px; }
.confed-table th {
  text-align: left; color: var(--text-mute);
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.confed-table th.num, .confed-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.confed-table td { border-bottom: 1px solid var(--line-soft); }
.confed-table tr:last-child td { border-bottom: none; }

/* ====================== BATCH ====================== */
.batch-controls {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.batch-controls label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .8px;
}
.batch-controls input {
  background: var(--bg-0); border: 1px solid var(--line);
  color: var(--text); padding: 8px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 700; width: 120px;
  font-variant-numeric: tabular-nums;
}
.batch-status { color: var(--text-mute); font-size: 12px; }
.batch-results {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  min-height: 80px;
}
.batch-row {
  display: grid; grid-template-columns: 30px 1fr 80px 120px;
  align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.batch-row:last-child { border-bottom: none; }
.batch-bar { height: 6px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.batch-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--uefa)); }
.batch-rank { color: var(--text-mute); font-weight: 700; }

/* ====================== MODAL ====================== */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: grid; place-items: center; z-index: 200;
  backdrop-filter: blur(6px);
}
.modal-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px; width: min(520px, 92vw);
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow);
  position: relative;
}
.modal-card h3 { margin: 0 0 6px; font-size: 18px; }
.modal-card p  { margin: 0 0 16px; color: var(--text-mute); font-size: 13px; }
.share-link { display: flex; gap: 8px; }
.share-link input {
  flex: 1; background: var(--bg-0); border: 1px solid var(--line);
  color: var(--text); padding: 9px 11px; border-radius: 8px; font-size: 12px;
}
.share-meta {
  margin-top: 14px; padding: 12px; background: var(--bg-2);
  border-radius: 8px; font-size: 12px; color: var(--text-dim);
  border: 1px solid var(--line);
}
.modal-close { position: absolute; top: 14px; right: 14px; }

/* ====================== FOOTER ====================== */
.site-footer {
  display: flex; justify-content: space-between;
  padding: 22px 32px; color: var(--text-mute);
  font-size: 12px; border-top: 1px solid var(--line);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .site-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .groups-grid { grid-template-columns: 1fr; }
  .tab-panel { padding: 22px 16px 80px; }
  .tabs { padding: 16px 16px 0; }
  .hero-stats { padding: 14px 16px 0; }
}

/* ====================== HOY JUEGAN ====================== */
.today-strip {
  margin: 0; padding: 14px 32px 16px;
  background:
    linear-gradient(180deg, rgba(242,194,0,.06), transparent),
    var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.today-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.today-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 0 0 rgba(255,94,108,.5);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,94,108,.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,94,108,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,94,108,0); }
}
.today-title {
  font-size: 13px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; color: var(--text);
}
.today-date { font-size: 12px; color: var(--text-mute); text-transform: capitalize; }
.today-count {
  margin-left: auto; font-size: 11px; font-weight: 700;
  color: var(--accent-2); background: rgba(255,216,77,.1);
  padding: 3px 9px; border-radius: 999px;
}
.today-empty { font-size: 13px; color: var(--text-mute); }
.today-rail {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
}
.today-chip {
  flex: 0 0 auto;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 13px; min-width: 178px;
  display: flex; flex-direction: column; gap: 6px;
}
.tchip-grp { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-mute); }
.tchip-teams { display: flex; align-items: center; gap: 6px; }
.tchip-code { font-size: 14px; font-weight: 800; letter-spacing: .3px; }
.tchip-vs { font-size: 10px; color: var(--text-mute); }
.tchip-status {
  font-size: 12px; font-weight: 700; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.tchip-status.live  { color: var(--accent-3); }
.tchip-status.final { color: var(--accent); }
.tchip-status.pending { color: var(--accent-2); }

/* ====================== BOTÓN TIENDA ====================== */
.btn-tienda {
  background: var(--accent-3); color: #2a0a0d; border-color: transparent;
  font-weight: 800; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-tienda:hover { filter: brightness(1.06); border-color: transparent; }

/* ====================== PARTIDO BLOQUEADO (OFICIAL) ====================== */
.match-row.locked {
  background: linear-gradient(180deg, rgba(0,229,168,.05), transparent), var(--bg-2);
  border-color: rgba(0,229,168,.28);
}
.match-row.locked .score-input {
  background: var(--bg-1); color: var(--accent);
  border-color: rgba(0,229,168,.3); cursor: not-allowed; opacity: 1;
}
.official-badge {
  color: var(--accent); font-weight: 800; font-size: 11px;
  letter-spacing: .3px;
}

/* ====================== INDICADOR HOY / PRÓXIMO ====================== */
.match-row { position: relative; }
.match-row.is-today {
  border-color: var(--accent-2);
  box-shadow: inset 3px 0 0 var(--accent-2);
  background: linear-gradient(180deg, rgba(255,216,77,.07), transparent), var(--bg-2);
}
.match-row.is-next {
  box-shadow: inset 3px 0 0 var(--text-mute);
}
.match-row.is-live {
  border-color: var(--accent-3);
  box-shadow: inset 3px 0 0 var(--accent-3);
  background: linear-gradient(180deg, rgba(255,94,108,.08), transparent), var(--bg-2);
}
.match-row.is-today.is-done {
  border-color: var(--line);
  background: var(--bg-2);
  box-shadow: inset 3px 0 0 var(--bg-3);
}
.mr-badge {
  position: absolute; top: -8px; left: 12px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: .4px;
  padding: 2px 9px; border-radius: 999px; text-transform: uppercase;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mr-badge.today { background: var(--accent-2); color: #2a2200; }
.mr-badge.next {
  background: var(--bg-3); color: var(--text-dim);
  border: 1px solid var(--line);
}
.mr-badge.live { background: var(--accent-3); color: #2a0a0d; }
.mr-badge.done {
  background: transparent; color: var(--text-mute);
  border: 1px solid var(--line); font-weight: 700;
}

/* ====================== ESTAMPA COMPARTIR ====================== */
.share-preview {
  display: block; width: 100%; max-width: 320px; margin: 0 auto 16px;
  border-radius: 10px; border: 1px solid var(--line);
}
.share-actions { display: flex; gap: 8px; margin-top: 14px; }
.share-actions .btn { flex: 1; justify-content: center; }
.share-actions .modal-close { position: static; }

/* ====================== FOOTER (campaña) ====================== */
.site-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-tag { font-weight: 700; color: var(--text-dim); }
.foot-disc { color: var(--text-mute); }
.foot-disc a { color: var(--accent-2); text-decoration: none; }
.foot-disc a:hover { text-decoration: underline; }

/* ====================== ESPACIOS PUBLICITARIOS (marca Los de Afuera) ====================== */
/* Cada bloque .ad-slot es editable: cambia su texto y su enlace (href). */
.ad-slot {
  position: relative;
  background: #F6F4EE;
  color: #141413;
  border: 2px solid #141413;
  box-shadow: 6px 6px 0 0 #141413;
  font-family: "Archivo", system-ui, sans-serif;
  transition: transform .12s cubic-bezier(.2,0,0,1), box-shadow .12s cubic-bezier(.2,0,0,1);
}
.ad-slot:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 0 #141413; }
.ad-tag {
  position: absolute; top: 0; left: 0;
  background: #F2C200; color: #141413;
  font-family: "Space Mono", ui-monospace, monospace; font-weight: 700;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-right: 2px solid #141413; border-bottom: 2px solid #141413;
}
.ad-head {
  font-family: "Anton", "Archivo", sans-serif; font-weight: 400;
  text-transform: uppercase; line-height: .95; letter-spacing: .01em; color: #141413;
}
.ad-sub { font-size: 13px; line-height: 1.4; color: #3a3a36; }
.ad-kicker {
  font-family: "Space Mono", ui-monospace, monospace; font-weight: 700;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #8a8a82; white-space: nowrap;
}
.ad-cta {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  background: #C8321E; color: #F6F4EE; text-decoration: none;
  font-family: "Space Mono", ui-monospace, monospace; font-weight: 700;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 15px; border: 2px solid #141413; box-shadow: 3px 3px 0 0 #141413;
  transition: transform .12s, box-shadow .12s;
}
.ad-cta:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 #141413; }
.ad-stack { display: flex; flex-direction: column; gap: 8px; }

.ad-banner {
  margin: 18px 32px 0; padding: 34px 28px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ad-banner .ad-head { font-size: 32px; }
.ad-banner .ad-stack { max-width: 72%; }

.ad-presenta {
  margin: 16px 32px 0; padding: 30px 22px 14px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ad-presenta .ad-head { font-size: 22px; }
.ad-presenta .ad-sub { flex: 1; min-width: 140px; }

.ad-inline {
  margin: 0 0 22px; padding: 30px 24px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ad-inline .ad-head { font-size: 26px; }
.ad-inline .ad-stack { max-width: 70%; }

.ad-modal { margin: 16px 0 4px; padding: 30px 18px 18px; text-align: center; }
.ad-modal .ad-tag { font-size: 9px; }
.ad-modal .ad-head { display: block; font-size: 24px; margin-bottom: 8px; }
.ad-modal .ad-sub { display: block; }
.ad-modal .ad-cta { margin-top: 12px; }

@media (max-width: 760px) {
  .ad-banner, .ad-inline { flex-direction: column; align-items: flex-start; }
  .ad-banner, .ad-presenta { margin-left: 16px; margin-right: 16px; }
  .ad-banner .ad-head { font-size: 25px; }
  .ad-banner .ad-stack, .ad-inline .ad-stack { max-width: 100%; }
}
