@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg0: #0B0F17;
  --bg1: #0F1624;
  --bg2: #121B2C;

  --stroke: rgba(255, 255, 255, .08);
  --stroke2: rgba(255, 255, 255, .12);

  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .62);
  --muted2: rgba(255, 255, 255, .42);

  --accent: #34D399;
  --accent2: #22C55E;
  --danger: #EF4444;

  --r14: 14px;
  --r16: 16px;
  --r20: 20px;

  --ring: 0 0 0 3px rgba(52, 211, 153, .18), 0 0 0 1px rgba(52, 211, 153, .26);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body.page-home {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg0);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

/* Layout: mismo “ADN” que Jugadores */
.page-home .app{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 16px;
}

.page-home .main{
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.page-home .content{
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Header */
.homeHeader{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
}

.homeTitle{
  margin: 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.2px;
}

.homeSub{
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.pillRow{ display:flex; gap: 10px; align-items:center; justify-content:flex-end; }
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  white-space: nowrap;
  color: rgba(255,255,255,.86);
  font-weight: 850;
  font-size: 12px;
}
.pill.ghost{
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.03);
}

/* KPI row */
.kpiRow{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpiCard{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--stroke);
  border-radius: var(--r20);
  padding: 14px 14px;
  overflow: hidden;
  position: relative;
}

.kpiCard::after{
  content:"";
  position:absolute;
  inset:-60px -60px auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at center, rgba(52,211,153,.18), rgba(52,211,153,0));
  filter: blur(0px);
  opacity: .55;
  pointer-events:none;
}

.kpiCard__label{
  color: rgba(255,255,255,.72);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
}

.kpiCard__value{
  margin-top: 8px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.3px;
}

.kpiCard__hint{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* Main grid */
.homeGrid{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

.cardSpan2{ grid-column: 1 / span 1; }
@media (min-width: 1200px){
  .cardSpan2{ grid-column: 1 / span 1; }
}
@media (max-width: 1100px){
  .kpiRow{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px){
  .page-home .app{ grid-template-columns: 1fr; }
  .homeGrid{ grid-template-columns: 1fr; }
  .cardSpan2{ grid-column: auto; }
}

/* Pro card */
.cardPro{
  background: var(--bg1);
  border: 1px solid var(--stroke);
  border-radius: var(--r20);
  padding: 14px;
  overflow: hidden;
}

.cardPro__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 2px 2px 10px 2px;
}

.cardPro__title{
  font-size: 14px;
  font-weight: 950;
}

.cardPro__sub{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.badge{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52,211,153,.22);
  background: rgba(52,211,153,.10);
  color: rgba(255,255,255,.90);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.badge.ghost{
  border-color: var(--stroke);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
}

/* Quick actions */
.quickActions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px){
  .quickActions{ grid-template-columns: 1fr; }
}

.qa{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.qa:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
}

.qa.primary{
  border-color: rgba(52,211,153,.22);
  background: rgba(52,211,153,.08);
}

.qa__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}

.qa.primary .qa__icon{
  background: rgba(52,211,153,.10);
  border-color: rgba(52,211,153,.18);
}

.qa__text{ min-width:0; display:flex; flex-direction:column; gap: 4px; }
.qa__title{ font-weight: 950; font-size: 14px; }
.qa__sub{ font-weight: 700; font-size: 12px; color: var(--muted); }
.qa__chev{
  margin-left:auto;
  color: rgba(255,255,255,.75);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

/* Disabled */
.qa.is-disabled{
  opacity: .70;
  cursor: default;
}
.qa.is-disabled:hover{
  transform: none;
  background: rgba(255,255,255,.02);
  border-color: var(--stroke);
}
.qa.is-disabled .qa__chev{
  color: rgba(255,255,255,.62);
}

/* Tip */
.tip{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(52,211,153,.18);
  background: rgba(52,211,153,.06);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 750;
  display:flex;
  gap: 10px;
  align-items: flex-start;
}
.tipDot{
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--accent);
  margin-top: 3px;
  box-shadow: 0 0 0 3px rgba(52,211,153,.18);
  flex: 0 0 auto;
}

/* Estado card */
.kpis2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 12px;
}

.kpi__label{
  color: rgba(255,255,255,.72);
  font-weight: 900;
  font-size: 12px;
}

.kpi__value{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 950;
}

.kpi__hint{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.divider{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 12px 2px;
}

.miniList{ display:flex; flex-direction:column; gap: 10px; }
.miniRow{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.miniLabel{ color: var(--muted); font-weight: 850; font-size: 12px; }
.miniValue{ font-weight: 900; font-size: 12px; color: rgba(255,255,255,.90); }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 900px){ .steps{ grid-template-columns: 1fr; } }

.step{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 12px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.step__num{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 950;
  background: rgba(52,211,153,.10);
  border: 1px solid rgba(52,211,153,.18);
}

.step__title{ font-weight: 950; font-size: 13px; }
.step__text{ margin-top: 4px; color: var(--muted); font-weight: 700; font-size: 12px; line-height: 1.35; }

/* News */
.news{
  margin: 6px 0 0 0;
  padding-left: 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  color: rgba(255,255,255,.86);
  font-weight: 750;
  font-size: 12px;
}

.dotOk, .dotNext{
  display:inline-block;
  width: 8px; height: 8px; border-radius: 999px;
  margin-right: 8px;
  position: relative;
  top: -1px;
}
.dotOk{ background: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.14); }
.dotNext{ background: rgba(255,255,255,.35); box-shadow: 0 0 0 3px rgba(255,255,255,.10); }

.mutedLine{
  margin-top: 12px;
  color: var(--muted2);
  font-weight: 700;
  font-size: 12px;
}

/* Support */
.support{ display:flex; flex-direction:column; gap: 12px; }
.support__row{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 12px;
}
.support__label{ color: var(--muted); font-weight: 900; font-size: 12px; }

.btnInline{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(52,211,153,.22);
  background: rgba(52,211,153,.10);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  cursor: pointer;
}
.btnInline:hover{ background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.28); }
.btnInline:focus-visible{ outline:none; box-shadow: var(--ring); }

.linkInline{
  color: rgba(255,255,255,.88);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.18);
}

.support__note{
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
}

/* Footer */
.homeFooter{
  margin-top: 4px;
  padding: 10px 2px;
  color: rgba(255,255,255,.52);
  font-weight: 700;
  font-size: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
}
.footerDot{ opacity: .55; }
.footerLink{
  color: rgba(255,255,255,.74);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.18);
}
