/* ElMundial.net V2 polish */
:root{
  --radius-xl:26px;
  --radius-lg:20px;
}
body{letter-spacing:-.01em}
.topbar{box-shadow:0 10px 30px rgba(15,35,56,.04)}
.nav{height:74px}
.brand-mark{box-shadow:0 10px 22px rgba(7,139,140,.22)}
.menu a{position:relative;padding:26px 0}
.menu a.active:after,.menu a:hover:after{
  content:"";position:absolute;left:0;right:0;bottom:15px;height:3px;border-radius:999px;background:linear-gradient(90deg,var(--teal2),var(--teal));
}
.mobile-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;font-weight:950}
.hero{min-height:440px}
.hero:before{
  content:"";position:absolute;left:-220px;top:-180px;width:520px;height:520px;border-radius:999px;
  background:radial-gradient(circle,rgba(25,199,192,.20),transparent 65%);
}
.hero-inner h1 span{color:var(--teal)}
.host-badge{min-width:210px}
.filter-box{align-items:end}
.section{padding:34px 0}
.card{transition:.18s ease}
.card:hover{box-shadow:0 20px 52px rgba(29,45,68,.11)}
.table a.match-link{font-weight:950;text-decoration:none;color:var(--teal)}
.table .muted{font-size:12px}
.status.live{animation:ev2glow 1.4s infinite}
@keyframes ev2glow{0%,100%{box-shadow:0 0 0 rgba(239,68,68,.0)}50%{box-shadow:0 0 0 6px rgba(239,68,68,.12)}}
.quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.small-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:999px;background:#f1f7fb;color:#274158;text-decoration:none;font-size:12px;font-weight:950;border:1px solid var(--line)}
.small-btn.live{background:#ffeceb;color:#b51e17;border-color:#ffc9c5}
.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.live-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.timeline{display:grid;gap:10px;margin-top:16px}
.timeline-item{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:start;border:1px solid var(--line);background:#fff;border-radius:16px;padding:12px}
.timeline-minute{font-size:20px;font-weight:950;color:var(--teal)}
.timeline-body strong{display:block}
.timeline-body span{color:var(--muted)}
.admin-note{padding:14px 16px;border-radius:16px;background:#eefafa;border:1px solid #caeeee;color:#0a6668;font-weight:850}
.admin-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.module-card{display:grid;grid-template-columns:90px 1fr 110px;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);background:#fff;border-radius:18px;margin-bottom:12px}
.module-card input[type="checkbox"]{width:auto;transform:scale(1.25)}
.module-card code{background:#eef3f8;border-radius:7px;padding:4px 6px}
.preview-img{max-height:120px;max-width:220px;border-radius:14px;border:1px solid var(--line);object-fit:cover}
@media(max-width:900px){
  .mobile-toggle{display:inline-flex}
  .nav{height:auto;min-height:68px;flex-wrap:wrap;padding:12px 0}
  .menu{display:none;width:100%;flex-direction:column;align-items:stretch;gap:4px;background:#fff;border-top:1px solid var(--line);padding:10px 0}
  .menu.open{display:flex}
  .menu a{padding:12px 4px}
  .menu a.active:after,.menu a:hover:after{display:none}
  .cta{padding:11px 13px}
  .hero-inner{padding-top:52px}
  .hero h1{font-size:40px}
  .hero p{font-size:16px}
  .filter-box{margin-top:8px}
  .table{display:block;overflow:auto;white-space:nowrap}
  .stats-grid{grid-template-columns:1fr 1fr!important}
  .admin-mini-grid,.module-card{grid-template-columns:1fr}
}


@media(min-width:1200px){
  .wrap{width:90%;max-width:none}
}

/* V2 Parte 5 — Hero ancho dashboard */
.hero-wide{
  min-height:auto;
  background:
    radial-gradient(circle at 8% 12%, rgba(25,199,192,.18), transparent 34%),
    linear-gradient(115deg,#ffffff 0%,#ffffff 52%,#f2fbfb 100%);
}
.hero-wide:after{
  opacity:.18;
  width:42%;
}
.hero-stat-layout{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(430px,.82fr);
  gap:56px;
  align-items:center;
  padding-top:74px;
  padding-bottom:56px;
  min-height:500px;
}
.hero-copy h1{
  max-width:820px;
}
.hero-copy p{
  max-width:760px;
  font-size:19px;
}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--soft);
  color:var(--teal);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:950;
  margin-bottom:18px;
}
.hero-dashboard{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:0 24px 70px rgba(15,35,56,.12);
  padding:22px;
  backdrop-filter:blur(14px);
}
.hero-dashboard-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.next-match-card{
  background:linear-gradient(135deg,#f5fbfb,#ffffff);
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  margin-bottom:16px;
}
.next-match-card h3{
  margin:8px 0;
  font-size:22px;
  line-height:1.25;
}
.next-match-card h3 b{
  color:var(--teal);
  margin:0 7px;
}
.next-match-card p{
  margin:0 0 13px;
  color:var(--muted);
  line-height:1.5;
}
.hero-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.hero-stat-grid div{
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  padding:14px 10px;
  text-align:center;
}
.hero-stat-grid strong{
  display:block;
  font-size:26px;
  line-height:1;
  color:var(--ink);
}
.hero-stat-grid span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  margin-top:6px;
}
.hero-host-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.hero-host-row span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#f4f8fb;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 10px;
  color:#314154;
  font-size:12px;
  font-weight:900;
}
@media(max-width:1100px){
  .hero-stat-layout{
    grid-template-columns:1fr;
    gap:24px;
  }
  .hero-dashboard{
    max-width:none;
  }
}
@media(max-width:700px){
  .hero-stat-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* V2 Parte 5 — jugadores */
.players-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.player-card{
  display:grid;
  grid-template-columns:74px 1fr;
  gap:13px;
  align-items:center;
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  padding:12px;
}
.player-card img{
  width:74px;
  height:74px;
  border-radius:16px;
  object-fit:cover;
  border:1px solid var(--line);
  background:#eef3f8;
}
.player-placeholder{
  width:74px;
  height:74px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#eef8f8;
  border:1px solid var(--line);
}
.player-placeholder .flag{
  width:38px;
  height:26px;
  margin:0;
}
.player-card h3{
  margin:0 0 5px;
  font-size:17px;
}
@media(max-width:1100px){
  .players-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .players-grid{grid-template-columns:1fr}
}

/* Jugador con foto real / respaldo premium */
.player-card{
  min-height:104px;
}
.player-card.has-photo{
  background:#fff;
}
.player-card.no-photo{
  background:
    radial-gradient(circle at 20% 10%, rgba(25,199,192,.20), transparent 38%),
    linear-gradient(135deg,#ffffff,#f3fbfb);
}
.player-card.no-photo .player-placeholder{
  background:
    linear-gradient(135deg,rgba(7,139,140,.12),rgba(25,199,192,.08)),
    #fff;
}
.player-photo{
  width:74px;
  height:74px;
  border-radius:16px;
  object-fit:cover;
  border:1px solid var(--line);
  background:#eef3f8;
}
.no-photo-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:6px;
  padding:5px 8px;
  border-radius:999px;
  background:#eefafa;
  color:var(--teal);
  font-size:11px;
  font-weight:950;
}

/* Exact players import */
.players-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.player-card{grid-template-columns:82px 1fr;min-height:112px}
.player-photo{width:82px;height:82px;border-radius:18px;object-fit:cover;border:1px solid var(--line);background:#eef3f8}
.player-number{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 7px;border-radius:999px;background:var(--soft);color:var(--teal);font-size:12px;font-weight:950;margin-bottom:7px}
@media(max-width:1200px){.players-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.players-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.players-grid{grid-template-columns:1fr}}
