/* Sistema de la liga: web pública y panel del organizador */

/* ---------- Web pública ---------- */
.pub { background: var(--fondo); min-height: 100vh; }
.pub-top { background: var(--blanco); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 5; }
.pub-top .in { max-width: 1320px; margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 30px; }
.pub-marca { display: flex; align-items: center; gap: 11px; color: var(--texto); }
.pub-marca b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.pub-marca small { display: block; font-size: 11px; color: var(--gris); }
.pub-nav { display: flex; gap: 4px; }
.pub-nav a { padding: 7px 12px; border-radius: 8px; color: var(--gris); font-weight: 500; font-size: 13px; }
.pub-nav a.on { color: var(--texto); background: var(--hundido); }
.pub-top .der { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.pub-pie { margin-top: 32px; border-top: 1px solid var(--linea); background: var(--blanco); font-size: 11.5px; color: var(--gris2); }
.pub-pie .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.pub-pie .tf { display: inline-flex; align-items: center; gap: 6px; }
.pub-pie .tf img { width: 18px; height: 18px; }

.hero { background: var(--noche); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 80px, transparent 80px 160px); }
.hero::after { content: ''; position: absolute; right: 8%; top: -140px; width: 380px; height: 380px; border-radius: 50%; border: 2px solid rgba(198,242,78,.12); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding-top: 26px; padding-bottom: 26px; align-items: center; }
.hero .kick { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lima); font-weight: 600; }
.hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -.035em; margin: 8px 0 6px; line-height: 1.15; }
.hero p { margin: 0; color: #9DB3A7; font-size: 13.5px; }
.duelo { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.duelo .eq { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 600; }
.duelo .eq small { font-weight: 400; color: #8FA89B; font-size: 11px; }
.duelo .vs { text-align: center; }
.duelo .vs b { display: block; font-size: 24px; font-weight: 600; color: var(--lima); letter-spacing: -.03em; }
.duelo .vs small { color: #8FA89B; font-size: 11px; }
.resultados { display: flex; gap: 8px; margin-top: 14px; }
.resultados .r { flex: 1 1 auto; background: rgba(255,255,255,.04); border-radius: 10px; padding: 7px 9px; font-size: 11.5px; display: grid; grid-template-columns: auto auto; gap: 2px 6px; align-items: center; }
.resultados .r span { color: #B9CBC1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resultados .r b { font-weight: 600; text-align: right; }
.resultados .r.rev b { color: var(--amarillo); font-size: 10px; font-weight: 500; }

.ausp { background: var(--blanco); border-bottom: 1px solid var(--linea); }
.ausp .wrap { display: flex; align-items: center; gap: 26px; height: 50px; font-size: 12px; color: var(--gris2); }
.ausp .wrap > span:first-child { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; white-space: nowrap; }
.ausp .logo-a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--gris); font-size: 12.5px; white-space: nowrap; opacity: .85; }
.ausp .logo-a i { width: 22px; height: 22px; border-radius: 6px; display: inline-block; }

.pub-main { padding: 20px 0 50px; }
.tabla-pos td { padding: 7px 8px; }
.tabla-pos .pos { width: 26px; text-align: center; font-weight: 600; color: var(--gris); }
.tabla-pos tr.z1 .pos { color: var(--cancha); }
.tabla-pos tr.z1 td:first-child { box-shadow: inset 3px 0 0 var(--cesped); }
.tabla-pos tr.z3 td:first-child { box-shadow: inset 3px 0 0 var(--rojo); }
.tabla-pos .pts { font-weight: 700; font-size: 13.5px; }
.forma { display: inline-flex; gap: 3px; }
.forma i { width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; }
.forma i.G { background: var(--cesped); } .forma i.E { background: var(--gris2); } .forma i.P { background: var(--rojo); }
.escudo { flex: none; display: block; }
.partido-p { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.partido-p:last-child { border-bottom: 0; }
.partido-p .h { text-align: center; background: var(--fondo); border-radius: 8px; padding: 5px 0; }
.partido-p .h b { display: block; font-size: 14px; font-weight: 600; }
.partido-p .h small { font-size: 10px; color: var(--gris); }
.partido-p .eqs { display: grid; gap: 4px; font-size: 12.8px; }
.partido-p .eqs span { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.partido-p .lugar { font-size: 11px; color: var(--gris2); }
.gol-row { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: 12.8px; }
.gol-row:last-child { border-bottom: 0; }
.gol-row .g { font-size: 16px; font-weight: 700; }
.gol-row small { color: var(--gris); font-size: 11px; display: block; }

/* Cortes de video */
.cortes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.corte { background: var(--blanco); border-radius: 12px; box-shadow: var(--sombra); overflow: hidden; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #0F5C3A; overflow: hidden; }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb .play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(10,23,18,.72); display: grid; place-items: center; color: var(--lima); backdrop-filter: blur(4px); border: 1.5px solid rgba(198,242,78,.5); }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(10,23,18,.8); color: #fff; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.thumb .rev { position: absolute; left: 8px; top: 8px; background: var(--amarillo); color: var(--noche); font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.corte .t { padding: 10px 12px 12px; }
.corte .t b { display: block; font-size: 13px; font-weight: 600; }
.corte .t small { color: var(--gris); font-size: 11.5px; }

.jug-hero { background: var(--noche); color: #fff; border-radius: 18px; padding: 24px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-bottom: 16px; position: relative; overflow: hidden; }
.jug-hero::after { content: attr(data-n); position: absolute; right: 210px; top: -60px; font-size: 230px; font-weight: 700; color: rgba(198,242,78,.05); letter-spacing: -.06em; line-height: 1; }
.jug-hero h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 6px 0 4px; }
.jug-hero p { margin: 0; color: #9DB3A7; }
.jug-stats { display: flex; position: relative; z-index: 1; }
.jug-stats div { padding: 0 18px; border-left: 1px solid rgba(255,255,255,.08); text-align: center; }
.jug-stats div:first-child { border-left: 0; }
.jug-stats b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.jug-stats b.lima { color: var(--lima); }
.jug-stats span { font-size: 11px; color: #8FA89B; }
.banner-a { border-radius: 12px; background: linear-gradient(120deg, #F6E7C8, #F3F7F4); border: 1px dashed #D9B75A; padding: 14px 16px; font-size: 12px; color: #6B5516; display: flex; gap: 12px; align-items: center; }
.banner-a b { font-size: 14px; color: var(--texto); display: block; }

/* ---------- Panel del organizador ---------- */
.pasos { display: flex; gap: 0; margin-bottom: 14px; background: var(--blanco); border-radius: 12px; box-shadow: var(--sombra); padding: 10px 16px; }
.paso { flex: 1; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--gris2); }
.paso .nro { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--hundido); font-weight: 600; font-size: 11px; flex: none; }
.paso.hecho { color: var(--gris); } .paso.hecho .nro { background: var(--cancha); color: #fff; }
.paso.actual { color: var(--texto); font-weight: 600; } .paso.actual .nro { background: var(--lima); color: var(--noche); }
.paso:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--linea); margin: 0 12px; }
.paso.hecho:not(:last-child)::after { background: var(--cesped); }

.planilla-w { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.escaneo { background: #2A2F2C; border-radius: var(--r-l); padding: 16px; position: relative; overflow: hidden; }
.escaneo .barra { display: flex; justify-content: space-between; color: #B9CBC1; font-size: 11.5px; margin-bottom: 10px; }
.papel { background: #FBF8EF; border-radius: 3px; transform: rotate(-.6deg); box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 16px 18px 14px; color: #2B2B2B; position: relative; font-size: 11px;
  background-image: linear-gradient(0deg, rgba(0,0,0,.018) 1px, transparent 1px); background-size: 100% 24px; }
.papel::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 90% 110%, rgba(120,90,40,.10), transparent 60%); pointer-events: none; }
.papel .imp { font-family: Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: .04em; font-size: 9.5px; color: #555; }
.papel h4 { font-family: Georgia, serif; font-size: 13.5px; text-align: center; letter-spacing: .08em; margin: 0 0 2px; color: #222; }
.papel .centro { text-align: center; }
.mano { font-family: 'Segoe Print', 'Ink Free', 'Bradley Hand', 'Comic Sans MS', cursive; color: #1D3B8A; font-size: 13px; line-height: 1.2; }
.mano.gr { font-size: 22px; }
.papel .fila-p { display: flex; gap: 14px; align-items: baseline; border-bottom: 1px solid #C9C2B0; padding: 4px 0 2px; }
.papel table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.papel th { font-family: Georgia, serif; font-weight: 400; font-size: 9px; text-transform: uppercase; color: #666; border: 1px solid #B9B2A0; padding: 2px 5px; text-align: left; background: rgba(0,0,0,.02); }
.papel td { border: 1px solid #B9B2A0; padding: 1px 6px; height: 23px; }
.papel .dudoso { position: relative; }
.papel .dudoso::after { content: ''; position: absolute; inset: -2px -3px; border: 2px dashed var(--amarillo); border-radius: 4px; background: rgba(232,180,0,.10); }
.papel .borron { display: inline-block; filter: blur(1.1px); opacity: .85; }
.papel .firma { font-family: 'Segoe Print', 'Ink Free', cursive; color: #1D3B8A; font-size: 18px; transform: rotate(-6deg); display: inline-block; }
.lectura .campo-ia { display: grid; grid-template-columns: 104px 1fr 92px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--linea); font-size: 12.5px; }
.lectura .campo-ia:last-child { border-bottom: 0; }
.lectura .campo-ia .l { color: var(--gris); font-size: 11.5px; }
.lectura .campo-ia .v { font-weight: 600; min-width: 0; }
.lectura .grupo-ia { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris2); font-weight: 600; padding: 10px 0 2px; }
.conf { display: grid; grid-template-columns: 1fr 34px; gap: 6px; align-items: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.conf span { height: 6px; border-radius: 3px; background: var(--hundido); overflow: hidden; }
.conf i { display: block; height: 100%; border-radius: 3px; }
.campo-ia.duda { background: #FFF9E8; margin: 0 -10px; padding: 7px 10px; border-radius: 8px; border-bottom-color: transparent; }
.campo-ia.duda .v { color: #946F00; }
.sel-mano { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.sel-mano button { border: 1px solid #E5C766; background: #fff; border-radius: 7px; padding: 2px 8px; font-size: 11.5px; cursor: pointer; font-weight: 500; }
.sel-mano button.on { background: var(--noche); border-color: var(--noche); color: var(--lima); }
.pie-pub { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linea); }

.limite { display: flex; align-items: center; gap: 14px; }
.limite .barra { flex: 1; height: 12px; background: var(--hundido); border-radius: 6px; overflow: hidden; display: flex; gap: 2px; }
.limite .barra i { flex: 1; background: var(--cesped); }
.limite .barra i.libre { background: transparent; }

.carne { width: 360px; border-radius: 20px; overflow: hidden; background: var(--noche); color: #fff; box-shadow: 0 20px 50px -18px rgba(10,23,18,.5); position: relative; }
.carne .cab { padding: 16px 20px; display: flex; align-items: center; gap: 12px; background: linear-gradient(130deg, var(--cancha), var(--noche)); }
.carne .cab b { font-size: 13px; font-weight: 600; display: block; }
.carne .cab small { color: #B9CBC1; font-size: 10.5px; }
.carne .cuerpo-c { padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.carne .foto { width: 76px; height: 90px; border-radius: 12px; background: linear-gradient(150deg, #D9731E, #8F4410); display: grid; place-items: center; font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.carne h3 { font-size: 17px; font-weight: 600; }
.carne .dato { font-size: 11px; color: #8FA89B; margin-top: 2px; }
.carne .dato b { color: #fff; font-weight: 500; }
.carne .qr { border-radius: 10px; padding: 4px; background: #fff; }
.carne .pie-c { border-top: 1px dashed rgba(255,255,255,.15); padding: 10px 20px; display: flex; justify-content: space-between; font-size: 10.5px; color: #8FA89B; }
.carne .pie-c b { color: var(--lima); font-weight: 600; }
