/* Tema Cuenca: encabezado claro con letras en el azul del escudo y detalles en su verde.
   Se carga al final de cada página para imponerse a los estilos heredados de SIC. */
:root{--ev-azul:#1b5fa8;--ev-azul-hondo:#123a6b;--ev-dorado:#78b42a;--ev-dorado-texto:#4d7f16;--ev-borde:#dbe3ec;--ev-fondo:#f5f7fa}

/* Encabezado: blanco, línea dorada fina arriba, texto azul. */
html:root body>header{background:#fff!important;color:var(--ev-azul-hondo)!important;border-top:3px solid var(--ev-dorado)!important;border-bottom:1px solid var(--ev-borde)!important;box-shadow:0 6px 20px #1b5fa80d!important}
html:root body>header strong,html:root body>header>b{color:var(--ev-azul)!important;letter-spacing:.2px}
html:root body>header small,html:root body>header>span,html:root body>header>p{color:var(--ev-dorado-texto)!important}
html:root body>header nav:not(.club-nav),html:root body>header nav:not(.club-nav) a,html:root body>header>a{color:var(--ev-azul-hondo)!important}
html:root body>header nav:not(.club-nav) a:hover{color:var(--ev-azul)!important;text-decoration:underline!important;text-decoration-color:var(--ev-dorado)!important}

/* Escudo sin círculo ni placa. */
html:root body>header img[src*="cuenca-logo"]{width:auto!important;height:64px!important;background:none!important;border-radius:0!important;padding:0!important;box-shadow:none!important;object-fit:contain}

/* Barra de navegación del equipo: botones con contorno azul; la sección actual en azul con ícono dorado. */
html:root body header .club-nav{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 0!important}
html:root body header .club-nav a,html:root body header .club-nav button{background:#fff!important;border:1px solid #cbd8e6!important;color:var(--ev-azul-hondo)!important;box-shadow:0 1px 2px #1b5fa812!important;font-weight:650!important}
html:root body header .club-nav a svg,html:root body header .club-nav button svg{color:var(--ev-azul)!important}
html:root body header .club-nav a:hover,html:root body header .club-nav button:hover:not(:disabled){background:#f0f5fb!important;border-color:var(--ev-azul)!important;color:var(--ev-azul)!important;box-shadow:0 4px 12px #1b5fa81f!important}
html:root body header .club-nav [aria-current=page],html:root body header .club-nav [aria-current=page]:hover{background:var(--ev-azul)!important;border-color:var(--ev-azul)!important;color:#fff!important;box-shadow:inset 0 -3px 0 var(--ev-dorado),0 4px 12px #1b5fa82e!important}
html:root body header .club-nav [aria-current=page] svg{color:var(--ev-dorado)!important}

/* Pantalla de ingreso: fondo azul profundo y tarjeta blanca con filete dorado. */
html:root[data-club-auth="signed-out"] body{background:linear-gradient(150deg,#0c2a4f,#123a6b 55%,#1b5fa8)!important}
html:root[data-club-auth="signed-out"] body>header{background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important}
html:root[data-club-auth="signed-out"] body>header strong{color:#fff!important}
html:root[data-club-auth="signed-out"] body>header small{color:#c4e39a!important}
html:root[data-club-auth="signed-out"] body>header img[src*="cuenca-logo"]{height:92px!important;filter:drop-shadow(0 6px 14px #0006)}
html:root[data-club-auth="signed-out"] #acceso-club{border-top:4px solid var(--ev-dorado)!important;color:var(--ev-azul-hondo)!important}
html:root[data-club-auth="signed-out"] #acceso-club h2{color:var(--ev-azul)!important}
html:root[data-club-auth="signed-out"] #acceso-club button{background:var(--ev-azul)!important;border-color:var(--ev-azul)!important}

/* Detalles: títulos en azul del escudo, rótulos en dorado oscuro, tarjetas con filete dorado al pasar. */
html:root body main h1{color:var(--ev-azul)}
html:root body .number{color:var(--ev-dorado-texto)!important}
html:root body .card:hover,html:root body .team-module:hover{border-color:var(--ev-azul)!important}
html:root body .team-module{border-top-color:var(--ev-dorado)!important}
html:root body .card{border-top:3px solid var(--ev-dorado)!important}

/* Plantel: barra de enlaces superior y encabezado propio dentro de #sic-roster. */
html:root body>nav{background:#fff!important;color:var(--ev-azul-hondo)!important;border-top:3px solid var(--ev-dorado);border-bottom:1px solid var(--ev-borde)}
html:root body>nav a{color:var(--ev-azul-hondo)!important;text-decoration:none!important;font-weight:600}
html:root body>nav a:hover{color:var(--ev-azul)!important;text-decoration:underline!important;text-decoration-color:var(--ev-dorado)!important}
html:root #sic-roster>header{background:#fff!important;color:var(--ev-azul)!important;border-top:3px solid var(--ev-dorado)!important;border-bottom:1px solid var(--ev-borde)!important}
html:root #sic-roster>header p{color:var(--ev-dorado-texto)!important}
html:root #sic-roster>header img[src*="cuenca-logo"]{width:auto!important;height:64px!important;background:none!important;border-radius:0!important;padding:0!important;box-shadow:none!important;vertical-align:middle;margin-right:12px}

/* Convocatoria: escudo y título alineados. */
html:root body>header>img[src*="cuenca-logo"]+b{margin-right:auto}

/* Mis equipos: tarjetas grandes por equipo (como Fútbol en Lanús), en azul profundo con detalles dorados. */
html body #equipos .league-group{background:transparent!important;border:0!important;margin:0 0 34px;padding:0}
html body #equipos .league-group h3{display:flex;align-items:center;gap:14px;font-size:19px;letter-spacing:2px;text-transform:uppercase;margin:0 0 16px;color:var(--ev-azul-hondo)}
html body #equipos .league-group h3::after{content:'';height:1px;background:linear-gradient(90deg,var(--ev-dorado),transparent);flex:1}
html body #equipos .category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;margin-bottom:0!important}
html body #equipos .category-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:136px;padding:20px!important;border:1px solid #2b6db5!important;border-top:3px solid var(--ev-dorado)!important;border-radius:14px;background:linear-gradient(135deg,#1d5ea6,#0c2a4f)!important;box-shadow:0 8px 20px #09203d26;text-decoration:none;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s}
html body #equipos .category-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#c4e39a!important}
html body #equipos .category-name{font-size:26px;font-weight:700;letter-spacing:-.6px;line-height:1.2;margin:8px 0 14px;color:#fff!important}
html body #equipos .category-action{font-size:12px;font-weight:600;color:#d6e6f6!important}
html body #equipos .category-arrow{position:absolute;right:18px;bottom:18px;display:grid;place-items:center;width:32px;height:32px;border:1px solid #5a8fcc;border-radius:50%;color:#fff!important;font-size:19px;background:#ffffff09}
html body #equipos .category-card:hover{transform:translateY(-4px);border-color:#c4e39a!important;box-shadow:0 13px 26px #09203d4a;background:linear-gradient(135deg,#2369b8,#113766)!important}
html body #equipos .category-card:hover .category-arrow{border-color:var(--ev-dorado);color:var(--ev-dorado)!important}
@media(max-width:760px){html body #equipos .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){html body #equipos .category-card{padding:17px!important;min-height:130px}html body #equipos .category-name{font-size:23px}html body #equipos .category-arrow{right:15px;bottom:17px}}
@media(prefers-reduced-motion:reduce){html body #equipos .category-card{transition:none}html body #equipos .category-card:hover{transform:none}}

/* Categorías (administradores): solo un botón chico y discreto; el formulario se abre al tocarlo. */
html body #gestion-categorias{margin-top:8px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body #gestion-categorias>summary{display:inline-flex;align-items:center;gap:7px;list-style:none;cursor:pointer;padding:7px 14px;font-size:13px;font-weight:600;letter-spacing:.2px;color:#fff;background:linear-gradient(135deg,#1d5ea6,#0c2a4f);border:1px solid #2b6db5;border-top:2px solid var(--ev-dorado);border-radius:10px;box-shadow:0 3px 10px #09203d20;transition:transform .15s,box-shadow .15s,border-color .15s;user-select:none}
html body #gestion-categorias>summary::-webkit-details-marker{display:none}
html body #gestion-categorias>summary span{color:#c4e39a}
html body #gestion-categorias>summary:hover{transform:translateY(-2px);border-color:#c4e39a;box-shadow:0 6px 14px #09203d30}
html body #gestion-categorias>summary:focus-visible{outline:2px solid var(--ev-dorado);outline-offset:2px}
html body #gestion-categorias[open]>summary{background:#fff;color:var(--ev-azul-hondo);border-color:#cbd8e6;border-top-color:var(--ev-dorado)}
html body #gestion-categorias[open]>summary span{color:var(--ev-dorado-texto)}
html body #gestion-categorias .cat-panel{margin-top:12px;padding:18px;background:#fff;border:1px solid var(--ev-borde);border-radius:14px}
html body #gestion-categorias .cat-panel h2{margin-top:0}
@media(prefers-reduced-motion:reduce){html body #gestion-categorias>summary{transition:none}html body #gestion-categorias>summary:hover{transform:none}}

/* Sin títulos "Tira A / Tira B": los grupos quedan separados solo por una línea dorada fina. */
html body #equipos .league-group{margin:0 0 28px!important}
html body #equipos .league-group h3{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html body #equipos .league-group+.league-group{padding-top:28px!important;border-top:1px solid transparent!important;border-image:linear-gradient(90deg,var(--ev-dorado),#78b42a33 70%,transparent) 1!important}

/* Ramas (Femenino / Masculino): pestañas chicas, la activa en azul con filete dorado. */
html body .rama-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
html body .rama-tabs a{padding:7px 16px;border-radius:999px;border:1px solid #cbd8e6;border-top:2px solid transparent;color:var(--ev-azul-hondo);background:#fff;font-size:14px;font-weight:650;text-decoration:none;transition:border-color .15s,color .15s}
html body .rama-tabs a:hover{border-color:var(--ev-azul);color:var(--ev-azul)}
html body .rama-tabs a.activa{background:linear-gradient(135deg,#1d5ea6,#0c2a4f);color:#fff;border-color:#2b6db5;border-top-color:var(--ev-dorado)}
html:root body>header img[src*="cuenca-logo"]{filter:none!important}
html:root[data-club-auth="signed-out"] body>header img[src*="cuenca-logo"]{filter:drop-shadow(0 6px 14px #0006)!important}

/* Inicio: las ventanas "Hockey Femenino" y "Seleccionados" con el mismo estilo que las tarjetas de equipo de adentro. */
html body main>.grid:not(#modules)>a.card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:190px;padding:24px 24px 26px!important;border:1px solid #2b6db5!important;border-top:3px solid var(--ev-dorado)!important;border-radius:14px;background:linear-gradient(135deg,#1d5ea6,#0c2a4f)!important;box-shadow:0 8px 20px #09203d26;color:#fff!important;text-decoration:none;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s}
html body main>.grid:not(#modules)>a.card .number{font-size:10px!important;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#c4e39a!important}
html body main>.grid:not(#modules)>a.card h2{font-size:28px!important;font-weight:700;letter-spacing:-.6px;line-height:1.2;margin:10px 0 10px!important;color:#fff!important;padding-right:44px}
html body main>.grid:not(#modules)>a.card p{font-size:14px;line-height:1.5;margin:0 0 18px!important;color:#d6e6f6!important;padding-right:44px}
html body main>.grid:not(#modules)>a.card span{margin-top:auto;font-size:12px!important;font-weight:600;color:#d6e6f6!important}
html body main>.grid:not(#modules)>a.card::after{content:'↗';position:absolute;right:20px;bottom:20px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #5a8fcc;border-radius:50%;color:#fff;font-size:20px;background:#ffffff09}
html body main>.grid:not(#modules)>a.card:hover{transform:translateY(-4px);border-color:#c4e39a!important;box-shadow:0 13px 26px #09203d4a;background:linear-gradient(135deg,#2369b8,#113766)!important}
html body main>.grid:not(#modules)>a.card:hover::after{border-color:var(--ev-dorado);color:var(--ev-dorado)}
@media(prefers-reduced-motion:reduce){html body main>.grid:not(#modules)>a.card{transition:none}html body main>.grid:not(#modules)>a.card:hover{transform:none}}

/* Portada de Clubes: un botón por club con su escudo, su nombre y sus colores (variables --club-* por botón). */
html body #equipos .club-portada{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
html body #equipos .club-boton{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:250px;padding:26px 20px;border-radius:16px;border:1px solid #ffffff22;border-top:4px solid var(--club-acento);background:linear-gradient(150deg,var(--club-1),var(--club-2));color:var(--club-texto);text-align:center;text-decoration:none;box-shadow:0 10px 24px #09203d2e;overflow:hidden;transition:transform .18s,box-shadow .18s}
html body #equipos .club-boton img{width:auto;height:110px;max-width:80%;object-fit:contain;filter:drop-shadow(0 6px 12px #0005)}
html body #equipos .club-boton strong{font-size:24px;font-weight:700;letter-spacing:-.4px;line-height:1.2;color:var(--club-texto)}
html body #equipos .club-boton span{font-size:12px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--club-texto);opacity:.8}
html body #equipos .club-boton:hover{transform:translateY(-4px);box-shadow:0 16px 30px #09203d4a}
html body #equipos .club-banda{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 22px;padding:16px 20px;border-radius:14px;border-top:4px solid var(--club-acento);background:linear-gradient(120deg,var(--club-1),var(--club-2));color:var(--club-texto)}
html body #equipos .club-banda img{width:auto;height:64px;object-fit:contain;filter:drop-shadow(0 3px 8px #0005)}
html body #equipos .club-banda strong{font-size:24px;font-weight:700;color:var(--club-texto);flex:1}
html body #equipos .club-banda a{color:var(--club-texto);font-size:14px;font-weight:600;text-decoration:none;padding:7px 14px;border:1px solid currentColor;border-radius:999px;opacity:.9}
html body #equipos .club-banda a:hover{opacity:1}
@media(max-width:760px){html body #equipos .club-portada{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){html body #equipos .club-portada{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html body #equipos .club-boton{transition:none}html body #equipos .club-boton:hover{transform:none}}
/* Dentro de un club, las tarjetas de categorías toman los colores del club. */
html body #equipos.club-colores .category-card{background:linear-gradient(135deg,var(--club-1),var(--club-2))!important;border-color:#ffffff22!important;border-top-color:var(--club-acento)!important}
html body #equipos.club-colores .category-card .category-eyebrow,html body #equipos.club-colores .category-card .category-name,html body #equipos.club-colores .category-card .category-action{color:var(--club-texto)!important}
html body #equipos.club-colores .category-card .category-eyebrow,html body #equipos.club-colores .category-card .category-action{opacity:.85}
html body #equipos.club-colores .category-card .category-arrow{border-color:currentColor;color:var(--club-texto)!important}
html body #equipos.club-colores .category-card:hover{border-color:var(--club-acento)!important;filter:brightness(1.08)}
/* Escudos de los clubes sobre una placa blanca, para que se vean completos sobre cualquier color de club. */
html body #equipos .club-boton img{box-sizing:border-box;height:128px;width:128px;max-width:none;padding:14px;background:linear-gradient(160deg,#eef1f5,#dde3ea);border-radius:22px;box-shadow:0 6px 16px #0004;filter:none;object-fit:contain}
html body #equipos .club-banda img{box-sizing:border-box;height:68px;width:68px;padding:7px;background:linear-gradient(160deg,#eef1f5,#dde3ea);border-radius:14px;box-shadow:0 3px 10px #0004;filter:none;object-fit:contain}
/* Solo el escudo, sin placa: contorno blanco muy fino y sombra suave para que se lea sobre el color del club. */
html body #equipos .club-boton img{width:auto;height:130px;max-width:85%;padding:0;background:none;border-radius:0;box-shadow:none;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 8px 14px #0006)}
html body #equipos .club-banda img{width:auto;height:66px;padding:0;background:none;border-radius:0;box-shadow:none;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 4px 8px #0005)}
