/* =========================================================================
   Campeonato Padres de Familia — vista pública
   Lenguaje visual: cancha y marcador. Marino de cancha + dorado de trofeo.
   ========================================================================= */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

.cp-app {
	--cp-navy: #1d458c;
	--cp-navy-2: #3a5d9b;
	--cp-navy-3: #17366d;
	--cp-ink: #102650;
	--cp-rayo: #c00c24;
	--cp-muted: #5b6678;
	--cp-line: #dfe4ec;
	--cp-bg: #f2f4f8;
	--cp-card: #ffffff;
	--cp-brand: var(--accent, #1c4e9c);
	--cp-a: #ffcc2c;
	--cp-b: #45a4d1;
	--cp-red: #c0392b;
	--cp-green: #1e8449;
	--cp-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--cp-radius: 12px;
	color: var(--cp-ink);
	font-size: 15px;
	line-height: 1.5;
	max-width: 1100px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
}
.cp-app *, .cp-app *::before, .cp-app *::after { box-sizing: border-box; }
.cp-app h2, .cp-app h3 { font-family: var(--cp-display); letter-spacing: .2px; }
.cp-app a { color: var(--cp-brand); }
.cp-app :focus-visible { outline: 3px solid var(--cp-b); outline-offset: 2px; }

/* ---------- Encabezado: la cancha ---------- */
.cp-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--cp-navy);
	background-image:
		radial-gradient(circle at 72% 50%, transparent 0 74px, rgba(255,255,255,.13) 75px 77px, transparent 78px),
		radial-gradient(circle at 72% 50%, rgba(255,255,255,.18) 0 4px, transparent 5px),
		linear-gradient(90deg, transparent calc(72% - 1px), rgba(255,255,255,.13) calc(72% - 1px) calc(72% + 1px), transparent calc(72% + 1px)),
		linear-gradient(160deg, var(--cp-navy) 0%, var(--cp-navy-3) 70%);
	color: #fff;
	border-radius: var(--cp-radius) var(--cp-radius) 0 0;
	padding: 30px 28px 22px;
}
/* Línea de banda y área de la derecha */
.cp-hero::before {
	content: "";
	position: absolute;
	inset: 12px;
	border: 2px solid rgba(255,255,255,.10);
	border-radius: 6px;
	pointer-events: none;
}
.cp-hero::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 70px;
	height: 120px;
	transform: translateY(-50%);
	border: 2px solid rgba(255,255,255,.10);
	border-right: 0;
	pointer-events: none;
}
/* El rayo del logo cruzando la cancha */
.cp-rayo {
	position: absolute;
	right: -20px;
	bottom: 92px;
	width: 42%;
	height: 30px;
	background: linear-gradient(90deg, rgba(192,12,36,0) 0%, var(--cp-rayo) 38%, var(--cp-rayo) 100%);
	clip-path: polygon(0 55%, 100% 0, 100% 45%, 0 100%);
	transform: rotate(-19deg);
	transform-origin: right bottom;
	opacity: .9;
	pointer-events: none;
}
.cp-hero-in { position: relative; z-index: 1; max-width: 680px; display: flex; align-items: center; gap: 18px; }
.cp-logo { flex: 0 0 auto; width: 86px; height: 86px; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.cp-logo img { width: 92%; height: 92%; object-fit: contain; display: block; border-radius: 50%; }
.cp-app .cp-title {
	margin: 0;
	color: #fff;
	font-family: var(--cp-display);
	font-weight: 700;
	font-size: clamp(30px, 5.2vw, 50px);
	line-height: .98;
	letter-spacing: .3px;
}
.cp-sub { margin: 10px 0 0; color: rgba(255,255,255,.78); font-size: .95em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.cp-dot.a { background: var(--cp-a); }
.cp-dot.b { background: var(--cp-b); }
.cp-cup { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; margin-right: 10px; }

/* Disciplinas dentro de la cancha */
.cp-disc, .cp-nav { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cp-disc::-webkit-scrollbar, .cp-nav::-webkit-scrollbar { display: none; }
.cp-hero .cp-disc { position: relative; z-index: 1; margin-top: 22px; }
.cp-disc a {
	flex: 0 0 auto;
	padding: 7px 14px 6px;
	border-radius: 999px;
	color: #fff;
	border: 1px solid rgba(255,255,255,.28);
	text-decoration: none;
	font-family: var(--cp-display);
	font-weight: 600;
	font-size: 17px;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.cp-disc a:hover { background: rgba(255,255,255,.10); }
.cp-disc a.on { background: #fff; color: var(--cp-navy); border-color: #fff; }

/* ---------- Pestañas ---------- */
.cp-nav { background: var(--cp-card); border: 1px solid var(--cp-line); border-top: 0; padding: 0 14px; gap: 2px; }
.cp-nav a {
	flex: 0 0 auto;
	padding: 13px 12px 10px;
	color: var(--cp-muted);
	text-decoration: none;
	border-bottom: 4px solid transparent;
	font-family: var(--cp-display);
	font-weight: 600;
	font-size: 18px;
	white-space: nowrap;
}
.cp-nav a:hover { color: var(--cp-navy); }
.cp-nav a.on { color: var(--cp-navy); border-bottom-color: var(--cp-a); }

.cp-body { background: var(--cp-bg); border: 1px solid var(--cp-line); border-top: 0; border-radius: 0 0 var(--cp-radius) var(--cp-radius); padding: 22px; }
.cp-empty { color: var(--cp-muted); text-align: center; padding: 34px 10px; margin: 0; }
.cp-small { color: var(--cp-muted); font-size: .86em; }

/* ---------- Formularios ---------- */
.cp-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cp-app select, .cp-app input[type=text], .cp-app input:not([type]), .cp-app input[type=file], .cp-app input[type=number] {
	padding: 9px 12px;
	border: 1px solid #c8d0dc;
	border-radius: 8px;
	background: #fff;
	color: var(--cp-ink);
	font-size: 15px;
	max-width: 100%;
	min-height: 42px;
}
.cp-app select:focus, .cp-app input:focus { border-color: var(--cp-navy); outline: none; box-shadow: 0 0 0 3px rgba(20,39,78,.15); }
.cp-app button { background: var(--cp-navy); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font-weight: 700; font-size: 15px; cursor: pointer; }
.cp-app button:hover { background: var(--cp-navy-2); }
.cp-app button.cp-link { background: none; color: var(--cp-brand); padding: 6px 0; text-decoration: underline; font-weight: 600; }

/* Encabezado de fecha con raya de cal */
.cp-app .cp-date {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--cp-display);
	font-weight: 700;
	font-size: 22px;
	color: var(--cp-navy);
	margin: 24px 0 10px;
}
.cp-app .cp-date::after { content: ""; flex: 1; height: 2px; background: var(--cp-line); }
.cp-body > .cp-date:first-child, .cp-filter + .cp-date { margin-top: 4px; }

/* ---------- Partidos (fixture) ---------- */
.cp-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 10px; }
.cp-match { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 10px; padding: 12px 14px; }
.cp-match.played { border-left: 4px solid var(--cp-navy); }
.cp-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--cp-muted); font-size: .82em; margin-bottom: 8px; }
.cp-meta span:first-child { font-family: var(--cp-display); font-weight: 700; font-size: 17px; color: var(--cp-navy); }
.cp-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.cp-t { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.cp-t.l { text-align: right; }
.cp-mid { display: flex; align-items: center; gap: 4px; min-width: 64px; justify-content: center; }
.cp-mid b, .cp-score {
	background: var(--cp-navy);
	color: #fff;
	border-radius: 6px;
	min-width: 30px;
	text-align: center;
	padding: 2px 6px;
	font-family: var(--cp-display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}
.cp-mid i { font-style: normal; color: var(--cp-muted); }
.cp-vs { color: var(--cp-rayo); font-family: var(--cp-display); font-weight: 700; font-size: 15px; }
.cp-tag { background: #fbe7e7; color: var(--cp-red); border-radius: 6px; padding: 1px 6px; font-size: .75em; }
.cp-note { text-align: center; font-size: .8em; color: var(--cp-muted); margin-top: 6px; }

/* ---------- Encuentros (curso vs curso, todas las disciplinas) ---------- */
.cp-encs { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.cp-enc { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 10px; overflow: hidden; }
.cp-enc-h { padding: 12px 16px 10px; border-bottom: 1px solid var(--cp-line); display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, #fafbfd, #fff); }
.cp-enc-t { font-family: var(--cp-display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--cp-navy); }
.cp-enc-t i { font-style: normal; color: var(--cp-rayo); font-size: .7em; margin: 0 6px; vertical-align: 2px; }
.cp-enc-g { font-size: .82em; color: var(--cp-muted); }
.cp-enc ul { list-style: none; margin: 0; padding: 4px 16px 8px; }
.cp-enc li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef1f5; }
.cp-enc li:last-child { border-bottom: 0; }
.cp-enc li .h { font-family: var(--cp-display); font-weight: 700; font-size: 21px; color: var(--cp-navy); font-variant-numeric: tabular-nums; }
.cp-enc li .d { font-weight: 600; }
.cp-enc li .d small { display: block; color: var(--cp-muted); font-weight: 400; font-size: .82em; }
.cp-enc li .r b { background: var(--cp-navy); color: #fff; border-radius: 6px; padding: 2px 10px; white-space: nowrap; font-family: var(--cp-display); font-size: 19px; }

/* ---------- Tablas de posiciones ---------- */
.cp-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .88em; color: var(--cp-muted); margin: 0 0 12px; }
.cp-legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.cp-legend .sw:first-child { margin-left: 0; }
.cp-legend .sw.a { background: var(--cp-a); }
.cp-legend .sw.b { background: var(--cp-b); }
.cp-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 14px; }
.cp-tbl { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 10px; overflow-x: auto; }
.cp-app .cp-tbl h3 { margin: 0; padding: 10px 14px; font-size: 21px; color: #fff; background: var(--cp-navy); }
.cp-app table { width: 100%; border-collapse: collapse; margin: 0; font-size: .92em; }
.cp-app th, .cp-app td { padding: 8px 6px; text-align: center; border: 0; border-bottom: 1px solid #eef1f5; }
.cp-app th { color: var(--cp-muted); font-weight: 600; font-size: .8em; background: #fafbfd; }
.cp-app td { font-variant-numeric: tabular-nums; }
.cp-app .n { text-align: left; }
.cp-tbl td:last-child strong { font-family: var(--cp-display); font-size: 19px; color: var(--cp-navy); }
.cp-tbl tr.a td:first-child { box-shadow: inset 4px 0 0 var(--cp-a); }
.cp-tbl tr.b td:first-child { box-shadow: inset 4px 0 0 var(--cp-b); }
table.cp-list { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 10px; overflow: hidden; }

/* ---------- Copas ---------- */
.cp-copas { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.cp-copa { background: var(--cp-card); border-radius: 10px; border: 1px solid var(--cp-line); overflow: hidden; }
.cp-app .cp-copa h3 { margin: 0; padding: 12px 16px; font-size: 24px; color: var(--cp-navy); background: linear-gradient(90deg, rgba(255,204,44,.28), rgba(255,204,44,0)); border-bottom: 3px solid var(--cp-a); }
.cp-app .cp-copa.copa_b h3 { background: linear-gradient(90deg, rgba(69,164,209,.24), rgba(69,164,209,0)); border-bottom-color: var(--cp-b); }
.cp-copa h3 small { color: var(--cp-muted); font-weight: 500; font-size: .6em; margin-left: 6px; }
.cp-copa ul { list-style: none; margin: 0; padding: 10px 16px 14px; columns: 2; column-gap: 16px; }
.cp-copa li { padding: 4px 0; break-inside: avoid; font-size: .92em; }
.cp-copa li .g { display: inline-block; min-width: 30px; font-family: var(--cp-display); font-weight: 700; color: var(--cp-muted); }
.cp-copa li em { color: var(--cp-muted); font-size: .8em; }

/* ---------- Estados ---------- */
.cp-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78em; font-weight: 600; background: #eef1f5; color: var(--cp-muted); white-space: nowrap; }
.cp-st.pendiente, .cp-st.por_verificar { background: #fff4d6; color: #8a5a00; }
.cp-st.en_revision { background: #e3eefb; color: #1c4e9c; }
.cp-st.pagada, .cp-st.verificado { background: #e1f5e4; color: var(--cp-green); }
.cp-st.rechazado, .cp-st.anulada { background: #fbe7e7; color: var(--cp-red); }
.cp-void td { color: var(--cp-muted); text-decoration: line-through; }
.cp-alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-weight: 600; }
.cp-alert.err { background: #fbe7e7; color: #9b2c22; }
.cp-alert.ok { background: #e1f5e4; color: #17683a; }
.red { color: var(--cp-red); }
.green { color: var(--cp-green); }

/* ---------- Acceso del curso ---------- */
.cp-access { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: 28px; align-items: center; max-width: 820px; margin: 10px auto; }
.cp-app .cp-access-copy h3 { margin: 0 0 8px; font-size: 34px; line-height: 1; color: var(--cp-navy); }
.cp-access-copy p { margin: 0 0 10px; color: var(--cp-muted); max-width: 38ch; }
.cp-access-note { font-size: .88em; padding-left: 12px; border-left: 3px solid var(--cp-a); }
.cp-login { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: var(--cp-radius); padding: 22px; display: grid; gap: 8px; box-shadow: 0 12px 30px -18px rgba(20,39,78,.45); }
.cp-login label { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cp-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cp-navy); color: #fff; font-family: var(--cp-display); font-size: 15px; }
.cp-login select { width: 100%; min-height: 48px; font-size: 16px; }
.cp-login input { width: 100%; min-height: 54px; text-transform: uppercase; letter-spacing: 4px; text-align: center; font-family: var(--cp-display); font-weight: 700; font-size: 26px !important; }
.cp-login input::placeholder { color: #b8c0cc; }
.cp-login button { margin-top: 6px; min-height: 50px; font-size: 17px; }
.cp-login .cp-small { margin: 4px 0 0; }

/* ---------- Mi curso ---------- */
.cp-me { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--cp-line); }
.cp-app .cp-me h3 { margin: 0; font-size: 32px; line-height: 1; color: var(--cp-navy); }
.cp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.cp-sum div { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 10px; padding: 12px; text-align: center; }
.cp-sum span { display: block; font-size: .8em; color: var(--cp-muted); }
.cp-sum strong { font-family: var(--cp-display); font-size: 26px; }
.cp-bank { background: var(--cp-card); border: 1px dashed #b7c3d4; border-radius: 10px; padding: 12px 16px; font-size: .92em; margin-bottom: 10px; }
.cp-pay { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: var(--cp-radius); padding: 16px; display: grid; gap: 12px; min-width: 0; overflow: hidden; }
.cp-pay label { display: grid; gap: 4px; font-weight: 600; font-size: .92em; }
.cp-pay input:not([type=checkbox]) { width: 100%; }
.cp-checks { list-style: none; margin: 0; padding: 0; min-width: 0; }
.cp-checks li { border-bottom: 1px solid #eef1f5; }
.cp-checks label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 0; font-weight: 400; cursor: pointer; }
.cp-checks label > span { min-width: 0; overflow-wrap: anywhere; }
.cp-checks small { display: block; color: var(--cp-muted); }
.cp-checks input { width: 20px; height: 20px; accent-color: var(--cp-navy); }
.cp-total { margin: 0; text-align: right; }
.cp-total strong { font-family: var(--cp-display); font-size: 22px; color: var(--cp-navy); }

/* Inscripción */
.cp-insc fieldset.cp-ex { border: 1px solid var(--cp-line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; }
.cp-insc legend { font-weight: 700; font-size: .92em; padding: 0 4px; }
.cp-ex-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.cp-ex-row input, .cp-ex-row select { width: 100%; min-width: 0; }
.cp-insc-ok { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cp-insc-ok div { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 10px; padding: 12px; text-align: center; }
.cp-insc-ok span { display: block; font-size: .78em; color: var(--cp-muted); }
.cp-insc-ok strong { font-family: var(--cp-display); font-size: 24px; }

/* Pases QR */
.cp-passes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cp-pass { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 10px; padding: 10px; }
.cp-pass-img { width: 100%; height: auto; display: block; border-radius: 6px; }
.cp-pass-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cp-app .cp-btn, .cp-btn { flex: 1; display: inline-block; text-align: center; background: var(--cp-navy, #14274e); color: #fff !important; border: 0; border-radius: 8px; padding: 10px 12px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.cp-app .cp-btn.alt, .cp-btn.alt { background: #1e8449; }

/* Acceso restringido */
.cp-lock { background: var(--cp-card); border: 1px dashed #b7c3d4; border-radius: var(--cp-radius); padding: 28px 18px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.cp-lock p { margin: 0; max-width: 460px; color: var(--cp-muted); }
.cp-lock-i { font-size: 34px; line-height: 1; }
.cp-lock .cp-btn { flex: none; padding: 11px 22px; }
.cp-solo { border-top: 0; }
.cp-debt { font-weight: 500; }

/* ---------- Piezas sueltas (GenerateBlocks) ---------- */
.cp-embed { max-width: none; }
.cp-embed .cp-disc { padding: 0 0 12px; }
.cp-embed .cp-disc a { color: var(--cp-ink); border-color: var(--cp-line); background: var(--cp-card); }
.cp-embed .cp-disc a:hover { background: var(--cp-bg); }
.cp-embed .cp-disc a.on { background: var(--cp-navy); color: #fff; border-color: var(--cp-navy); }
.cp-sc-proximos .cp-meta span:last-child, .cp-sc-resultados .cp-meta span:last-child { color: var(--cp-brand); font-weight: 700; }
.cp-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cp-cifras div { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 10px; padding: 16px 10px; text-align: center; }
.cp-cifras strong { display: block; font-family: var(--cp-display); font-weight: 700; font-size: 42px; line-height: 1; color: var(--cp-navy); }
.cp-cifras span { font-size: .86em; color: var(--cp-muted); }

/* ---------- Celular ---------- */
@media (max-width: 720px) {
	.cp-access { grid-template-columns: 1fr; gap: 16px; }
	.cp-app .cp-access-copy h3 { font-size: 30px; }
}
@media (max-width: 600px) {
	.cp-hero { padding: 24px 20px 18px; border-radius: 10px 10px 0 0; background-image:
		radial-gradient(circle at 88% 30%, transparent 0 54px, rgba(255,255,255,.12) 55px 57px, transparent 58px),
		linear-gradient(160deg, var(--cp-navy) 0%, var(--cp-navy-3) 70%); }
	.cp-hero::after { display: none; }
	.cp-rayo { width: 46%; height: 12px; top: -2px; bottom: auto; right: -16px; opacity: .85; transform: rotate(-6deg); transform-origin: right top; }
	.cp-hero-in { gap: 12px; }
	.cp-logo { width: 58px; height: 58px; padding: 5px; }
	.cp-body { padding: 12px; }
	.cp-nav { padding: 0 6px; }
	.cp-matches, .cp-tables, .cp-encs { grid-template-columns: 1fr; }
	.cp-app th, .cp-app td { padding: 7px 3px; }
	.cp-copa ul { columns: 1; }
	.cp-ex-row { grid-template-columns: 1fr; padding-bottom: 6px; border-bottom: 1px dashed var(--cp-line); }
	.cp-insc-ok { grid-template-columns: repeat(2, 1fr); }
	.cp-cifras { grid-template-columns: repeat(2, 1fr); }
	.cp-sum strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
	.cp-app * { transition: none !important; }
}

/* =========================================================================
   Página completa (sin cabecera ni barra lateral del tema)
   ========================================================================= */
body.cp-full-page { margin: 0; background: #f2f4f8; }
.cp-app.cpf { max-width: none; margin: 0; background: var(--cp-bg); min-height: 100vh; display: flex; flex-direction: column; }
.cpf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Cabecera: blanca con menú azul, como la web del colegio */
.cpf-top { background: #fff; border-bottom: 1px solid var(--cp-line); position: sticky; top: 0; z-index: 50; }
body.admin-bar .cpf-top { top: 32px; }
.cpf-top-in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.cp-app .cpf-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cp-navy); flex: 0 0 auto; }
.cp-logo.cpf-logo { width: 52px; height: 52px; box-shadow: 0 0 0 2px var(--cp-line); }
.cpf-brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.cpf-brand-t strong { font-family: var(--cp-display); font-weight: 700; font-size: 24px; color: var(--cp-navy); }
.cpf-brand-t small { font-size: 12px; color: var(--cp-muted); margin-top: 3px; }
.cpf-menu { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 0 1 auto; }
.cpf-menu::-webkit-scrollbar { display: none; }
.cp-app .cpf-menu a { flex: 0 0 auto; padding: 8px 12px; border-radius: 8px; font-family: var(--cp-display); font-weight: 600; font-size: 18px; color: var(--cp-navy); text-decoration: none; white-space: nowrap; }
.cp-app .cpf-menu a:hover { background: var(--cp-bg); }
.cp-app .cpf-menu a.on { background: var(--cp-navy); color: #fff; }
.cp-app .cpf-cta { flex: 0 0 auto; padding: 10px 18px; border-radius: 999px; background: var(--cp-a); color: var(--cp-ink); font-family: var(--cp-display); font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.cp-app .cpf-cta:hover, .cp-app .cpf-cta.on { box-shadow: 0 0 0 3px rgba(255,204,44,.35); }
.cpf-menu + .cpf-cta { margin-left: 6px; }
.cpf-brand + .cpf-cta { margin-left: auto; }

/* Portada de cancha a todo el ancho */
.cp-hero.cpf-hero { border-radius: 0; padding: 48px 0 32px; }
.cp-hero.cpf-hero::before { inset: 16px; }
.cpf-hero-in { position: relative; z-index: 1; }
.cpf-hero .cp-title { font-size: clamp(38px, 6vw, 72px); max-width: 19ch; }
.cpf-hero .cp-sub { font-size: 1.02em; margin-top: 14px; }
.cpf-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 26px 0 0; padding: 0; }
.cpf-stats div { margin: 0; }
.cpf-stats dt { font-size: 13px; color: rgba(255,255,255,.7); margin: 0; }
.cpf-stats dd { margin: 0; font-family: var(--cp-display); font-weight: 700; font-size: 40px; line-height: 1; color: #fff; }
.cpf-stats dd span { font-size: .55em; color: rgba(255,255,255,.6); margin-left: 2px; }
.cpf-hero .cp-disc { margin-top: 26px; }
.cpf-hero .cp-rayo { bottom: 120px; width: 40%; height: 34px; }

/* Cuerpo */
.cpf-main { flex: 1; padding: 30px 0 50px; }
.cp-app .cpf-h { margin: 0 0 16px; font-size: 34px; line-height: 1.05; color: var(--cp-navy); }
.cp-body.cpf-body { background: none; border: 0; border-radius: 0; padding: 0; }

/* Pie */
.cpf-foot { background: var(--cp-navy-3, #17366d); color: rgba(255,255,255,.82); padding: 34px 0 22px; position: relative; }
.cpf-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--cp-a) 0 50%, var(--cp-b) 50% 100%); }
.cpf-foot-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: center; }
.cpf-foot-brand { display: flex; align-items: center; gap: 14px; }
.cpf-foot-brand strong { display: block; font-family: var(--cp-display); font-size: 22px; color: #fff; line-height: 1.1; }
.cpf-foot-brand span { font-size: 13px; }
.cpf-foot .cp-logo.cpf-logo { box-shadow: none; }
.cpf-foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cp-app .cpf-foot-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.cp-app .cpf-foot-nav a:hover { text-decoration: underline; }
.cpf-legal { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.cp-app .cpf-legal a { color: #fff; }

@media (max-width: 1180px) {
	.cpf-brand-t small { display: none; }
	.cp-app .cpf-menu a { padding: 8px 9px; font-size: 17px; }
}
@media (max-width: 900px) {
	.cpf-top-in { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; min-height: 0; }
	.cpf-menu { order: 3; flex-basis: 100%; margin: 0 -24px; padding: 0 24px 10px; }
	.cpf-brand + .cpf-cta, .cpf-menu + .cpf-cta { margin-left: auto; }
	.cpf-cta { order: 2; }
}
@media (max-width: 782px) { body.admin-bar .cpf-top { top: 0; position: relative; } }
@media (max-width: 600px) {
	.cpf-wrap { padding: 0 16px; }
	.cpf-menu { margin: 0 -16px; padding: 0 16px 10px; }
	.cpf-brand-t strong { font-size: 20px; }
	.cpf-brand-t small { display: none; }
	.cp-logo.cpf-logo { width: 42px; height: 42px; }
	.cp-app .cpf-cta { padding: 8px 14px; font-size: 16px; }
	.cp-hero.cpf-hero { padding: 34px 0 24px; }
	.cpf-stats { gap: 10px 26px; }
	.cpf-stats dd { font-size: 30px; }
	.cpf-hero .cp-rayo { top: 6px; bottom: auto; width: 50%; height: 14px; }
	.cp-app .cpf-h { font-size: 28px; }
	.cpf-foot-in { grid-template-columns: 1fr; }
}
.cp-demo-bar { background: repeating-linear-gradient(135deg, #ffcc2c 0 14px, #f5c21f 14px 28px); color: #10264d; text-align: center; font-weight: 700; font-size: 13px; padding: 6px 12px; }
.cp-app:not(.cpf) > .cp-demo-bar { border-radius: var(--cp-radius) var(--cp-radius) 0 0; }
.cp-app:not(.cpf) > .cp-demo-bar + .cp-hero { border-radius: 0; }
/* Aviso de deuda (modo informativo y cursos con saldo) */
.cp-app a.cp-owe-bar { display: block; background: #fbe7e7; color: #9b2c22; border: 1px solid #f1c4c0; border-left: 5px solid var(--cp-rayo, #c00c24); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; text-decoration: none; font-size: .95em; }
.cp-app a.cp-owe-bar:hover { background: #f8dcdc; }
.cp-owe { border-left: 5px solid var(--cp-rayo, #c00c24); }

/* Datos del delegado */
.cp-contacto { border: 1px solid var(--cp-line); border-radius: 12px; background: #fff; margin-bottom: 18px; }
.cp-contacto > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; align-items: center; }
.cp-contacto > summary::-webkit-details-marker { display: none; }
.cp-contacto > summary span:first-child { font-weight: 700; color: var(--cp-navy); }
.cp-contacto > summary .cp-small { grid-column: 1; overflow-wrap: anywhere; }
.cp-contacto > summary b { grid-column: 2; grid-row: 1 / span 2; font-size: .85em; color: var(--cp-navy); border: 1px solid var(--cp-line); border-radius: 999px; padding: 6px 14px; }
.cp-contacto[open] > summary b { visibility: hidden; }
.cp-contacto form { margin: 0; padding: 0 16px 16px; border: 0; }
.cp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .cp-grid2 { grid-template-columns: 1fr; } }

/* ===== La fecha (muro público) ===== */
.cp-muro-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cp-muro-head .cpf-h { margin: 0 0 4px; }
.cp-muro-head p { margin: 0; }
.cp-muro-head .cp-filter { margin: 0; }
.cp-muro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cp-mc { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(16, 38, 80, .08); }
.cp-mc-mio { outline: 3px solid var(--cp-a); outline-offset: -1px; }
.cp-mc-img { position: relative; aspect-ratio: 16 / 9; background: var(--cp-ink); }
.cp-mc-img img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.cp-mc-tag { position: absolute; left: 12px; top: 12px; font-family: var(--cp-display); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: 15px; padding: 4px 10px; border-radius: 4px; background: var(--cp-a); color: var(--cp-ink); }
.cp-mc-empate .cp-mc-tag { background: var(--cp-b); }
.cp-mc-derrota .cp-mc-tag { background: #f08a3c; }
.cp-mc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cp-mc-mine { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--cp-ink); background: #fff3c4; border-radius: 999px; padding: 2px 10px; }
.cp-app .cp-mc h3 { margin: 0; font-family: var(--cp-display); font-size: 26px; line-height: 1.05; color: var(--cp-navy); }
.cp-mc-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: var(--cp-bg); border-radius: 10px; padding: 8px 10px; }
.cp-mc-score span { font-weight: 600; font-size: 14px; color: var(--cp-muted); }
.cp-mc-score span:last-child { text-align: right; }
.cp-mc-score span.w { color: var(--cp-ink); font-weight: 800; }
.cp-mc-score strong { font-family: var(--cp-display); font-size: 30px; color: var(--cp-navy); white-space: nowrap; }
.cp-mc-score small { font-size: .7em; color: var(--cp-muted); }
.cp-mc-cap { margin: 2px 0 -4px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--cp-muted); text-align: center; }
.cp-mc-disc { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cp-mc-disc li { display: grid; grid-template-columns: 1fr 26px 12px 26px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--cp-line); }
.cp-mc-disc li:last-child { border-bottom: 0; }
.cp-mc-disc b { text-align: center; font-weight: 600; color: var(--cp-muted); }
.cp-mc-disc b.w { color: var(--cp-navy); font-weight: 800; }
.cp-mc-disc i { text-align: center; font-style: normal; color: var(--cp-muted); }
.cp-mc-disc em { grid-column: 2 / -1; text-align: right; color: var(--cp-muted); font-size: 12px; }
.cp-mc-sub { margin: 0; font-style: italic; color: var(--cp-navy); font-size: 14px; }
.cp-mc-share { margin-top: auto; align-self: stretch; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; background: #25d366; color: #0b3d1d; font-size: 15px; }
.cp-mc-share:hover { filter: brightness(1.05); }
.cp-mc-share::before { content: "⇪ "; }
.cp-muro-empty { text-align: center; background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 14px; overflow: hidden; }
.cp-muro-empty img { width: 100%; max-height: 320px; object-fit: cover; image-rendering: pixelated; display: block; }
.cp-muro-empty p { padding: 18px; margin: 0; }

/* ===== Fase final ===== */
.cp-ko-copa { margin-bottom: 34px; }
.cp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cp-app table.cp-tg { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--cp-card); }
.cp-app table.cp-tg th, .cp-app table.cp-tg td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--cp-line); white-space: nowrap; }
.cp-app table.cp-tg td:nth-child(2), .cp-app table.cp-tg th:nth-child(2) { text-align: left; }
.cp-app table.cp-tg thead th { background: var(--cp-navy); color: #fff; font-weight: 600; }
.cp-tg tr.cp-tg-dir td:first-child { box-shadow: inset 4px 0 0 var(--cp-green); }
.cp-tg tr.cp-tg-rep td:first-child { box-shadow: inset 4px 0 0 #f08a3c; }
.cp-tg-ley .cp-tg-dir { color: var(--cp-green); } .cp-tg-ley .cp-tg-rep { color: #f08a3c; }
.cp-prov { font-size: 11px; color: var(--cp-muted); }
.cp-tg-h { margin: 18px 0 8px; font-family: var(--cp-display); font-size: 20px; color: var(--cp-navy); }
.cp-bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.cp-br-col { min-width: 190px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.cp-br-col h4 { margin: 0 0 4px; font-family: var(--cp-display); font-size: 16px; text-transform: uppercase; letter-spacing: .5px; color: var(--cp-muted); }
.cp-br-m { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 8px; overflow: hidden; font-size: 13px; }
.cp-br-t { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; }
.cp-br-t + .cp-br-t { border-top: 1px solid var(--cp-line); }
.cp-br-t.w { background: #fff6d6; font-weight: 700; }
.cp-ko-copa_b .cp-br-t.w { background: #e3f3fb; }
.cp-br-t small { color: var(--cp-muted); font-weight: 400; }
.cp-br-when { padding: 4px 10px; font-size: 11px; color: var(--cp-muted); background: var(--cp-bg); }
.cp-champ { font-family: var(--cp-display); font-size: 24px; color: var(--cp-navy); margin: 12px 0; }

/* ===== Padres calificados (Mi curso) ===== */
.cp-padres { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.cp-padres-col { background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 12px; overflow: hidden; }
.cp-app .cp-padres-col h4 { margin: 0; padding: 10px 14px; background: var(--cp-navy); color: #fff; font-family: var(--cp-display); font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cp-padres-col h4 span { font-family: inherit; font-size: 13px; font-weight: 400; opacity: .85; }
.cp-padres-col ul { list-style: none; margin: 0; padding: 0; }
.cp-padres-col li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 14px; border-bottom: 1px solid var(--cp-line); font-size: 14px; }
.cp-padres-col li:last-child { border-bottom: 0; }
.cp-padres-col li div { display: flex; flex-direction: column; min-width: 0; }
.cp-padres-col li small { color: var(--cp-muted); font-size: 12px; }
.cp-padres-col li em { color: var(--cp-red); font-size: 12px; font-style: normal; font-weight: 600; }
.cp-pd-st { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--cp-green); margin-top: 1px; }
.cp-padres-col li.no { background: #fdf1f0; }
.cp-padres-col li.no .cp-pd-st { background: var(--cp-red); }

/* ===== Canchas ===== */
.cp-canchas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px; }
.cp-cancha { margin: 0; background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 12px; overflow: hidden; }
.cp-cancha img, .cp-cancha-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.cp-cancha-ph { display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, var(--cp-navy), var(--cp-ink)); }
.cp-cancha figcaption { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.cp-cancha figcaption strong { font-family: var(--cp-display); font-size: 20px; color: var(--cp-navy); }
.cp-cancha figcaption span { font-size: 13px; color: var(--cp-muted); }
a.cp-cancha-lnk { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.cp-cancha-dlg { border: 0; border-radius: 14px; padding: 0; max-width: min(560px, 92vw); width: 100%; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.cp-cancha-dlg::backdrop { background: rgba(11, 31, 74, .6); }
.cp-cancha-dlg img { width: 100%; display: block; max-height: 60vh; object-fit: cover; }
.cp-dlg-in { padding: 14px 18px 18px; font-family: system-ui, sans-serif; }
.cp-dlg-in small { text-transform: uppercase; letter-spacing: .6px; color: #5b6678; font-size: 11px; }
.cp-dlg-in h3 { margin: 2px 0 6px; font-size: 24px; color: #1d458c; }
.cp-dlg-in p { margin: 0; color: #102650; }
.cp-dlg-x { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 22px; line-height: 1; cursor: pointer; }

/* La fecha: carrusel por encuentro */
.cp-mc { position: relative; }
.cp-mc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--cp-line); }
.cp-mc-head div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-mc-head strong { font-family: var(--cp-display); font-size: 20px; color: var(--cp-navy); line-height: 1.1; }
.cp-mc-head strong i { font-style: normal; color: var(--cp-rayo); font-size: .8em; margin: 0 4px; }
.cp-mc-head > span { font-size: 12px; color: var(--cp-muted); white-space: nowrap; }
.cp-mc-head .cp-mc-mine { font-style: normal; }
.cp-mc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cp-mc-track::-webkit-scrollbar { display: none; }
.cp-mc-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; }
.cp-mc-slide .cp-mc-body { flex: 1; }
.cp-mc-disc-tag { position: absolute; right: 12px; bottom: 12px; font-family: var(--cp-display); font-weight: 700; font-size: 16px; padding: 4px 10px; border-radius: 4px; background: rgba(11, 31, 74, .85); color: #fff; }
.cp-mc-extra { margin: -2px 0 0; text-align: center; font-size: 12px; color: var(--cp-muted); }
.cp-mc-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 10px; }
.cp-mc-dots { display: flex; gap: 6px; }
.cp-mc-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--cp-line); cursor: pointer; transition: width .2s, background .2s; }
.cp-mc-dots button.on { width: 24px; border-radius: 6px; background: var(--cp-navy); }
.cp-mc-sum { font-size: 12px; color: var(--cp-muted); }
.cp-mc > .cp-mc-share { margin: 0 16px 16px; width: calc(100% - 32px); }

/* ===== App y alertas (Mi curso) ===== */
.cp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.cp-codigo-w { position: relative; }
.cp-codigo-w input { width: 100%; padding-right: 46px !important; }
.cp-ver { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 18px; cursor: pointer; padding: 6px; }
.cp-appbox { margin: 18px 0; }
.cp-prox { list-style: none; margin: 0 0 12px; padding: 0; background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 12px; overflow: hidden; }
.cp-prox li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--cp-line); }
.cp-prox li:last-child { border-bottom: 0; }
.cp-prox b { font-family: var(--cp-display); font-size: 20px; color: var(--cp-navy); }
.cp-prox span { display: flex; flex-direction: column; font-size: 14px; }
.cp-prox small { color: var(--cp-muted); font-size: 12px; }
.cp-wa { background: #25d366; color: #0b3d1d !important; text-decoration: none !important; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.cp-appbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-btn2 { border: 2px solid var(--cp-navy); background: #fff; color: var(--cp-navy); font-weight: 700; padding: 10px 16px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.cp-btn2.on { background: #e8f6ec; border-color: var(--cp-green); color: #0e5a2b; }
.cp-ios { margin-top: 10px; font-size: 14px; }
.cp-ios summary { cursor: pointer; color: var(--cp-navy); font-weight: 600; }

/* ===== Colores por nivel: escuela azul, colegio rojo ===== */
.cp-cn { white-space: nowrap; }
.cp-cn::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; margin-right: .35em; vertical-align: .12em; }
.cp-cn-e { color: #1d458c; } .cp-cn-e::before { background: #1d458c; }
.cp-cn-c { color: #b0102a; } .cp-cn-c::before { background: #c00c24; }
.cp-mc-score span.w .cp-cn, .cp-tg b .cp-cn { font-weight: inherit; }
.cp-app .cp-me h3 .cp-cn::before { width: .35em; height: .35em; }
.cp-tbl { overflow-x: auto; }
.cp-app .cp-tbl th, .cp-app .cp-tbl td { padding-left: 4px; padding-right: 4px; }
.cp-app .cp-tbl td.n, .cp-app .cp-tbl th.n { padding-left: 6px; }
.cp-app button.cp-ver, .cp-app .cp-login button.cp-ver { background: transparent !important; color: var(--cp-navy) !important; width: auto !important; min-width: 0 !important; height: auto !important; padding: 6px 10px !important; margin: 0 !important; box-shadow: none !important; border: 0 !important; font-size: 18px; }
.cp-olvide { margin-top: 14px; padding: 12px 16px; background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 12px; }
.cp-olvide summary { cursor: pointer; color: var(--cp-navy); font-weight: 600; }
.cp-olvide form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cp-olvide form p { flex-basis: 100%; margin: 0; }
.cp-olvide select { flex: 1 1 180px; }
.cp-salir-np { margin-top: 10px; }

/* ===== Llave gráfica (SVG) ===== */
.cp-bk-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 14px; padding: 8px 4px; margin: 6px 0 4px; }
.cp-bk { display: block; font-family: inherit; }
.cp-bk text { font-size: 13px; fill: var(--cp-ink); }
.cp-bk .cp-bk-h { font-family: var(--cp-display); font-size: 13px; letter-spacing: .8px; fill: var(--cp-muted); font-weight: 700; }
.cp-bk-box { fill: #fff; stroke: var(--cp-line); stroke-width: 1.2; }
.cp-bk-sep { stroke: var(--cp-line); stroke-width: 1; }
.cp-bk-l { fill: none; stroke: #c9d2e0; stroke-width: 2; }
.cp-bk-l.on { stroke: var(--cp-navy); stroke-width: 2.5; }
.cp-ko-copa_a .cp-bk-wbg { fill: #fff3c4; }
.cp-ko-copa_b .cp-bk-wbg { fill: #dff1fa; }
.cp-bk text.w { font-weight: 700; }
.cp-bk text.l { fill: #9aa3b2; text-decoration: line-through; }
.cp-bk text.tbd { fill: #9aa3b2; font-style: italic; font-size: 12px; }
.cp-bk text.mio { fill: #b07800; font-weight: 800; }
.cp-bk .cp-bk-s { font-weight: 600; fill: var(--cp-muted); }
.cp-bk .cp-bk-s.w { fill: var(--cp-navy); font-weight: 800; }
.cp-bk .cp-bk-when { font-size: 10px; fill: var(--cp-muted); }
.cp-bk-dot.e { fill: #1d458c; } .cp-bk-dot.c { fill: #c00c24; }
.cp-bk-champ rect { fill: #f2f4f8; stroke: #c9d2e0; stroke-width: 1.5; stroke-dasharray: 4 3; }
.cp-bk-champ.on rect { fill: #ffcc2c; stroke: #e0a800; stroke-dasharray: none; }
.cp-bk .cp-bk-cup { font-size: 18px; }
.cp-bk .cp-bk-cn { font-family: var(--cp-display); font-size: 17px; font-weight: 700; fill: var(--cp-navy); }
.cp-bk-champ:not(.on) .cp-bk-cn { fill: #9aa3b2; font-size: 14px; }
.cp-bk-ley .cp-bk-k { font-size: 14px; }
.cp-bk-k.w { color: #f2c94c; } .cp-bk-k.l { color: #b9c0cc; } .cp-bk-k.m { color: #b07800; }
.cp-bk .cp-bk-h2 { font-family: var(--cp-display); font-size: 12px; letter-spacing: 1px; fill: var(--cp-muted); font-weight: 700; }

.cp-muro-empty video { width: 100%; max-height: 520px; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0b1f4a; }

.cp-app button.cp-mc-share1 { display: block; margin: -8px auto 14px !important; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--cp-navy) !important; text-decoration: underline; font-size: 13px !important; padding: 4px 8px !important; width: auto !important; cursor: pointer; }

.cp-mc-img video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0b1f4a; }
/* Medio de pago: transferencia o efectivo el día del partido */
.cp-medios { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.cp-medio { display: flex !important; gap: 10px; align-items: flex-start; border: 2px solid #dfe5ef; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 400; }
.cp-medio:has(input:checked) { border-color: var(--cp-blue, #1D458C); background: #f1f5fc; }
.cp-medio input[type=radio] { width: 18px !important; height: 18px; min-width: 0; flex: 0 0 18px; margin: 3px 0 0 !important; padding: 0 !important; box-shadow: none; }
.cp-medio span { flex: 1; min-width: 0; }
.cp-medio span { display: flex; flex-direction: column; }
.cp-medio small { color: #5b6785; font-size: 13px; }
.cp-alert.cp-efectivo { background: #fff4e0; color: #7a4100; border: 2px solid #e08a00; }
.cp-alert.cp-efectivo ul { margin: 6px 0; padding-left: 18px; font-weight: 400; }
.cp-st.efectivo { background: #fff4e0; color: #a35400; }
.cp-regl { margin: 0 0 14px; }
.cp-regl a { display: inline-block; text-decoration: none; }
.cp-regl-hero { margin: 8px 0 0; }
.cp-regl-hero a { display: inline-block; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 5px 14px; font-weight: 700; text-decoration: none; }
.cp-tipo { display: inline-block; font-size: 11px; font-weight: 700; background: #eef3fb; color: #1d458c; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
