/* =====================================================================
   PORTAL PÚBLICO — BarrioLiga · Sistema de diseño "Noche de estadio"
   Mobile first: se diseña para celular (360–414 px) y se amplía.
   --brand sale del color principal de la liga (Datos de la Liga).
   Una sola familia de íconos: Font Awesome 5.
   ===================================================================== */

/* Fuentes alojadas en el propio sistema (sin depender de Google; licencia OFL en /fonts/barlow) */
/* Tipografía: Comic Neue (estilo Comic Sans) (guardada en el sistema, licencia OFL) */
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow/barlow-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow/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/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

/* ---------- 1. Variables (design tokens) ---------- */
:root {
    /* Color — paleta 09/10: celeste + naranja, texto azul petróleo */
    --primary: #0E6BB8;          /* naranja: botones y destacados */
    --primary-dark: #0E6BB8;
    --navy: #0B2A4A;             /* azul marino (aclarado): encabezado, hero, pie */
    --navy-2: #1A5A95;           /* azul marino secundario */
    --secondary: #0E6BB8;        /* azul informativo (solo enlaces/información) */
    --gold: #f2b705;             /* rankings y destacados */
    --silver: #a3acb9;
    --bronze: #d97a2b;
    --brand: var(--navy);        /* compatibilidad con las demás páginas */
    --brand-2: var(--navy-2);
    --brand-soft: #edf2f8;
    --brand-line: #d5deea;
    --accent: var(--primary);
    --accent-ink: #ffffff;
    --win: #078843;
    --draw: #6b7280;
    --loss: #c2410c;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #16A34A;
    --bg: #f3f6f9;               /* gris azulado muy claro: fondo general */
    --background: var(--bg);
    --card: #ffffff;             /* tarjetas */
    --card-soft: #f8fafc;        /* filas internas de las tarjetas */
    --surface: var(--card);
    --ink: #10213b;              /* texto principal */
    --text-primary: var(--ink);
    --muted: #64748b;            /* texto secundario */
    --text-secondary: var(--muted);
    --line: #e2e8f0;             /* bordes */
    --border: var(--line);
    --line-soft: #edf1f6;

    /* Tipografía */
    --font-display: 'Comic Neue', 'Comic Sans MS', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Comic Neue', 'Comic Sans MS', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 17px;
    --fs-h3: 20px; --fs-h2: 26px; --fs-h1: 36px; --fs-hero: 46px; --fs-score: 30px;

    /* Espaciado (escala de 4) */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;

    /* Forma y profundidad */
    --radius-sm: 10px; --radius: 16px; --radius-lg: 20px; --radius-pill: 999px;
    --shadow-1: 0 1px 2px rgba(15, 45, 82, .04), 0 4px 14px rgba(15, 45, 82, .05);
    --shadow-2: 0 10px 28px rgba(15, 45, 82, .10);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 60px;
    --bottom-nav-h: 64px;
}
@media (min-width: 768px) {
    :root { --fs-h2: 30px; --fs-h1: 44px; --fs-hero: 64px; --fs-score: 34px; --header-h: 68px; }
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.5;
    color: var(--ink); background: var(--bg);
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 992px) { body { padding-bottom: 0; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; line-height: 1.05; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 768px) { .container { padding: 0 var(--s-6); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- 3. Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: 44px; padding: 0 var(--s-5); border-radius: 12px; border: 1.5px solid transparent;
    font-family: var(--font-body); font-weight: 700; font-size: var(--fs-md); cursor: pointer; white-space: nowrap;
    transition: transform .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-color: #fff #fff transparent transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Primario: acción principal */
.btn-primary { background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(14,107,184, .22); }
.btn-primary:hover { background: var(--primary-dark); }
/* Secundario con borde (Iniciar sesión, Ver tabla completa) */
.btn-outline { background: #fff; border-color: var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: #eff5ff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 17px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
/* Secundario: alternativa */
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); font-weight: 800; }
.btn-white:hover { background: var(--brand-soft); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
/* De texto: acciones menores */
.btn-text { background: none; border: 0; min-height: auto; padding: 0; color: var(--brand); font-weight: 700; }
.btn-text:hover { text-decoration: underline; }
.btn-sm { min-height: 38px; padding: 0 var(--s-4); font-size: var(--fs-sm); border-radius: var(--radius-sm); }

/* ---------- 4. Encabezado (blanco, como la referencia) ---------- */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-header { position: sticky; top: 0; z-index: 60; background: #fff; color: var(--navy); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15, 27, 45, .05); }
.pt-header .container { display: flex; align-items: center; gap: var(--s-3); height: var(--header-h); }
.pt-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pt-brand img, .pt-brand .pt-logo-fb { width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px; }
.pt-logo-fb { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; }
.pt-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.pt-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-brand-motto { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-nav { display: none; }
.pt-actions { display: none; gap: var(--s-2); align-items: center; }
.pt-search-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); font-size: 17px; cursor: pointer; transition: background .15s; }
.pt-search-btn:hover { background: var(--brand-soft); }
.pt-burger { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; }
.pt-search { display: none; border-top: 1px solid var(--line); background: #fff; }
.pt-search.open { display: block; }
.pt-search .container { height: 60px; display: flex; align-items: center; gap: var(--s-2); }
.pt-search i { color: var(--muted); }
.pt-search input { flex: 1; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.pt-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,107,184, .15); }
.pt-mobile { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); background: #fff; }
.pt-mobile > .pt-mobile-inner { overflow: hidden; }
.pt-mobile.open { grid-template-rows: 1fr; border-top: 1px solid var(--line); }
.pt-mobile a.pt-mobile-link { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-4); font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line-soft); }
.pt-mobile a.pt-mobile-link i { width: 20px; text-align: center; color: var(--muted); }
.pt-mobile a.pt-mobile-link.active { color: var(--primary-dark); background: #f0faf3; box-shadow: inset 3px 0 0 var(--primary); }
.pt-mobile a.pt-mobile-link.active i { color: var(--primary); }
.pt-mobile .pt-mobile-actions { display: grid; gap: var(--s-2); padding: var(--s-4); }
@media (min-width: 1280px) {
    .pt-header .container { max-width: 1320px; }
    .pt-nav { display: flex; align-items: stretch; height: 100%; flex: 1; justify-content: center; gap: 2px; }
    .pt-nav > a, .pt-dd > a { display: flex; align-items: center; gap: 5px; height: 100%; padding: 0 9px; font-weight: 600; font-size: 14px; color: var(--navy); position: relative; transition: color .15s; white-space: nowrap; }
    .pt-nav a i { font-size: 9px; opacity: .6; }
    .pt-nav > a:hover, .pt-dd > a:hover { color: var(--primary-dark); }
    .pt-nav > a.active, .pt-dd > a.active { color: var(--primary-dark); font-weight: 700; }
    .pt-nav > a.active::after, .pt-dd > a.active::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
    .pt-dd { position: relative; }
    .pt-dd-menu { position: absolute; top: calc(100% - 4px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 70; }
    .pt-dd:hover .pt-dd-menu, .pt-dd:focus-within .pt-dd-menu { opacity: 1; visibility: visible; transform: none; }
    .pt-dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
    .pt-dd-menu a:hover { background: #f0faf3; color: var(--primary-dark); }
    .pt-actions { display: flex; }
    .pt-burger, .pt-mobile { display: none; }
    .pt-brand { flex: 0 0 auto; }
}

/* Barra inferior (celular): navegación tipo app */
.pt-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -4px 16px rgba(18, 16, 46, .06); }
.pt-bottom a, .pt-bottom button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: none; border: 0; font-family: inherit; cursor: pointer; }
.pt-bottom i { font-size: 18px; transition: transform .15s var(--ease); }
.pt-bottom .active { color: var(--brand); font-weight: 800; }
.pt-bottom .active i { transform: translateY(-1px); }
@media (min-width: 992px) { .pt-bottom { display: none; } }

/* ---------- 5. Portada ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand); padding: var(--s-6) 0 calc(var(--s-10) + 18px); }
.hero::before { /* líneas de cancha: identidad deportiva sin imágenes pesadas */
    content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 54px, #fff 55px 56px, transparent 57px) center / 100% 100% no-repeat,
        linear-gradient(#fff, #fff) center / 1.5px 100% no-repeat,
        linear-gradient(#fff, #fff) left 16px top 16px / calc(100% - 32px) 1.5px no-repeat,
        linear-gradient(#fff, #fff) left 16px bottom 16px / calc(100% - 32px) 1.5px no-repeat;
}
.hero .container { position: relative; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d9d7fb; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; padding: 4px 10px; border-radius: var(--radius-pill); }
.hero h1 { font-size: var(--fs-hero); margin: var(--s-2) 0 var(--s-1); text-transform: uppercase; }
.hero p { margin: 0; color: #d9d7fb; font-size: var(--fs-md); }
.hero-actions { display: flex; gap: var(--s-2); margin-top: var(--s-5); flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 140px; }
@media (min-width: 768px) {
    .hero { padding: var(--s-10) 0 64px; }
    .hero-actions .btn { flex: 0 0 auto; }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
}

/* Indicadores rápidos */
.stats { position: relative; margin-top: -30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.stat { background: var(--card); border-radius: var(--radius); padding: var(--s-3) var(--s-4); box-shadow: var(--shadow-2); display: flex; align-items: center; gap: var(--s-3); }
.stat i { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 38px; }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; color: var(--brand); }
.stat span { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin-top: -36px; } .stat b { font-size: 34px; } }

/* ---------- 6. Secciones y rejillas ---------- */
.section { padding-top: var(--s-8); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 var(--s-3); margin-bottom: var(--s-3); }
.section-head h2 { min-width: 0; }
.section-head h2 { font-size: var(--fs-h2); text-transform: uppercase; display: flex; align-items: center; gap: var(--s-2); }
.section-head h2 .live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.section-head > a { font-weight: 700; font-size: var(--fs-sm); color: var(--brand); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.section-head > a:hover { text-decoration: underline; }
.page-title { padding: var(--s-6) 0 var(--s-4); }
.page-title h1 { font-size: var(--fs-h1); text-transform: uppercase; }
.page-title p { margin: var(--s-1) 0 0; color: var(--muted); }
.grid { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
/* Un elemento de rejilla no se encoge por debajo de su contenido salvo con
   min-width: 0: sin esto la tabla (520 px) ensanchaba la página en celular
   y el navegador alejaba el zoom de toda la portada. */
.grid > *, .rail > *, .layout-2 > * { min-width: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .layout-2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
}
/* Carrusel horizontal (partidos de hoy en celular) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--s-4) var(--s-2); margin: 0 calc(var(--s-4) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; }
@media (min-width: 640px) { .rail { grid-auto-columns: 48%; } }
@media (min-width: 992px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } }

/* ---------- 7. Tarjetas ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-1); border: 1px solid var(--line-soft); }
a.card, .card-link { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
a.card:hover, .card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.empty { padding: var(--s-6) var(--s-4); text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.empty i { display: block; font-size: 26px; margin-bottom: var(--s-2); color: var(--brand-line); }
.card.empty { box-shadow: none; border: 1.5px dashed var(--line); background: transparent; }

/* ---------- 8. Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; line-height: 1.5; }
.badge-cat { background: var(--brand-soft); color: var(--brand); border-radius: var(--radius-pill); }
.badge-next, .badge-scheduled { background: #eef2ff; color: #3730a3; }
.badge-live, .badge-today { background: var(--accent); color: var(--accent-ink); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-done, .badge-finished { background: var(--ink); color: #fff; }
.badge-warn, .badge-postponed { background: #fff4e5; color: #9a3412; }
.badge-suspended { background: #fdecec; color: var(--danger); }
.badge-win { background: #e7f6ee; color: var(--win); }
.badge-loss { background: #fff1e8; color: var(--loss); }
.badge-draw { background: #eef0f5; color: #374151; }

/* ---------- 9. Escudos ---------- */
.crest { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 17px; }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.crest.sm { width: 28px; height: 28px; font-size: 11px; border-width: 1px; }
.crest.sm img { padding: 2px; }
.crest.lg { width: 84px; height: 84px; font-size: 28px; border-width: 2px; }
.crest.xl { width: 104px; height: 104px; font-size: 34px; border-width: 3px; border-color: #fff; }

/* ---------- 10. Tarjeta de partido ---------- */
.match { display: block; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-1); border: 1px solid var(--line-soft); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.match:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.match-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--s-4) 0; }
.match-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-2); padding: var(--s-4); }
.team { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; min-width: 0; }
.team-name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.team.is-winner .team-name { color: var(--ink); font-weight: 800; }
.team.is-loser .team-name { color: var(--muted); }
.score { display: flex; flex-direction: column; align-items: center; min-width: 84px; text-align: center; }
.score b { font-family: var(--font-display); font-size: var(--fs-score); font-weight: 800; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.score .time { font-family: var(--font-display); font-size: var(--fs-score); font-weight: 800; line-height: 1; color: var(--brand); }
.score small { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin-top: 4px; }
.vs { font-family: var(--font-display); font-weight: 800; color: var(--muted); font-size: 15px; letter-spacing: .1em; }
.match-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px var(--s-4); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line-soft); background: #fafbfd; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.match-foot i { color: var(--brand-2); margin-right: 3px; }
.match.is-today { border-color: color-mix(in srgb, var(--accent) 55%, white); }
.match.is-off .score .time { color: var(--muted); text-decoration: line-through; }

/* Fila compacta (últimos resultados / historial del equipo) */
.match-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line-soft); transition: background .15s; }
.match-row:first-child { border-top: 0; }
.match-row:hover { background: var(--brand-soft); }
.match-row .side { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-sm); min-width: 0; }
.match-row .side.away { justify-content: flex-end; text-align: right; }
.match-row .mid { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.match-row .mid b { font-family: var(--font-display); font-size: 22px; font-weight: 800; }

/* ---------- 11. Filtros ---------- */
.filters { display: flex; gap: var(--s-2); overflow-x: auto; padding: 2px 0 var(--s-3); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--brand-2); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin-bottom: var(--s-3); }
.filter-form select, .filter-form input { width: 100%; min-height: 44px; padding: 0 var(--s-3); border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-family: inherit; font-size: var(--fs-sm); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.filter-form select:focus, .filter-form input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.filter-form input[type="search"] { grid-column: 1 / -1; }
@media (min-width: 768px) { .filter-form { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }

/* ---------- 12. Tabla de posiciones ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.standings { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); min-width: 520px; }
.standings th { position: sticky; top: 0; background: #f7f7fc; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.standings td { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; background: var(--card); transition: background .12s; }
.standings tbody tr:last-child td { border-bottom: 0; }
.standings tbody tr:hover td { background: var(--brand-soft); }
/* Posición + equipo fijos al desplazar en celular */
.standings th:first-child, .standings td.pos { position: sticky; left: 0; z-index: 2; width: 40px; }
.standings th.club, .standings td.club { position: sticky; left: 40px; z-index: 2; text-align: left; min-width: 150px; box-shadow: 6px 0 8px -8px rgba(18, 16, 46, .25); }
.standings td.club a { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; color: var(--ink); }
.standings td.club a:hover { color: var(--brand); }
.standings td.pos span { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; align-items: center; justify-content: center; font-weight: 800; background: #eef0f5; }
.standings tr.top-1 td.pos span { background: var(--win); color: #fff; }
.standings tr.top-2 td.pos span, .standings tr.top-3 td.pos span { background: #d7efe2; color: var(--win); }
.standings td.pts { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--brand); background: color-mix(in srgb, var(--brand) 4%, white); }
.standings th.pts-h { color: var(--brand); }
.standings tr.mine td { background: #fff8e6; }
.standings tr.mine td.club a::after { content: "\f005"; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--accent); font-size: 11px; }
.standings-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
.standings-legend span { display: inline-flex; align-items: center; gap: 6px; }
.standings-legend i.sq { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- 13. Goleadores ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); align-items: end; margin-bottom: var(--s-3); }
.podium-item { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); padding: var(--s-3) var(--s-2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .18s var(--ease), box-shadow .18s; }
.podium-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.podium-item.p1 { background: var(--brand); color: #fff; border: 0; padding-top: var(--s-5); order: 2; }
.podium-item.p2 { order: 1; } .podium-item.p3 { order: 3; }
.podium-item .rank { font-family: var(--font-display); font-weight: 800; font-size: 14px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.podium-item.p1 .rank { background: var(--accent); color: var(--accent-ink); }
.podium-item .avatar { width: 56px; height: 56px; font-size: 20px; }
.podium-item.p1 .avatar { width: 68px; height: 68px; border-color: rgba(255,255,255,.6); }
.podium-item b { font-size: var(--fs-sm); line-height: 1.2; }
.podium-item small { font-size: 11.5px; color: var(--muted); }
.podium-item.p1 small { color: #d9d7fb; }
.podium-item .goals { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; }
.scorer { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line-soft); transition: background .15s; }
.scorer:first-child { border-top: 0; }
.scorer:hover { background: var(--brand-soft); }
.scorer-pos { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--muted); text-align: center; }
.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: 0 0 auto; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scorer-info { min-width: 0; }
.scorer-info b { display: block; font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorer-info > span { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.scorer-goals { text-align: center; }
.scorer-goals b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; color: var(--brand); }
.scorer-goals span { font-size: 11px; color: var(--muted); }

/* ---------- 14. Equipos ---------- */
.team-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-4); }
.team-card b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.team-card small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 3px; }
.team-card .cat-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.team-card .cat-tags span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand); }
.team-card .more { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-3); border-top: 1px solid var(--line-soft); font-weight: 700; font-size: var(--fs-sm); color: var(--brand); }
.pos-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; padding: 6px 8px; border-radius: 12px; background: var(--brand-soft); font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; color: var(--brand); }
.pos-pill small { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; color: var(--muted); margin-top: 3px; }

