/* Homepage reference: PROYECTN — Mockup Redesign (Claude).
   Loaded only by index.html; shared portals retain their own styling. */
body { background: #08090b; }
.equipos-grid { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.equipo-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 18px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; text-align: center; overflow-wrap: anywhere; }
.equipo-item .equipo-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #15171b; color: var(--primary); font-size: 1.4rem; font-weight: 700; }
.equipo-item strong { font-size: .9rem; line-height: 1.4; }
.equipo-item small { color: var(--text-muted); font-size: .78rem; }
#equiposMas[hidden] { display: none; }
body::before { opacity: 1; background: radial-gradient(ellipse 130% 70% at 50% -5%,rgba(182,255,0,.05),transparent 55%); }
.site-header { min-height: 64px; padding: 10px 48px; border-color: rgba(255,255,255,.06); background: rgba(8,9,11,.92); }
.logo-container { gap: 10px; }
.logo-img { width: 28px; height: 28px; }
.logo { font-size: 1.25rem; color: var(--primary); }
.main-nav ul { gap: 24px; }
.main-nav a { font-size: .82rem; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.main-nav a i { display: none; }
.main-nav .btn-admin-nav { display: inline-flex; padding: 8px 20px; border: 0; border-radius: 8px; background: var(--primary); color: #08090b !important; }
.index-hero { position: relative; width: 100%; max-width: none; min-height: 820px; display: grid; grid-template-columns: 1fr .85fr; gap: 24px; padding: 60px 48px 160px; border: 0; background: radial-gradient(ellipse at 48% 0%,rgba(182,255,0,.08),transparent 65%); }
.index-hero::after { display: none; }
.index-hero .hero-copy { max-width: 680px; }
.index-hero .eyebrow { border: 0; padding: 0; background: none; font-size: .78rem; letter-spacing: .12em; gap: 8px; flex-wrap: wrap; }
.index-hero .eyebrow::before { display: none; }
.index-hero .live-badge { border: 0; background: none; padding: 0; font: inherit; color: inherit; }
.index-hero h1 { margin: 28px 0; font-size: clamp(3rem,6vw,5.5rem); line-height: 1.05; letter-spacing: -.03em; text-transform: none; }
.index-hero .hero-highlight { text-shadow: 0 0 60px rgba(182,255,0,.25); }
.index-hero .hero-copy > p { max-width: 520px; font-size: 1.1rem; line-height: 1.65; }
.index-hero .hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0; }
.index-hero .hero-tag { padding: 7px 14px; border: 1px solid rgba(182,255,0,.18); border-radius: 999px; background: rgba(182,255,0,.06); color: #b6d967; font-size: .78rem; letter-spacing: 0; text-transform: none; }
.index-hero .hero-tag i, .index-hero .hero-actions i { display: none; }
.hero-actions { gap: 16px; margin-top: 0; }
.btn-access { min-height: 44px; padding: 10px 18px; border-radius: 8px; font-size: .84rem; text-transform: none; letter-spacing: 0; }
/* En celular los dos botones del inicio van en la misma fila */
@media (max-width: 600px) { .index-hero .hero-actions { flex-direction: row; flex-wrap: wrap; } .index-hero .hero-actions .btn-access { flex: 1 1 140px; width: auto; padding: 10px 12px; } }
.btn-access.btn-outline { color: var(--text); background: transparent; border-color: rgba(255,255,255,.12); }
.hero-actions > .btn-access:first-child { box-shadow: 0 0 32px rgba(182,255,0,.18); }
.hero-visual { display: grid; place-items: center; min-width: 0; }
.hero-emblem { position: relative; width: min(100%,420px); height: auto; aspect-ratio: 1; }
.emblem-ring { position: absolute; inset: 0; border: 1px solid rgba(182,255,0,.12); border-radius: 50%; animation: index-orbit 20s linear infinite; }
.emblem-ring:nth-child(2) { inset: 30px; border-color: rgba(182,255,0,.08); animation-duration: 14s; animation-direction: reverse; }
.emblem-ring:nth-child(3) { inset: 60px; border-color: rgba(182,255,0,.06); animation-duration: 9s; }
.emblem-ring span { position: absolute; top: 0; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 16px var(--primary); transform: translate(-50%,-50%); }
.emblem-core { position: absolute; inset: 70px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle,rgba(182,255,0,.12),transparent 70%); color: var(--primary); font: 800 4.5rem/1 var(--font-display); letter-spacing: -.04em; text-shadow: 0 0 60px rgba(182,255,0,.5); }
@keyframes index-orbit { to { transform: rotate(360deg); } }
.hero-stats { position: absolute; bottom: 42px; left: 48px; right: 48px; display: flex; flex-wrap: wrap; gap: 28px 48px; }
.hero-stats > * { display: flex; flex-direction: column; text-decoration: none; }
.hero-stats strong { color: var(--primary); font: 700 1.8rem/1.2 var(--font-display); }
.hero-stats span { margin-top: 6px; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
body > section:not(.index-hero) { max-width: 1600px; padding: 80px 48px; }
.section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--primary); }
.section-title { margin: 0 0 40px; padding: 0; text-align: left; text-transform: none; font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700; }
.section-title::after { display: none; }
.section-header-row { margin-bottom: 40px; }
.section-title i { display: none; }
.portal-card, .card-box, .noticia-col { border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(255,255,255,.025); box-shadow: none; }
#ascensos-aza .portal-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; border-color: rgba(182,255,0,.15); }
#ascensos-aza .portal-card-logo { display: none; }
#ascensos-aza .portal-card-body { padding: 48px; }
.portal-card-body h3 { font-size: 1.9rem; margin: 12px 0; }
.portal-card-body p { font-size: .95rem; line-height: 1.65; margin-bottom: 28px; }
.portal-card-eyebrow { font-size: .72rem; line-height: 1.4; }
.portal-card-portales { padding: 40px; border-top: 0; border-left: 1px solid rgba(182,255,0,.08); background: rgba(182,255,0,.015); }
.idx-logos-row { gap: 12px; justify-content: center; }
/* En celular: 5 por fila del mismo tamaño; la última fila queda centrada. */
@media (max-width: 600px) {
  .idx-logos-row { gap: 8px; }
  .idx-logos-row .idx-logo-item { flex: 0 0 calc((100% - 32px) / 5); min-width: 0; min-height: 0; aspect-ratio: 1; padding: 8px; }
  .idx-logos-row .idx-logo-item img { width: 100%; height: 100%; max-width: 40px; max-height: 40px; object-fit: contain; }
}
.idx-logo-item { min-width: 64px; min-height: 64px; justify-content: center; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); opacity: 1; }
.idx-logo-item img { width: 40px; height: 40px; }
.cupos-index-cta { margin-top: 24px; flex-wrap: wrap; }
.latam-intro { max-width: 660px; margin: -16px 0 32px; text-align: left; color: var(--text-muted); }
#ligas-latam .latam-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
#ligas-latam .latam-card { max-width: none; min-width: 0; padding: 28px 24px; align-items: flex-start; text-align: left; gap: 14px; border-top: 1px solid rgba(255,255,255,.07) !important; }
#ligas-latam .latam-logo { width: 44px; height: 44px; padding: 4px; border-radius: 12px; background: rgba(182,255,0,.06); }
#ligas-latam .latam-logo img { filter: none; }
#ligas-latam .latam-card h3 { color: var(--text) !important; font-size: 1rem !important; }
#ligas-latam .latam-sub { font-size: .82rem; color: var(--text-muted); }
#ligas-latam .latam-acciones .btn-access { min-height: 38px; padding: 8px 10px; border-radius: 8px; font-size: .78rem; }
.top-latam-grid { gap: 20px; }
.latam-rank-card { padding: 32px; }
.rank-head { padding-bottom: 20px; margin-bottom: 24px; border-color: rgba(182,255,0,.08); }
.rank-head > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(182,255,0,.08); color: var(--primary); font-size: 1rem; }
.rank-row { padding: 12px; border: 0; border-radius: 8px; background: rgba(255,255,255,.025); }
.noticia-col { padding: 28px; }
.index-compete { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.index-compete h2 { margin: 0 0 12px; font-size: clamp(1.8rem,3vw,2.8rem); }
.index-compete p { color: var(--text-muted); margin: 0; }
.index-compete .btn-access { flex-shrink: 0; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 36px 48px; border-top: 1px solid rgba(255,255,255,.06); background: none; text-align: left; }
.footer-brand { color: var(--primary); text-decoration: none; font: 700 1.25rem var(--font-display); }
footer .footer-tagline, footer .footer-links a { color: var(--text-muted); }
.noticia-empty { color: var(--text-muted); }
@media (min-width: 1500px) { .index-hero { padding-left: max(48px,calc((100vw - 1504px)/2)); padding-right: max(48px,calc((100vw - 1504px)/2)); } .hero-stats { left: max(48px,calc((100vw - 1504px)/2)); } }
@media (max-width: 1100px) { .site-header { padding-inline: 28px; } .main-nav ul { gap: 14px; } .main-nav a { font-size: .74rem; } .index-hero { padding-inline: 28px; } .hero-stats { left: 28px; } #ascensos-aza .portal-card-body,.portal-card-portales { padding: 28px; } }
@media (max-width: 900px) { .site-header { flex-wrap: wrap; } .main-nav.is-active { width: 100%; } .main-nav.is-active ul { align-items: stretch; gap: 4px; } .main-nav.is-active a { display: block; padding: 12px; font-size: .9rem; } .index-hero { grid-template-columns: 1.2fr .8fr; min-height: 760px; } .index-hero h1 { font-size: 3.6rem; } .emblem-core { inset: 40px; font-size: 3.5rem; } body > section:not(.index-hero) { padding: 60px 28px; } }
@media (max-width: 600px) { .site-header { padding-inline: 20px; } .index-hero { min-height: auto; padding: 40px 20px; grid-template-columns: 1fr; gap: 32px; } .index-hero h1 { font-size: clamp(3rem,12vw,4rem); margin: 24px 0; } .index-hero .eyebrow { font-size: .65rem; letter-spacing: .06em; } .index-hero .hero-copy > p { font-size: 1rem; } .index-hero .hero-tags { gap: 8px; margin: 28px 0; } .index-hero .hero-tag { font-size: .7rem; padding: 6px 10px; } .hero-actions { gap: 10px; } .hero-actions .btn-access { padding: 12px 18px; font-size: .82rem; } .hero-visual { grid-row: 2; } .hero-emblem { width: 240px; } .emblem-core { font-size: 3rem; } .hero-stats { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; } .hero-stats strong { font-size: 1.55rem; } .hero-stats span { font-size: .62rem; } body > section:not(.index-hero) { padding: 48px 20px; } #ascensos-aza .portal-card { grid-template-columns: 1fr; } .portal-card-portales { border-left: 0; border-top: 1px solid rgba(182,255,0,.08); } #ascensos-aza .portal-card-body,.portal-card-portales { padding: 24px; } .portal-card-body h3 { font-size: 1.55rem; } .portal-card-links .btn-access { padding: 12px 18px; } #ligas-latam .latam-grid { grid-template-columns: 1fr; } .latam-rank-card { padding: 20px; } .rank-head h3 { font-size: .9rem; } .index-compete { flex-direction: column; align-items: flex-start; } footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .emblem-ring { animation: none; } }

/* Keep statistics in the layout so taller copy never overlaps the actions. */
.index-hero { padding-bottom: 48px; row-gap: 48px; }
.hero-stats { position: static; grid-column: 1 / -1; }
.emblem-core img { display: block; width: 76%; height: 76%; object-fit: contain; }
.pg-efectos { display: none; }
@media (max-width:1200px) {
  .site-header .menu-toggle { display: flex; }
  .site-header nav.main-nav { position: absolute; top: 100%; left: 0; display: none; width: 100%; max-height: calc(100svh - 64px); overflow-y: auto; padding: 16px 24px; border: 0; background: #101214; }
  .site-header nav.main-nav.is-active { display: block; }
  .site-header .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header .main-nav a { display: flex; min-height: 44px; padding: 10px 4px; }
}
@media (max-width:900px) {
  .site-header .menu-toggle { display: flex; }
  .site-header nav.main-nav { position: absolute; top: 100%; left: 0; display: none; width: 100%; max-height: calc(100svh - 64px); overflow-y: auto; padding: 16px 24px; border: 0; background: #101214; }
  .site-header nav.main-nav.is-active { display: block; }
  .site-header .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .index-hero .hero-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
}
@media (max-width:600px) {
  .index-hero { padding-bottom: 40px; row-gap: 32px; }
  .index-hero .hero-stats { gap: 24px 16px; }
}

/* ── Portales Principales Grid ─────────────────────── */
.portales-principales-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ppg-card { display: grid; grid-template-columns: 1fr 120px; gap: 0; padding: 0; overflow: hidden; border-color: rgba(var(--ppg-c),.18) !important; background: rgba(var(--ppg-c),.02) !important; }
.ppg-body { padding: 40px; }
.ppg-body h3 { font-size: 1.35rem; margin: 10px 0 14px; }
.ppg-body p { font-size: .9rem; line-height: 1.65; margin-bottom: 24px; }
.ppg-btn:hover { background: transparent !important; }
.ppg-accent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 16px; border-left: 1px solid rgba(var(--ppg-c),.1); background: rgba(var(--ppg-c),.03); }
.ppg-icon { font-size: 2rem; color: rgb(var(--ppg-c)); opacity: .65; }
.ppg-label { font: 700 .62rem var(--font-display,sans-serif); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--ppg-c)); opacity: .55; }
.ppg-vip { border-color: rgba(212,175,55,.22) !important; background: linear-gradient(135deg,rgba(212,175,55,.04),transparent) !important; }
.ppg-vip .ppg-btn { color: #0a0a0a !important; }
@media (max-width:1100px) { .ppg-body { padding: 32px; } }
@media (max-width:900px) { .portales-principales-grid { grid-template-columns: 1fr; } }
@media (max-width:600px) { .ppg-card { grid-template-columns: 1fr; } .ppg-accent { display: none; } .ppg-body { padding: 24px; } .ppg-body h3 { font-size: 1.2rem; } }

/* ── Sub-portales (botones dentro del card body Ascensos LATAM) ── */
.ppg-subportales { display: grid; grid-template-columns: 1fr 120px; gap: 8px; margin-top: 20px; align-items: stretch; }
.ppg-subportales .btn-access { padding: 8px 12px !important; font-size: .8rem !important; white-space: nowrap; justify-content: center; min-height: 38px !important; }

/* Tarjetas de ligas: botones en tono suave del color del portal; 2 columnas en celular. */
#ligas-latam .latam-acciones .btn-access, #ligas-vip .latam-acciones .btn-access { background: rgba(255,255,255,.04); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid var(--c); color: #f4f5f7; }
#ligas-latam .latam-acciones .btn-access:hover, #ligas-vip .latam-acciones .btn-access:hover { background: color-mix(in srgb, var(--c) 34%, transparent) !important; color: #fff; }
@media (max-width: 600px) {
  #ligas-latam .latam-grid, #ligas-vip .latam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #ligas-latam .latam-card, #ligas-vip .latam-card { flex: none; width: auto; max-width: none; min-width: 0; padding: 18px 12px 12px; align-items: center; text-align: center; gap: 10px; }
  #ligas-latam .portal-ff-tag { display: none; }
  #ligas-latam .latam-card h3, #ligas-vip .latam-card h3 { font-size: .86rem !important; line-height: 1.3; overflow-wrap: anywhere; }
  #ligas-latam .latam-acciones .btn-access, #ligas-vip .latam-acciones .btn-access { width: 100%; min-height: 44px; justify-content: center; }
}