/* Cabecera de equipo / jugador / partido */
.team-hero { background: var(--brand); color: #fff; padding: var(--s-6) 0 var(--s-6); position: relative; overflow: hidden; }
.team-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 2px solid rgba(255,255,255,.08); pointer-events: none; }
.team-hero .container { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; position: relative; z-index: 1; }
.team-hero h1 { font-size: 34px; text-transform: uppercase; }
.team-hero p { margin: var(--s-1) 0 0; color: #d9d7fb; font-size: var(--fs-sm); }
.team-hero .crest.lg { border-color: #fff; }
@media (min-width: 768px) { .team-hero h1 { font-size: 46px; } }
.hero-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(255,255,255,.08); border-radius: var(--radius); margin-top: var(--s-5); overflow: hidden; width: 100%; }
.hero-stats div { padding: var(--s-3) var(--s-1); text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; }
.hero-stats span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #cfccf7; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.kpi { background: var(--card); border-radius: 14px; padding: var(--s-3) var(--s-2); text-align: center; border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); }
.kpi b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; color: var(--brand); }
.kpi span { font-size: 11px; color: var(--muted); font-weight: 600; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* Plantilla: fotos de tamaño uniforme */
.players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
@media (min-width: 640px) { .players { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .players { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.player { display: flex; align-items: center; gap: var(--s-3); background: var(--card); border-radius: 14px; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; min-width: 0; }
.player:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.player-photo { position: relative; width: 52px; height: 60px; flex: 0 0 52px; border-radius: 10px; overflow: hidden; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 60'%3E%3Ccircle cx='26' cy='22' r='10' fill='%23c9c6f5'/%3E%3Cpath d='M6 60c2-14 10-20 20-20s18 6 20 20z' fill='%23c9c6f5'/%3E%3C/svg%3E") center / cover; color: transparent; font-size: 0; }
.player-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-num { position: absolute; left: 0; bottom: 0; min-width: 22px; padding: 1px 5px; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 13px; border-top-right-radius: 8px; text-align: center; }
.player-body { min-width: 0; }
.player-body b { display: block; font-size: var(--fs-sm); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.player-body span { font-size: 11.5px; color: var(--muted); }

/* ---------- 15. Detalle del partido ---------- */
.event { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.event .min { min-width: 36px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.event .count { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--win); }
.ycard, .rcard { display: inline-block; width: 11px; height: 15px; border-radius: 2px; flex: 0 0 auto; }
.ycard { background: #facc15; } .rcard { background: #dc2626; }
.lineup ul { list-style: none; margin: 0; padding: 0 0 var(--s-2); }
.lineup li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); border-top: 1px solid var(--line-soft); }
.lineup .num { min-width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.score-hero b { font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: .04em; }
.score-hero .time { font-family: var(--font-display); font-size: 40px; font-weight: 800; }

/* ---------- 16. Noticias ---------- */
.news-body { line-height: 1.75; }

/* ---------- 17. Paginación ---------- */
.pagination-wrap { margin-top: var(--s-5); display: flex; justify-content: center; }
.pagination-wrap nav { font-size: var(--fs-sm); }
.pagination-wrap a, .pagination-wrap span[aria-current] span { border-radius: 10px; }

/* ---------- 18. Pie de página (azul marino, 4 columnas) ---------- */
.pt-footer { margin-top: var(--s-10); background: var(--navy); color: #c3cbd8; font-size: var(--fs-sm); }
.pt-footer .container { padding-top: var(--s-8); padding-bottom: var(--s-4); display: grid; gap: var(--s-6); }
.pt-footer h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: #fff; text-transform: none; letter-spacing: 0; margin-bottom: var(--s-3); }
.foot-brand { display: flex; align-items: center; gap: var(--s-3); }
.foot-brand img, .foot-brand .pt-logo-fb { width: 52px; height: 52px; object-fit: contain; }
.foot-brand .pt-logo-fb { background: #fff; color: var(--navy); }
.foot-brand b { display: block; color: #fff; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; line-height: 1; }
.foot-brand small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c3cbd8; }
.foot-about p { margin: var(--s-3) 0 0; max-width: 340px; line-height: 1.55; }
.foot-social { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.foot-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.foot-social a:hover { background: var(--primary); transform: translateY(-2px); }
.foot-links { display: grid; gap: 2px; }
.foot-links.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
.foot-links a, .foot-links span { min-height: 30px; display: flex; align-items: center; color: #c3cbd8; }
.foot-links a:hover { color: #fff; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.foot-contact li { display: flex; gap: var(--s-3); align-items: flex-start; }
.foot-contact i { width: 16px; margin-top: 3px; color: #fff; }
.foot-contact a { color: #c3cbd8; } .foot-contact a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: var(--s-4); font-size: var(--fs-xs); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-legal-links a { color: #c3cbd8; } .foot-legal-links a:hover { color: #fff; }
@media (min-width: 768px) { .pt-footer .container { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-legal { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .pt-footer .container { grid-template-columns: 1.4fr 1.3fr .9fr 1.2fr; max-width: 1320px; } }

/* ---------- 19. Aparición suave de contenido ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main > .container, main > section { animation: rise .35s var(--ease) both; }

/* ---------- 20. Ajustes de contexto ---------- */
/* Datos del partido dentro de la cabecera oscura: fondo transparente y texto claro */
.team-hero .match-foot { background: transparent; border-top: 1px solid rgba(255, 255, 255, .15); color: #e6e4ff; margin-top: var(--s-2); }
.team-hero .match-foot i { color: var(--accent); }
.team-hero .match-body { padding: var(--s-2) 0; }
.team-hero .team-name { color: #fff; font-size: var(--fs-md); }
.team-hero a.team:hover .team-name { text-decoration: underline; }
/* Plantilla en celular: nombres en hasta 3 líneas */
@media (max-width: 639px) {
    .player-body b { -webkit-line-clamp: 3; font-size: 13px; }
    .player { padding-right: var(--s-2); }
}
/* Portada en celular: los dos botones lado a lado (menos altura antes del contenido) */
@media (max-width: 767px) {
    .hero-actions { flex-wrap: nowrap; }
    .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 var(--s-2); font-size: 14px; }
}

/* =====================================================================
   PORTADA (referencia): hero con foto, próxima jornada, indicadores,
   paneles de partidos, resultados, tabla, goleadores, equipos y noticias.
   ===================================================================== */
.home-hero { position: relative; overflow: hidden; color: #fff; background: #06142a; }
/* Sin foto subida: estadio de noche dibujado (luces, tribunas y césped) */
.home-hero:not(.has-photo) {
    background:
        radial-gradient(ellipse 18% 22% at 18% 4%, rgba(255,255,255,.55), transparent 70%),
        radial-gradient(ellipse 14% 18% at 46% 2%, rgba(255,255,255,.45), transparent 70%),
        radial-gradient(ellipse 18% 22% at 80% 4%, rgba(255,255,255,.55), transparent 70%),
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(110,160,255,.28), transparent 75%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, #071226 0%, #0b2142 46%, #0d3a2a 62%, #11632f 63%, #0f5a2b 100%);
}
.home-hero:not(.has-photo)::after { /* franjas del césped */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 37%;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 80px, transparent 80px 160px);
    pointer-events: none;
}
.home-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::before { /* capa oscura para leer el texto */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(4,12,26,.88) 0%, rgba(4,12,26,.62) 48%, rgba(4,12,26,.25) 100%);
}
.home-hero-grid { position: relative; z-index: 2; display: grid; gap: var(--s-5); padding-top: var(--s-8); padding-bottom: var(--s-8); }
.home-hero-kicker { display: flex; align-items: center; gap: 8px; color: #7CDAF9; font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.home-hero h1 { font-size: 46px; text-transform: uppercase; margin: 6px 0 4px; line-height: .95; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.home-hero-sub { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.home-hero-text { margin: 8px 0 0; font-size: 16px; color: #e6ebf3; max-width: 520px; }
.home-hero-points { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 600; color: #e6ebf3; }
.home-hero-points i { color: #7CDAF9; margin-right: 6px; }
.home-hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.home-hero-actions .btn { flex: 1 1 150px; }
@media (min-width: 768px) {
    .home-hero h1 { font-size: 72px; }
    .home-hero-sub { font-size: 30px; }
    .home-hero-actions .btn { flex: 0 0 auto; }
    .home-hero-grid { padding-top: 48px; padding-bottom: 56px; }
}
@media (min-width: 1100px) {
    .home-hero-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; max-width: 1320px; }
    .home-hero h1 { font-size: 84px; }
}

/* Tarjeta PRÓXIMA JORNADA */
.next-round { background: rgba(8, 26, 54, .86); border: 1px solid rgba(124,218,249, .45); border-radius: 14px; padding: 18px 20px; backdrop-filter: blur(4px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.next-round h2 { font-size: 22px; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.next-round-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.next-round-row i { font-size: 22px; width: 24px; text-align: center; margin-top: 2px; color: #fff; }
.next-round-row b { display: block; font-size: 15px; text-transform: uppercase; }
.next-round-row span { font-size: 14px; color: #dbe4f0; }

/* Indicadores */
.kpi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.kpi-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); padding: 14px; display: flex; align-items: center; gap: 12px; transition: transform .18s var(--ease), box-shadow .18s; min-width: 0; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.kpi-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.kpi-ico.ico-blue { background: #e8f0ff; color: var(--secondary); }
.kpi-ico.ico-green { background: #e7f7ec; color: var(--primary); }
.kpi-card b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; color: var(--navy); }
.kpi-card span:not(.kpi-ico) { font-size: 13px; color: var(--muted); }
@media (min-width: 992px) {
    .kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
    .kpi-card { padding: 18px 22px; gap: 18px; }
    .kpi-ico { width: 60px; height: 60px; flex-basis: 60px; font-size: 28px; border-radius: 16px; }
    .kpi-card b { font-size: 36px; }
    .kpi-card span:not(.kpi-ico) { font-size: 15px; }
}

/* Filas de paneles */
.home-row { display: grid; gap: 16px; margin-top: 16px; }
.home-row > * { min-width: 0; }
@media (min-width: 768px) and (max-width: 1099px) { .home-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-row > .panel:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .home-row { grid-template-columns: 1fr 1fr 1.15fr; gap: 16px; } }
@media (min-width: 1100px) { main > .container { max-width: 1320px; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { font-family: var(--font-body); font-weight: 800; font-size: 18.5px; text-transform: none; letter-spacing: 0; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.panel-head h2 i { font-size: 20px; color: var(--navy); }
.panel-head > a { font-size: 13px; font-weight: 600; color: var(--secondary); white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
.panel-head > a:hover { text-decoration: underline; }
.panel-sub { margin: -6px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.panel-select select { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 28px 0 10px; font: inherit; font-size: 13px; background: #fff; color: var(--navy); max-width: 170px; }
.panel-foot { display: flex; justify-content: center; padding-top: 12px; }
.panel-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 28px 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.panel-empty i { font-size: 30px; color: #c9d2df; margin-bottom: 6px; }
.panel-empty small { font-weight: 500; font-size: 12.5px; }

/* Etiquetas de categoría (colores fijos por categoría) */
.cat-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.cat-green { background: #16a34a; } .cat-blue { background: #2563eb; } .cat-orange { background: #f59e0b; color: #1f1300; }
.cat-pink { background: #ec4899; } .cat-purple { background: #7c3aed; } .cat-teal { background: #0891b2; }
.badge-scheduled { background: #2563eb; color: #fff; }
.badge-finished-green { background: #16a34a; color: #fff; }

/* Próximos partidos */
.fixture-list { display: grid; }
.fixture { display: block; padding: 12px 6px; border-top: 1px solid var(--line-soft); border-radius: 8px; transition: background .15s; }
.fixture:first-child { border-top: 0; }
.fixture:hover { background: #f7f9fc; }
.fixture-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fixture-round { font-size: 11.5px; color: var(--muted); }
.fixture-body { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); align-items: center; margin-top: 8px; }
.fx-team { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-weight: 600; font-size: 13.5px; color: var(--navy); min-width: 0; }
.fx-team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fx-mid { text-align: center; display: flex; flex-direction: column; }
.fx-mid b { font-family: var(--font-display); font-size: 20px; color: var(--navy); }
.fx-mid small { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .1em; }
.fixture-field { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.fixture-field i { color: var(--primary); }

/* Últimos resultados */
.result { display: block; padding: 12px 8px; border-radius: 10px; background: #fafbfd; border: 1px solid var(--line-soft); margin-bottom: 10px; transition: background .15s, border-color .15s; }
.result:hover { background: #f2f7f3; border-color: #cfe9d7; }
.result:last-child { margin-bottom: 0; }
.result-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.result-meta { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-date { white-space: nowrap; }
.result-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 10px; }
.rs-team { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--navy); min-width: 0; }
.rs-team > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-team.home { justify-content: flex-end; text-align: right; }
.rs-score { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--navy); white-space: nowrap; letter-spacing: .04em; }
.crest.md { width: 36px; height: 36px; font-size: 12px; }

/* Tabla compacta (portada): 10 columnas en un tercio de pantalla */
.standings.is-compact { min-width: 0; font-size: 13px; }
.standings.is-compact th, .standings.is-compact td { padding: 8px 4px; }
.standings.is-compact th.club, .standings.is-compact td.club { min-width: 118px; position: static; box-shadow: none; }
.standings.is-compact th:first-child, .standings.is-compact td.pos { position: static; }
.standings.is-compact td.club a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.standings.is-compact td.pts { font-size: 16px; background: transparent; color: var(--navy); }
.standings tr.top-1 td.pos span, .standings tr.top-2 td.pos span { background: var(--primary); color: #fff; }
.standings tr.top-3 td.pos span { background: var(--gold); color: #1f1300; }
.panel .table-wrap { border-radius: 8px; border: 1px solid var(--line-soft); }
@media (max-width: 1099px) { .standings.is-compact { min-width: 520px; } .standings.is-compact th:first-child, .standings.is-compact td.pos { position: sticky; } .standings.is-compact th.club, .standings.is-compact td.club { position: sticky; box-shadow: 6px 0 8px -8px rgba(15,27,45,.25); } }

/* Goleadores (medallas) */
.top-scorer { display: grid; grid-template-columns: 30px 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line-soft); border-radius: 8px; transition: background .15s; }
.top-scorer:first-of-type { border-top: 0; }
.top-scorer:hover { background: #f7f9fc; }
.medal { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.medal-1 { background: var(--gold); color: #1f1300; } .medal-2 { background: var(--silver); } .medal-3 { background: var(--bronze); } .medal-4 { background: #cbd5e1; color: var(--navy); }
.ts-photo { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #e9eef5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Ccircle cx='28' cy='21' r='10' fill='%23b8c4d6'/%3E%3Cpath d='M8 56c2-13 10-19 20-19s18 6 20 19z' fill='%23b8c4d6'/%3E%3C/svg%3E") center / cover; }
.ts-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts-info b { display: block; font-size: 15px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-info small { font-size: 13px; color: var(--muted); }
.ts-goals { text-align: center; }
.ts-goals b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; color: var(--navy); }
.ts-goals small { font-size: 12px; color: var(--muted); }

/* Equipos destacados */
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 480px) { .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }
.featured-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; min-width: 0; }
.featured-team:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #cfe9d7; }
.featured-team .crest.lg { width: 56px; height: 56px; font-size: 18px; margin-bottom: 4px; border-width: 1px; }
.featured-team b { font-size: 13.5px; color: var(--navy); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.featured-team small { font-size: 11.5px; color: var(--muted); }
.featured-team > span:last-child { font-size: 12.5px; font-weight: 700; color: var(--navy); }

/* Noticias */
.news-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 10px; background: #fafbfd; border: 1px solid var(--line-soft); margin-bottom: 10px; transition: background .15s; }
.news-item:last-child { margin-bottom: 0; }
.news-item:hover { background: #f2f7f3; }
.news-thumb { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--navy); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-text { min-width: 0; }
.news-text b { display: block; font-size: 14px; color: var(--navy); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-text small { display: block; font-size: 12px; color: var(--muted); margin: 2px 0; }
.news-text > span { font-size: 13px; color: var(--muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }


/* Encabezado compacto en computadora (10 secciones + marca + 3 acciones caben en 1280 px) */
@media (min-width: 1280px) {
    .pt-header .container { gap: 10px; padding: 0 20px; }
    .pt-brand-name { font-size: 19px; }
    .pt-brand img, .pt-brand .pt-logo-fb { width: 40px; height: 40px; flex-basis: 40px; }
    .pt-nav { gap: 0; min-width: 0; }
    .pt-nav > a, .pt-dd > a { padding: 0 7px; font-size: 13.5px; }
    .pt-nav > a.active::after, .pt-dd > a.active::after { left: 7px; right: 7px; }
    .pt-actions { gap: 6px; flex: 0 0 auto; }
    .pt-actions .btn-sm { padding: 0 12px; font-size: 13px; min-height: 38px; }
}
/* Entre 1200 y 1339 px el lema ocupa espacio que el menú necesita */
@media (min-width: 1280px) and (max-width: 1339px) { .pt-brand-motto { display: none; } }
/* Título de portada en una línea en computadora (tamaño adaptable al ancho) */
@media (min-width: 1100px) { .home-hero h1 { font-size: clamp(56px, 5.6vw, 88px); white-space: nowrap; } }
/* Resultados: nombres completos en hasta 2 líneas (no cortados) */
.rs-team { font-size: 13px; line-height: 1.2; }
.rs-team > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fx-team > span:last-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }


/* =====================================================================
   SEGUNDA PASADA DE DISEÑO — color, fondos, profundidad e identidad
   Azul marino + verde deportivo + gris azulado claro + tarjetas blancas.
   ===================================================================== */

/* 1. Fondo general gris azulado (nunca blanco puro) */
body { background: var(--bg); }

/* 3. Portada: la fotografía es el elemento principal */
.home-hero { background: var(--navy); }
.home-hero picture { position: absolute; inset: 0; }
.home-hero-photo { object-position: 62% 40%; }
.home-hero::before {
    background:
        linear-gradient(0deg, rgba(5, 52, 28, .62) 0%, rgba(5, 52, 28, 0) 34%),                 /* césped: verde oscuro abajo */
        linear-gradient(90deg, rgba(15, 45, 82, .94) 0%, rgba(15, 45, 82, .82) 30%,
                               rgba(15, 45, 82, .30) 56%, rgba(15, 45, 82, .10) 70%, rgba(15, 45, 82, .45) 100%);
}
.home-hero:not(.has-photo)::after { display: none; }
.home-hero-kicker { color: #7CDAF9; }
.home-hero-points i { color: #7CDAF9; }
.home-hero-grid { padding-bottom: 92px; }                     /* espacio para que los indicadores monten encima */
@media (min-width: 768px) { .home-hero-grid { padding-top: 44px; padding-bottom: 104px; } }
@media (max-width: 767px) { .home-hero-photo { object-position: 58% 40%; } .home-hero::before { background: linear-gradient(0deg, rgba(5,52,28,.7) 0%, rgba(5,52,28,0) 30%), linear-gradient(180deg, rgba(15,45,82,.88) 0%, rgba(15,45,82,.70) 55%, rgba(15,45,82,.82) 100%); } }

/* Próxima jornada: vidrio azul marino integrado a la foto */
.next-round { background: rgba(15, 45, 82, .78); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .30); backdrop-filter: blur(6px); }
.next-round h2 { border-bottom-color: rgba(255, 255, 255, .14); }
.next-round-row i { color: #7CDAF9; }

/* 4. Transición: los indicadores se superponen al borde inferior de la portada */
.kpi-row { position: relative; z-index: 3; margin-top: -62px; }
@media (min-width: 992px) { .kpi-row { margin-top: -66px; } }

/* 5. Indicadores: blanco, radio 14, ícono en círculo suave azul/verde */
.kpi-card { background: var(--card); border: 1px solid #e6ebf1; border-radius: 14px; box-shadow: 0 2px 4px rgba(15,45,82,.04), 0 10px 24px rgba(15,45,82,.08); }
.kpi-ico { border-radius: 50%; }
.kpi-ico.ico-blue { background: #e9f0fc; color: #0E6BB8; }
.kpi-ico.ico-green { background: #e6f7ee; color: var(--primary-dark); }
.kpi-ico.ico-navy { background: #e7ecf4; color: var(--navy-2); }
.kpi-card b { color: var(--navy); }

/* 6-7. Tarjetas principales: un único sistema visual y profundidad sutil */
.panel { background: var(--card); border: 1px solid #e6ebf1; border-radius: 12px; box-shadow: var(--shadow-1); padding: 18px; }
.panel-head h2, .panel-head h2 i { color: var(--navy); }
.panel-head h2 i { color: var(--primary-dark); }
.panel-head { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
/* Convención única de enlaces "Ver todos": verde oscuro */
.panel-head > a, .section-head > a { color: var(--primary-dark); font-weight: 700; }
.panel-head > a::after { content: "\f054"; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 9px; margin-left: 6px; }
.home-row { gap: 20px; margin-top: 20px; }
.panel-sub { color: var(--navy-2); }

/* 8. Próximos partidos: filas con fondo suave, hora protagonista */
.fixture { background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 10px; margin-bottom: 10px; }
.fixture:last-child { margin-bottom: 0; }
.fixture:hover { background: #f1f8f4; border-color: #cdebd9; }
.fixture-list .fixture:first-child { border-top: 1px solid var(--line-soft); }
.fx-mid b { font-size: 26px; color: var(--navy); letter-spacing: .02em; }
.fx-team { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.fixture-field i { color: var(--primary-dark); }
/* Estados: color solo en el badge */
.badge-scheduled { background: #e9f0fc; color: #0E6BB8; }
.badge-finished-green, .badge-finished { background: #e6f7ee; color: var(--primary-dark); }
.badge-suspended { background: #fdecec; color: var(--danger); }
.badge-postponed { background: #fff4e0; color: #b45309; }
/* Categorías: etiquetas suaves (no bloques de color fuerte) */
.cat-tag { font-weight: 700; border: 1px solid transparent; }
.cat-green { background: #e6f7ee; color: #067a3c; border-color: #c9ecd7; }
.cat-blue { background: #e9f0fc; color: #1a4fb0; border-color: #cfdcf6; }
.cat-orange { background: #fff4e0; color: #9a4b07; border-color: #fbe0b5; }
.cat-pink { background: #fdebf3; color: #a3195b; border-color: #f8cfe2; }
.cat-purple { background: #f1ebfd; color: #5b21b6; border-color: #ded2fa; }
.cat-teal { background: #e5f5f8; color: #0e6476; border-color: #c6e8ef; }

/* Últimos resultados: marcador como protagonista */
.result { background: var(--card-soft); border: 1px solid var(--line-soft); }
.result:hover { background: #f1f8f4; border-color: #cdebd9; }
.rs-score { font-size: 30px; color: var(--navy); }
.rs-team { font-weight: 700; color: var(--ink); }

/* 9. Tabla: encabezado claro, filas blancas, separadores suaves */
.standings th { background: #f7f9fc; color: #64748b; border-bottom: 1px solid #e6ebf1; }
.standings td { border-bottom: 1px solid #f0f3f7; }
.standings td.club a { font-weight: 700; color: var(--ink); }
.standings td.pts, .standings.is-compact td.pts { font-weight: 800; color: var(--navy); background: transparent; }
.standings tbody tr:hover td { background: #f6faf8; }
.standings tr.top-1 td.pos span, .standings tr.top-2 td.pos span { background: var(--primary); color: #fff; }
.standings tr.top-3 td.pos span { background: #d9f3e5; color: var(--primary-dark); }
.panel .table-wrap { border-color: #e6ebf1; }

/* 10. Goleadores: medallas discretas, resto neutro */
.medal-1 { background: #e3b341; color: #2b2000; }
.medal-2 { background: #b4bdc9; color: #1f2937; }
.medal-3 { background: #c98a55; color: #fff; }
.medal-4 { background: #e7ecf2; color: var(--navy); }
.top-scorer { border-top-color: var(--line-soft); }
.top-scorer:hover { background: var(--card-soft); }
.ts-photo { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e6ebf1; }
.ts-goals b { color: var(--navy); }

/* 11. Escudos: logo real o marcador con forma de escudo */
.crest { border: 0; background: transparent; border-radius: 0; overflow: visible; }
.crest .crest-shield { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(15,45,82,.18)); }
.crest.has-logo .crest-shield { display: none; }
.crest img { padding: 0; background: transparent; object-fit: contain; }
.crest.has-logo { background: transparent; }
.team-hero .crest.is-placeholder .crest-shield path:first-child { fill: #102f57; }
.featured-team { background: var(--card-soft); border-color: var(--line-soft); }
.featured-team:hover { background: #fff; border-color: #cdebd9; }
.featured-team .crest.lg { width: 58px; height: 64px; border: 0; }
.featured-team > span:last-child { color: var(--primary-dark); }

/* 12. Noticias: marcador de imagen con cancha de fútbol */
.news-item { background: var(--card-soft); border: 1px solid var(--line-soft); }
.news-item:hover { background: #f1f8f4; border-color: #cdebd9; }
.news-thumb { background: transparent; }
.pitch-ph {
    position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 15px, rgba(255,255,255,.55) 15.5px 16.5px, transparent 17px),
        linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) center / 1px 100% no-repeat,
        repeating-linear-gradient(90deg, #138a48 0 16px, #10803f 16px 32px);
    border-radius: inherit; text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.pitch-ph i { position: relative; z-index: 1; }

/* 13. Pie: azul marino profundo, enlaces con hover verde */
.pt-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.06); color: #aab6c8; margin-top: 56px; }
.pt-footer h3 { color: #fff; }
.foot-links a, .foot-links span, .foot-contact a, .foot-legal-links a { color: #aab6c8; }
.foot-links a:hover, .foot-contact a:hover, .foot-legal-links a:hover { color: #7CDAF9; }
.foot-legal { border-top-color: rgba(255,255,255,.08); }

/* 14. Botones unificados (radio 10) */
.btn { border-radius: 10px; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: #0E6BB8; color: #0E6BB8; background: #fff; }
.btn-outline:hover { background: #eef4fd; }
.btn-ghost { border-color: var(--line); }

/* 15. Encabezado claro y refinado */
.pt-header { box-shadow: 0 1px 0 rgba(15,45,82,.04), 0 6px 18px rgba(15,45,82,.05); border-bottom-color: #e9eef4; }
.pt-nav > a.active, .pt-dd > a.active { color: var(--primary-dark); }
.pt-nav > a.active::after, .pt-dd > a.active::after { background: var(--primary); }
@media (min-width: 1340px) { .pt-nav > a, .pt-dd > a { padding: 0 10px; } .pt-nav > a.active::after, .pt-dd > a.active::after { left: 10px; right: 10px; } }

/* Otras páginas: mismas reglas de fondo y tarjetas */
.card, .match, .player, .kpi, .podium-item:not(.p1) { border-color: #e6ebf1; }
.chip.active { background: var(--navy); border-color: var(--navy); }
.team-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }

/* =====================================================================
   PARTIDOS POR JORNADA
   ===================================================================== */
.jr-nav { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin-bottom: 6px; background: var(--bg); scrollbar-width: none; }
.jr-nav::-webkit-scrollbar { display: none; }
.jr-chip { flex: 0 0 auto; min-width: 46px; height: 40px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; border: 1px solid #e6ebf1; background: #fff; color: var(--navy); transition: background .15s, border-color .15s, transform .15s; }
.jr-chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.jr-chip.is-done { background: #e6f7ee; color: var(--primary-dark); border-color: #c9ecd7; }
.jr-chip.is-live { background: #fff4e0; color: #9a4b07; border-color: #fbe0b5; }
.jr-chip.is-current { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(14,107,184, .3); }
.journey { margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 64px); }
.journey-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; margin-bottom: 12px; border-radius: 12px; background: var(--navy); color: #fff; }
.journey.is-current .journey-head { background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: inset 4px 0 0 var(--primary); }
.journey-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.journey-title h2 { font-size: 24px; text-transform: uppercase; color: #fff; }
.journey-leg { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7CDAF9; }
.journey-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: #c9d4e3; }
.journey-meta i { color: #7CDAF9; margin-right: 4px; }
.journey-meta .badge-scheduled { background: rgba(255,255,255,.12); color: #fff; }

/* =====================================================================
   INSCRIPCIÓN DE EQUIPOS (formularios del dirigente)
   ===================================================================== */
.enroll-wrap { max-width: 860px; margin: 0 auto; }
.enroll-head { padding: 28px 0 14px; }
.enroll-head h1 { font-size: 34px; text-transform: uppercase; color: var(--navy); }
.enroll-head p { margin: 6px 0 0; color: var(--muted); }
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 6px 0 18px; counter-reset: st; }
.stepper a, .stepper span.st { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.stepper .dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.stepper .is-done .dot { background: #e6f7ee; border-color: #9fdcb8; color: var(--primary-dark); }
.stepper .is-current .dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(14,107,184,.3); }
.stepper .is-current { color: var(--navy); }
@media (max-width: 480px) { .stepper .st-label { display: none; } }
.form-card { background: #fff; border: 1px solid #e6ebf1; border-radius: 14px; box-shadow: var(--shadow-1); padding: 20px; }
.form-card + .form-card { margin-top: 14px; }
.form-card h2 { font-family: var(--font-body); font-size: 18px; font-weight: 800; text-transform: none; color: var(--navy); margin-bottom: 4px; }
.form-card .form-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=date], .field input[type=number], .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #d5deea; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { padding: 10px 14px; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,107,184,.15); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--danger); }
.field-hint { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.field input[type=color] { width: 56px; height: 46px; padding: 4px; border: 1px solid #d5deea; border-radius: 10px; background: #fff; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: 0 0 auto; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }
.form-actions .btn { flex: 1 1 160px; }
@media (min-width: 640px) { .form-actions .btn { flex: 0 0 auto; } }
.alert-ok, .alert-err, .alert-warn, .alert-info { border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: #e6f7ee; color: #065f33; border: 1px solid #c9ecd7; }
.alert-err { background: #fdecec; color: #991b1b; border: 1px solid #f8cccc; }
.alert-warn { background: #fff4e0; color: #8a4204; border: 1px solid #fbe0b5; }
.alert-info { background: #eaf2ff; color: #1e3a8a; border: 1px solid #c9dafc; }
.alert-err ul { margin: 4px 0 0; padding-left: 18px; font-weight: 500; }
/* Subida de archivos */
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card-soft); }
.upload-row + .upload-row { margin-top: 10px; }
.upload-row.is-observed { border-color: #f8cccc; background: #fff7f7; }
.upload-row b { color: var(--navy); }
.upload-row .req { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; margin-left: 6px; }
.req.is-required { background: #fdecec; color: var(--danger); } .req.is-optional { background: #edf1f6; color: var(--muted); }
.upload-row input[type=file] { width: 100%; font: inherit; font-size: 14px; }
.upload-row input[type=file]::file-selector-button { border: 0; border-radius: 8px; background: var(--navy); color: #fff; padding: 9px 14px; margin-right: 10px; font-weight: 700; cursor: pointer; }
.file-ok { font-size: 13px; color: var(--primary-dark); font-weight: 600; }
.file-ok a { color: var(--secondary); text-decoration: underline; }
@media (min-width: 640px) { .upload-row { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; } }
.logo-preview { width: 84px; height: 84px; border-radius: 14px; border: 1px solid var(--line); background: #fff; object-fit: contain; padding: 6px; }
/* Estado de la solicitud */
.app-status { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 20px; border-radius: 14px; background: var(--navy); color: #fff; margin-bottom: 14px; }
.app-status .num { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.app-status small { color: #c9d4e3; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.st-draft { background: #edf1f6; color: var(--navy); } .st-submitted, .st-resubmitted { background: #fff4e0; color: #8a4204; }
.st-observed { background: #fdecec; color: #991b1b; } .st-approved { background: #e6f7ee; color: #065f33; } .st-rejected { background: #fdecec; color: #991b1b; }
.obs-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.obs-item:first-child { border-top: 0; }
.obs-item i { margin-top: 3px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; color: var(--ink); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--muted); }
.summary-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.summary-list dt { color: var(--muted); font-weight: 600; } .summary-list dd { margin: 0; color: var(--ink); font-weight: 600; }
.check-ok { color: var(--primary-dark); } .check-miss { color: var(--danger); }

/* =====================================================================
   MI EQUIPO (portal del dirigente)
   ===================================================================== */
.mt-head { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding-top: 20px; }
.mt-head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mt-head .crest.lg { width: 64px; height: 70px; }
.mt-head-text { flex: 1; min-width: 0; }
.mt-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7CDAF9; }
.mt-head h1 { font-size: 28px; text-transform: uppercase; color: #fff; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-sub { font-size: 13px; color: #c9d4e3; }
.mt-tabs { display: none; gap: 4px; margin-top: 16px; }
.mt-tabs a { padding: 12px 16px; font-weight: 700; font-size: 14.5px; color: #c9d4e3; border-radius: 10px 10px 0 0; display: inline-flex; gap: 8px; align-items: center; }
.mt-tabs a:hover { color: #fff; background: rgba(255,255,255,.06); }
.mt-tabs a.active { background: var(--bg); color: var(--navy); }
@media (min-width: 992px) { .mt-tabs { display: flex; } .mt-head h1 { font-size: 34px; } }
@media (max-width: 991px) { .mt-head { padding-bottom: 18px; } }
.mt-body { padding-top: 18px; }
.mt-grid { display: grid; gap: 16px; }
@media (min-width: 992px) { .mt-grid.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }

/* Semáforo */
.mt-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-eligible { background: #e6f7ee; color: #067a3c; }
.st-suspended { background: #fdecec; color: #b91c1c; }
.st-pending { background: #fff4e0; color: #9a4b07; }
.st-observed { background: #ffedd5; color: #c2410c; }
.st-draftp { background: #edf1f6; color: #475569; }

/* Resumen del domingo */
.mt-ready { display: flex; align-items: center; gap: 16px; }
.mt-ready-num { font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: 1; color: #067a3c; }
.mt-ready-num small { font-size: 26px; color: var(--muted); }
.mt-bar { height: 10px; border-radius: 999px; background: #edf1f6; overflow: hidden; margin-top: 10px; display: flex; }
.mt-bar span { display: block; height: 100%; }
.mt-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid; margin-bottom: 10px; font-size: 14px; }
.mt-alert:last-child { margin-bottom: 0; }
.mt-alert i { margin-top: 2px; }
.mt-alert b { display: block; }
.mt-alert a { font-weight: 700; color: inherit; text-decoration: underline; }
.al-red { background: #fef2f2; border-color: #fbd0d0; color: #991b1b; }
.al-orange { background: #fff7ed; border-color: #fdd9b5; color: #9a3412; }
.al-amber { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.al-green { background: #f0faf4; border-color: #c9ecd7; color: #065f33; }
.al-blue { background: #eff5ff; border-color: #cfdcf6; color: #1a4fb0; }

/* Lista de jugadores */
.mt-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.mt-filters::-webkit-scrollbar { display: none; }
.mt-filters a { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font-weight: 700; font-size: 13.5px; color: var(--navy); }
.mt-filters a b { background: #edf1f6; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.mt-filters a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.mt-filters a.active b { background: rgba(255,255,255,.2); }
.mt-player { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #e6ebf1; border-radius: 12px; margin-bottom: 8px; transition: border-color .15s, transform .15s; }
.mt-player:hover { border-color: #cdebd9; transform: translateY(-1px); }
.mt-player .ph { position: relative; width: 48px; height: 56px; border-radius: 10px; overflow: hidden; background: #e9eef5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56'%3E%3Ccircle cx='24' cy='20' r='9' fill='%23b8c4d6'/%3E%3Cpath d='M6 56c2-12 9-17 18-17s16 5 18 17z' fill='%23b8c4d6'/%3E%3C/svg%3E") center / cover; }
.mt-player .ph img { width: 100%; height: 100%; object-fit: cover; }
.mt-player .ph b { position: absolute; left: 0; bottom: 0; background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 13px; padding: 0 5px; border-top-right-radius: 6px; }
.mt-player .nm { min-width: 0; }
.mt-player .nm b { display: block; color: var(--ink); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-player .nm small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-player .nm .why { color: #b45309; white-space: normal; }
.mt-fab { position: fixed; right: 16px; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 50; box-shadow: 0 10px 24px rgba(14,107,184,.35); border-radius: 999px; }
@media (min-width: 992px) { .mt-fab { position: static; box-shadow: none; } }

/* Ficha, cuenta y tablas */
.mt-kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.mt-kv dt { color: var(--muted); font-weight: 600; } .mt-kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.mt-balance { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mt-balance b { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; }
.mt-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.mt-row:first-child { border-top: 0; }
.mt-row small { display: block; color: var(--muted); font-size: 12.5px; }
.mt-amt { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.mt-amt.neg { color: var(--primary-dark); } .mt-amt.pos { color: var(--ink); }
.mt-team-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 16px; background: #fff; border: 1px solid #e6ebf1; border-radius: 14px; margin-bottom: 10px; cursor: pointer; font: inherit; text-align: left; }
.mt-team-pick:hover { border-color: var(--primary); }

/* =====================================================================
   MI EQUIPO · REGISTRAR / CORREGIR JUGADOR
   ===================================================================== */
.pf-banner { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 14px 0 22px; }
.pf-banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.pf-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,45,82,.95) 0%, rgba(15,45,82,.86) 45%, rgba(15,45,82,.25) 100%); }
.pf-banner .container { position: relative; z-index: 2; }
.pf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: #c9d4e3; }
.pf-crumbs a { color: #fff; font-weight: 600; }
.pf-crumbs a:hover { text-decoration: underline; }
.pf-crumbs > i { font-size: 9px; opacity: .7; }
.pf-title { margin-top: 12px; padding-left: 16px; border-left: 5px solid var(--primary); }
.pf-title h1 { font-size: 34px; text-transform: uppercase; color: #fff; }
.pf-title p { margin: 4px 0 0; color: #dbe4f0; font-size: 15px; }
@media (min-width: 992px) { .pf-banner { padding: 18px 0 30px; } .pf-title h1 { font-size: 46px; } }
.pf-wrap { padding-top: 16px; }
.pf-grid { display: grid; gap: 14px; }
@media (min-width: 992px) { .pf-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 16px; } }
.pf-col { display: grid; gap: 14px; min-width: 0; }
.pf-card { background: #fff; border: 1px solid #e6ebf1; border-radius: 14px; box-shadow: var(--shadow-1); padding: 18px; }
.pf-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.pf-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: #e6f7ee; color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.pf-card-head h2 { font-family: var(--font-display); font-size: 22px; text-transform: none; color: var(--navy); letter-spacing: .01em; }
.pf-card-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.req-star { color: var(--danger); }
.input-ico { position: relative; }
.input-ico > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 14px; pointer-events: none; }
.input-ico input, .input-ico select { padding-left: 40px !important; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
/* Documentos */
.pf-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--card-soft); }
.pf-doc + .pf-doc { margin-top: 10px; }
.pf-doc-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.pf-doc-name i { color: var(--muted); margin-right: 6px; }
.pf-doc-fmt { justify-self: start; font-size: 11.5px; font-weight: 700; color: var(--muted); background: #edf1f6; padding: 3px 9px; border-radius: 6px; }
.pf-doc-err { grid-column: 1 / -1; }
@media (min-width: 640px) { .pf-doc { grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.5fr); } }
.pf-file { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; margin: 0; }
.pf-file.center { justify-content: center; }
.pf-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pf-file input[type=file]:focus-visible + .btn { outline: 3px solid var(--primary); outline-offset: 2px; }
.pf-file-name { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Foto */
.pf-photo { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; border: 2px dashed #d5deea; border-radius: 12px; background: var(--card-soft); text-align: center; }
.pf-photo small { color: var(--muted); font-size: 12px; }
.pf-avatar { position: relative; width: 116px; height: 116px; border-radius: 50%; background: #dfe6ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116 116'%3E%3Ccircle cx='58' cy='46' r='22' fill='%23a9b6c8'/%3E%3Cpath d='M18 116c4-26 20-38 40-38s36 12 40 38z' fill='%23a9b6c8'/%3E%3C/svg%3E") center / cover; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pf-avatar-cam { position: absolute; right: 2px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.pf-tips { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #f0faf4; border: 1px solid #c9ecd7; }
.pf-tips b { color: var(--navy); display: flex; gap: 8px; align-items: center; }
.pf-tips b i { color: var(--primary); }
.pf-tips ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 14px; }
.pf-tips li i { color: var(--primary); margin-right: 8px; }
/* Barra de acciones */
.pf-actions { position: sticky; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 40; display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px; background: #fff; border: 1px solid #e6ebf1; border-radius: 14px; box-shadow: 0 10px 28px rgba(15,45,82,.12); }
.pf-actions .btn { flex: 1 1 0; min-width: 0; }
@media (min-width: 992px) { .pf-actions { position: static; box-shadow: var(--shadow-1); } .pf-actions .btn { flex: 0 0 auto; min-width: 240px; } }
/* Filas de Mi Equipo: etiquetas compactas (no se estiran) */
.mt-row { align-items: center; }
.mt-row .mt-state { flex: 0 0 auto; align-self: center; }
/* Cabecera en celular: "Cambiar equipo" solo con ícono para no cortar el nombre */
@media (max-width: 640px) {
    .mt-switch { font-size: 0; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
    .mt-switch i { font-size: 15px; margin: 0; }
}
.mt-logout { margin: 0; }
.pt-logout { margin: 0; }
.pt-actions .pt-logout .btn { border-color: #d5deea; color: var(--navy); }
.pt-actions .pt-logout .btn:hover { border-color: var(--danger); color: var(--danger); background: #fff; }


/* =====================================================================
   TERCERA PASADA (referencia 2): encabezado azul marino con el nombre
   de la liga, filtro de categoría y portada compacta.
   ===================================================================== */
/* Encabezado */
.pt-header { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 4px 18px rgba(15,45,82,.18); }
.pt-brand-text { gap: 1px; }
.pt-brand-motto { color: #7CDAF9; font-size: 10.5px; letter-spacing: .14em; display: block !important; }
.pt-brand-name { color: #fff; font-family: var(--font-display); font-size: 19px; text-transform: none; letter-spacing: .01em; }
.pt-brand img, .pt-brand .pt-logo-fb { background: #fff; border-radius: 10px; padding: 2px; }
@media (max-width: 480px) { .pt-brand-name { font-size: 16px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.05; } }
.pt-burger { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.pt-search-btn { color: #fff; }
.pt-search-btn:hover { background: rgba(255,255,255,.1); }
@media (min-width: 1280px) {
    .pt-brand { max-width: 380px; }
    .pt-brand-name { font-size: 21px; }
    .pt-nav { gap: 6px; }
    .pt-nav > a, .pt-dd > a { color: #d6e0ee; font-size: 14.5px; padding: 0 12px; }
    .pt-nav > a:hover, .pt-dd > a:hover { color: #fff; }
    .pt-nav > a.active, .pt-dd > a.active { color: #7CDAF9; }
    .pt-nav > a.active::after, .pt-dd > a.active::after { left: 12px; right: 12px; background: var(--primary); }
    .pt-actions .btn-outline, .pt-actions .pt-logout .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
    .pt-actions .btn-outline:hover, .pt-actions .pt-logout .btn:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
}
@media (min-width: 1280px) and (max-width: 1339px) { .pt-brand-motto { display: block !important; } }

/* Portada: sin superponer los indicadores (ahora va el filtro de categoría) */
.home-hero-grid { padding-bottom: 36px; }
@media (min-width: 768px) { .home-hero-grid { padding-top: 40px; padding-bottom: 44px; } }
.kpi-row { margin-top: 14px; }
@media (min-width: 992px) { .kpi-row { margin-top: 16px; } }
.next-round h2 { display: flex; align-items: center; gap: 10px; }
.next-round h2 i { color: #7CDAF9; }
.nr-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; font-size: 15px; color: #e3e9f2; }
.nr-list li { display: flex; gap: 12px; align-items: center; }
.nr-list i { width: 18px; text-align: center; color: #7CDAF9; }
.nr-list b { color: #fff; }
.nr-empty { margin: 0 0 16px; color: #d6e0ee; font-size: 14px; }

/* Filtro de categoría de la portada */
.home-cats { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 2px; scrollbar-width: none; }
.home-cats::-webkit-scrollbar { display: none; }
.home-cats a { flex: 0 0 auto; padding: 9px 18px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; font-weight: 700; font-size: 14px; color: var(--navy); transition: border-color .15s, background .15s; }
.home-cats a:hover { border-color: var(--primary); }
.home-cats a.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(14,107,184,.25); }

/* Distribución: partidos a la izquierda; tabla, goleadores y equipos a la derecha */
.home2 { display: grid; gap: 18px; margin-top: 18px; }
.home2 > * { min-width: 0; }
.home2-side { display: grid; gap: 18px; min-width: 0; }
.home2-pair { display: grid; gap: 18px; }
.home2-pair > * { min-width: 0; }
@media (min-width: 768px) { .home2-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .home2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: start; } }

/* Próximo partido destacado */
.feat-match { display: block; border: 1px solid #e6ebf1; border-radius: 12px; background: var(--card-soft); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.feat-match:hover { border-color: #cdebd9; box-shadow: var(--shadow-1); }
.feat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; color: var(--ink); }
.feat-tag { font-size: 12.5px; font-weight: 700; color: #0E6BB8; background: #e9f0fc; padding: 3px 10px; border-radius: 8px; }
.feat-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 18px 12px 16px; }
.feat-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.feat-team b { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; color: var(--navy); line-height: 1.1; }
.feat-team .crest.xl { width: 78px; height: 86px; }
.feat-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.feat-mid b { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--navy); }
.feat-mid small { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); background: #edf1f6; padding: 2px 8px; border-radius: 6px; }
.feat-field { margin-top: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.feat-field i { color: var(--primary); }
.feat-more { display: block; text-align: center; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--primary-dark); }
.panel-head-sub { margin-top: 18px; }

/* Últimos resultados en filas compactas */
.res-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line-soft); transition: background .15s; }
.res-row:hover { background: #f6faf8; }
.res-team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--ink); min-width: 0; }
.res-team > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-team.home { justify-content: flex-end; text-align: right; }
.res-score { font-family: var(--font-display); font-size: 24px; color: var(--navy); white-space: nowrap; }
.res-meta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); text-align: right; line-height: 1.35; }
.res-meta br { display: none; }
@media (min-width: 640px) {
    .res-row { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; }
    .res-meta { grid-column: auto; }
    .res-meta br { display: inline; }
}

/* Tabla resumida: #, Equipo, PJ, DG, PTS */
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { background: #f7f9fc; color: var(--muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 10px 8px; text-align: center; border-bottom: 1px solid #e6ebf1; }
.mini-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid #f0f3f7; font-variant-numeric: tabular-nums; }
.mini-table th.l, .mini-table td.l { text-align: left; }
.mini-table td.l a { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); min-width: 0; }
.mini-table td.l a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-table tr:hover td { background: #f6faf8; }
.mini-table .pos { display: inline-flex; width: 26px; height: 26px; border-radius: 7px; align-items: center; justify-content: center; font-weight: 800; background: #edf1f6; color: var(--navy); }
.mini-table tr.is-top .pos { background: var(--primary); color: #fff; }
.mini-table tr.is-third .pos { background: #d9f3e5; color: var(--primary-dark); }
.mini-table td.pts { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--navy); }
/* Últimos resultados en celular: dos renglones para no cortar los nombres */
@media (max-width: 639px) {
    .res-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px 8px; padding: 12px 2px; }
    .res-row > .badge { grid-row: 1; grid-column: 1; justify-self: start; }
    .res-row > .res-meta { grid-row: 1; grid-column: 2 / 4; align-self: center; }
    .res-row > .res-team.home { grid-row: 2; grid-column: 1; }
    .res-row > .res-score { grid-row: 2; grid-column: 2; }
    .res-row > .res-team:not(.home) { grid-row: 2; grid-column: 3; }
    .res-team > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
}
.res-date { display: block; }
@media (max-width: 639px) { .res-date { display: inline; } .res-date::before { content: " · "; } }

/* =====================================================================
   MEJORAS DE USABILIDAD (revisión UX)
   ===================================================================== */

/* Pie siempre abajo: en páginas cortas (Torneos, Noticias) ya no queda
   una franja vacía debajo del pie. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }

/* Inicio · Equipos participantes en lista (escudo + nombre + categorías) */
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list li + li { border-top: 1px solid var(--line-soft); }
.team-list a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-radius: 10px; transition: background .15s; }
.team-list a:hover { background: #f6faf8; }
.team-list .tl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.team-list .tl-info b { font-size: 14.5px; color: var(--navy); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-list .tl-info small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-list .fa-chevron-right { font-size: 12px; color: #b6c2d1; flex: 0 0 auto; }
.team-list a:hover .fa-chevron-right { color: var(--primary); }

/* Inicio · Goleadores: el nombre completo en hasta dos renglones (antes se cortaba) */
.ts-info b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }

/* Tabla de posiciones: en celular, primero lo importante (PJ, DG, Pts) */
.standings-more { display: none; }
@media (max-width: 639px) {
    .standings-block:not(.is-full) .standings .x { display: none; }
    .standings-block:not(.is-full) .standings { min-width: 0; }
    .standings-block:not(.is-full) .standings th.club,
    .standings-block:not(.is-full) .standings td.club { min-width: 0; box-shadow: none; }
    .standings-block:not(.is-full) .standings td.club a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .standings-more {
        display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
        min-height: 44px; margin-top: 8px; padding: 8px 12px; border: 1px dashed var(--line);
        border-radius: 12px; background: transparent; color: var(--navy);
        font: 700 13px/1.2 var(--font-body); cursor: pointer;
    }
    .standings-more:hover { background: #f6faf8; border-color: #cdebd9; }
}

/* Partidos · filtros plegables en celular */
.filter-toggle { display: none; }
@media (max-width: 767px) {
    .filter-toggle {
        display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-bottom: 10px;
        padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
        color: var(--navy); font: 700 14px/1 var(--font-body); cursor: pointer;
    }
    .filter-toggle .filter-caret { margin-left: auto; font-size: 12px; transition: transform .2s; }
    .filter-toggle[aria-expanded="true"] .filter-caret { transform: rotate(180deg); }
    .filter-count {
        display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
        padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px;
    }
    .filter-collapsible:not(.is-open) { display: none; }
    .filter-form .filter-date, .filter-form > .btn { grid-column: 1 / -1; }
}
/* Fecha con su etiqueta visible (antes solo mostraba "dd/mm/aaaa") */
.filter-date {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding-left: 12px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.filter-date > span { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.filter-form .filter-date input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; box-shadow: none; padding-left: 4px; }
.filter-date:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.filter-form > .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* =====================================================================
   EXPERIENCIA DEL HINCHA: Categorías · Equipos · Partidos
   Colores de cada club ("franjas de camiseta"), racha, cuenta regresiva,
   compartir por WhatsApp y álbum de cromos.
   Los colores del club nunca van de fondo bajo texto: solo como franjas,
   brillos o bordes, para que se lea bien aunque el club sea amarillo o blanco.
   ===================================================================== */

/* ---------- Racha (G / E / P) ---------- */
.form-dots { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; }
.fd { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; font: 800 11px/1 var(--font-body); color: #fff; }
.fd-g { background: var(--primary); }
.fd-e { background: #94a3b8; }
.fd-p { background: #e2533b; }
.fd-none { background: #e8edf3; color: #94a3b8; }
.form-dots.lg .fd { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
/* El resultado más reciente (a la derecha) lleva un anillo para distinguirlo. */
.fd-g:last-child { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--primary); }
.fd-e:last-child { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #94a3b8; }
.fd-p:last-child { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e2533b; }
.fd-none:last-child { box-shadow: none; color: #94a3b8; }
.standings td.form-c { white-space: nowrap; }
.form-legend { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.form-legend .fd { width: 18px; height: 18px; font-size: 10px; box-shadow: none !important; }

/* ---------- "¿Cuándo se juega?" ---------- */
.when { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 800 11.5px/1.5 var(--font-body); letter-spacing: .02em; white-space: nowrap; background: #eef2f7; color: var(--navy); }
.when-soon { background: #e6f7ee; color: var(--primary-dark); }
.when-today { background: #fff1e6; color: #c2410c; }
.when-tbd { background: transparent; color: var(--muted); padding-left: 0; font-weight: 700; }
.when-pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; display: inline-block; }
.when-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: .6; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Barra de avance ---------- */
.progress { height: 8px; border-radius: 999px; background: #e8edf3; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #7CDAF9); transition: width .8s var(--ease); }
.progress.on-dark { background: rgba(255,255,255,.14); }
.progress-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.progress-row b { color: var(--navy); font-size: 14px; }

/* ---------- Tarjeta de partido: franja con los colores de ambos clubes ---------- */
.match-kits { display: block; height: 4px; background: linear-gradient(90deg, var(--home-1, var(--navy)) 0 50%, var(--away-1, var(--navy)) 50% 100%); }
.match .team.is-loser { opacity: .55; }
.match .team.is-winner .team-name { color: var(--primary-dark); }

/* ---------- CATEGORÍAS: tarjetas "torneo en vivo" ---------- */
.cat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-card { display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid var(--line-soft); transition: transform .2s var(--ease), box-shadow .2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cat-card-head { position: relative; overflow: hidden; padding: 18px 18px 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1f5a99 0%, rgba(31,90,153,0) 55%), linear-gradient(135deg, var(--navy) 0%, #0a2140 100%); }
.cat-card-head h2 { position: relative; z-index: 1; font-size: 34px; text-transform: uppercase; margin-top: 10px; }
.cat-watermark { position: absolute; right: -8px; bottom: -22px; font: 800 96px/1 var(--font-display); text-transform: uppercase; color: rgba(255,255,255,.05); white-space: nowrap; pointer-events: none; }
.cat-state { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 800 11px/1.5 var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.12); }
.cat-state.is-live { background: rgba(14,107,184,.22); color: #6ff0a8; }
.cat-state.is-done { background: rgba(242,183,5,.2); color: #ffd84d; }
.crest-stack { position: relative; z-index: 1; display: flex; align-items: center; margin-top: 14px; }
.crest-stack .crest.sm { width: 34px; height: 34px; margin-right: -8px; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 0 0 2px var(--navy); }
.crest-stack .crest.sm img { padding: 2px; }
.crest-more { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #1f5a99; font: 800 12px/1 var(--font-body); box-shadow: 0 0 0 2px var(--navy); }
.crest-stack small { margin-left: 18px; font-size: 12.5px; color: #c4d2e4; font-weight: 600; }
.cat-card-body { padding: 16px 18px 6px; display: grid; gap: 14px; flex: 1; }
.mini-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.mp-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 4px 8px; border-radius: 12px; background: var(--card-soft, #f7f9fc); min-width: 0; }
.mp-item.mp-1 { order: 2; padding-top: 14px; background: linear-gradient(180deg, #fff8dc 0%, #fffdf3 100%); box-shadow: inset 0 0 0 1px #f5e3a3; }
.mp-item.mp-2 { order: 1; } .mp-item.mp-3 { order: 3; }
.mp-pos { font: 800 12px/1 var(--font-display); color: var(--muted); }
.mp-1 .mp-pos { color: #a37a00; }
.mp-item b { font-size: 12px; color: var(--navy); line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-item small { font-size: 11px; color: var(--muted); font-weight: 700; }
.cat-empty { font-size: 13px; color: var(--muted); padding: 14px; border-radius: 12px; background: var(--card-soft, #f7f9fc); text-align: center; }
.cat-next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; }
.cat-next-label { font: 800 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cat-next-teams { font-weight: 700; color: var(--navy); }
.cat-next-teams em { font-style: normal; color: var(--muted); font-weight: 600; margin: 0 2px; }
.cat-next-teams.muted { color: var(--muted); font-weight: 500; }
.cat-card-cta { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; margin-top: 8px; font-weight: 800; font-size: 14px; color: var(--primary-dark); border-top: 1px solid var(--line-soft); }
.cat-card:hover .cat-card-cta i { transform: translateX(4px); }
.cat-card-cta i { transition: transform .2s var(--ease); }

/* ---------- CATEGORÍA: portada + pestañas fijas ---------- */
.hub-hero { position: relative; overflow: hidden; color: #fff; padding: 22px 0 26px; background: radial-gradient(90% 120% at 100% 0%, #1f5a99 0%, rgba(31,90,153,0) 60%), linear-gradient(135deg, var(--navy) 0%, #0a2140 100%); }
.hub-watermark { position: absolute; right: -20px; bottom: -40px; font: 800 clamp(120px, 22vw, 260px)/1 var(--font-display); text-transform: uppercase; color: rgba(255,255,255,.04); white-space: nowrap; pointer-events: none; }
.hub-hero .container { position: relative; z-index: 1; }
.hub-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #9fd8b8; }
.hub-back:hover { color: #fff; }
.hub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 8px; }
.hub-head h1 { font-size: clamp(44px, 8vw, 76px); text-transform: uppercase; line-height: .95; }
.hub-head p { margin: 6px 0 0; color: #c4d2e4; font-size: 14px; }
.hub-leader { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); position: relative; transition: background .2s; }
.hub-leader:hover { background: rgba(255,255,255,.14); }
.hub-leader .crest.lg { width: 56px; height: 62px; }
.hub-leader b { display: block; font: 800 20px/1.1 var(--font-display); text-transform: uppercase; }
.hub-leader small { color: #c4d2e4; font-size: 12.5px; }
.hub-leader-tag { position: absolute; top: -10px; left: 12px; display: inline-flex; gap: 5px; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #1f1300; font: 800 10.5px/1.5 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.hub-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
@media (min-width: 768px) { .hub-kpis { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }
.hub-kpi { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.hub-kpi-wide { grid-column: 1 / -1; }
@media (min-width: 768px) { .hub-kpi-wide { grid-column: auto; } }
.hub-kpi-label { display: block; font: 700 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #9fb3cc; }
.hub-kpi b { display: block; font: 800 30px/1.1 var(--font-display); margin-top: 2px; }
.hub-kpi b small { font-size: 18px; color: #9fb3cc; }
.hub-kpi .progress { margin-top: 8px; }
.hub-tabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hub-tabs .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hub-tabs .container::-webkit-scrollbar { display: none; }
.hub-tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 14px 14px; font-weight: 800; font-size: 14px; color: var(--muted); white-space: nowrap; }
.hub-tabs a:hover { color: var(--navy); }
.hub-tabs a.active { color: var(--navy); }
.hub-tabs a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.hub-section { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 60px); }

/* ---------- Equipos (dentro de una categoría): mini-tarjetas con franja ---------- */
.kit-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .kit-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kit-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 10px 14px; background: var(--card); border-radius: 16px; border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.kit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.kit-band { position: absolute; inset: 0 0 auto 0; height: 8px; background: repeating-linear-gradient(90deg, var(--kit-1) 0 14px, var(--kit-2) 14px 28px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.06); }
.kit-card .crest.lg { width: 64px; height: 70px; }
.kit-card b { font: 800 16px/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.kit-card small { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ---------- EQUIPOS: tarjeta "camiseta" ---------- */
.team-search { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.team-search > i { position: absolute; left: 16px; color: var(--muted); }
.team-search input { width: 100%; min-height: 52px; padding: 0 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font: 500 15px var(--font-body); color: var(--ink); }
.team-search input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.team-search-clear { position: absolute; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.team-search-clear:hover { background: #eef2f7; }
.club-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .club-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.club-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s; }
.club-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
/* La "camiseta": diagonal con los dos colores del club sobre azul de la liga */
.club-card-kit { display: block; height: 78px; background:
    linear-gradient(115deg, transparent 0 46%, var(--kit-1) 46% 62%, var(--kit-2) 62% 70%, transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, #0a2140 100%); }
.club-card-crest { position: absolute; top: 26px; left: 18px; width: 96px; height: 96px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(15,45,82,.18); }
.club-card-crest .crest.xl { width: 76px; height: 82px; }
.club-card-body { display: flex; flex-direction: column; gap: 8px; padding: 50px 18px 14px; }
.club-card-body > b { font: 800 26px/1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.club-card-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.club-card-cats > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #eef2f7; color: var(--navy); font: 700 12px/1.5 var(--font-body); }
.club-card-cats > span.is-leader { background: #fff4cf; color: #8a6400; }
.club-card-form { display: flex; align-items: center; gap: 10px; }
.club-card-form small { font: 800 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.club-card-cta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line-soft); font-weight: 800; font-size: 14px; color: var(--primary-dark); }
.club-card-cta i { transition: transform .2s var(--ease); }
.club-card:hover .club-card-cta i { transform: translateX(4px); }

/* ---------- FICHA DEL EQUIPO ---------- */
.club-hero { position: relative; overflow: hidden; color: #fff; padding: 26px 0 22px; background: radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--kit-1) 35%, transparent) 0%, transparent 60%), linear-gradient(135deg, var(--navy) 0%, #0a2140 100%); }
.club-hero-kit { position: absolute; top: -40%; right: -6%; width: 46%; height: 180%; transform: rotate(18deg); opacity: .9; pointer-events: none;
    background: linear-gradient(90deg, transparent 0 18%, var(--kit-1) 18% 44%, var(--kit-2) 44% 56%, var(--kit-1) 56% 82%, transparent 82%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.08)); mask-image: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.08)); }
.club-hero .container { position: relative; z-index: 1; }
.club-hero-main { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.club-hero-crest { width: 128px; height: 128px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 14px 34px rgba(0,0,0,.3); flex: 0 0 auto; }
.club-hero-crest .crest.xl { width: 96px; height: 104px; }
.club-hero-text { flex: 1; min-width: 220px; }
.club-hero-kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #c4d2e4; }
.kit-swatch { width: 26px; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--kit-1) 50%, var(--kit-2) 50%); box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
.club-hero h1 { font-size: clamp(40px, 7vw, 68px); text-transform: uppercase; line-height: .95; margin-top: 4px; }
.club-hero p { margin: 4px 0 0; color: #c4d2e4; }
.club-hero-form { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.08); }
.club-hero-form small { font: 800 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #c4d2e4; }
.club-hero-form .fd:last-child { box-shadow: 0 0 0 2px var(--navy), 0 0 0 3.5px #fff; }
.club-hero .hero-stats { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.club-hero .hero-stats span { color: #9fb3cc; }
@media (max-width: 639px) {
    .club-hero-crest { width: 92px; height: 92px; } .club-hero-crest .crest.xl { width: 70px; height: 76px; }
    .club-hero .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .club-hero .hero-stats div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.08); }
    .club-hero .hero-stats div:nth-child(4) { border-left: 0; }
}

/* ---------- Álbum de cromos ---------- */
.cromos { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .cromos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cromos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cromos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cromo { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s; }
.cromo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: linear-gradient(160deg, var(--kit-1), var(--kit-2) 60%, var(--kit-1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2; opacity: .85; }
.cromo:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 16px 30px rgba(15,45,82,.16); }
.cromo-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 0; position: relative; z-index: 1; }
.cromo-num { font: 800 30px/1 var(--font-display); color: var(--navy); min-width: 1ch; }
.cromo-photo { position: relative; margin: 6px 10px 0; aspect-ratio: 4 / 4.4; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(80% 70% at 50% 100%, color-mix(in srgb, var(--kit-1) 30%, #fff) 0%, #f1f5f9 70%); }
.cromo-initials { font: 800 40px/1 var(--font-display); color: color-mix(in srgb, var(--navy) 35%, #fff); }
.cromo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cromo-goals { position: absolute; right: 6px; bottom: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--navy); color: #fff; font: 800 12px/1.4 var(--font-body); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.cromo-body { display: flex; flex-direction: column; padding: 10px 12px 12px; text-align: center; }
.cromo-body b { font: 700 13px/1.2 var(--font-body); color: var(--muted); }
.cromo-last { font: 800 17px/1.05 var(--font-display); text-transform: uppercase; color: var(--navy); }
.cromo-body small { margin-top: 6px; align-self: center; padding: 2px 8px; border-radius: 999px; background: #eef2f7; font: 700 11px/1.5 var(--font-body); color: var(--navy); }

/* ---------- DETALLE DEL PARTIDO ---------- */
.match-hero { position: relative; overflow: hidden; color: #fff; padding: 22px 0 24px; background: linear-gradient(135deg, var(--navy) 0%, #0a2140 100%); }
.mh-glow { position: absolute; top: -30%; width: 60%; height: 160%; filter: blur(60px); opacity: .45; pointer-events: none; }
.mh-glow-home { left: -20%; background: radial-gradient(closest-side, var(--home-1), transparent); }
.mh-glow-away { right: -20%; background: radial-gradient(closest-side, var(--away-1), transparent); }
.match-hero .container { position: relative; z-index: 1; }
.mh-kicker { text-align: center; font: 800 12px/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #c4d2e4; }
.mh-kicker a { color: #9fd8b8; }
.mh-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 18px; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.mh-team .crest.xl { width: 92px; height: 100px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); transition: transform .25s var(--ease); }
.mh-team:hover .crest.xl { transform: scale(1.05); }
.mh-team > span { font: 800 20px/1.05 var(--font-display); text-transform: uppercase; }
.mh-team small { font: 700 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #9fb3cc; }
.mh-team.is-winner span { color: #6ff0a8; }
.mh-center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mh-score { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.mh-score b { font-size: clamp(54px, 10vw, 84px); line-height: .9; }
.mh-score i { font-style: normal; font-size: 40px; opacity: .6; }
.mh-time { font: 800 clamp(42px, 8vw, 64px)/1 var(--font-display); }
.mh-status { padding: 3px 12px; border-radius: 999px; background: #fff; color: var(--navy); font: 800 11px/1.5 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.mh-status.is-off { background: #fde68a; color: #7c2d12; }
.mh-status.is-live { background: var(--primary); color: #fff; }
.countdown { display: flex; gap: 6px; }
.countdown span { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 6px 4px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.countdown b { font: 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown small { font: 700 9.5px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #9fb3cc; }
.mh-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #dbe5f1; }
.mh-meta i { color: #9fd8b8; margin-right: 4px; }
.mh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; }
@media (max-width: 639px) {
    .mh-team .crest.xl { width: 64px; height: 70px; }
    .mh-team > span { font-size: 15px; }
    .countdown span { min-width: 40px; }
    .countdown b { font-size: 18px; }
    .mh-actions .btn { flex: 1 1 auto; }
}
.goals-board { margin-top: 18px; padding: 14px 16px 16px; }
.goals-board h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.goals-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.goals-col { display: flex; flex-direction: column; gap: 8px; padding: 4px 12px; }
.goals-home { border-right: 1px solid var(--line-soft); align-items: flex-end; text-align: right; }
.goals-away { align-items: flex-start; text-align: left; }
.goal-line { display: flex; align-items: center; gap: 8px; }
.goals-home .goal-line { flex-direction: row-reverse; }
.goal-balls { display: inline-flex; gap: 2px; color: var(--navy); font-size: 12px; }
.goal-balls b { font-size: 12px; margin-left: 2px; }
.goal-name { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.2; }
.goal-name small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.goal-none { color: var(--muted); font-size: 13px; }
.lineup-card { overflow: hidden; }
.lineup-card header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-top: 4px solid var(--kit-1); }
.lineup-card header h2 { font-size: 17px; text-transform: uppercase; flex: 1; }
.lineup-card header span { font-size: 12px; font-weight: 700; color: var(--muted); }
.lineup-chips { list-style: none; margin: 0; padding: 4px 12px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.lineup-chips li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--card-soft, #f7f9fc); font-size: 13.5px; }
.lineup-chips .num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font: 800 12px/1 var(--font-body); }
.lineup-chips li.muted { color: var(--muted); background: transparent; }

/* ---------- PARTIDOS: compartir jornada ---------- */
.journey-share { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #25d366; color: #fff; font: 800 11.5px/1.5 var(--font-body); }
.journey-share:hover { background: #1ebe5a; }
.journey-share i { font-size: 14px; }
@media (max-width: 480px) { .journey-share span { display: none; } }

/* =====================================================================
   MI EQUIPO (portal del dirigente)
   ===================================================================== */
.mt-head { position: relative; overflow: hidden; background: radial-gradient(60% 140% at 0% 0%, color-mix(in srgb, var(--kit-1, var(--navy)) 30%, transparent) 0%, transparent 60%), linear-gradient(135deg, var(--navy) 0%, #0a2140 100%); }
.mt-head-kit { position: absolute; top: -60%; right: 4%; width: 30%; height: 240%; transform: rotate(18deg); pointer-events: none;
    background: linear-gradient(90deg, transparent 0 20%, var(--kit-1) 20% 46%, var(--kit-2) 46% 56%, var(--kit-1) 56% 80%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.05)); mask-image: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.05)); }
.mt-head .container { position: relative; z-index: 1; }
.mt-head-crest { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 8px 20px rgba(0,0,0,.25); }
.mt-head-crest .crest.lg { width: 56px; height: 62px; }
.mt-kicker .kit-swatch { display: inline-block; vertical-align: middle; width: 22px; height: 10px; }
.mt-sub i { margin-right: 4px; opacity: .8; }
.mt-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 639px) {
    .mt-head-crest { width: 60px; height: 60px; } .mt-head-crest .crest.lg { width: 44px; height: 48px; }
    .mt-head-actions .btn span { display: none; }
    .mt-head-kit { width: 45%; right: -14%; }
}

/* Accesos rápidos */
.mt-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 768px) { .mt-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mt-quick a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); transition: transform .18s var(--ease), box-shadow .18s; min-width: 0; }
.mt-quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.mt-quick i { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #eef2f7; color: var(--navy); font-size: 16px; }
.mt-quick b { font-size: 14.5px; color: var(--navy); line-height: 1.2; }
.mt-quick small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-quick a.is-primary { background: var(--primary); border-color: var(--primary); }
.mt-quick a.is-primary i { background: rgba(255,255,255,.2); color: #FFFFFF; }
.mt-quick a.is-primary b, .mt-quick a.is-primary small { color: #FFFFFF; }
.mt-quick a.is-warn i { background: #fff1e6; color: #c2410c; }
.mt-quick a.is-warn small { color: #c2410c; font-weight: 700; }

/* Posición en la categoría */
.mt-pos { display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; padding: 4px 10px; border-radius: 12px; background: #eef2f7; font: 800 22px/1 var(--font-display); color: var(--navy); }
.mt-pos small { font: 700 11px/1.4 var(--font-body); color: var(--muted); }
.mt-pos.is-empty { font: 700 12px/1.5 var(--font-body); color: var(--muted); background: transparent; border: 1px dashed var(--line); padding: 6px 10px; }

/* ---------- Plantilla (Mi Equipo · Jugadores) ---------- */
.sq-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sq-head h2 { font-size: 30px; text-transform: uppercase; color: var(--navy); }
.sq-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sq-head b { color: var(--navy); }
.txt-green { color: #067a3c !important; }

.sq-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 190px); justify-content: start; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 12px; scrollbar-width: none; }
.sq-stats::-webkit-scrollbar { display: none; }
.sq-stat { --c: var(--navy); --soft: #eef2f7; position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line-soft); box-shadow: var(--shadow-1); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.sq-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.sq-stat i { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--c); font-size: 16px; }
.sq-stat b { font: 800 26px/1 var(--font-display); color: var(--c); }
.sq-stat span { font: 700 12px/1.3 var(--font-body); color: var(--muted); white-space: nowrap; }
.sq-stat.active { border-color: var(--c); box-shadow: 0 0 0 3px var(--soft), var(--shadow-1); }
.sq-stat.is-green { --c: #067a3c; --soft: #e3f6ec; }
.sq-stat.is-amber { --c: #b7791f; --soft: #fdf3dc; }
.sq-stat.is-orange { --c: #c2410c; --soft: #ffeddf; }
.sq-stat.is-red { --c: #b91c1c; --soft: #fde4e4; }
.sq-stat.is-grey { --c: #64748b; --soft: #eef2f7; }

.sq-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sq-cats { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e8edf3; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.sq-cats a { padding: 8px 14px; border-radius: 9px; font: 700 13.5px/1.2 var(--font-body); color: var(--muted); white-space: nowrap; }
.sq-cats a:hover { color: var(--navy); }
.sq-cats a.active { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(15,45,82,.1); }
.sq-search { position: relative; flex: 1 1 240px; max-width: 360px; margin: 0; }
.sq-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.sq-search input { width: 100%; min-height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: 500 14px var(--font-body); color: var(--ink); }
.sq-search input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }

.sq-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .sq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .sq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sq-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sq-card { --c: var(--primary-dark); --soft: #e3f6ec; position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s; }
.sq-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.sq-card.is-amber { --c: #b7791f; --soft: #fdf3dc; }
.sq-card.is-orange { --c: #c2410c; --soft: #ffeddf; }
.sq-card.is-red { --c: #b91c1c; --soft: #fde4e4; }
.sq-card.is-grey { --c: #64748b; --soft: #eef2f7; }
.sq-card[hidden] { display: none; }
.sq-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.sq-card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.sq-photo { position: relative; aspect-ratio: 4 / 4.2; display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: radial-gradient(80% 70% at 50% 100%, color-mix(in srgb, var(--kit-1) 28%, #fff) 0%, #eef2f7 75%); border-bottom: 4px solid var(--c); }
.sq-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sq-initials { font: 800 44px/1 var(--font-display); color: color-mix(in srgb, var(--navy) 30%, #fff); }
.sq-num { position: absolute; left: 8px; top: 8px; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font: 800 22px/1 var(--font-display); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.sq-state { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--c); font: 800 11px/1.5 var(--font-body); letter-spacing: .02em; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.sq-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; min-width: 0; }
.sq-first { font: 700 13px/1.2 var(--font-body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-last { font: 800 18px/1.05 var(--font-display); text-transform: uppercase; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.sq-cat { padding: 1px 7px; border-radius: 999px; background: #eef2f7; color: var(--navy); font-weight: 700; }
.sq-note { margin: 8px 0 0; padding: 6px 8px; border-radius: 8px; font-size: 12px; line-height: 1.35; background: var(--soft); color: var(--c); }
.sq-note.is-orange { --c: #c2410c; --soft: #ffeddf; } .sq-note.is-red { --c: #b91c1c; --soft: #fde4e4; } .sq-note.is-amber { --c: #8a5a00; --soft: #fdf3dc; }
.sq-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.sq-carnet { font-size: 11.5px; font-weight: 700; color: #94a3b8; white-space: nowrap; }
.sq-carnet.has { color: var(--primary-dark); }
.sq-action { font: 800 12.5px/1 var(--font-body); color: var(--navy); white-space: nowrap; }
.sq-action.is-fix { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 9px; background: var(--c); color: #fff; }
.sq-action.is-fix:hover { filter: brightness(1.08); }
.sq-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 260px; padding: 16px; text-align: center; border-radius: 16px; border: 2px dashed #c9d6e4; color: var(--muted); transition: border-color .15s, background .15s, color .15s; }
.sq-add span { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e3f6ec; color: var(--primary-dark); font-size: 20px; transition: transform .2s var(--ease); }
.sq-add b { color: var(--navy); font-size: 15px; }
.sq-add small { font-size: 12.5px; max-width: 180px; }
.sq-add:hover { border-color: var(--primary); background: #f3fbf6; }
.sq-add:hover span { transform: scale(1.08); }
.sq-empty { text-align: center; padding: 40px 20px; border-radius: 18px; background: var(--card); border: 1.5px dashed var(--line); }
.sq-empty > i { font-size: 34px; color: #c3cfdd; }
.sq-empty b { display: block; margin-top: 10px; font-size: 17px; color: var(--navy); }
.sq-empty p { color: var(--muted); max-width: 460px; margin: 6px auto 14px; }
.sq-noresults { text-align: center; color: var(--muted); padding: 24px 0; }
@media (max-width: 639px) {
    .sq-head .sq-new { width: 100%; }
    .sq-head h2 { font-size: 26px; }
    .sq-search { max-width: none; }
    .sq-last { font-size: 16px; }
    .sq-foot { flex-wrap: wrap; }
}

/* ---------- Documento de identidad: Cédula / Pasaporte ---------- */
.doc-type { border: 0; padding: 0; margin: 0; min-width: 0; }
.doc-type legend { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: #eef2f7; }
.seg-opt { position: relative; margin: 0; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 10px; font: 700 14px/1.2 var(--font-body); color: var(--muted); text-align: center; transition: background .15s, color .15s, box-shadow .15s; }
.seg-opt input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(15,45,82,.12); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.input-check { position: relative; }
.input-check input { padding-right: 42px !important; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.input-check-ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.input-check.is-ok input { border-color: var(--primary) !important; }
.input-check.is-bad input { border-color: var(--danger, #dc2626) !important; }
.input-check.is-ok .input-check-ico::before { content: "\f058"; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--primary); }
.input-check.is-bad .input-check-ico::before { content: "\f057"; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--danger, #dc2626); }
.doc-status { margin-top: 5px; font-size: 12.5px; color: var(--muted); min-height: 1.2em; }
.doc-status.is-ok { color: var(--primary-dark); font-weight: 700; }
.doc-status.is-bad { color: var(--danger, #dc2626); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    .when-pulse::after { animation: none; }
    .cromo:hover, .club-card:hover, .cat-card:hover, .kit-card:hover { transform: none; }
}

/* ===== Mi Equipo: cupo y dar de baja ===== */
.sq-slots { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 8px !important; padding: 6px 12px; border-radius: 12px; background: #eef4fd; color: #1d4f9c !important; font-size: 13px !important; font-weight: 600; }
.sq-slots i { margin-top: 2px; }
.sq-slots b { color: inherit !important; }
.sq-slots.is-full { background: #fff4e5; color: #9a5b00 !important; }
.sq-inactive { margin-top: 22px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line-soft); padding: 4px 16px 8px; }
.sq-inactive summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--muted); }
.sq-inactive .mt-row { color: inherit; text-decoration: none; }
.mt-baja { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.mt-baja summary { cursor: pointer; font-weight: 700; color: #b42318; font-size: 14px; }
.mt-baja form { margin-top: 10px; display: grid; gap: 8px; max-width: 560px; }
.mt-baja p { margin: 0; font-size: 13.5px; color: var(--muted); }
.mt-baja label { font-weight: 700; font-size: 13px; color: var(--navy); }
.mt-baja input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.mt-baja-btn { justify-self: start; background: #d92d20; border-color: #d92d20; color: #fff; }
.mt-baja-btn:hover { background: #b42318; }

/* ===== Carga con balón al centro de la pantalla (bl-page-loader.js) ===== */
.bl-loader { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(15, 45, 82, .18); backdrop-filter: blur(1.5px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.bl-loader.is-on { opacity: 1; visibility: visible; }
.bl-loader-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 30px 20px; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(15, 45, 82, .28); transform: scale(.92); transition: transform .2s; }
.bl-loader.is-on .bl-loader-box { transform: scale(1); }
.bl-loader-ball { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.bl-loader-ball i { font-size: 60px; color: var(--navy); }
.bl-loader.is-on .bl-loader-ball { animation: bl-loader-bounce .7s ease-in-out infinite alternate; }
.bl-loader.is-on .bl-loader-ball i { animation: bl-loader-roll .9s linear infinite; }
.bl-loader-shadow { width: 46px; height: 7px; margin-top: -8px; border-radius: 50%; background: rgba(15, 45, 82, .18); }
.bl-loader.is-on .bl-loader-shadow { animation: bl-loader-shadow .7s ease-in-out infinite alternate; }
.bl-loader-text { font: 800 14px/1 var(--font-display, inherit); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.bl-loader-track { position: relative; width: 150px; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(14,107,184, .18); }
.bl-loader-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #0b8f45, var(--primary)); }
.bl-loader.is-on .bl-loader-fill { animation: bl-loader-grow 8s cubic-bezier(.08, .7, .2, 1) forwards; }
@keyframes bl-loader-grow { 0% { width: 0; } 10% { width: 35%; } 40% { width: 70%; } 100% { width: 92%; } }
@keyframes bl-loader-roll { to { transform: rotate(360deg); } }
@keyframes bl-loader-bounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes bl-loader-shadow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.7); opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
    .bl-loader.is-on .bl-loader-ball, .bl-loader.is-on .bl-loader-ball i, .bl-loader.is-on .bl-loader-shadow { animation: none; }
}

/* Juvenil (menor de 18) en las tarjetas de la plantilla */
.sq-juv { display: block; margin-top: 3px; }
.sq-juv .bl-juvenil { margin-left: 0 !important; }

/* Tabla de posiciones por grupos */
.standings-group { margin: 14px 4px 8px; font: 800 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.standings-group:first-child { margin-top: 2px; }

/* =========================================================
   PORTADA · PRESENTACIÓN DE LA LIGA
   ========================================================= */
.home-hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.home-hero-crest { width: 74px; height: 74px; object-fit: contain; border-radius: 16px; background: rgba(255, 255, 255, .95); padding: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.home-hero-brand .home-hero-kicker { margin: 0; }
.home-hero-motto { color: rgba(226, 236, 248, .85); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-top: 2px; }

.pres-kicker { display: inline-flex; align-items: center; gap: 8px; color: #7CDAF9; font: 800 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.pres-kicker.dark { color: var(--primary-dark, #0E6BB8); }
.pres-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.pres-section-head h2 { margin: 6px 0 0; font: 800 30px/1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.pres-section-head a { font-weight: 800; color: var(--secondary, #0E6BB8); }

/* Quiénes somos */
.pres-about { margin-top: 42px; padding: 56px 0; background: radial-gradient(ellipse at 85% 0%, rgba(14,107,184, .18), transparent 55%), linear-gradient(135deg, #0B2A4A 0%, #102f57 60%, #12406E 100%); color: #fff; }
.pres-about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.pres-about-crest { position: relative; display: flex; flex-direction: column; align-items: center; }
.pres-about-crest img { width: 260px; height: 260px; object-fit: contain; border-radius: 34px; background: #fff; padding: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 10px rgba(255, 255, 255, .06); }
.pres-since { margin-top: -18px; padding: 8px 18px; border-radius: 999px; background: #0E6BB8; color: #fff; font: 800 15px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(14,107,184, .4); }
.pres-about-copy h2 { margin: 10px 0 4px; font: 800 40px/1.02 var(--font-display); text-transform: uppercase; color: #fff; }
.pres-motto { color: #7CDAF9; font-weight: 700; font-size: 17px; margin: 0 0 14px; }
.pres-about-copy > p { color: rgba(226, 236, 248, .88); font-size: 16px; line-height: 1.7; max-width: 680px; }
.pres-numbers { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.pres-numbers div { min-width: 120px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.pres-numbers b { display: block; font: 800 34px/1 var(--font-display); color: #fff; }
.pres-numbers span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(226, 236, 248, .75); }
.pres-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Escudos en movimiento */
.pres-clubs { padding: 46px 0 22px; overflow: hidden; }
.pres-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pres-track { display: flex; gap: 14px; width: max-content; padding: 6px 0 14px; animation: pres-scroll 55s linear infinite; }
.pres-marquee:hover .pres-track { animation-play-state: paused; }
.pres-club { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 14px; border-radius: 18px; background: var(--card, #fff); border: 1px solid var(--line-soft, #e6edf5); box-shadow: var(--shadow-1); text-align: center; color: var(--navy) !important; transition: transform .18s, box-shadow .18s; }
.pres-club:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(11,42,74, .14); }
.pres-club span:last-child { font-size: 13px; font-weight: 800; line-height: 1.2; }
@keyframes pres-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pres-track { animation: none; flex-wrap: wrap; width: auto; } }

/* Categorías */
.pres-cats { padding: 26px 0 10px; }
.pres-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pres-cat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 22px; border-radius: 20px; color: #fff !important; background: linear-gradient(140deg, var(--tone) 0%, color-mix(in srgb, var(--tone) 70%, #000) 100%); box-shadow: 0 12px 26px rgba(11,42,74, .18); transition: transform .18s; }
.pres-cat:hover { transform: translateY(-4px); }
.pres-cat-ico { position: absolute; right: -10px; bottom: -18px; font-size: 110px; opacity: .12; }
.pres-cat-name { font: 800 28px/1 var(--font-display); text-transform: uppercase; }
.pres-cat-meta { font-size: 14px; color: rgba(255, 255, 255, .8); font-weight: 600; }
.pres-cat-go { margin-top: auto; font-size: 13px; font-weight: 800; color: #7CDAF9; }

/* Síguenos + cómo llegar */
.pres-connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; padding: 30px 0 46px; }
.pres-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: var(--card, #fff); border: 1px solid var(--line-soft, #e6edf5); box-shadow: var(--shadow-1); }
.pres-card-head { display: flex; align-items: center; gap: 12px; }
.pres-card-head h3 { margin: 0; font: 800 20px/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.pres-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pres-fb, .pres-pin { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.pres-fb { background: #1877F2; }
.pres-pin { background: #0E6BB8; }
.pres-fb-frame, .pres-map { border-radius: 14px; overflow: hidden; background: #f1f5f9; }
.pres-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--navy); }
.pres-contact i { width: 20px; color: #0E6BB8; }

/* Inscribe a tu equipo */
.pres-cta { padding: 46px 0; background: linear-gradient(110deg, #0E6BB8 0%, #0E6BB8 60%, #7CDAF9 100%); color: #fff; }
.pres-cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.pres-cta h2 { margin: 0 0 6px; font: 800 32px/1.05 var(--font-display); text-transform: uppercase; color: #fff; }
.pres-cta p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .92); max-width: 640px; }
.pres-cta-btn { background: #0B2A4A !important; border-color: #0B2A4A !important; color: #fff !important; box-shadow: 0 12px 24px rgba(11,42,74, .35); }

@media (max-width: 900px) {
    .pres-about-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
    .pres-about-crest img { width: 180px; height: 180px; }
    .pres-numbers, .pres-actions { justify-content: center; }
    .pres-about-copy > p { margin-left: auto; margin-right: auto; }
    .pres-about-copy h2 { font-size: 30px; }
}

/* =========================================================
   PORTADA v3 · presentación arriba, cifras, categorías-filtro
   ========================================================= */
.hero-v3 .home-hero-photo { object-position: 70% center; }
.hero-v3::before { background: linear-gradient(90deg, rgba(11,42,74, .97) 0%, rgba(11,42,74, .9) 38%, rgba(11,42,74, .35) 68%, rgba(11,42,74, .15) 100%) !important; }
.hv3-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.hv3-crest { width: 104px; height: 104px; object-fit: contain; border-radius: 22px; background: #fff; padding: 6px; box-shadow: 0 16px 34px rgba(0, 0, 0, .4), 0 0 0 6px rgba(255, 255, 255, .08); }
.hv3-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hv3-motto { color: #7CDAF9; font: 800 14px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.hv3-since { padding: 6px 14px; border-radius: 999px; background: #0E6BB8; color: #fff; font: 800 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.hv3-title { margin: 0 0 12px; font: 800 clamp(30px, 4.2vw, 52px)/1.02 var(--font-display) !important; text-transform: uppercase; color: #fff; max-width: 680px; }
.hv3-text { max-width: 600px; color: rgba(226, 236, 248, .9); font-size: 16px; line-height: 1.65; margin: 0 0 22px; }

.hv3-stats { position: relative; z-index: 3; margin-top: -38px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: #fff; border-radius: 20px; box-shadow: 0 18px 40px rgba(11,42,74, .14); border: 1px solid var(--line-soft, #e6edf5); overflow: hidden; }
.hv3-stats div { padding: 18px 16px; text-align: center; }
.hv3-stats div + div { border-left: 1px solid #EEF2F6; }
.hv3-stats b { display: block; font: 800 34px/1 var(--font-display); color: var(--navy); }
.hv3-stats span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

#campeonato { padding-top: 34px; scroll-margin-top: 80px; }
.hv3-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.hv3-cat { --tone: #0B2A4A; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 2px solid var(--line-soft, #e6edf5); color: var(--navy) !important; box-shadow: var(--shadow-1); transition: transform .16s, border-color .16s; }
.hv3-cat:hover { transform: translateY(-3px); border-color: var(--tone); }
.hv3-cat-ico { position: absolute; right: -6px; bottom: -14px; font-size: 64px; color: var(--tone); opacity: .1; }
.hv3-cat-name { font: 800 22px/1 var(--font-display); text-transform: uppercase; }
.hv3-cat-meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.hv3-cat.active { background: linear-gradient(140deg, var(--tone) 0%, color-mix(in srgb, var(--tone) 70%, #000) 100%); border-color: transparent; color: #fff !important; box-shadow: 0 12px 26px rgba(11,42,74, .22); }
.hv3-cat.active .hv3-cat-meta { color: rgba(255, 255, 255, .8); }
.hv3-cat.active .hv3-cat-ico { color: #fff; opacity: .14; }
.hv3-cat.all { --tone: #0E6BB8; }
@media (max-width: 767px) {
    .hv3-crest { width: 76px; height: 76px; }
    .hv3-stats { margin-top: -24px; grid-template-columns: repeat(3, 1fr); }
    .hv3-stats div:nth-child(4) { border-left: 0; }
    .hv3-stats b { font-size: 26px; }
}
@media (max-width: 767px) { .hero-v3::before { background: linear-gradient(180deg, rgba(11,42,74,.92) 0%, rgba(11,42,74,.82) 60%, rgba(11,42,74,.9) 100%) !important; } }
.hero-v3 .hv3-title { max-width: 620px !important; font-size: clamp(28px, 3.4vw, 44px) !important; }
.hero-v3 .home-hero-copy { max-width: 640px; }

/* Registrar jugador: primero la categoría */
.pf-catpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pf-catopt { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 18px; background: #fff; border: 2px solid var(--line-soft, #e6edf5); box-shadow: var(--shadow-1); color: var(--navy) !important; text-decoration: none !important; transition: transform .16s, border-color .16s; }
.pf-catopt:hover { transform: translateY(-3px); border-color: #0E6BB8; }
.pf-catopt-ico { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #E6F7FE; color: #0E6BB8; font-size: 20px; margin-bottom: 4px; }
.pf-catopt b { font: 800 26px/1 var(--font-display); text-transform: uppercase; }
.pf-catopt small { color: var(--muted); font-size: 14px; font-weight: 600; }
.pf-catopt-go { margin-top: 8px; font-weight: 800; color: #0E6BB8; }
.pf-catopt.is-full { opacity: .75; background: #f8fafc; cursor: not-allowed; }
.pf-catopt.is-full .pf-catopt-ico { background: #fde8e8; color: #b42318; }
.pf-catopt.is-full em { font-style: normal; font-size: 13px; color: #9a3412; }
.pf-cat-fixed { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 10px; background: #E6F7FE; border: 1.5px solid #BDEBFB; }
.pf-cat-fixed span { font-weight: 800; color: #0B4F8A; }
.pf-cat-fixed a { font-size: 13px; font-weight: 700; color: var(--secondary, #0E6BB8); }

/* Paleta armónica: botones azules con texto blanco; naranja solo en inscribirse */
.btn-primary, .btn-primary:hover, .btn-primary i { color: #fff !important; }
.btn-primary:hover { background: #0B5A9C !important; }
.pres-cta { background: linear-gradient(110deg, #0880AE 0%, #0CB7F2 60%, #7CDAF9 100%) !important; }
.pres-cta-btn { background: #0E6BB8 !important; border-color: #0E6BB8 !important; color: #FFFFFF !important; }

/* ===== Paleta armónica 60-30-10 (portal) ===== */
:root { --primary: #0E6BB8; --primary-dark: #0B5A9C; }
.pt-header .btn-primary, .pres-cta-btn, .home-hero-actions .btn-outline-light[href*="inscribir"] {
    background: #0E6BB8 !important; border-color: #0E6BB8 !important; color: #FFFFFF !important;
}
.pt-header .btn-primary i, .pres-cta-btn i { color: #FFFFFF !important; }
.pres-cta { background: linear-gradient(110deg, #0B2A4A 0%, #0E6BB8 55%, #0CB7F2 100%) !important; }
.home-hero-actions .btn-primary { background: linear-gradient(100deg, #0E6BB8, #0CB7F2) !important; border: 0 !important; }
.next-round .btn-primary { background: linear-gradient(100deg, #0E6BB8, #0CB7F2) !important; border: 0 !important; }
.hv3-cat.active { --tone: #0E6BB8 !important; }
.hv3-cat.all { --tone: #0E6BB8 !important; }
.pt-nav > a.active, .pt-dd > a.active { color: #7CDAF9 !important; }
.pt-nav > a.active::after { background: #0CB7F2 !important; }
.pres-kicker.dark { color: #0A8FC4 !important; }
.mt-quick a.is-primary i, .mt-quick a.is-primary b, .mt-quick a.is-primary small { color: #fff !important; }

/* Sin naranja: botones de inscripción en degradado azul -> celeste */
.pt-header .btn-primary, .pres-cta-btn, .home-hero-actions .btn-outline-light[href*="inscribir"] {
    background: linear-gradient(100deg, #0E6BB8, #0CB7F2) !important; border: 0 !important; color: #fff !important;
}
.pt-header .btn-primary i, .pres-cta-btn i { color: #fff !important; }
.home-hero-actions .btn-outline-light[href*="inscribir"] { background: transparent !important; border: 2px solid rgba(255,255,255,.85) !important; }
.pres-cta-btn { background: #0B2A4A !important; }

/* Celular: los botones de fase/filtro bajan de línea en vez de esconderse a la derecha. */
@media (max-width: 640px) { .filters { flex-wrap: wrap; overflow-x: visible; } }

/* Partido por no presentación: "No se presentó X" debajo del marcador */
.ns-label { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: #B91C1C; line-height: 1.2; white-space: normal; }

/* Encabezado: escudo recortado + nombre corto a la izquierda; pestañas a la derecha */
.pt-brand.pt-brand-logo { max-width: none; gap: 10px; }
.pt-brand.pt-brand-logo img { width: auto; height: 36px; flex: 0 0 auto; background: none; border-radius: 0; padding: 0; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.pt-brand.pt-brand-logo .pt-logo-fb { width: 36px; height: 36px; flex-basis: 36px; }
.pt-brand-short { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.foot-brand img { background: none; border-radius: 0; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
@media (min-width: 1100px) {
    .pt-brand.pt-brand-logo { flex: 0 1 auto; max-width: 340px; }
    .pt-nav { justify-content: flex-end; margin-left: auto; }
}
@media (max-width: 480px) { .pt-brand-short { font-size: 16px; } }

/* Categorías en pestañas (Tabla de posiciones, Goleadores) */
.cat-tabs-bar { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; border-bottom: 2px solid #E3EAF3; }
.cat-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { position: relative; padding: 12px 18px; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: #5B6B82; white-space: nowrap; text-decoration: none !important; border-radius: 10px 10px 0 0; transition: color .15s, background .15s; }
.cat-tab:hover { color: var(--navy); background: #F1F5FB; }
.cat-tab.is-active { color: var(--navy); }
.cat-tab.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 3px; border-radius: 3px; background: #1685F8; }
.cat-tabs-season select { border: 1px solid #DCE5F0; border-radius: 10px; padding: 7px 12px; font-weight: 700; color: var(--navy); background: #fff; }
@media (max-width: 576px) { .cat-tab { padding: 10px 12px; font-size: 13.5px; } }

/* Mi Equipo · Pases */
.tf-search { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.tf-search .field { flex: 1; min-width: 200px; margin: 0; }
.tf-found { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #EEF6FF; border: 1px solid #CFE3FB; }
.tf-found.is-blocked { background: #FFF5F5; border-color: #FBD5D5; }
.tf-found b { color: var(--navy); display: block; }
.tf-found small { display: block; color: #475569; margin-top: 2px; }
.tf-found .check-miss { margin-top: 6px; }
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 640px) { .tf-grid { grid-template-columns: 1fr; } }
.tf-card { padding: 12px 0; border-top: 1px solid #EEF2F7; display: grid; gap: 8px; }
.tf-card:first-of-type { border-top: 0; }
.tf-card b { color: var(--navy); }
.tf-card small { display: block; color: #475569; }
.tf-act { display: flex; gap: 8px; margin: 0; }
.tf-act input { flex: 1; min-width: 0; border: 1px solid #DCE5F0; border-radius: 10px; padding: 7px 10px; font-size: 13px; }

.tf-act-wrap { flex-wrap: wrap; }
.tf-pdf { justify-self: start; }
.tf-file { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px dashed #93B4DC; border-radius: 10px; background: #F4F8FF; color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; max-width: 100%; }
.tf-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Trayectoria del jugador y Fichajes (tipo Transfermarkt) */
.tm-career { margin-top: 18px; }
.tm-table { display: grid; }
.tm-row { display: grid; grid-template-columns: 90px minmax(0, 1.6fr) minmax(0, 1fr) 52px 60px; gap: 10px; align-items: center; padding: 10px 4px; border-top: 1px solid #EEF2F7; font-size: 14px; color: var(--navy); }
.tm-row.tm-head { border-top: 0; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5B6B82; }
.tm-row .n { text-align: center; font-weight: 800; }
.tm-row .club { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.tm-row.is-current { background: #F1F7FF; border-radius: 10px; }
.tm-tag { padding: 1px 8px; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tm-tag.out { background: #EEF2F7; color: #5B6B82; }
.tm-move { margin: 6px 0 2px; padding: 6px 10px; border-radius: 10px; background: #FFF7E6; color: #7A4B00; font-size: 12.5px; }
.tm-move i { color: #1685F8; margin-right: 4px; }
.tm-club-txt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.tm-club-txt b { font-weight: 700; overflow-wrap: anywhere; }
.tm-cat-m, .tm-m { display: none; }
@media (max-width: 640px) {
    .tm-row { grid-template-columns: 48px minmax(0, 1fr) 34px 44px; gap: 8px; }
    .tm-row > span:nth-child(3) { display: none; }
    .tm-cat-m { display: block; flex-basis: 100%; color: #5B6B82; font-size: 12px; font-weight: 600; }
    .tm-d { display: none; } .tm-m { display: inline; }
}

.tm-list { padding: 4px 0; }
.tm-item { display: grid; grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 1.6fr) 100px; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid #EEF2F7; }
.tm-item:first-child { border-top: 0; }
.tm-photo { position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: #E6EEF9; color: var(--navy); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.tm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-who b { color: var(--navy); }
.tm-who small { display: block; color: #5B6B82; font-size: 12.5px; }
.tm-clubs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-club { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #5B6B82; min-width: 0; }
.tm-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-club.to { color: var(--navy); }
.tm-arrow { color: #16A34A; }
.tm-date { text-align: right; color: #5B6B82; font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) { .tm-item { grid-template-columns: 44px minmax(0, 1fr); } .tm-photo { width: 44px; height: 44px; } .tm-clubs { grid-column: 1 / -1; } .tm-date { grid-column: 1 / -1; text-align: left; } }

/* ===== «La Liga»: páginas institucionales y sección del inicio ===== */
.lg-kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7CDAF9; }
.lg-kicker.dark { color: #1685F8; }
.lg-hero { background: linear-gradient(135deg, var(--navy) 0%, #12447F 100%); color: #fff; padding: 34px 0 0; }
.lg-hero-row { display: flex; align-items: center; gap: 20px; padding-bottom: 22px; }
.lg-crest { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); flex: 0 0 auto; }
.lg-hero h1 { color: #fff; margin: 2px 0 4px; font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; }
.lg-hero p { margin: 0; color: #C9DBF1; font-weight: 600; }
.lg-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs a { padding: 12px 16px; border-radius: 12px 12px 0 0; color: #C9DBF1; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; }
.lg-tabs a:hover { color: #fff; background: rgba(255,255,255,.06); }
.lg-tabs a.is-active { background: var(--bg, #F3F6FA); color: var(--navy); }
.lg-tabs a i { margin-right: 4px; }
.lg-body { padding: 26px 16px 50px; display: grid; gap: 22px; }
.lg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; }
.lg-split.no-photo { grid-template-columns: 1fr; }
.lg-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px rgba(11,45,92,.14); min-height: 280px; }
.lg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-card { background: #fff; border: 1px solid #E3ECF8; border-radius: 22px; padding: 26px 28px; box-shadow: 0 8px 24px rgba(11,45,92,.06); display: flex; flex-direction: column; gap: 18px; }
.lg-prose { font-size: 16px; line-height: 1.75; color: #23406B; }
.lg-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lg-facts li { display: flex; align-items: center; gap: 12px; }
.lg-facts .ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: #EAF3FF; color: #1685F8; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.lg-facts small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5B6B82; }
.lg-facts b { color: var(--navy); font-size: 15px; }
.lg-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lg-more-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid #E3ECF8; border-radius: 16px; color: var(--navy); text-decoration: none; font-size: 15px; box-shadow: 0 4px 12px rgba(11,45,92,.05); }
.lg-more-card i:first-child { color: #1685F8; font-size: 18px; }
.lg-more-card .go { margin-left: auto; color: #94A3B8; }
.lg-more-card:hover { border-color: #B9D3F3; }
.lg-h2 { font-size: 22px; text-transform: uppercase; color: var(--navy); margin: 6px 0 -6px; }
.lg-h3 { font-family: var(--font-body); font-size: 16px; font-weight: 800; color: var(--navy); text-transform: none; margin: 0; }
.lg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lg-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #E3ECF8; }
.lg-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lg-gallery figcaption { padding: 8px 12px; font-size: 13px; color: #475569; }
.lg-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.lg-member { background: #fff; border: 1px solid #E3ECF8; border-radius: 18px; padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 4px 12px rgba(11,45,92,.05); }
.lg-avatar { position: relative; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: #EAF3FF; color: var(--navy); font-weight: 900; font-size: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.lg-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-member b { color: var(--navy); font-size: 15.5px; }
.lg-member .role { color: #1685F8; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.lg-member small { color: #5B6B82; }
.lg-docs { display: grid; gap: 12px; }
.lg-doc { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border: 1px solid #E3ECF8; border-radius: 16px; box-shadow: 0 4px 12px rgba(11,45,92,.05); }
.lg-doc .ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: #FEECEC; color: #DC2626; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.lg-doc .txt { flex: 1; min-width: 0; }
.lg-doc .txt b { display: block; color: var(--navy); font-size: 15.5px; }
.lg-doc .txt small { display: block; color: #475569; margin-top: 2px; }
.lg-doc .txt .date { color: #94A3B8; font-size: 12px; }
.lg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-list li { color: #23406B; font-size: 15px; }
.lg-list i { color: #16A34A; margin-right: 6px; }
.lg-loc { margin: 0; color: #23406B; font-weight: 600; }
.lg-loc i { color: #1685F8; margin-right: 6px; }
/* Inicio */
.lg-home { margin-top: 26px; margin-bottom: 8px; }
.lg-home-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: #fff; border: 1px solid #E3ECF8; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(11,45,92,.08); }
.lg-home-card.no-photo { grid-template-columns: 1fr; }
.lg-home-photo { margin: 0; min-height: 320px; }
.lg-home-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-home-copy { padding: 30px 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%); }
.lg-home-copy h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); text-transform: uppercase; color: var(--navy); }
.lg-home-copy p { margin: 0; color: #23406B; font-size: 15.5px; line-height: 1.7; }
.lg-home-copy .btn { align-self: flex-start; }
@media (max-width: 860px) {
    .lg-split, .lg-home-card { grid-template-columns: 1fr; }
    .lg-photo, .lg-home-photo { min-height: 220px; }
    .lg-home-copy, .lg-card { padding: 22px 20px; }
    .lg-hero-row { gap: 14px; }
    .lg-crest { width: 64px; height: 64px; }
    .lg-doc { flex-wrap: wrap; }
}
.lg-home-card.no-photo .lg-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .lg-home-card.no-photo .lg-facts { grid-template-columns: 1fr; } }

/* Encabezado: usa todo el ancho de la pantalla (antes 1320 px y quedaba apretado) */
@media (min-width: 1280px) {
    .pt-header .container { max-width: none; padding: 0 clamp(20px, 2.4vw, 44px); gap: 18px; }
    .pt-brand.pt-brand-logo { flex: 0 1 auto; max-width: 330px; }
    .pt-nav { justify-content: center; margin-left: 0; gap: clamp(0px, .6vw, 10px); }
    .pt-nav > a, .pt-dd > a { padding: 0 clamp(8px, .75vw, 14px); font-size: 14.5px; }
    .pt-nav > a.active::after, .pt-dd > a.active::after { left: clamp(8px, .75vw, 14px); right: clamp(8px, .75vw, 14px); }
}
@media (min-width: 1280px) and (max-width: 1439px) {
    .pt-brand-short { font-size: 16px; }
    .pt-brand.pt-brand-logo { max-width: 260px; }
}

/* App instalable: aviso para iPhone en el menú del celular */
.pt-install-ios { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(14,107,184,.08); color: var(--primary-dark, #0B5A9C); font-size: 13.5px; line-height: 1.45; }
.pt-install-ios i { margin-right: 6px; }
[data-install-app][hidden], [data-install-ios][hidden] { display: none !important; }

/* Partido: resumen frente a frente y alineaciones con foto, número y lo que hizo cada jugador */
.ms-card { padding: 16px 18px 10px; }
.ms-card h2 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.ms-teams { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 13.5px; color: var(--navy); margin-bottom: 6px; }
.ms-teams span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ms-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft, #EEF2F7); }
.ms-n { font-family: var(--font-display); font-size: 20px; text-align: center; color: var(--navy); }
.ms-mid { display: grid; gap: 5px; }
.ms-label { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted, #5B6B82); }
.ms-bar { display: flex; gap: 3px; height: 7px; border-radius: 99px; overflow: hidden; background: #EEF2F7; }
.ms-bar i { display: block; height: 100%; }
.ms-home { background: var(--home-1, #0E6BB8); margin-left: auto; border-radius: 99px 0 0 99px; }
.ms-away { background: var(--away-1, #16A34A); border-radius: 0 99px 99px 0; }
.ms-bar i[style="width: 0%"] { display: none; }

.lu-list { list-style: none; margin: 0; padding: 4px 12px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.lu-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 12px; background: var(--card-soft, #f7f9fc); font-size: 13.5px; min-width: 0; }
.lu-list li.muted { color: var(--muted); background: transparent; }
.lu-photo { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #E6EEF9; color: var(--navy); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lu-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.lu-num { position: absolute; right: -6px; bottom: -6px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 7px; background: var(--navy); color: #fff; border: 2px solid #fff; font: 800 11px/18px var(--font-body); text-align: center; z-index: 1; }
.lu-name { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.lu-name a { color: inherit; text-decoration: none; }
.lu-name a:hover { color: var(--primary, #0E6BB8); text-decoration: underline; }
.lu-events { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; }
.lu-goal { display: inline-flex; align-items: center; gap: 2px; color: var(--navy); font-size: 13px; }
.lu-goal b { font-size: 12px; }
.lu-goal.og { color: #B91C1C; }
.lu-goal.og small { font-size: 9.5px; font-weight: 800; }
@media (max-width: 640px) { .lu-list { grid-template-columns: 1fr; } .ms-teams { font-size: 12.5px; } }
/* Tabla de la portada con grupos: título de cada grupo */
.mini-table tr.mini-group td { padding: 8px 6px 4px; text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5B6B82); background: transparent; }
.mp-pos small { font-size: 10px; font-weight: 800; opacity: .8; }

/* Inicio en celular: lo importante primero, sin espacio de más */
@media (max-width: 767px) {
    /* Portada: título, botones y próxima jornada; el texto largo queda para computadora */
    .hero-v3 .hv3-text { display: none; }
    /* Categorías: una sola fila que se desliza, en vez de 5 tarjetas grandes */
    .hv3-cats { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px 16px; padding: 2px 16px 6px; scrollbar-width: none; }
    .hv3-cats::-webkit-scrollbar { display: none; }
    .hv3-cat { flex: 0 0 auto; scroll-snap-align: start; padding: 9px 16px; border-radius: 999px; box-shadow: none; }
    .hv3-cat-name { font-size: 16px; }
    .hv3-cat-meta, .hv3-cat-ico { display: none; }
}
/* Inicio en computadora: Goleadores va bajo Últimos resultados (sin hueco en la columna izquierda) */
@media (min-width: 1100px) {
    .home2-side { display: contents; }
    .home2 > .home2-matches { grid-column: 1; grid-row: 1; }
    .home2 #tabla { grid-column: 2; grid-row: 1 / span 2; }
    .home2-side > .panel:not(#tabla) { grid-column: 1; grid-row: 2; }
}
@media (max-width: 767px) {
    .hv3-cats { margin: 0 0 16px; padding: 2px 2px 6px; }
    .hv3-stats div { padding: 12px 6px; }
    .hv3-stats span { font-size: 10.5px; letter-spacing: .03em; }
}

/* ===== Inicio en celular: la portada es el partido destacado ===== */
.hm-hero { display: none; }
.hm-enroll { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, #E6F3FE, #F1F7FF); border: 1px solid #CFE3F7; color: var(--navy) !important; text-decoration: none !important; }
.hm-enroll-ico { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: #0E6BB8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.hm-enroll b { display: block; font-size: 15px; }
.hm-enroll small { color: var(--muted); font-size: 13px; }
.hm-enroll-go { margin-left: auto; font-weight: 800; color: #0E6BB8; white-space: nowrap; }
@media (max-width: 767px) {
    .hero-v3 { min-height: 0 !important; padding: 20px 0 22px !important; }
    .hero-v3 .home-hero-copy, .hero-v3 .next-round { display: none !important; }
    .hero-v3 .home-hero-grid { gap: 0 !important; }
    .hm-hero { display: flex; align-items: center; gap: 14px; color: #fff; position: relative; z-index: 2; }
    .hm-crest { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
    .hm-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .hm-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7DD3FC; }
    .hm-phase-name { font: 800 26px/1.05 var(--font-display); text-transform: uppercase; }
    .hm-date { font-size: 13px; color: #C9D6E6; }
    .hm-date i { margin-right: 4px; }
    /* Bajo la portada: directo al campeonato (las cifras y el título repetido quedan para computadora) */
    .hv3-stats { display: none !important; }
    #campeonato > .pres-section-head { display: none; }
    #campeonato { padding-top: 16px; }
    .hm-enroll { padding: 12px 14px; gap: 10px; }
    .hm-enroll-go { font-size: 13px; }
}

/* ===== Inicio en celular con más vida: portada con cancha dibujada, categorías con color y resultados como tarjetas ===== */
.hm-pills { display: none; }
@media (max-width: 767px) {
    .hero-v3 { padding: 22px 0 18px !important; background: #0B2A4A; }
    .hero-v3::after {   /* líneas de una cancha y un brillo, sobre la foto */
        content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
        background:
            radial-gradient(circle at 18% 30%, rgba(56, 189, 248, .28), transparent 45%),
            radial-gradient(circle at 100% 110%, rgba(14, 107, 184, .45), transparent 50%),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='390' height='220' viewBox='0 0 390 220' fill='none' stroke='white' stroke-opacity='.09' stroke-width='2'%3E%3Crect x='8' y='8' width='374' height='204' rx='6'/%3E%3Cline x1='195' y1='8' x2='195' y2='212'/%3E%3Ccircle cx='195' cy='110' r='38'/%3E%3Crect x='8' y='60' width='52' height='100'/%3E%3Crect x='330' y='60' width='52' height='100'/%3E%3C/svg%3E") center / cover no-repeat;
    }
    .hm-hero { z-index: 2; }
    .hm-crest { width: 74px; height: 74px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 2px rgba(125, 211, 252, .35), 0 10px 28px rgba(0, 0, 0, .35); }
    .hm-phase-name { font-size: 28px; background: linear-gradient(90deg, #fff, #BAE6FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .hm-kicker::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: hm-pulse 2s infinite; vertical-align: 1px; }
    @keyframes hm-pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
    .hm-pills { display: flex; gap: 8px; margin-top: 16px; position: relative; z-index: 2; }
    .hm-pills span { flex: 1; padding: 8px 6px; border-radius: 14px; text-align: center; color: #C9D6E6; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
    .hm-pills b { display: block; color: #fff; font: 800 22px/1 var(--font-display); letter-spacing: 0; margin-bottom: 2px; }

    /* Categorías: cada una con su color */
    .hv3-cat { border: 1.5px solid #E3EAF3; }
    .hv3-cat:not(.active) .hv3-cat-name::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--tone); vertical-align: 2px; }
    .hv3-cat.active { box-shadow: 0 8px 18px color-mix(in srgb, var(--tone) 35%, transparent); }

    /* Resultados: cada partido en su tarjeta, marcador tipo TV */
    .home2-matches { background: transparent; border: 0; box-shadow: none; padding: 0; }
    .home2-matches .panel-head { padding: 0 2px 6px; border: 0; }
    .home2-matches .res-row { margin-top: 10px; padding: 12px 12px 14px; border: 1px solid #E8EEF5; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(11, 42, 74, .06); }
    .home2-matches .res-score { padding: 6px 12px; border-radius: 10px; background: linear-gradient(180deg, #123E6B, #0B2A4A); color: #fff; font-size: 22px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
    .home2-matches .res-row .badge { font-size: 10px; padding: 3px 8px; }
    .home2-matches .res-team .crest { width: 34px; height: 34px; }

    /* Aparición suave de las tarjetas */
    .home2-matches .res-row, .home2 .panel, .hm-pills span { animation: hm-up .45s ease both; }
    .home2-matches .res-row:nth-of-type(2) { animation-delay: .05s; } .home2-matches .res-row:nth-of-type(3) { animation-delay: .1s; } .home2-matches .res-row:nth-of-type(4) { animation-delay: .15s; }
    @keyframes hm-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .home2-matches .res-row, .home2 .panel, .hm-pills span, .hm-kicker::before { animation: none !important; }
}
@media (max-width: 767px) {
    .hero-v3 .home-hero-grid { padding-top: 0 !important; padding-bottom: 0 !important; }
    .home2-matches .panel-head { margin-bottom: -2px; }
}

/* Plus Jakarta Sans: títulos un poco más juntos (es más ancha que la condensada anterior) */
h1, h2, h3, .hv3-title, .hm-phase-name, .ko-champ-name, .pres-section-head h2 { letter-spacing: -.015em; }
/* Plus Jakarta Sans es más ancha: el título largo de la portada baja de línea y el nombre de la barra cabe en el celular */
.hero-v3 .home-hero-copy { min-width: 0; }
.hero-v3 .hv3-title { max-width: 100% !important; font-size: clamp(26px, 2.9vw, 40px) !important; white-space: normal !important; overflow-wrap: break-word; }
.pt-brand-short { letter-spacing: -.01em; }
@media (max-width: 480px) { .pt-brand-short { font-size: 14px; letter-spacing: -.02em; } }

/* ===== Página Equipos: ficha limpia con el color del club ===== */
.club-card.tc { align-items: center; text-align: center; padding: 0 0 0; border-radius: 20px; border: 1px solid #E6ECF3; }
.tc-top { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 118px; margin-bottom: 12px;
    background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--kit-1) 30%, #fff) 0%, color-mix(in srgb, var(--kit-1) 10%, #fff) 55%, #fff 100%); }
.tc-top::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--kit-1), var(--kit-2)); }
.tc-crest { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(11, 42, 74, .14); transition: transform .2s var(--ease, ease); }
.tc-crest .crest.xl { width: 66px; height: 72px; }
.club-card.tc:hover .tc-crest { transform: scale(1.06); }
.tc-name { padding: 0 16px; font: 700 20px/1.2 var(--font-display); color: var(--navy); text-transform: none; letter-spacing: 0; }
.tc-cats { margin-top: 4px; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tc-form { display: flex; justify-content: center; margin-top: 12px; }
.tc-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: auto; padding: 12px 16px; border-top: 1px solid #EEF2F7; font-weight: 700; font-size: 14px; color: var(--primary, #0E6BB8); }
.club-card.tc .tc-form + .tc-cta, .club-card.tc .tc-cats + .tc-cta { margin-top: 14px; }
.club-card.tc:hover .tc-cta i { transform: translateX(4px); }
.tc-cta i { transition: transform .2s var(--ease, ease); }
@media (max-width: 639px) {
    .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tc-top { height: 92px; margin-bottom: 10px; }
    .tc-crest { width: 70px; height: 70px; }
    .tc-crest .crest.xl { width: 50px; height: 55px; }
    .tc-name { font-size: 15.5px; padding: 0 10px; }
    .tc-cats { font-size: 11.5px; padding: 0 10px; }
    .tc-form .form-dots, .tc-form > * { transform: scale(.9); }
    .tc-cta { padding: 10px; font-size: 13px; }
}
@media (min-width: 1100px) { .club-grid:has(.tc) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== Partidos: navegador de jornadas (reemplaza la fila J25, J24, J23…) ===== */
.jr-bar { position: fixed; top: calc(var(--header-h, 68px) + 8px); left: 50%; width: min(1240px, calc(100% - 32px)); transform: translate(-50%, -14px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(11, 42, 74, .96); color: #fff; box-shadow: 0 12px 28px rgba(11, 42, 74, .22); backdrop-filter: blur(6px); }
.jr-bar.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.jr-arrow { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; cursor: pointer; transition: background .15s; }
.jr-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.jr-arrow:disabled { opacity: .3; cursor: default; }
.jr-now { flex: 1; min-width: 0; text-align: center; }
.jr-now b { display: block; font: 700 18px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-now small { display: block; margin-top: 2px; font-size: 12.5px; color: #BFD3EA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-pick { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 12px; height: 38px; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 700; font-size: 13px; cursor: pointer; }
.jr-pick::after { content: 'Ir a jornada'; }
.jr-pick select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.journey { scroll-margin-top: calc(var(--header-h, 68px) + 96px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
    .jr-bar { top: calc(var(--header-h, 60px) + 6px); gap: 6px; padding: 8px; border-radius: 14px; }
    .jr-arrow { width: 34px; height: 34px; }
    .jr-now b { font-size: 15px; }
    .jr-now small { font-size: 11px; }
    .jr-pick { width: 34px; padding: 0; justify-content: center; }
    .jr-pick::after { content: none; }
    .journey { scroll-margin-top: calc(var(--header-h, 60px) + 84px); }
}
/* Categoría con campeón: la etiqueta dorada "Campeón" en lugar de "Líder" */
.hub-leader.is-champion { border-color: rgba(224, 180, 58, .55); background: linear-gradient(135deg, rgba(224, 180, 58, .18), rgba(255, 255, 255, .06)); }
.hub-leader.is-champion .hub-leader-tag { background: linear-gradient(135deg, #B8860B, #E0B43A); color: #fff; }
.mp-item.mp-1 .mp-pos i { color: #C9A227; }

/* ===== Mi Equipo: filtro por categoría (Partidos, Sanciones, Cuenta, Pases) ===== */
.mt-catbar { display: flex; gap: 6px; margin: 0 0 16px; padding: 4px; border-radius: 14px; background: #E8EDF3; overflow-x: auto; scrollbar-width: none; }
.mt-catbar::-webkit-scrollbar { display: none; }
.mt-catbar a { flex: 0 0 auto; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.mt-catbar a:hover { color: var(--navy); }
.mt-catbar a.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(11, 42, 74, .1); }
.mt-catnote { margin: -8px 0 14px; }
.mt-cat-tag { display: inline-block; margin: 0 0 3px 6px; padding: 1px 8px; border-radius: 999px; background: #E6F3FE; color: #0E6BB8; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; vertical-align: 1px; }
.match-row .mid .mt-cat-tag { display: block; margin: 0 auto 4px; width: max-content; }
.acc-cats { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #E3EAF3; display: grid; gap: 6px; }
.acc-cats > small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acc-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: #F6F8FB; color: var(--navy); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.acc-cats a b { color: var(--danger, #DC2626); }
.acc-cats a.active { background: #E6F3FE; box-shadow: inset 0 0 0 1.5px #0E6BB8; }

/* Etapa de la llave (Final, Tercer lugar, Semifinal) en las tarjetas y en la ficha del partido */
.match-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.badge-stage { background: #F3E3B5; color: #7A5A00; border-radius: var(--radius-pill); font-weight: 800; }
.badge-stage.is-final { background: linear-gradient(135deg, #E8C25A, #C9971C); color: #fff; }
.badge-stage i { font-size: .85em; }
.mh-stage { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 3px 12px; border-radius: 999px;
  background: rgba(232, 194, 90, .22); color: #F6D879; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .85em; }
.mh-stage.is-final { background: linear-gradient(135deg, #E8C25A, #C9971C); color: #fff; }

/* ===== Carta del jugador (cromo de colección) ===== */
.pc-thumb { position: relative; width: 110px; height: 110px; flex: 0 0 110px; padding: 0; border: 0; border-radius: 24px; overflow: hidden; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; font: inherit; font-size: 34px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25); transition: transform .25s ease, box-shadow .25s ease; }
.pc-thumb.is-gold { box-shadow: 0 0 0 3px #E8C25A, 0 0 22px rgba(232,194,90,.55); }
.pc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pc-thumb:hover, .pc-thumb:focus-visible { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 3px #fff, 0 14px 30px rgba(0,0,0,.35); outline: 0; }
.pc-thumb.is-gold:hover { box-shadow: 0 0 0 3px #F6D879, 0 0 30px rgba(232,194,90,.8); }
.pc-thumb:hover img { transform: scale(1.08); }
.pc-thumb-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 0; font-size: 11px; font-weight: 800; letter-spacing: .03em;
  background: linear-gradient(transparent, rgba(5,20,40,.85)); opacity: 0; transform: translateY(6px); transition: .25s ease; }
.pc-thumb:hover .pc-thumb-hint, .pc-thumb:focus-visible .pc-thumb-hint { opacity: 1; transform: none; }
@media (hover: none) { .pc-thumb-hint { opacity: 1; transform: none; } }

.pc-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4,14,30,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.pc-modal[hidden] { display: none; }
.pc-modal.is-open { opacity: 1; }
.pc-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; perspective: 1000px;
  transform: scale(.85) translateY(20px); transition: transform .35s cubic-bezier(.2,.9,.3,1.25); }
.pc-modal.is-open .pc-stage { transform: none; }
.pc-close { position: absolute; top: -6px; right: -6px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #0B2A4A; font-size: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.pc-share { border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; font: inherit; font-weight: 800; color: #fff; background: #25D366;
  box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.pc-share i { margin-right: 6px; }

.pcard { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; width: min(310px, 84vw); border-radius: 22px; padding: 4px; touch-action: none;
  background: linear-gradient(150deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 40%, rgba(255,255,255,.4));
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .45s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.pcard.is-tilting { transition: transform .08s linear; }
.pcard-in { position: relative; overflow: hidden; border-radius: 18px; color: #fff; text-align: center; padding: 16px 18px 14px;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--kit) 80%, #fff 20%), var(--kit) 45%, #06152b 100%); }
.pcard-in::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 14px); }
.pcard-glare { position: absolute; inset: 0; pointer-events: none; z-index: 4; mix-blend-mode: overlay; opacity: .55;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.75), transparent 45%); }
.pcard-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; }
.pcard-num { text-align: left; line-height: 1; }
.pcard-num b { display: block; font-size: 48px; font-weight: 900; text-shadow: 0 3px 10px rgba(0,0,0,.35); }
.pcard-num small { display: block; margin-top: 4px; max-width: 120px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.pcard-crest .crest { filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.pcard-photo { position: relative; z-index: 2; width: 170px; height: 170px; margin: -6px auto 10px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 54px; font-weight: 900; background: rgba(255,255,255,.14);
  border: 4px solid rgba(255,255,255,.85); box-shadow: 0 12px 26px rgba(0,0,0,.4); }
.pcard-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-honors { position: relative; z-index: 2; display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.pcard-honors span { padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  color: #4A3500; background: linear-gradient(135deg, #FFF1B8, #E8C25A 55%, #C9971C); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.pcard-name { position: relative; z-index: 2; font-size: 22px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pcard-club { position: relative; z-index: 2; margin-top: 3px; font-size: 13px; font-weight: 700; opacity: .9; }
.pcard-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 0 10px; padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); }
.pcard-stats div + div { border-left: 1px solid rgba(255,255,255,.2); }
.pcard-stats b { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; }
.pcard-stats small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.pcard-foot { position: relative; z-index: 2; font-size: 11.5px; font-weight: 700; opacity: .9; }
.pcard-league { position: relative; z-index: 2; margin-top: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }

/* Dorada: goleador o campeón */
.pcard.is-gold { padding: 5px; background: linear-gradient(135deg, #FFF3C4, #E8C25A 25%, #9C6F0E 50%, #F6D879 75%, #C9971C);
  box-shadow: 0 0 40px rgba(232,194,90,.55), 0 30px 60px rgba(0,0,0,.5); }
.pcard.is-gold .pcard-in { background: radial-gradient(120% 70% at 50% 0%, #6b5216, #2b2108 55%, #120d02 100%); }
.pcard.is-gold .pcard-photo { border-color: #F6D879; box-shadow: 0 0 0 3px rgba(246,216,121,.35), 0 12px 26px rgba(0,0,0,.5); }
.pcard.is-gold .pcard-num b, .pcard.is-gold .pcard-name, .pcard.is-gold .pcard-stats b {
  background: linear-gradient(180deg, #FFF6D0, #E8C25A 60%, #C9971C); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.pcard.is-gold .pcard-in::after { content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,240,190,.35) 50%, transparent 60%); animation: pcShine 3.2s ease-in-out infinite; }
@keyframes pcShine { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .pcard.is-gold .pcard-in::after { animation: none; } .pcard, .pc-stage { transition: none; } }
@media (max-height: 640px) { .pcard-photo { width: 130px; height: 130px; } .pcard-num b { font-size: 38px; } }
.mh-fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .9; }

/* Últimos resultados plegable en la página del equipo (cerrado al entrar) */
.res-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(11,42,74,.06); border: 1px solid rgba(11,42,74,.06); transition: box-shadow .2s ease; }
.res-fold > summary::-webkit-details-marker { display: none; }
.res-fold > summary:hover { box-shadow: 0 6px 18px rgba(11,42,74,.12); }
.res-fold > summary h2 { margin: 0; }
.res-fold-dots { display: inline-flex; gap: 4px; }
.res-fold-dots i { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 900; color: #fff; }
.res-fold-dots i.w { background: #1FA463; } .res-fold-dots i.l { background: #DC2626; } .res-fold-dots i.d { background: #94A3B8; }
.res-fold-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; }
.res-fold-btn i { transition: transform .25s ease; }
.res-fold[open] .res-fold-btn i { transform: rotate(180deg); }
.res-fold .t-close, .res-fold[open] .t-open { display: none; }
.res-fold[open] .t-close { display: inline; }
.res-fold > summary h2 { text-transform: uppercase; font-size: 22px; }
@media (max-width: 600px) {
  .res-fold > summary { flex-wrap: nowrap; gap: 8px; padding: 10px 12px; }
  .res-fold > summary h2 { font-size: 16px; line-height: 1.15; }
  .res-fold-dots i { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; }
  .res-fold-dots { gap: 3px; }
  .res-fold-btn { padding: 6px 10px; }
  .res-fold-btn .t-open, .res-fold-btn .t-close { display: none !important; }
}

/* Ficha del club en la portada del equipo */
.club-facts div > i { display: block; margin-bottom: 6px; font-size: 13px; color: #7FB6E8; }
.club-facts b { font-size: 22px; }
.club-facts b.cf-txt { font-size: 17px; line-height: 1.15; min-height: 22px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.club-facts .cf-kit { display: flex; justify-content: center; gap: 6px; height: 22px; align-items: center; }
.club-facts .cf-kit i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
@media (max-width: 720px) {
  .club-hero .hero-stats.club-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-hero .hero-stats.club-facts div { border-left: 1px solid rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.08); }
  .club-hero .hero-stats.club-facts div:nth-child(-n+2) { border-top: 0; }
  .club-hero .hero-stats.club-facts div:nth-child(odd) { border-left: 0; }
  .club-hero .hero-stats.club-facts div:nth-child(2) { grid-column: span 1; }
  .club-hero .hero-stats.club-facts div:first-child { grid-column: 1 / -1; }
  .club-hero .hero-stats.club-facts div:first-child + div { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .club-hero .hero-stats.club-facts div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.08); }
  .club-hero .hero-stats.club-facts div:nth-child(4) { border-left: 0; }
  .club-hero .hero-stats.club-facts div:nth-child(5) { border-left: 1px solid rgba(255,255,255,.08); }
}

/* Portada del partido: racha (antes) o goleadores (después) bajo cada equipo */
.mh-form { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mh-form > small { font: 700 9.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #9fb3cc; }
.mh-scorers { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 700; color: #DCE7F3; line-height: 1.25; }
.mh-scorers i { font-size: 10px; color: #fff; opacity: .85; margin-right: 3px; }
.mh-scorers em { font-style: normal; color: #9fb3cc; font-weight: 600; }
.mh-scorers .mh-more { color: #9fb3cc; font-size: 11.5px; }
@media (max-width: 600px) { .mh-scorers { font-size: 11px; } .mh-form .form-dots .fd { width: 18px; height: 18px; font-size: 10px; } }
.mh-board > .mh-team { align-self: start; }

/* PDF e imagen de la jornada en la página pública de Partidos */
.journey-doc { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font: 800 11.5px/1.5 var(--font-body); list-style: none; }
.journey-doc:hover { background: rgba(255,255,255,.26); color: #fff; }
.journey-doc::-webkit-details-marker { display: none; }
.journey-docs { position: relative; }
.journey-docs-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px; border-radius: 14px;
  background: #fff; box-shadow: 0 14px 34px rgba(11,42,74,.25); }
.journey-docs .jd-row { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; }
.journey-docs .jd-row + .jd-row { border-top: 1px solid #EEF2F7; }
.journey-docs .jd-row b { flex: 1; color: var(--navy); font-size: 13px; }
.journey-docs .jd-row a { padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.journey-docs .jd-row a:hover { background: var(--brand); color: #fff; }
@media (max-width: 480px) { .journey-doc > span { display: none; } }
@media (max-width: 600px) { .journey-docs-menu { right: auto; left: 0; min-width: 0; width: min(280px, calc(100vw - 48px)); } }

/* ===== Ficha del jugador: cada número abre su historial (trazabilidad) ===== */
.ph-kpi { font: inherit; cursor: pointer; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ph-kpi:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11,42,74,.12); border-color: rgba(14,107,184,.35); }
.ph-kpi:disabled { cursor: default; opacity: .75; }
.ph-kpi.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), 0 10px 22px rgba(11,42,74,.14); }
.ph-kpi .ph-hint { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 800; color: var(--brand); opacity: .85; }
.ph-kpi .ph-hint i { font-size: 9px; transition: transform .2s ease; }
.ph-kpi.is-active .ph-hint i { transform: rotate(180deg); }
.ph-panel { margin-top: 14px; animation: phIn .25s ease; }
@keyframes phIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ph-panel .panel-head h2 small { font-size: .7em; color: var(--muted); font-weight: 700; }
.ph-list { display: flex; flex-direction: column; }
.ph-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 6px;
  border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: background .15s; border-radius: 10px; }
.ph-row:first-child { border-top: 0; }
.ph-row:hover { background: #F3F7FC; text-decoration: none; }
.ph-date b { display: block; font-size: 14px; color: var(--navy); }
.ph-date small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ph-rival { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.ph-rival > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-info { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ph-min, .ph-susp, .ph-res { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ph-min { background: var(--brand-soft); color: var(--brand); }
.ph-susp { background: #FEE2E2; color: #B91C1C; }
.ph-res { background: #EEF2F7; color: #475569; }
.ph-res-g { background: #E3F6EC; color: #157A47; }
.ph-res-p { background: #FDECEC; color: #B91C1C; }
.ph-go { font-size: 12px; font-weight: 800; color: var(--brand); white-space: nowrap; }
@media (max-width: 640px) {
  .ph-kpi .ph-hint { font-size: 9.5px; }
  .ph-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date info" "rival go"; row-gap: 6px; }
  .ph-date { grid-area: date; } .ph-info { grid-area: info; } .ph-rival { grid-area: rival; } .ph-go { grid-area: go; }
}
.ph-panel[hidden] { display: none !important; }

/* Penales (fase final): no son goles, se muestran aparte */
.mh-pens { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(232,194,90,.2); color: #F6D879; font-size: 13px; font-weight: 800; }
.match .score .pen-label { display: block; font-size: 11px; font-weight: 800; color: #9A7A1C; }

/* ===== Mi Equipo: avisos al celular ===== */
.mt-push-box { padding: 4px 0 2px; }
.mt-push-state { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.mt-push-state > i { font-size: 22px; color: var(--muted); margin-top: 2px; }
.mt-push-state b { display: block; color: var(--navy); }
.mt-push-state span { font-size: 13px; color: var(--muted); }
.mt-push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-push-ios { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #F1F6FB; font-size: 13px; color: var(--ink); }
.mt-push-msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.mt-push-msg.ok { background: #E3F6EC; color: #157A47; }
.mt-push-msg.bad { background: #FDECEC; color: #B91C1C; }
.mt-notices { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.mt-notices > small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mt-notice { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.mt-notice:hover { background: #F3F7FC; text-decoration: none; }
.mt-notice b { display: block; font-size: 13.5px; color: var(--navy); }
.mt-notice span { display: block; font-size: 12.5px; color: var(--muted); }
.mt-notice em { font-style: normal; font-size: 11px; color: #94a3b8; }
.mt-notice span { white-space: pre-line; }
.mt-push-box [hidden] { display: none !important; }
.mt-zone-switch { font-weight: 800; color: var(--navy) !important; }
.mt-head-actions .mt-zone-switch { background: linear-gradient(135deg, #157A47, #1FA463); border: 0; color: #fff !important; }
.mt-head-actions .mt-zone-switch:hover { filter: brightness(1.08); }

/* Mi Equipo (celular): "Más" abre una hoja con Cuenta, Pases, Categorías… */
.mt-more { position: fixed; inset: 0; z-index: 54; background: rgba(4,14,30,.45); display: flex; align-items: flex-end; }
.mt-more[hidden] { display: none; }
.mt-more-sheet { width: 100%; background: #fff; border-radius: 20px 20px 0 0; padding: 8px 14px calc(var(--bottom-nav-h) + 14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px rgba(0,0,0,.18); animation: mtMoreUp .22s ease; }
@keyframes mtMoreUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.mt-more-grip { display: block; width: 44px; height: 5px; border-radius: 99px; background: #d5deea; margin: 4px auto 10px; }
.mt-more-item { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.mt-more-item + .mt-more-item { border-top: 1px solid var(--line-soft); }
.mt-more-item:hover, .mt-more-item.active { background: #F3F7FC; text-decoration: none; }
.mt-more-item > span:nth-child(2) { flex: 1; min-width: 0; }
.mt-more-item b { display: block; font-size: 15px; color: var(--navy); }
.mt-more-item small { display: block; font-size: 12.5px; color: var(--muted); }
.mt-more-item > .fa-chevron-right { color: #94a3b8; font-size: 13px; }
.mt-more-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-size: 17px; }
@media (min-width: 992px) { .mt-more { display: none !important; } }

/* Mi Equipo: actualizar datos de un jugador aprobado */
.mt-upd-block { border: 1px solid var(--line-soft); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.mt-upd-block > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.mt-upd-block > summary::-webkit-details-marker { display: none; }
.mt-upd-block > summary > span { flex: 1; min-width: 0; }
.mt-upd-block > summary b { display: block; color: var(--navy); font-size: 14.5px; }
.mt-upd-block > summary b i { color: var(--brand); width: 18px; }
.mt-upd-block > summary small { display: block; color: var(--muted); font-size: 12.5px; margin-left: 22px; }
.mt-upd-block > summary > .fa-chevron-down { color: #94a3b8; transition: transform .2s; }
.mt-upd-block[open] > summary > .fa-chevron-down { transform: rotate(180deg); }
.mt-upd-form { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.mt-upd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mt-upd-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.mt-upd-grid label.wide { grid-column: 1 / -1; }
.mt-upd-form input, .mt-upd-form select, .mt-upd-form textarea { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #d5deea; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.mt-upd-form input[type=file] { min-height: 0; padding: 8px; }
.mt-upd-form .btn { align-self: flex-start; }
.mt-upd-pending { margin: 0 14px 14px; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #FFF7E6; color: #7A5A00; font-size: 13px; }
.mt-upd-pending img { width: 56px; height: 64px; object-fit: cover; border-radius: 8px; }
.mt-upd-pending b { display: block; }
.mt-upd-history { margin-top: 6px; font-size: 13px; }
.mt-upd-history > small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mt-upd-history > div { padding: 6px 10px; border-radius: 8px; margin-bottom: 4px; background: #F3F7FC; }
.mt-upd-history > div.done b { color: #157A47; } .mt-upd-history > div.rejected b { color: #B91C1C; }
.mt-upd-history span { color: var(--muted); }
@media (max-width: 560px) { .mt-upd-grid { grid-template-columns: 1fr; } }

/* ===================== Mi Equipo · Partidos (mx-) ===================== */
.mx-page .mt-catbar { margin-bottom: var(--s-4); }
.mx-section { margin-top: var(--s-6); }
.mx-section .section-head { margin-top: 0; }
.mx-section .section-head a i { font-size: 11px; margin-left: 2px; }
.mx-count { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }

/* Resumen de la categoría */
.mx-summary { padding: var(--s-4) var(--s-5); }
.mx-summary-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.mx-summary-head h2 { margin: 0; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; }
.mx-form { display: flex; align-items: center; gap: 6px; }
.mx-form-label { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); margin-right: 2px; }
.mx-dot { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; transition: transform .15s var(--ease); }
.mx-dot:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }
.mx-dot.is-win, .mx-badge.is-win { background: var(--win); }
.mx-dot.is-draw { background: var(--draw); }
.mx-dot.is-loss { background: var(--loss); }
.mx-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); }
.mx-stats > div { background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 6px; text-align: center; }
.mx-stats b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.mx-stats b small { font-size: 18px; color: var(--muted); margin: 0 2px; }
.mx-stats span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.mx-stats .is-win b { color: var(--win); }
.mx-stats .is-draw b { color: var(--draw); }
.mx-stats .is-loss b { color: var(--loss); }

/* Próximo partido */
.mx-next { display: flex; align-items: stretch; overflow: hidden; color: inherit; transition: box-shadow .15s, transform .15s var(--ease); }
.mx-next:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); text-decoration: none; color: inherit; }
.mx-next-when { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: var(--s-4) var(--s-2); color: #fff; background: linear-gradient(160deg, var(--navy-2), var(--navy)); text-align: center; }
.mx-day { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.mx-date { font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: capitalize; line-height: 1.1; }
.mx-time { margin-top: 4px; font-size: 15px; font-weight: 800; background: rgba(255,255,255,.16); border-radius: 999px; padding: 2px 12px; }
.mx-next-body { flex: 1; min-width: 0; padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: 10px; }
.mx-next-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mx-tag { font-size: var(--fs-xs); font-weight: 700; color: var(--navy-2); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }
.mx-tag.is-stage { color: #8a5a00; background: #fff6db; }
.mx-tag.is-warn { color: var(--loss); background: #fff1e8; }
.mx-next-vs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mx-next-vs b { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-vs { font-size: var(--fs-xs); font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.mx-next-field { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.mx-next-field i { color: var(--primary); margin-right: 4px; }
.mx-chev { align-self: center; color: #b6c2d1; font-size: 13px; padding: 0 var(--s-4) 0 var(--s-2); }
.mx-subhead { margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-sm); font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Listas (más adelante / resultados) */
.mx-list { overflow: hidden; }
.mx-row { display: flex; align-items: center; gap: var(--s-3); padding: 12px var(--s-4); border-top: 1px solid var(--line-soft); color: inherit; transition: background .15s; }
.mx-row:first-child { border-top: 0; }
.mx-row:hover { background: var(--brand-soft); text-decoration: none; color: inherit; }
.mx-row .mx-chev { padding: 0; }
.mx-row-date { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.mx-row-date b { font-size: 15px; font-weight: 800; color: var(--navy); text-transform: capitalize; }
.mx-row-date small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mx-row-rival { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.mx-row-rival > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.mx-row-rival b { font-size: var(--fs-md); font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-row-rival small { font-size: 12px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-ns { color: var(--loss); }
.mx-result { border-left: 4px solid transparent; }
.mx-result.is-win { border-left-color: var(--win); }
.mx-result.is-draw { border-left-color: var(--draw); }
.mx-result.is-loss { border-left-color: var(--loss); }
.mx-badge { flex: 0 0 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; }
.mx-result.is-win .mx-badge { background: var(--win); }
.mx-result.is-draw .mx-badge { background: var(--draw); }
.mx-result.is-loss .mx-badge { background: var(--loss); }
.mx-score { display: flex; align-items: center; gap: 4px; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.mx-score i { font-style: normal; color: var(--muted); font-size: 16px; }
.mx-result.is-win .mx-score b:first-child { color: var(--win); }
.mx-result.is-loss .mx-score b:last-child { color: var(--loss); }

/* Vacíos */
.mx-empty { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5); border: 1.5px dashed var(--line); box-shadow: none; background: var(--card); }
.mx-empty-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); background: var(--brand-soft); }
.mx-empty b { color: var(--ink); font-size: var(--fs-md); }
.mx-empty p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }

@media (max-width: 640px) {
    .mx-summary { padding: var(--s-3) var(--s-4); }
    .mx-stats { grid-template-columns: repeat(3, 1fr); }
    .mx-stats b { font-size: 20px; }
    .mx-next-when { flex-basis: 92px; }
    .mx-date { font-size: 18px; }
    .mx-next-body { padding: var(--s-3) var(--s-4); }
    .mx-next-vs b { font-size: 17px; }
    .mx-next > .mx-chev { display: none; }
    .mx-row { padding: 10px var(--s-3); gap: 10px; }
    .mx-score { font-size: 19px; }
}
.mx-page .mx-section { margin-top: var(--s-5); padding-top: 0; }
@media (min-width: 1000px) {
    /* Escritorio: dos columnas para que el marcador quede cerca del rival. */
    .mx-results { display: grid; grid-template-columns: 1fr 1fr; }
    .mx-results .mx-row { border-top: 1px solid var(--line-soft); }
    .mx-results .mx-row:nth-child(-n+2) { border-top: 0; }
    .mx-results .mx-row:nth-child(even) { border-left-width: 4px; box-shadow: inset 1px 0 0 var(--line-soft); }
}
@media (max-width: 640px) {
    /* El nombre del rival completo, en dos líneas si hace falta. */
    .mx-next-vs { flex-wrap: wrap; row-gap: 4px; }
    .mx-vs { flex-basis: 100%; }
    .mx-next-vs b { white-space: normal; flex: 1; min-width: 0; line-height: 1.15; }
}

/* ===================== Mi Equipo · Pases (tf-) ===================== */
.tf-page .mt-catbar { margin-bottom: var(--s-4); }
.tf-todo { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: var(--s-4); border-radius: var(--radius); background: #fff8e6; border: 1px solid #f5d08a; color: #7a4b00; }
.tf-todo > i { font-size: 18px; margin-top: 2px; color: #d97706; }
.tf-todo b { color: #5c3900; }
.tf-todo ul { margin: 4px 0 0; padding-left: 18px; font-size: var(--fs-sm); }
.tf-count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--navy-2); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.tf-count.is-warn { background: #fff1e8; color: var(--loss); }
.tf-how { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: none; }
.tf-how li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 10px 6px; background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 12px; line-height: 1.2; }
.tf-how li span { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.tf-rule { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--muted); }
.tf-rule i { color: var(--primary); margin-right: 4px; }
.tf-searchbar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tf-searchbar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,107,184,.12); }
.tf-searchbar > i { color: var(--muted); font-size: 16px; }
.tf-searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; min-height: 44px; background: transparent; }
.tf-searchbar .btn { min-height: 44px; white-space: nowrap; }
.tf-result { display: flex; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-soft); }
.tf-result.is-ok { border-color: #a7e3c0; background: #f2fbf6; }
.tf-result.is-blocked { border-color: #f9c3a5; background: #fff6f0; }
.tf-result-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: #fff; }
.tf-result.is-ok .tf-result-icon { color: var(--win); }
.tf-result.is-blocked .tf-result-icon { color: var(--loss); }
.tf-result-body { flex: 1; min-width: 0; }
.tf-result-body > b { display: block; font-size: var(--fs-md); color: var(--ink); }
.tf-result-body > small { display: block; color: var(--muted); font-size: 12.5px; }
.tf-result-msg { margin: 6px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--loss); }
.tf-request { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tf-request .field { flex: 1; min-width: 180px; margin: 0; }
.tf-item { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.tf-item:first-of-type { border-top: 0; padding-top: 4px; }
.tf-item.needs-action { margin: 0 -12px; padding: 14px 12px; border-radius: 12px; background: #fffbf0; border-top-color: transparent; }
.tf-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tf-item-who { min-width: 0; }
.tf-item-who > b { display: block; color: var(--ink); font-size: var(--fs-md); }
.tf-item-who small { display: block; color: var(--muted); font-size: 12.5px; }
.tf-track { list-style: none; display: flex; margin: 12px 0 8px; padding: 0; }
.tf-track li { flex: 1; position: relative; padding-top: 18px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; }
.tf-track li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.tf-track li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.tf-track li:first-child::after { display: none; }
.tf-track li.done { color: var(--win); }
.tf-track li.done::before { background: var(--win); border-color: var(--win); }
.tf-track li.done::after { background: var(--win); }
.tf-track li.now { color: #b45309; }
.tf-track li.now::before { border-color: #f59e0b; background: #fde68a; }
.tf-track li.bad { color: var(--loss); }
.tf-track li.bad::before { background: var(--loss); border-color: var(--loss); }
.tf-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.tf-links a { color: var(--primary); }
.tf-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tf-note.is-bad { color: var(--loss); font-weight: 700; }
.tf-upload { margin-top: 10px; padding: 12px; border: 1px dashed #f5c26b; border-radius: 12px; background: #fff; display: grid; gap: 8px; }
.tf-upload p { margin: 0; font-size: 13px; color: #7a4b00; }
.tf-upload input[name=release_note] { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; }
.tf-upload-actions { display: flex; justify-content: flex-end; }
.tf-cancel { margin-top: 8px; display: flex; justify-content: flex-end; }
.tf-attn { border: 1.5px solid #f5d08a; }
.tf-pdf { margin: 8px 0 4px; }
@media (max-width: 640px) {
    .tf-how { gap: 4px; }
    .tf-how li { padding: 8px 2px; font-size: 11px; gap: 4px; }
    .tf-how li span { width: 22px; height: 22px; font-size: 12px; }
    .tf-searchbar .btn span { display: none; }
    .tf-item-top { flex-direction: column; }
    .tf-request .btn { width: 100%; }
}

/* ============ Mi Equipo · Solicitud de participación (pq-) ============ */
.pq-card { margin-bottom: var(--s-4); }
.pq-card.is-action { border: 1.5px solid #f5d08a; }
.pq-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pq-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card-soft); border: 1px solid var(--line-soft); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pq-steps li span { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #475569; font-size: 12px; }
.pq-steps li.now { color: #92400e; background: #fff8e6; border-color: #f5d08a; }
.pq-steps li.now span { background: #f59e0b; color: #fff; }
.pq-steps li.done { color: var(--win); }
.pq-steps li.done span { background: var(--win); color: #fff; }
.pq-steps li.bad { color: var(--loss); }
.pq-steps li.bad span { background: var(--loss); color: #fff; }
.pq-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pq-cat { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--ink); background: #fff; min-height: 44px; }
.pq-cat input { width: 18px; height: 18px; accent-color: var(--primary); }
.pq-cat:has(input:checked) { border-color: var(--primary); background: var(--brand-soft); }
.pq-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pq-summary > div { background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 10px; }
.pq-summary small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pq-summary b { color: var(--ink); font-size: 14px; }
.pq-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--navy-2); font-size: 13.5px; font-weight: 600; }
.pq-msg.is-ok { background: #e7f6ee; color: var(--win); }
.pq-msg.is-bad { background: #fff1e8; color: var(--loss); }
@media (max-width: 640px) {
    .pq-steps { grid-template-columns: repeat(2, 1fr); }
}

.pq-pres { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 640px) { .pq-pres { grid-template-columns: 1fr; } }

/* ============ Mi Equipo · Club (ap-) — estilo app: perfil, listas y botón fijo ============ */
.ap-page { max-width: 680px; }
.ap-note-desk, .ap-save-desk { display: none; }
/* Web (pantalla grande): perfil fijo a la izquierda y listas a la derecha. */
@media (min-width: 992px) {
    .ap-page { max-width: 1100px; }
    .ap-cols { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
    .ap-left { position: sticky; top: calc(var(--header-h) + 16px); }
    .ap-right > .ap-title:first-child { margin-top: 0; }
    .ap-note-desk { display: block; }
    .ap-save-desk { display: block; position: static; margin-top: 14px; padding: 0; background: none; backdrop-filter: none; }
    .ap-note-mob, .ap-save-mob { display: none; }
    .ap-row2 { grid-template-columns: 1fr 1fr; }
    .ap-edit { grid-template-columns: 1fr 1fr; }
    .ap-edit > .field:first-child { grid-column: 1 / -1; }
    .ap-edit > .ap-row2 { grid-column: 1 / -1; }
}
.ap-form { padding-bottom: 8px; }

/* Perfil */
.ap-profile { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--shadow-1); border: 1px solid var(--line-soft); padding: 0 18px 18px; text-align: center; overflow: hidden; }
.ap-cover { height: 96px; margin: 0 -18px; background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--k1) 85%, #000) 0, var(--k1) 45%, transparent 46%),
    linear-gradient(135deg, var(--k1), color-mix(in srgb, var(--k1) 55%, var(--k2))); }
.ap-avatar { position: relative; display: inline-block; margin-top: -54px; cursor: pointer; }
.ap-avatar-img { width: 108px; height: 108px; border-radius: 28px; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(8, 37, 77, .18); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ap-avatar-img img { width: 92px; height: 92px; object-fit: contain; }
.ap-cam { position: absolute; right: -4px; bottom: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 4px 10px rgba(14, 107, 184, .35); }
.ap-name { margin: 10px 0 2px; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--navy); text-transform: uppercase; }
.ap-sub { margin: 0; color: var(--muted); font-size: 12.5px; }
.ap-progress { margin-top: 14px; text-align: left; background: var(--card-soft); border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px 12px; }
.ap-progress-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 700; }
.ap-progress-top b { color: var(--navy); }
.ap-bar { height: 8px; border-radius: 999px; background: #e2e8f0; margin: 6px 0; overflow: hidden; }
.ap-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0866B5, #179B42); }
.ap-warn, .ap-ok { font-size: 12px; font-weight: 700; }
.ap-warn { color: #b45309; }
.ap-ok { color: var(--win); }

/* Títulos de grupo y listas */
.ap-title { margin: 22px 6px 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ap-list { background: #fff; border-radius: 18px; border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); overflow: hidden; }
.ap-item + .ap-item, .ap-field + .ap-field { border-top: 1px solid var(--line-soft); }

/* Fila de cargo (se abre para editar) */
.ap-item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; min-height: 64px; }
.ap-item summary::-webkit-details-marker { display: none; }
.ap-item summary:active { background: var(--card-soft); }
.ap-ico { flex: 0 0 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; background: #EEF2F7; color: #94A3B8; }
.ap-ico.is-set { background: linear-gradient(135deg, #08254D, #0866B5); color: #fff; }
.ap-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ap-txt small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ap-txt b { font-size: 15.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-txt b.is-empty { color: #94A3B8; font-weight: 600; font-style: italic; }
.ap-txt em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ap-chev { color: #94A3B8; transition: transform .2s var(--ease); }
.ap-item[open] .ap-chev { transform: rotate(180deg); }
.ap-item[open] summary { background: var(--card-soft); }
.ap-edit { padding: 6px 14px 14px; display: grid; gap: 10px; background: var(--card-soft); }
.ap-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-edit input { min-height: 46px; border-radius: 12px; }

/* Filas de dato editables (contacto y colores) */
.ap-field { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0; cursor: text; min-height: 62px; }
.ap-ico2 { flex: 0 0 38px; height: 38px; border-radius: 12px; background: #E1EEFA; color: #0866B5; display: flex; align-items: center; justify-content: center; }
.ap-ftxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap-ftxt small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ap-ftxt input { border: 0; outline: 0; padding: 2px 0; font: inherit; font-size: 15.5px; color: var(--ink); background: transparent; min-height: 30px; width: 100%; }
.ap-ftxt input::placeholder { color: #94A3B8; font-style: italic; }
.ap-field:focus-within { background: var(--card-soft); }
.ap-ftxt b { font-size: 15px; color: var(--ink); }
.ap-swatch { flex: 0 0 38px; height: 38px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.ap-swatch input { width: 60px; height: 60px; margin: -10px; border: 0; padding: 0; cursor: pointer; }
.ap-fields .ap-field:has(.ap-swatch) { cursor: pointer; }
.ap-chev2 { color: #94A3B8; }

.ap-note { margin: 14px 6px 0; font-size: 12.5px; color: var(--muted); }
.ap-note i { margin-right: 4px; }

/* Botón guardar fijo */
.ap-save { position: sticky; bottom: calc(var(--bottom-nav-h) + 10px); z-index: 6; margin-top: 16px; padding: 8px; background: rgba(243, 246, 249, .9); backdrop-filter: blur(6px); border-radius: 18px; }
.ap-save .btn { width: 100%; min-height: 52px; font-size: 16px; border-radius: 14px; box-shadow: 0 10px 22px rgba(14, 107, 184, .3); }
@media (min-width: 992px) { .ap-save { bottom: 14px; } }
@media (max-width: 420px) { .ap-row2 { grid-template-columns: 1fr; } }
@media (max-width: 991px) { .ap-save { margin-right: 64px; } }

