/*
 * Fénix — área del club: menú lateral gris oscuro + barra superior blanca.
 * Usa las variables de fenix.css.
 */

:root {
	--fx-cl-ancho: 264px;
	--fx-cl-fondo: #25282D;      /* gris oscuro del menú */
	--fx-cl-fondo-2: #2E3238;    /* hover / tarjetas dentro del menú */
	--fx-cl-linea: #393E46;
	--fx-cl-texto: #D5D8DD;      /* texto normal: legible sobre el gris */
	--fx-cl-suave: #9AA0A9;      /* textos secundarios e íconos */
	--fx-cl-fuerte: #FFFFFF;     /* nombre del club y módulo activo */
}

.fx-cl { min-height: 100vh; background: var(--fx-gris-fondo); }

/* ---------- Menú lateral ---------- */
.fx-cl-side { position: fixed; top: 0; bottom: 0; left: 0; width: var(--fx-cl-ancho); background: var(--fx-cl-fondo); color: var(--fx-cl-texto); display: flex; flex-direction: column; overflow-y: auto; z-index: 1040; scrollbar-width: thin; scrollbar-color: #454A52 transparent; }
.fx-cl-marca { display: flex; align-items: center; gap: .55rem; padding: 1rem 1.1rem .5rem; }
.fx-cl-marca .fx-brand-txt { color: var(--fx-cl-fuerte); font-size: 1rem; }
.fx-cl-cerrar { display: none; margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--fx-cl-fondo-2); color: var(--fx-cl-texto); }

/* Tarjeta del club */
.fx-cl-club { margin: .6rem .9rem 1rem; padding: 1.1rem .9rem 1rem; border-radius: 16px; background: var(--fx-cl-fondo-2); display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.fx-cl-escudo { width: 84px; height: 84px; border-radius: 20px; background: #fff; padding: 8px; margin-bottom: .35rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.fx-cl-escudo .fx-img { object-fit: contain; }
.fx-cl-escudo.err { background: var(--fx-naranja); color: var(--fx-sobre-naranja); font-family: var(--fx-cond); font-weight: 800; font-size: 1.8rem; padding: 0; }
.fx-cl-club-nom { color: var(--fx-cl-fuerte); font-weight: 700; font-size: .92rem; line-height: 1.25; }
.fx-cl-club-org { color: var(--fx-cl-suave); font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fx-cl-cambiar { margin-top: .35rem; font-size: .72rem; color: var(--fx-cl-texto); text-decoration: none; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--fx-cl-linea); }
.fx-cl-cambiar:hover { color: var(--fx-cl-fuerte); border-color: var(--fx-naranja); }

/* Módulos y opciones */
.fx-cl-nav { padding: 0 .7rem 1.5rem; }
.fx-cl-sec { color: var(--fx-cl-suave); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .6rem .5rem; }
.fx-cl-mod { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; margin-bottom: 2px; border: 0; border-radius: 10px; background: transparent; color: var(--fx-cl-texto); font-size: .82rem; font-weight: 500; text-align: left; text-decoration: none; }
.fx-cl-mod:hover { background: var(--fx-cl-fondo-2); color: var(--fx-cl-fuerte); }
.fx-cl-mod > span { flex: 1; }
.fx-cl-ico { width: 18px; text-align: center; color: var(--fx-cl-suave); font-size: .85rem; }
.fx-cl-flecha { font-size: .6rem; color: var(--fx-cl-suave); transition: transform .2s ease; }
.fx-cl-grupo.abierto .fx-cl-flecha { transform: rotate(180deg); }
/* Módulo donde estoy: texto blanco, ícono naranja y fondo suave */
.fx-cl-mod.activo { color: var(--fx-cl-fuerte); font-weight: 600; background: var(--fx-cl-fondo-2); }
.fx-cl-mod.activo .fx-cl-ico { color: var(--fx-naranja); }
a.fx-cl-mod.activo { background: var(--fx-naranja); color: var(--fx-sobre-naranja); }
a.fx-cl-mod.activo .fx-cl-ico { color: var(--fx-sobre-naranja); }

/* Opciones con sangría y línea guía */
.fx-cl-ops { display: none; margin: .1rem 0 .45rem 1.45rem; padding-left: .7rem; border-left: 1px solid var(--fx-cl-linea); }
.fx-cl-grupo.abierto .fx-cl-ops { display: block; }
.fx-cl-op { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .42rem .65rem; border-radius: 8px; color: var(--fx-cl-texto); font-size: .79rem; text-decoration: none; position: relative; }
.fx-cl-op:hover { color: var(--fx-cl-fuerte); background: var(--fx-cl-fondo-2); }
.fx-cl-op small { font-size: .6rem; color: var(--fx-cl-suave); border: 1px solid var(--fx-cl-linea); border-radius: 999px; padding: 0 .4rem; }
.fx-cl-op.pronto { color: var(--fx-cl-suave); }
/* Opción donde estoy: resaltada en naranja */
.fx-cl-op.actual { background: var(--fx-naranja); color: var(--fx-sobre-naranja); font-weight: 600; }
.fx-cl-op.actual::before { content: ""; position: absolute; left: calc(-.7rem - 3px); top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--fx-naranja); }

/* ---------- Contenido ---------- */
.fx-cl-main { margin-left: var(--fx-cl-ancho); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.fx-cl-top { position: sticky; top: 0; z-index: 1020; height: 56px; background: #fff; border-bottom: 1px solid var(--fx-gris-linea); display: flex; align-items: center; gap: .8rem; padding: 0 1.5rem; }
.fx-cl-abrir { display: none; width: 34px; height: 34px; border: 1px solid var(--fx-gris-linea); border-radius: 8px; background: #fff; color: var(--fx-tinta); }
.fx-cl-migas { display: flex; align-items: center; gap: .45rem; min-width: 0; overflow: hidden; white-space: nowrap; font-size: .8rem; }
.fx-cl-migas a { color: var(--fx-gris-texto); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.fx-cl-migas a:hover { color: var(--fx-naranja-osc); }
.fx-cl-migas span { color: var(--fx-tinta); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.fx-cl-migas .fa { font-size: .55rem; color: #B5B5B2; }
.fx-cl-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--fx-gris-linea); background: #fff; color: #3F3F3F; display: inline-flex; align-items: center; justify-content: center; }
.fx-cl-btn:hover { border-color: var(--fx-tinta); color: var(--fx-tinta); }
.fx-cl-user { display: flex; align-items: center; gap: .5rem; background: transparent; border: 0; padding: 0; color: var(--fx-tinta); font-size: .8rem; }
.fx-cl-user small { color: var(--fx-gris-texto); font-size: .68rem; }
.fx-cl-content { padding: 1.4rem 1.6rem 2.5rem; width: 100%; max-width: 1320px; min-width: 0; }

/* ---------- Celular y tableta: el menú se abre encima ---------- */
.fx-cl-velo { display: none; }
@media (max-width: 991.98px){
	.fx-cl-side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
	.fx-cl.menu-abierto .fx-cl-side { transform: none; }
	.fx-cl.menu-abierto .fx-cl-velo { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1030; }
	.fx-cl-main { margin-left: 0; }
	.fx-cl-abrir, .fx-cl-cerrar { display: inline-flex; align-items: center; justify-content: center; }
	.fx-cl-top { padding: 0 .75rem; }
	.fx-cl-content { padding: 1rem .75rem 2rem; }
}

/* ---------- Perfil del equipo ---------- */
.fx-perfil { background: #fff; border-radius: 16px; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.fx-perfil-escudo { width: 96px; height: 96px; border-radius: 22px; background: #fff; padding: 8px; box-shadow: 0 0 0 1px var(--fx-gris-linea); }
.fx-perfil-escudo.sm { width: 72px; height: 72px; border-radius: 16px; }
.fx-perfil-escudo .fx-img { object-fit: contain; }
.fx-perfil-escudo.err { background: var(--fx-naranja); color: var(--fx-sobre-naranja); font-family: var(--fx-cond); font-weight: 800; font-size: 2rem; box-shadow: none; padding: 0; }
.fx-perfil-datos { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .45rem; font-size: .78rem; color: var(--fx-gris-texto); }
.fx-perfil-datos .fa { margin-right: .35rem; color: var(--fx-naranja); }

/* Columnas (ingresos por mes) */
.fx-columnas { display: flex; align-items: flex-end; gap: .4rem; height: 190px; }
.fx-columna { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; min-width: 0; }
.fx-columna > span { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--fx-tinta); opacity: .85; }
.fx-columna > span.actual { background: var(--fx-naranja); opacity: 1; }
.fx-columna small { font-size: .65rem; color: var(--fx-gris-texto); }

/* Filas con barra (por edad, por sede) */
.fx-fila-barra { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .78rem; }
.fx-fila-barra.ancha { grid-template-columns: minmax(90px, 160px) 1fr 44px; }
.fx-fila-barra strong { text-align: right; }
.fx-sede-borrar { color: #B3261E; }
.fx-sede-borrar:hover { background: #FCE8E6; color: #B3261E; }

/* Portal del acudiente */
.fx-acu-hijos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.fx-acu-hijo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: 1.4rem 1rem; color: inherit; text-decoration: none; }
.fx-acu-hijo:hover { box-shadow: 0 0 0 2px var(--fx-naranja); }
.fx-acu-foto { width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; background: var(--fx-naranja-suave); color: var(--fx-naranja-osc); font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fx-acu-nom { font-weight: 700; font-size: 1.05rem; margin-top: .4rem; }
.fx-acu-datos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; margin-top: .6rem; }
.fx-acu-datos > span { background: var(--fx-gris-fondo); border-radius: 10px; padding: .5rem; display: flex; flex-direction: column; gap: .2rem; align-items: center; }
.fx-acu-datos small { font-size: .68rem; color: var(--fx-gris-texto); }
.fx-acu-cab { display: flex; gap: 1.2rem; align-items: center; }
.fx-acu-tabla > div { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--fx-gris-linea); font-size: .84rem; }
.fx-acu-eval { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .8rem; }
@media (max-width: 575.98px){ .fx-acu-cab { flex-direction: column; align-items: flex-start; } .fx-acu-tabla > div { grid-template-columns: 1fr auto; } .fx-acu-tabla > div small { grid-column: 1 / -1; grid-row: 2; } }

/* Cifras del perfil que abren su lista */
[data-lista], [data-rol] { cursor: pointer; border-radius: 6px; }
[data-lista]:hover, [data-rol]:hover { color: var(--fx-naranja); }
[data-lista]:focus-visible, [data-rol]:focus-visible { outline: 2px solid var(--fx-naranja); outline-offset: 2px; }
.fx-fila-barra[data-lista]:hover, .fx-pendientes [data-lista]:hover, [data-rol]:hover { background: var(--fx-gris-fondo); }
.fx-fila-barra[data-lista] { margin: 0 -.4rem; padding-left: .4rem; padding-right: .4rem; }
.fx-columna[data-lista]:hover span { filter: brightness(.85); }
.fx-sd-fila { color: inherit; text-decoration: none; }
.fx-sd-fila .fx-lf-foto { width: 36px; height: 36px; flex-shrink: 0; }
.fx-fila-barra .fx-barra { height: 8px; }
.fx-barra-doble { background: #F7C6D9; }
.fx-barra-doble > span { background: var(--fx-tinta); }

/* Datos por completar */
.fx-pendientes { list-style: none; margin: 0; padding: 0; }
.fx-pendientes li { display: grid; grid-template-columns: 22px 1fr auto 40px; align-items: center; gap: .55rem; padding: .45rem 0; border-bottom: 1px solid #F0F0EE; font-size: .8rem; }
.fx-pendientes li:last-child { border-bottom: 0; }
.fx-pendientes .fa { color: var(--fx-naranja); text-align: center; }
.fx-pendientes li.ok .fa { color: #14A44D; }
.fx-pendientes small { color: var(--fx-gris-texto); text-align: right; }

/* ---------- Configuración del club: colores y vista previa ---------- */
.fx-color { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--fx-gris-linea); border-radius: 10px; padding: .3rem .45rem; }
.fx-color input[type=color] { width: 40px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.fx-color code { color: var(--fx-tinta); font-size: .78rem; }
.fx-sugeridos { display: flex; flex-wrap: wrap; gap: .45rem; }
.fx-sugerido { width: 44px; height: 30px; border-radius: 8px; border: 1px solid var(--fx-gris-linea); padding: 3px; display: flex; gap: 2px; background: #fff; }
.fx-sugerido span { flex: 1; border-radius: 5px; }
.fx-sugerido:hover { border-color: var(--fx-tinta); }
.fx-preview { --pv-acento: #F04E0F; --pv-sobre: #111; --pv-menu: #25282D; --pv-menu-2: #2E3238; --pv-texto: #D5D8DD; --pv-fuerte: #fff;
	display: flex; height: 200px; border-radius: 12px; overflow: hidden; border: 1px solid var(--fx-gris-linea); font-size: .7rem; }
.fx-preview-menu { width: 46%; background: var(--pv-menu); color: var(--pv-texto); padding: .7rem .55rem; display: flex; flex-direction: column; gap: .2rem; }
.fx-preview-escudo { width: 30px; height: 30px; border-radius: 8px; background: #fff; align-self: center; }
.fx-preview-nom { color: var(--pv-fuerte); font-weight: 700; text-align: center; margin-bottom: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-preview-item { padding: .2rem .4rem; border-radius: 6px; }
.fx-preview-item.activo { background: var(--pv-menu-2); color: var(--pv-fuerte); font-weight: 600; }
.fx-preview-op { margin-left: .9rem; padding: .18rem .4rem; border-radius: 5px; }
.fx-preview-op.actual { background: var(--pv-acento); color: var(--pv-sobre); font-weight: 600; }
.fx-preview-cont { flex: 1; background: var(--fx-gris-fondo); padding: .8rem; display: flex; flex-direction: column; gap: .6rem; }
.fx-preview-kpi { background: var(--pv-acento); color: var(--pv-sobre); border-radius: 8px; padding: .5rem .6rem; display: flex; flex-direction: column; }
.fx-preview-kpi b { font-family: var(--fx-cond); font-size: 1.4rem; line-height: 1; }
.fx-preview-btn { align-self: flex-start; background: var(--pv-acento); color: var(--pv-sobre); border-radius: 6px; padding: .3rem .7rem; font-weight: 600; }

/* ---------- Sedes ---------- */
.fx-sedes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.fx-sede { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.fx-sede:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.fx-sede.inactiva { filter: grayscale(.9); opacity: .75; }

/* Portada: color del menú del club + franjas del acento + inicial grande */
.fx-sede-portada { position: relative; overflow: hidden; height: 108px; padding: .9rem 1rem; display: flex; align-items: flex-end; text-decoration: none;
	background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); }
.fx-sede-portada::before, .fx-sede-portada::after { content: ""; position: absolute; top: -30px; height: 200px; background: var(--fx-naranja); transform: skewX(-22deg); }
.fx-sede-portada::before { right: 54px; width: 26px; }
.fx-sede-portada::after { right: 18px; width: 12px; opacity: .55; }
.fx-sede-portada:hover { color: var(--fx-cl-fuerte); }
.fx-sede-letra { position: absolute; right: 92px; top: -18px; font-family: var(--fx-cond); font-weight: 800; font-size: 7.5rem; line-height: 1; color: var(--fx-cl-fuerte); opacity: .07; pointer-events: none; }
.fx-sede-portada-txt { position: relative; display: flex; flex-direction: column; gap: .3rem; min-width: 0; padding-right: 70px; }
.fx-sede-tag { align-self: flex-start; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; background: var(--fx-naranja); color: var(--fx-sobre-naranja); }
.fx-sede-nom { font-family: var(--fx-cond); font-weight: 800; font-size: 1.55rem; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fx-sede-cuerpo { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .85rem; flex: 1; }
.fx-sede-dir { display: flex; gap: .55rem; align-items: flex-start; font-size: .8rem; }
.fx-sede-dir > .fa { color: var(--fx-naranja); margin-top: .2rem; }
.fx-sede-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.fx-sede-cifras > div { background: var(--fx-gris-fondo); border-radius: 12px; padding: .55rem .65rem; display: flex; flex-direction: column; }
.fx-sede-cifras .fa { font-size: .72rem; color: var(--fx-gris-texto); margin-bottom: .15rem; }
.fx-sede-cifras .fx-num { font-size: 1.45rem; }
.fx-sede-cifras small { font-size: .66rem; color: var(--fx-gris-texto); }
.fx-sede-pie { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: auto; }
.fx-chip-x { border: 0; background: transparent; color: inherit; padding: 0 0 0 .3rem; font-weight: 700; line-height: 1; opacity: .6; }
.fx-chip-x:hover { opacity: 1; }

/* Portada grande del detalle */
.fx-sede-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 1.5rem 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
	background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); }
.fx-sede-hero::before, .fx-sede-hero::after { content: ""; position: absolute; top: -40px; height: 360px; background: var(--fx-naranja); transform: skewX(-22deg); }
.fx-sede-hero::before { right: 90px; width: 44px; }
.fx-sede-hero::after { right: 30px; width: 18px; opacity: .55; }
.fx-sede-letra.grande { right: auto; left: -10px; top: -40px; font-size: 15rem; opacity: .06; }
.fx-sede-hero-txt { position: relative; flex: 1 1 380px; min-width: 0; }
.fx-sede-hero h1 { font-family: var(--fx-cond); font-weight: 800; font-size: 2.6rem; line-height: 1; text-transform: uppercase; margin: .4rem 0 .5rem; color: var(--fx-cl-fuerte); }
.fx-sede-hero-dir { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .8rem; color: var(--fx-cl-texto); }
.fx-sede-hero-dir .fa { color: var(--fx-naranja); margin-right: .35rem; }
.fx-sede-hero .btn-outline-light { --bs-btn-color: var(--fx-cl-fuerte); --bs-btn-border-color: var(--fx-cl-linea); --bs-btn-hover-bg: var(--fx-cl-fondo-2); --bs-btn-hover-color: var(--fx-cl-fuerte); --bs-btn-hover-border-color: var(--fx-cl-linea); }
.fx-sede-hero-cifras { position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-right: 120px; }
.fx-sede-hero-cifras > div { background: var(--fx-cl-fondo-2); border-color: var(--fx-cl-linea); }
.fx-sede-hero-cifras .fx-num { color: var(--fx-cl-fuerte); }
.fx-sede-hero-cifras small { color: var(--fx-cl-suave); }
@media (max-width: 991.98px){ .fx-sede-hero-cifras { margin-right: 0; } }
@media (max-width: 575.98px){ .fx-sede-hero-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-sede-hero h1 { font-size: 2rem; } }

/* Grupos de la sede */
.fx-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.fx-grupo { background: #fff; border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .65rem; border: 1px solid transparent; }
.fx-grupo:hover { border-color: var(--fx-naranja); }
.fx-grupo-nom { font-weight: 700; font-size: .86rem; margin-bottom: .25rem; }
.fx-grupo .fx-barra { height: 5px; }
.fx-grupo-ents { display: flex; align-items: center; gap: .3rem; min-height: 28px; }
.fx-grupo-ents small { margin-left: .3rem; min-width: 0; }
.fx-avatar.sm { width: 26px; height: 26px; font-size: .6rem; margin-right: -6px; box-shadow: 0 0 0 2px #fff; }
.fx-avatar.sm.mas { background: var(--fx-tinta); color: #fff; }

/* Personal de la sede */
.fx-personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .75rem; }
.fx-persona { background: #fff; border-radius: 14px; padding: .85rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.fx-foto.md { width: 42px; height: 42px; font-size: .8rem; }

/* ---------- Grupos ---------- */
.fx-gsec { margin-bottom: 1.4rem; }
.fx-gsec-tit { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; margin: 0 0 .7rem; }
.fx-gsec-tit > .fa { color: var(--fx-naranja); }
.fx-gsec-tit small { font-weight: 500; color: var(--fx-gris-texto); font-size: .75rem; margin-left: .25rem; }
.fx-gcard { background: #fff; border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .65rem; border: 1px solid transparent; text-decoration: none; color: var(--fx-tinta); transition: transform .15s ease, box-shadow .15s ease; }
.fx-gcard:hover { color: var(--fx-tinta); border-color: var(--fx-naranja); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.fx-gcard-cat { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); font-family: var(--fx-cond); font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.fx-gcard-nom { font-weight: 700; font-size: .86rem; }
.fx-gcard .fx-barra { height: 5px; }
.fx-aviso-txt { color: var(--fx-naranja-osc); font-weight: 500; }
.fx-aviso-txt .fa { color: var(--fx-naranja); }

/* Elegir deportistas (agregar al grupo) */
.fx-elegir { max-height: 50vh; overflow-y: auto; border: 1px solid var(--fx-gris-linea); border-radius: 10px; }
.fx-elegir-fila { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; border-bottom: 1px solid #F0F0EE; cursor: pointer; font-size: .8rem; margin: 0; }
.fx-elegir-fila:last-child { border-bottom: 0; }
.fx-elegir-fila:hover { background: #FAFAF9; }
.fx-elegir-fila:has(input:checked) { background: var(--fx-naranja-suave); }
.fx-elegir-fila .form-check-input { margin: 0; flex-shrink: 0; }

/* ---------- Categorías ---------- */
.fx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.fx-cat { background: #fff; border-radius: 14px; padding: .95rem 1rem; display: flex; flex-direction: column; gap: .75rem; border: 1px solid transparent; }
.fx-cat.mal { border-color: color-mix(in srgb, var(--fx-naranja) 45%, transparent); }
.fx-barra-cat { height: 6px; }
.fx-barra-cat > span { background: var(--fx-naranja); }
.fx-barra-cat.ok > span { background: #14A44D; }
.fx-ok-txt { color: #0F7A3A; font-weight: 500; }
.fx-sugerencia { display: flex; align-items: center; gap: .55rem; background: var(--fx-naranja-suave); border-radius: 10px; padding: .55rem .7rem; font-size: .78rem; }
.fx-sugerencia > .fa { color: var(--fx-naranja-osc); }
.fx-alerta-cat { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; background: #fff; border-radius: 14px; padding: .9rem 1.1rem; border-left: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx-naranja) 40%, transparent); }
.fx-alerta-cat > .fa { font-size: 1.3rem; color: var(--fx-naranja); }

/* ---------- Asistencia ---------- */
:root { --fx-asis: #14A44D; --fx-falta: #E5484D; --fx-excusa: #D99A00; }
.fx-mini-fila { display: flex; align-items: center; gap: .55rem; padding: .4rem 0; border-bottom: 1px solid #F0F0EE; text-decoration: none; color: var(--fx-tinta); font-size: .8rem; }
.fx-mini-fila:last-child { border-bottom: 0; }
.fx-mini-fila:hover { color: var(--fx-naranja-osc); }

/* Barra apilada asistió / falta / excusa */
.fx-apilada { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #EFEFED; margin-bottom: .25rem; }
.fx-apilada .a { background: var(--fx-asis); } .fx-apilada .f { background: var(--fx-falta); } .fx-apilada .e { background: var(--fx-excusa); }
.fx-apilada-txt { color: var(--fx-gris-texto); font-size: .7rem; }
.fx-apilada-txt b.a { color: var(--fx-asis); } .fx-apilada-txt b.f { color: var(--fx-falta); } .fx-apilada-txt b.e { color: var(--fx-excusa); }

/* Tomar asistencia: una fila por deportista con 3 botones grandes */
.fx-marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: .6rem; }
@media (max-width: 575.98px){ .fx-marcas { grid-template-columns: 1fr; } }
.fx-marca { background: #fff; border-radius: 14px; padding: .6rem .7rem; display: flex; align-items: center; gap: .65rem; border: 2px solid transparent; transition: border-color .15s ease, background .15s ease; }
.fx-marca.t1 { border-color: color-mix(in srgb, var(--fx-asis) 55%, transparent); }
.fx-marca.t2 { border-color: color-mix(in srgb, var(--fx-falta) 55%, transparent); background: #FFF7F7; }
.fx-marca.t3 { border-color: color-mix(in srgb, var(--fx-excusa) 55%, transparent); }
.fx-marca-btns { display: flex; gap: .3rem; flex-shrink: 0; }
.fx-mb { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; width: 62px; height: 52px; border-radius: 12px; border: 1px solid var(--fx-gris-linea); background: #fff; color: var(--fx-gris-texto); font-size: .62rem; font-weight: 600; transition: all .12s ease; }
.fx-mb .fa { font-size: 1rem; }
.fx-mb:hover:not([disabled]) { border-color: var(--fx-tinta); color: var(--fx-tinta); }
.fx-mb.a.on { background: var(--fx-asis); border-color: var(--fx-asis); color: #fff; }
.fx-mb.f.on { background: var(--fx-falta); border-color: var(--fx-falta); color: #fff; }
.fx-mb.e.on { background: var(--fx-excusa); border-color: var(--fx-excusa); color: #fff; }
.fx-mb[disabled] { opacity: .55; cursor: default; }
.fx-mb.on[disabled] { opacity: 1; }
@media (max-width: 420px){ .fx-mb { width: 46px; } .fx-mb span { display: none; } }

/* ---------- Perfil del deportista: tarjeta de jugador ---------- */
.fx-jugador { position: relative; overflow: hidden; border-radius: 20px; background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte);
	display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 1.6rem; align-items: center; padding: 1.4rem; }
.fx-jugador::before { content: ""; position: absolute; left: 150px; top: -60px; width: 120px; height: 420px; background: var(--fx-naranja); transform: skewX(-18deg); opacity: .9; }
.fx-jugador::after { content: ""; position: absolute; left: 290px; top: -60px; width: 22px; height: 420px; background: var(--fx-naranja); transform: skewX(-18deg); opacity: .45; }
.fx-jugador > * { position: relative; }
.fx-jugador-img { width: 210px; aspect-ratio: 4 / 5; height: auto; border-radius: 16px; background: var(--fx-cl-fondo-2) !important; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.fx-jugador-img.err { color: var(--fx-cl-suave); font-family: var(--fx-cond); font-weight: 800; font-size: 4rem; }
.fx-dorsal { position: absolute; right: -14px; bottom: -12px; min-width: 64px; height: 64px; padding: 0 .4rem; border-radius: 16px; background: var(--fx-cl-fuerte); color: var(--fx-cl-fondo);
	font-family: var(--fx-cond); font-weight: 800; font-size: 2.4rem; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.fx-jugador h1 { font-family: var(--fx-cond); font-weight: 800; font-size: 2.9rem; line-height: .95; text-transform: uppercase; margin: 0 0 .9rem; color: var(--fx-cl-fuerte); }
.fx-jugador h1 span { display: block; color: var(--fx-cl-texto); font-weight: 600; }
.fx-jugador-chip { font-size: .66rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: var(--fx-cl-fondo-2); color: var(--fx-cl-texto); border: 1px solid var(--fx-cl-linea); }
.fx-jugador-chip b { color: var(--fx-naranja); margin-right: .15rem; }
.fx-jugador-datos { display: flex; flex-wrap: wrap; gap: .5rem; }
.fx-jugador-datos > div { background: var(--fx-cl-fondo-2); border: 1px solid var(--fx-cl-linea); border-radius: 12px; padding: .4rem .7rem; min-width: 84px; }
.fx-jugador-datos small { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-cl-suave); }
.fx-jugador-datos b { font-size: .85rem; font-weight: 600; color: var(--fx-cl-fuerte); }
.fx-jugador-datos a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--fx-cl-suave); }
.fx-jugador-datos a:hover { color: var(--fx-naranja); }
.fx-jugador .btn-outline-light { --bs-btn-color: var(--fx-cl-fuerte); --bs-btn-border-color: var(--fx-cl-linea); --bs-btn-hover-bg: var(--fx-cl-fondo-2); --bs-btn-hover-color: var(--fx-cl-fuerte); --bs-btn-hover-border-color: var(--fx-cl-linea); }

/* Asistencia: anillo + últimas marcas */
.fx-jugador-asis { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; background: var(--fx-cl-fondo-2); border: 1px solid var(--fx-cl-linea); border-radius: 16px; padding: 1rem .8rem; }
.fx-anillo { --p: 0; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(closest-side, var(--fx-cl-fondo-2) 78%, transparent 79% 100%), conic-gradient(var(--fx-naranja) calc(var(--p) * 1%), var(--fx-cl-linea) 0); }
.fx-anillo span { display: flex; flex-direction: column; line-height: 1; }
.fx-anillo b { font-family: var(--fx-cond); font-weight: 800; font-size: 2rem; color: var(--fx-cl-fuerte); }
.fx-anillo small { font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fx-cl-suave); margin-top: .2rem; }
.fx-jugador-asis-txt { font-size: .66rem; color: var(--fx-cl-suave); line-height: 1.4; }
.fx-puntos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 170px; }
.fx-puntos span { width: 10px; height: 10px; border-radius: 3px; background: var(--fx-cl-linea); }
.fx-puntos .a { background: var(--fx-asis); } .fx-puntos .f { background: var(--fx-falta); } .fx-puntos .e { background: var(--fx-excusa); }

@media (max-width: 1199.98px){
	.fx-jugador { grid-template-columns: 180px minmax(0, 1fr); }
	.fx-jugador-img { width: 180px; }
	.fx-jugador::before { left: 120px; } .fx-jugador::after { left: 250px; }
	.fx-jugador-asis { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: left; }
	.fx-anillo { width: 92px; height: 92px; } .fx-anillo b { font-size: 1.6rem; }
}
@media (max-width: 575.98px){
	.fx-jugador { grid-template-columns: 1fr; text-align: center; padding: 1.2rem 1rem; }
	.fx-jugador-foto { justify-self: center; }
	.fx-jugador-img { width: 150px; }
	.fx-jugador::before { left: -40px; top: -120px; width: 130%; height: 170px; transform: skewY(-8deg); }
	.fx-jugador::after { display: none; }
	.fx-jugador h1 { font-size: 2.2rem; }
	.fx-jugador-info .d-flex, .fx-jugador-datos { justify-content: center; }
	.fx-jugador-asis { text-align: center; }
}

/* Secciones del perfil */
.fx-sec-cab { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.fx-form-sec > .fa { color: var(--fx-naranja); font-size: .85rem; width: 1.1em; text-align: center; }
.fx-form-sec:has(> .fa)::before { display: none; }
.fx-dl-2 { grid-template-columns: 1fr 1fr; }
.fx-falta { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--fx-naranja-osc); background: var(--fx-naranja-suave); border-radius: 10px; padding: .45rem .7rem; margin: 0 0 .5rem; }
.fx-mini-fila > .fa:first-child { color: var(--fx-naranja); width: 1.2em; text-align: center; }
.fx-mini-fila > .fa.ok { color: #14A44D; }
.fx-mini-link { padding-left: .3rem; padding-right: .3rem; border-radius: 10px; }
.fx-mini-link:hover { background: var(--fx-gris-fondo); }

.fx-acudientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .6rem; }
.fx-acudiente { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; border: 1px solid var(--fx-gris-linea); border-radius: 14px; }
.fx-acudiente .fx-avatar { width: 40px; height: 40px; font-size: .8rem; flex-shrink: 0; }
.fx-acudiente-btns { display: flex; gap: .25rem; flex-shrink: 0; }
@media (max-width: 400px){ .fx-acudientes { grid-template-columns: 1fr; } .fx-acudiente { flex-wrap: wrap; } }

.fx-sangre { min-width: 46px; height: 46px; padding: 0 .4rem; border-radius: 12px; background: #B3261E; color: #fff; font-family: var(--fx-cond); font-weight: 800; font-size: 1.35rem; display: inline-flex; align-items: center; justify-content: center; }

.fx-progreso { height: 8px; border-radius: 4px; background: #EFEFED; overflow: hidden; margin-bottom: .75rem; }
.fx-progreso > span { display: block; height: 100%; background: var(--fx-naranja); border-radius: 4px; }
.fx-progreso.ok > span { background: #14A44D; }
.fx-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .78rem; }
.fx-checks li { display: flex; align-items: center; gap: .5rem; color: var(--fx-tinta); font-weight: 500; }
.fx-checks .fa { color: var(--fx-naranja); width: 1.1em; }
.fx-checks li.ok { color: var(--fx-gris-texto); font-weight: 400; }
.fx-checks li.ok .fa { color: #14A44D; }

/* Mini cancha (vertical, ataca hacia arriba) */
.fx-cancha { position: relative; aspect-ratio: 68 / 90; max-width: 250px; margin: 0 auto; border-radius: 12px; overflow: hidden;
	background: repeating-linear-gradient(180deg, #2F8F4E 0 10%, #2A8447 10% 20%); border: 3px solid #2A8447; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.fx-cancha-medio { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255,255,255,.7); }
.fx-cancha-circulo { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; transform: translate(-50%, -50%); }
.fx-cancha-area { position: absolute; left: 25%; width: 50%; height: 15%; border: 2px solid rgba(255,255,255,.7); }
.fx-cancha-area.arriba { top: -2px; } .fx-cancha-area.abajo { bottom: -2px; }
.fx-cancha-pos { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.88); color: #1F5F35;
	font-size: .58rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.fx-cancha-pos.principal { width: 42px; height: 42px; background: var(--fx-naranja); color: var(--fx-sobre-naranja); font-family: var(--fx-cond); font-size: 1.25rem; z-index: 1;
	box-shadow: 0 0 0 4px rgba(255,255,255,.85), 0 6px 14px rgba(0,0,0,.35); }
/* Perfil: información estilo ficha de plantilla (etiqueta pequeña, dato grande, líneas finas) */
.fx-pj { background: #fff; border-radius: 18px; padding: 1.4rem 1.6rem 1.6rem; }
.fx-pj-tabs { gap: 1.6rem; border-bottom: 1px solid var(--fx-gris-linea); margin-bottom: 1.5rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.fx-pj-tabs .nav-link { padding: .35rem 0 .8rem; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: var(--fx-gris-texto); font-size: .95rem; font-weight: 600; white-space: nowrap; }
.fx-pj-tabs .nav-link:hover { color: var(--fx-tinta); }
.fx-pj-tabs .nav-link.active { color: var(--fx-tinta); border-bottom-color: var(--fx-naranja); }
.fx-pj-n { font-size: .68rem; font-weight: 700; color: var(--fx-gris-texto); vertical-align: top; }
.fx-pj-cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--fx-gris-linea); padding-bottom: .8rem; margin-bottom: 1.4rem; }
.fx-pj-cab h2 { font-family: var(--fx-cond); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; margin: 0; letter-spacing: .01em; }
.fx-pj-temp { font-family: var(--fx-cond); font-weight: 700; font-size: 1.1rem; color: var(--fx-gris-texto); }
.fx-pj-sub { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-gris-texto); margin: 1.6rem 0 .8rem; }
.fx-pj-link { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; padding: 0; color: var(--fx-tinta); font-size: .78rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--fx-naranja); }
.fx-pj-link:hover { color: var(--fx-naranja-osc); }
.fx-pj-link .fa { font-size: .7rem; color: var(--fx-naranja); }
.fx-pj-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--fx-gris-linea); color: var(--fx-tinta); text-decoration: none; font-size: .8rem; font-weight: 600; }
.fx-pj-pill .fa { color: var(--fx-naranja); }
.fx-pj-pill small { color: var(--fx-gris-texto); font-weight: 400; }
.fx-pj-pill:hover { border-color: var(--fx-naranja); color: var(--fx-tinta); }
.fx-sin { color: #A9A9A6; font-weight: 400; }

.fx-datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem 2rem; }
.fx-datos > div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.fx-datos small { font-size: .74rem; color: var(--fx-gris-texto); }
.fx-datos span { font-size: 1.05rem; font-weight: 600; color: var(--fx-tinta); line-height: 1.3; }
.fx-datos em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--fx-naranja-osc); background: var(--fx-naranja-suave); border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; vertical-align: middle; }
.fx-datos-grande { font-family: var(--fx-cond); font-size: 1.8rem !important; font-weight: 800 !important; color: #B3261E !important; line-height: 1 !important; }

.fx-filas-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--fx-gris-linea); }
.fx-filas-item:first-child { padding-top: 0; }
.fx-filas-item:last-child { border-bottom: 0; }
.fx-filas-item .fx-avatar { width: 42px; height: 42px; font-size: .8rem; flex-shrink: 0; }
.fx-filas-ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-gris-fondo); color: var(--fx-naranja); }
.fx-filas-ico.ok { color: #14A44D; }
.fx-filas-tit { font-size: .95rem; font-weight: 600; color: var(--fx-tinta); }
.fx-filas-item small { color: var(--fx-gris-texto); font-size: .74rem; }
.fx-filas-dato { min-width: 150px; }
.fx-filas-dato small { display: block; }
.fx-filas-dato span { font-size: .85rem; font-weight: 600; }

/* Estadísticas: números grandes y mes a mes */
.fx-globales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fx-gris-linea); border-left: 1px solid var(--fx-gris-linea); }
.fx-globales > div { padding: .9rem 1rem; border-right: 1px solid var(--fx-gris-linea); border-bottom: 1px solid var(--fx-gris-linea); display: flex; flex-direction: column; gap: .3rem; }
.fx-globales b { font-family: var(--fx-cond); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--fx-tinta); }
.fx-globales small { font-size: .74rem; color: var(--fx-gris-texto); }
.fx-globales .naranja b { color: var(--fx-naranja); }
.fx-globales-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-globales-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fx-globales b { display: flex; align-items: center; gap: .4rem; }
.fx-globales b i { font-style: normal; font-size: 1rem; font-weight: 700; color: var(--fx-gris-texto); align-self: flex-end; margin-bottom: .2rem; }
.fx-globales .fx-globales-fecha { font-size: 1.5rem; }
.fx-globales em { font-style: normal; font-weight: 700; font-size: .68rem; margin-left: .25rem; }
.fx-globales em.sube { color: #14A44D; } .fx-globales em.baja { color: var(--fx-falta); }
@media (max-width: 991.98px){ .fx-globales-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tarjetas amarilla / roja */
.fx-tarjeta { display: inline-block; width: 11px; height: 15px; border-radius: 2px; vertical-align: middle; transform: rotate(8deg); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.fx-tarjeta.am { background: #F5C518; } .fx-tarjeta.ro { background: #D93025; }
.fx-globales .fx-tarjeta { width: 16px; height: 22px; }

/* Competiciones */
.fx-tabla-pj { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fx-tabla-pj th { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-gris-texto); padding: 0 .5rem .6rem; border-bottom: 2px solid var(--fx-tinta); text-align: center; }
.fx-tabla-pj th:first-child, .fx-tabla-pj td:first-child { text-align: left; padding-left: 0; }
.fx-tabla-pj td { padding: .65rem .5rem; border-bottom: 1px solid var(--fx-gris-linea); text-align: center; font-family: var(--fx-cond); font-size: 1.15rem; font-weight: 600; }
.fx-tabla-pj td:first-child { font-family: inherit; font-size: .82rem; }
.fx-tabla-pj td small { color: var(--fx-gris-texto); font-size: .72rem; }
.fx-tabla-pj tr:last-child td { border-bottom: 0; }
.fx-partido { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--fx-gris-linea); }
.fx-partido:last-child { border-bottom: 0; }
.fx-partido-fecha { width: 44px; flex-shrink: 0; text-align: center; font-size: .62rem; text-transform: uppercase; font-weight: 700; color: var(--fx-gris-texto); line-height: 1.1; }
.fx-partido-fecha b { display: block; font-family: var(--fx-cond); font-size: 1.35rem; color: var(--fx-tinta); }
.fx-partido-eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .6rem; font-size: .8rem; }
.fx-partido-eq > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fx-gris-texto); }
.fx-partido-eq > span:first-child { text-align: right; }
.fx-partido-eq > span.yo { color: var(--fx-tinta); font-weight: 700; }
.fx-partido small { display: block; text-align: center; color: var(--fx-gris-texto); font-size: .66rem; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-partido-marcador { font-family: var(--fx-cond); font-weight: 800; font-size: 1.05rem; padding: .1rem .55rem; border-radius: 8px; background: var(--fx-gris-fondo); white-space: nowrap; }
.fx-partido-marcador.g { background: #14A44D; color: #fff; }
.fx-partido-marcador.p { background: var(--fx-tinta); color: #fff; }
.fx-partido-yo { width: 70px; flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; align-items: center; color: var(--fx-naranja); font-size: .8rem; }

/* Asistencia mes a mes: columnas */
.fx-meses-graf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5rem; align-items: end; }
.fx-mg { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; }
.fx-mg-pct { font-family: var(--fx-cond); font-weight: 800; font-size: 1rem; height: 1.1rem; }
.fx-mg-pct.ok { color: #14A44D; } .fx-mg-pct.bajo { color: var(--fx-falta); }
.fx-mg-col { width: 100%; max-width: 38px; height: 130px; border-radius: 8px; background: #F1F1EF; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.fx-mg-col > span { display: block; width: 100%; }
.fx-mg-col .a, .fx-mes-ley .a { background: var(--fx-asis); }
.fx-mg-col .e, .fx-mes-ley .e { background: var(--fx-excusa); }
.fx-mg-col .f, .fx-mes-ley .f { background: var(--fx-falta); }
.fx-mg-mes { font-size: .72rem; font-weight: 600; }
.fx-mg-n { font-size: .62rem; color: var(--fx-gris-texto); height: .9rem; }
.fx-mg.vacio .fx-mg-mes { color: #B5B5B2; }
.fx-mes-ley { display: flex; align-items: center; gap: .35rem .5rem; flex-wrap: wrap; margin-top: 1rem; font-size: .7rem; color: var(--fx-gris-texto); }
.fx-mes-ley span { width: 10px; height: 10px; border-radius: 3px; margin-left: .4rem; }
@media (max-width: 575.98px){ .fx-meses-graf { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 1rem; } .fx-mg-col { height: 90px; } }

/* En la cancha: puntos todos del mismo tamaño, el principal en naranja */
.fx-cancha-caja { display: flex; gap: 1.4rem; align-items: flex-start; }
.fx-pj .fx-cancha { width: 170px; flex-shrink: 0; margin: 0; }
.fx-pj .fx-cancha-pos, .fx-pj .fx-cancha-pos.principal { width: 34px; height: 34px; font-family: inherit; font-size: .6rem; font-weight: 800; }
.fx-pj .fx-cancha-pos.principal { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 4px 10px rgba(0,0,0,.3); }
.fx-datos-1 { grid-template-columns: 1fr; gap: 1rem; flex-grow: 1; }
.fx-datos-par { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--fx-gris-linea); }
.fx-datos-par > div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.fx-datos-num { font-family: var(--fx-cond); font-size: 1.6rem !important; font-weight: 800 !important; line-height: 1 !important; }
.fx-cancha-ley { display: flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .7rem; color: var(--fx-gris-texto); }
.fx-cancha-ley span { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #2A8447; margin-left: .4rem; }
.fx-cancha-ley span.principal { background: var(--fx-naranja); box-shadow: none; margin-left: 0; }
@media (max-width: 420px){ .fx-cancha-caja { flex-direction: column; align-items: center; } .fx-datos-1 { width: 100%; } }

/* Evaluaciones */
.fx-eval-prom { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.fx-eval-prom b { font-family: var(--fx-cond); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--fx-naranja); }
.fx-eval-prom span { font-size: .8rem; font-weight: 600; line-height: 1.3; }
.fx-eval-prom small { display: block; font-weight: 400; color: var(--fx-gris-texto); font-size: .72rem; }
.fx-evals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 767.98px){ .fx-evals { grid-template-columns: 1fr; } }
.fx-eval { border: 1px solid var(--fx-gris-linea); border-radius: 14px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.fx-eval-cab { display: flex; align-items: center; gap: .6rem; font-size: .82rem; }
.fx-eval-cab small { font-size: .7rem; }
.fx-eval-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .8rem; }
.fx-eval-nota { font-family: var(--fx-cond); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.fx-eval-barra { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.fx-eval-barra span { height: 6px; border-radius: 3px; background: #EFEFED; }
.fx-eval-barra span.on { background: var(--fx-naranja); }
.fx-eval-barra span.on.n5, .fx-eval-barra span.on.n4 { background: #14A44D; }
.fx-eval-barra span.on.n1, .fx-eval-barra span.on.n2 { background: var(--fx-falta); }
.fx-eval-nota.n4, .fx-eval-nota.n5 { color: #14A44D; } .fx-eval-nota.n1, .fx-eval-nota.n2 { color: var(--fx-falta); } .fx-eval-nota.n3 { color: var(--fx-naranja); }
.fx-eval-obs { margin: 0; font-size: .74rem; color: #5A5A57; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.fx-eval-obs.abierta { -webkit-line-clamp: unset; }

/* Físico y tests */
.fx-tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.fx-test { border: 1px solid var(--fx-gris-linea); border-radius: 14px; padding: .85rem .95rem; display: flex; flex-direction: column; gap: .35rem; }
.fx-test-cab { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; }
.fx-test-cab .fa { color: var(--fx-naranja); width: 1.1em; text-align: center; }
.fx-test-cab small { margin-left: auto; font-weight: 400; font-size: .66rem; color: var(--fx-gris-texto); white-space: nowrap; }
.fx-test-valor { display: flex; align-items: baseline; gap: .35rem; margin: .2rem 0 .3rem; }
.fx-test-valor b { font-family: var(--fx-cond); font-weight: 800; font-size: 2.3rem; line-height: 1; }
.fx-test-valor span { font-size: .74rem; color: var(--fx-gris-texto); font-weight: 600; }
.fx-test-fila { display: flex; justify-content: space-between; gap: .5rem; font-size: .76rem; padding-top: .3rem; border-top: 1px solid #F0F0EE; }
.fx-test-fila small { color: var(--fx-gris-texto); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-test-fila span { font-weight: 600; white-space: nowrap; }
.fx-test-veces { margin-top: auto; padding-top: .3rem; font-size: .66rem; color: var(--fx-gris-texto); }

/* Aviso de ficha incompleta */
.fx-pendiente { display: flex; align-items: center; gap: 1.2rem; background: #fff; border-radius: 14px; padding: .8rem 1.2rem; border-left: 4px solid var(--fx-naranja); }
.fx-pendiente-num { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.fx-pendiente-num b { font-family: var(--fx-cond); font-weight: 800; font-size: 1.8rem; }
.fx-pendiente-num small { font-size: .62rem; color: var(--fx-gris-texto); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.fx-pendiente-txt { flex-grow: 1; min-width: 0; }

@media (max-width: 575.98px){
	.fx-pj { padding: 1.1rem 1rem 1.2rem; border-radius: 14px; }
	.fx-pj-tabs { gap: 1.1rem; }
	.fx-globales, .fx-globales-4, .fx-globales-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fx-globales b { font-size: 2rem; }
	.fx-pj .fx-cancha { width: 140px; }
	.fx-partido-yo { width: auto; }
	.fx-filas-item { flex-wrap: wrap; }
	.fx-pendiente { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* ---------- Listados (deportistas): caja con aire, filtros arriba, filas redondeadas ---------- */
.fx-lista-caja { padding: 1.1rem 1.2rem .4rem; border-radius: 18px; overflow: hidden; }
.fx-lista-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-bottom: 1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--fx-gris-linea); }
.fx-lista-filtros .form-select, .fx-lista-filtros .form-control, .fx-lista-filtros .input-group-text { border-color: var(--fx-gris-linea); border-radius: 10px; }
.fx-lista-filtros .input-group > .input-group-text { border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fx-lista-filtros .input-group > .form-control { border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.fx-lista-filtros .form-select { max-width: 220px; }
.fx-lista-buscar { flex: 1 1 220px; max-width: 360px; }
.fx-lista-filtros [data-vistas] { margin-left: auto; }

.fx-lista { display: flex; flex-direction: column; gap: 2px; }
.fx-lista-cab, .fx-lista-fila { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) auto); align-items: center; gap: 1rem; }
.fx-lista-cab { padding: .5rem .8rem .4rem; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fx-gris-texto); }
.fx-lista-fila { position: relative; padding: .6rem .8rem; border-radius: 14px; transition: background .12s ease; }
.fx-lista-fila + .fx-lista-fila::before { content: ""; position: absolute; top: -1px; left: .8rem; right: .8rem; border-top: 1px solid #F0F0EE; }
.fx-lista-fila:hover { background: #F7F7F5; }
.fx-lista-fila:hover::before, .fx-lista-fila:hover + .fx-lista-fila::before { border-color: transparent; }
.fx-lista-fila.inactivo .fx-lf-dep, .fx-lista-fila.inactivo .fx-lf-edad, .fx-lista-fila.inactivo .fx-lf-grupo { opacity: .55; }

.fx-lf-dep { display: flex; align-items: center; gap: .8rem; min-width: 0; text-decoration: none; color: var(--fx-tinta); }
.fx-lf-foto { width: 46px; height: 46px; border-radius: 14px; background: var(--fx-cl-fondo) !important; color: var(--fx-cl-fuerte); font-weight: 700; font-size: .78rem; }
.fx-lf-dep:hover .fx-lf-nom { color: var(--fx-naranja-osc); }
.fx-lf-nom { display: block; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .12s ease; }
.fx-lf-sub { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--fx-gris-texto); margin-top: .1rem; }
.fx-lf-pos { font-size: .6rem; font-weight: 800; padding: .05rem .4rem; border-radius: 999px; background: var(--fx-naranja); color: var(--fx-sobre-naranja); letter-spacing: .03em; }
.fx-lf-dorsal { font-family: var(--fx-cond); font-weight: 800; font-size: .85rem; color: var(--fx-tinta); }
.fx-lf-edad { font-size: .74rem; color: var(--fx-gris-texto); line-height: 1.2; }
.fx-lf-edad b { font-family: var(--fx-cond); font-weight: 800; font-size: 1.35rem; color: var(--fx-tinta); }
.fx-lf-edad small { display: block; font-size: .66rem; }
.fx-lf-g { display: block; font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-lf-grupo small { display: block; font-size: .7rem; color: var(--fx-gris-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-lf-grupo small .fa { color: var(--fx-naranja); margin-right: .3rem; font-size: .65rem; }
.fx-lf-cel { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 0; }
.fx-lf-wa { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E7F7EE; color: #128C4A; text-decoration: none; flex-shrink: 0; }
.fx-lf-wa:hover { background: #25D366; color: #fff; }
.fx-estado { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; color: var(--fx-gris-texto); }
.fx-estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B5B5B2; }
.fx-estado.on { color: #128C4A; } .fx-estado.on::before { background: #14A44D; box-shadow: 0 0 0 3px #E7F7EE; }
.fx-lf-acc { display: flex; justify-content: flex-end; gap: .3rem; }
.fx-lf-btn { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--fx-gris-texto); text-decoration: none; font-size: .78rem; transition: all .12s ease; }
.fx-lf-btn:hover { background: #fff; color: var(--fx-tinta); box-shadow: 0 0 0 1px var(--fx-gris-linea); }
.fx-lf-btn.ver { background: var(--fx-tinta); color: #fff; }
.fx-lf-btn.ver:hover { background: var(--fx-naranja); color: var(--fx-sobre-naranja); box-shadow: none; }

.fx-paginas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .9rem .2rem .7rem; margin-top: .4rem; border-top: 1px solid var(--fx-gris-linea); font-size: .74rem; color: var(--fx-gris-texto); }
.fx-paginas .pagination { gap: .25rem; }
.fx-paginas .page-link { border: 0; border-radius: 9px !important; min-width: 30px; text-align: center; color: var(--fx-tinta); background: transparent; font-weight: 600; }
.fx-paginas .page-link:hover { background: var(--fx-gris-fondo); color: var(--fx-tinta); }
.fx-paginas .page-item.active .page-link { background: var(--fx-tinta); color: #fff; }
.fx-paginas .page-item.disabled .page-link { color: #C4C4C1; background: transparent; }

/* Celdas genéricas para cualquier listado */
.fx-lf-ico { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); font-size: .95rem; }
.fx-lf-ico.letra { font-family: var(--fx-cond); font-weight: 800; font-size: 1rem; letter-spacing: .02em; }
.fx-lf-ico.naranja { background: var(--fx-naranja); color: var(--fx-sobre-naranja); }
.fx-lf-txt { min-width: 0; font-size: .8rem; line-height: 1.3; }
.fx-lf-txt > b, .fx-lf-txt > span { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-lf-txt small { display: block; font-size: .7rem; color: var(--fx-gris-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-lf-num { font-size: .7rem; color: var(--fx-gris-texto); line-height: 1.15; }
.fx-lf-num b { display: block; font-family: var(--fx-cond); font-weight: 800; font-size: 1.4rem; color: var(--fx-tinta); }
.fx-lf-num.cero b { color: #C4C4C1; }
.fx-lf-aviso { font-size: .74rem; font-weight: 600; color: var(--fx-naranja-osc); }
.fx-lf-aviso .fa { margin-right: .3rem; }
.fx-lf-gente { display: flex; align-items: center; min-width: 0; }
.fx-lf-gente .fx-avatar { width: 28px; height: 28px; font-size: .6rem; margin-right: -6px; box-shadow: 0 0 0 2px #fff; flex-shrink: 0; }
.fx-lf-gente small { margin-left: .9rem; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-lf-btn.peligro:hover { color: var(--fx-falta); }
button.fx-lf-btn { border: 0; background: transparent; padding: 0; }
.fx-lf-fecha { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: var(--fx-cl-fondo); color: var(--fx-cl-suave); font-size: .58rem; font-weight: 700; text-transform: uppercase; line-height: 1; }
.fx-lf-fecha b { font-family: var(--fx-cond); font-weight: 800; font-size: 1.25rem; color: var(--fx-cl-fuerte); margin-bottom: .1rem; }
.fx-lf-btn.texto { width: auto; padding: 0 .7rem; font-weight: 600; font-size: .74rem; }
.fx-estado.alerta { color: var(--fx-naranja-osc); } .fx-estado.alerta::before { background: var(--fx-naranja); box-shadow: 0 0 0 3px var(--fx-naranja-suave); }
.fx-estado.mal { color: #B3261E; } .fx-estado.mal::before { background: #D93025; box-shadow: 0 0 0 3px #FCE8E6; }
.fx-estado.beca { color: #5B4BB7; } .fx-estado.beca::before { background: #7B61FF; box-shadow: 0 0 0 3px #EEEBFF; }
.fx-lf-btn-wa { background: #E7F7EE; color: #128C4A; }
.fx-lf-btn-wa:hover { background: #25D366 !important; color: #fff !important; box-shadow: none !important; }

/* Administrativo */
.fx-graf-plata .fx-mg { text-decoration: none; color: inherit; }
.fx-graf-plata .fx-mg-pct { font-size: .74rem; white-space: nowrap; color: var(--fx-gris-texto); }
.fx-graf-plata .fx-mg-col { height: 150px; max-width: 46px; }
.fx-graf-plata .fx-mg-col .v { background: #D9D9D6; border-radius: 6px 6px 0 0; transition: background .15s ease; }
.fx-graf-plata .fx-mg:hover .fx-mg-col .v { background: var(--fx-tinta); }
.fx-graf-plata .fx-mg.actual .fx-mg-col .v { background: var(--fx-naranja); }
.fx-graf-plata .fx-mg.actual .fx-mg-pct { color: var(--fx-tinta); }
.fx-graf-plata .fx-mg.actual .fx-mg-mes { color: var(--fx-naranja-osc); font-weight: 800; }
@media (max-width: 575.98px){ .fx-graf-plata .fx-mg-pct { font-size: .6rem; } .fx-graf-plata .fx-mg-col { height: 100px; } }
.fx-cartera-barra { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: #EFEFED; }
.fx-cartera-barra .al_dia { background: #14A44D; } .fx-cartera-barra .parcial { background: var(--fx-naranja); }
.fx-cartera-barra .sin_pago { background: #D93025; } .fx-cartera-barra .becado { background: #7B61FF; }
.fx-barra-fila { padding: .55rem 0; border-bottom: 1px solid #F0F0EE; }
.fx-barra-fila:last-child { border-bottom: 0; }
.fx-seg-estados { flex-wrap: wrap; }

/* Conciliación */
.fx-tipo-pago { display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .04em; padding: .02rem .4rem; border-radius: 999px; background: var(--fx-gris-fondo); color: var(--fx-tinta); margin-right: .2rem; }
.fx-pago-dep { display: flex; align-items: center; gap: .55rem; min-width: 0; text-decoration: none; color: var(--fx-tinta); }
.fx-pago-dep b, .fx-pago-sug b { display: block; font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pago-dep small, .fx-pago-sug small { display: block; font-size: .68rem; color: var(--fx-gris-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pago-sug { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .3rem .55rem; border-radius: 10px; background: var(--fx-naranja-suave); border: 1px dashed var(--fx-naranja); }
.fx-pago-sug > .fa { color: var(--fx-naranja-osc); }
.fx-pago-parte { display: flex; align-items: center; gap: .4rem; font-size: .78rem; }
.fx-pago-parte b { margin-left: auto; font-family: var(--fx-cond); font-size: .95rem; }
.fx-lf-btn-ok { background: #E7F7EE; color: #128C4A; }
.fx-lf-btn-ok:hover { background: #14A44D !important; color: #fff !important; box-shadow: none !important; }
.fx-ignorados { margin: .8rem .2rem .6rem; font-size: .78rem; color: var(--fx-gris-texto); }
.fx-ignorados summary { cursor: pointer; font-weight: 600; }
.fx-pago-resumen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); margin-bottom: 1rem; }
.fx-pago-resumen b { display: block; font-size: .9rem; }
.fx-pago-resumen small { display: block; font-size: .72rem; color: var(--fx-cl-suave); }
.fx-pago-resumen .fx-num { font-size: 1.7rem; color: var(--fx-cl-fuerte); white-space: nowrap; }
.fx-pago-resumen .fx-tipo-pago { background: var(--fx-cl-fondo-2); color: var(--fx-cl-texto); }
.fx-pago-parte-form { border: 1px solid var(--fx-gris-linea); border-radius: 14px; padding: .7rem; margin-bottom: .6rem; }
.fx-pa-buscar { position: relative; }
.fx-pa-res { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
.fx-pa-res:empty { display: none; }
.fx-pa-op { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .5rem .8rem; border-bottom: 1px solid #F0F0EE; }
.fx-pa-op:hover { background: var(--fx-naranja-suave); }
.fx-pa-op b { display: block; font-size: .82rem; }
.fx-pa-op small { font-size: .7rem; color: var(--fx-gris-texto); }
.fx-pa-elegido { align-items: center; justify-content: space-between; gap: .6rem; padding: .35rem .2rem; }
.fx-pa-elegido b { display: block; font-size: .88rem; }
.fx-pa-elegido small { font-size: .72rem; color: var(--fx-gris-texto); }
.fx-falta > span { min-width: 0; }

/* Conciliación: grupos por tipo, pasos por pago */
.fx-x-buscar { display: flex; justify-content: flex-end; margin-top: -.6rem; }
.fx-x-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .7rem .8rem; border-radius: 12px; background: var(--fx-gris-fondo); }
.fx-x-grupo { margin-bottom: .9rem; border: 1px solid var(--fx-gris-linea); border-radius: 14px; overflow: hidden; }
.fx-x-grupo > summary { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: #FAFAF9; cursor: pointer; list-style: none; font-size: .82rem; }
.fx-x-grupo > summary::-webkit-details-marker { display: none; }
.fx-x-grupo > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome; font-weight: 900; font-size: .65rem; color: var(--fx-gris-texto); margin-left: .4rem; transition: transform .15s ease; }
.fx-x-grupo:not([open]) > summary::after { transform: rotate(-90deg); }
.fx-x-grupo > summary .fx-tipo-pago { font-size: .66rem; padding: .12rem .55rem; background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); }
.fx-x-sub { margin-left: auto; font-family: var(--fx-cond); font-weight: 800; font-size: 1.15rem; }
.fx-x-grupo > .fx-lista { padding: .3rem .4rem; }
.fx-x-total { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-radius: 12px; background: var(--fx-cl-fondo); color: var(--fx-cl-texto); font-size: .78rem; }
.fx-x-total b { font-family: var(--fx-cond); font-weight: 800; font-size: 1.5rem; color: var(--fx-cl-fuerte); }
.fx-x-ign { opacity: .55; }
.fx-auto { display: inline-block; font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .05rem .4rem; border-radius: 999px; background: var(--fx-naranja-suave); color: var(--fx-naranja-osc); vertical-align: middle; margin-left: .2rem; }
.fx-x-pasos { flex-wrap: wrap; }
.fx-paso-ant { background: #FFF4D6; color: #9A6B00; }
.fx-paso-ant:hover { background: #F5B800 !important; color: #fff !important; box-shadow: none !important; }
.fx-paso-hecho { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; background: #E7F7EE; color: #14A44D; }
.fx-paso-siigo { background: #E7F7EE; color: #128C4A; }
.fx-paso-siigo:hover { background: #14A44D !important; color: #fff !important; box-shadow: none !important; }
.fx-pa-nuevo { margin-top: .6rem; padding: .7rem; border-radius: 12px; background: var(--fx-gris-fondo); }
.fx-pa-nuevo .fx-seg { background: #fff; }
@media (max-width: 767.98px){ .fx-x-buscar { justify-content: stretch; margin-top: 0; } .fx-x-buscar .fx-lista-buscar { max-width: none; flex-basis: 100%; } }

/* ---------- Cuerpo humano ---------- */
.fx-cuerpo { display: flex; justify-content: center; gap: .6rem; }
.fx-cuerpo-vista { margin: 0; flex: 1 1 0; max-width: 170px; text-align: center; }
.fx-cuerpo-vista svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.08)); }
.fx-cuerpo-vista figcaption { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-gris-texto); margin-top: .2rem; }
.fx-z { fill: #E4E4E1; stroke: #fff; stroke-width: 1.6; transition: fill .15s ease, transform .15s ease; }
.fx-cuerpo.elegir .fx-z { cursor: pointer; }
.fx-cuerpo.elegir .fx-z:hover, .fx-cuerpo.elegir .fx-z:focus { fill: #FFD3BF; outline: none; }
.fx-z.sel { fill: var(--fx-naranja) !important; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--fx-naranja) 70%, transparent)); }
.fx-cuerpo.mapa .fx-z.con { fill: color-mix(in srgb, #D93025 calc(var(--calor) * 100%), #F6D6CF); }
.fx-cuerpo.mapa .fx-z.con:hover { stroke: var(--fx-tinta); }
.fx-zona-elegida { text-align: center; font-weight: 700; font-size: .9rem; margin-top: .6rem; }

/* ---------- Ficha de la lesión ---------- */
.fx-lesion-hero { position: relative; overflow: hidden; border-radius: 20px; background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); padding: 1.4rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem 1.6rem; align-items: center; }
.fx-lesion-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid color-mix(in srgb, var(--fx-naranja) 35%, transparent); pointer-events: none; }
.fx-lesion-hero > * { position: relative; z-index: 1; }
.fx-lesion-hero-dep { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.fx-lesion-foto { width: 96px; height: 120px; border-radius: 16px; background: var(--fx-cl-fondo-2) !important; color: var(--fx-cl-suave); font-family: var(--fx-cond); font-weight: 800; font-size: 2rem; flex-shrink: 0; }
.fx-lesion-hero h1 { font-family: var(--fx-cond); font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; margin: .4rem 0 .25rem; color: var(--fx-cl-fuerte); }
.fx-lesion-sub { font-size: .82rem; color: var(--fx-cl-texto); }
.fx-lesion-sub a { color: var(--fx-cl-fuerte); }
.fx-lesion-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.fx-lesion-cifras > div { background: var(--fx-cl-fondo-2); border: 1px solid var(--fx-cl-linea); border-radius: 14px; padding: .7rem .6rem; text-align: center; }
.fx-lesion-cifras b { display: block; font-family: var(--fx-cond); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--fx-cl-fuerte); }
.fx-lesion-cifras b i { font-style: normal; font-size: .9rem; color: var(--fx-cl-suave); }
.fx-lesion-cifras small { font-size: .62rem; color: var(--fx-cl-suave); text-transform: uppercase; letter-spacing: .05em; }
.fx-lesion-linea { grid-column: 1 / -1; color: var(--fx-cl-texto); }
.fx-lesion-linea b { color: var(--fx-cl-fuerte); font-weight: 600; }
.fx-lesion-barra { height: 10px; border-radius: 5px; background: var(--fx-cl-fondo-2); overflow: hidden; margin-bottom: .4rem; }
.fx-lesion-barra > span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--fx-naranja), #14A44D); }
.fx-lesion-hero > .d-flex { grid-column: 1 / -1; }
.fx-lesion-hero .btn-outline-light { --bs-btn-color: var(--fx-cl-fuerte); --bs-btn-border-color: var(--fx-cl-linea); --bs-btn-hover-bg: var(--fx-cl-fondo-2); --bs-btn-hover-color: var(--fx-cl-fuerte); --bs-btn-hover-border-color: var(--fx-cl-linea); }
@media (max-width: 991.98px){ .fx-lesion-hero { grid-template-columns: 1fr; } }
@media (max-width: 575.98px){ .fx-lesion-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-lesion-foto { width: 72px; height: 90px; } .fx-lesion-hero h1 { font-size: 1.6rem; } }

.fx-fases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; position: relative; margin-bottom: .5rem; }
.fx-fase { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .7rem .3rem; border-radius: 14px; background: var(--fx-gris-fondo); color: var(--fx-gris-texto); }
.fx-fase span { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; font-family: var(--fx-cond); font-weight: 800; font-size: 1.1rem; color: var(--fx-gris-texto); border: 2px solid var(--fx-gris-linea); }
.fx-fase b { font-size: .78rem; color: var(--fx-tinta); }
.fx-fase small { font-size: .62rem; }
.fx-fase.hecha span { background: #14A44D; border-color: #14A44D; color: #fff; }
.fx-fase.actual { background: var(--fx-naranja-suave); box-shadow: inset 0 0 0 2px var(--fx-naranja); }
.fx-fase.actual span { background: var(--fx-naranja); border-color: var(--fx-naranja); color: var(--fx-sobre-naranja); }
@media (max-width: 575.98px){ .fx-fases { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .2rem; } .fx-fase { padding: .5rem .1rem; } .fx-fase b { font-size: .62rem; } .fx-fase small { display: none; } }

.fx-evolucion { display: flex; gap: .5rem; align-items: flex-end; overflow-x: auto; padding-bottom: .2rem; }
.fx-evo { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 36px; }
.fx-evo-col { position: relative; width: 26px; height: 110px; border-radius: 8px; background: #F1F1EF; display: flex; align-items: flex-end; }
.fx-evo-col .p { width: 100%; border-radius: 8px; background: var(--fx-asis); }
.fx-evo-col .d { position: absolute; left: 50%; width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: var(--fx-falta); box-shadow: 0 0 0 2px #fff; }
.fx-evo small { font-size: .6rem; color: var(--fx-gris-texto); white-space: nowrap; }

.fx-timeline { position: relative; padding-left: 1.4rem; }
.fx-timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--fx-gris-linea); }
.fx-tl { position: relative; padding: 0 0 1rem; }
.fx-tl-punto { position: absolute; left: -1.2rem; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: var(--fx-naranja); box-shadow: 0 0 0 3px #fff; }
.fx-tl-punto.alta { background: #14A44D; }
.fx-tl-cab { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; }
.fx-tl-cab small { color: var(--fx-gris-texto); font-size: .72rem; }
.fx-dolor { font-size: .74rem; padding: .1rem .55rem; border-radius: 999px; background: #E7F7EE; color: #128C4A; }
.fx-dolor.n4, .fx-dolor.n5, .fx-dolor.n6 { background: var(--fx-naranja-suave); color: var(--fx-naranja-osc); }
.fx-dolor.n7, .fx-dolor.n8, .fx-dolor.n9, .fx-dolor.n10 { background: #FCE8E6; color: #B3261E; }
.fx-escala { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.fx-escala button { border: 0; border-radius: 8px; padding: .45rem 0; font-weight: 700; font-size: .78rem; color: #fff; opacity: .45; transition: opacity .1s ease, transform .1s ease; }
.fx-escala button.on, .fx-escala button:hover { opacity: 1; transform: translateY(-2px); }
.fx-escala .n0, .fx-escala .n1, .fx-escala .n2, .fx-escala .n3 { background: #14A44D; }
.fx-escala .n4, .fx-escala .n5, .fx-escala .n6 { background: #F5A300; }
.fx-escala .n7, .fx-escala .n8, .fx-escala .n9, .fx-escala .n10 { background: #D93025; }

/* ---------- Evaluaciones ---------- */
.fx-aspectos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 1199.98px){ .fx-aspectos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px){ .fx-aspectos { grid-template-columns: 1fr; } }
.fx-aspecto { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border-radius: 16px; padding: 1rem 1.1rem; }
.fx-aspecto b { font-size: .9rem; }
.fx-aspecto small { font-size: .7rem; }
.fx-tend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.fx-tend-sem { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.fx-tend-barras { display: flex; align-items: flex-end; gap: 3px; height: 140px; width: 100%; justify-content: center; padding: 0 .2rem; border-bottom: 1px solid var(--fx-gris-linea); }
.fx-tend-barras span { flex: 1; max-width: 16px; border-radius: 5px 5px 0 0; min-height: 2px; }
.fx-tend-barras .a1, .fx-ley-a1 { background: var(--fx-tinta); }
.fx-tend-barras .a2, .fx-ley-a2 { background: var(--fx-naranja); }
.fx-tend-barras .a3, .fx-ley-a3 { background: #14A44D; }
.fx-tend-barras .a4, .fx-ley-a4 { background: #7B61FF; }
.fx-tend-sem small { font-size: .66rem; color: var(--fx-gris-texto); font-weight: 600; white-space: nowrap; }
.fx-tend-sem.actual small { color: var(--fx-naranja-osc); font-weight: 800; }
.fx-nota-fila { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid #F0F0EE; }
.fx-nota-fila:last-child { border-bottom: 0; }
.fx-barra .n1, .fx-barra .n2 { background: var(--fx-falta); } .fx-barra .n3 { background: var(--fx-naranja); } .fx-barra .n4, .fx-barra .n5 { background: #14A44D; }
.fx-cartera-barra .imc3 { background: #14A44D; } .fx-cartera-barra .imc2, .fx-cartera-barra .imc4 { background: var(--fx-naranja); }
.fx-cartera-barra .imc1, .fx-cartera-barra .imc5, .fx-cartera-barra .imc6 { background: #D93025; }
.fx-ev-notas { display: flex; flex-wrap: wrap; gap: .3rem; }
.fx-ev-nota { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem; border-radius: 999px; background: var(--fx-gris-fondo); color: var(--fx-gris-texto); font-size: .74rem; font-weight: 700; }
.fx-ev-nota .fa { font-size: .62rem; }
.fx-ev-nota.n4, .fx-ev-nota.n5 { background: #E7F7EE; color: #128C4A; }
.fx-ev-nota.n3 { background: var(--fx-naranja-suave); color: var(--fx-naranja-osc); }
.fx-ev-nota.n1, .fx-ev-nota.n2 { background: #FCE8E6; color: #B3261E; }
.fx-ev-bloque { padding: .8rem; border: 1px solid var(--fx-gris-linea); border-radius: 14px; margin-bottom: .7rem; }
.fx-estrellas { display: flex; align-items: center; gap: .2rem; }
.fx-estrellas button { border: 0; background: none; padding: 0 .1rem; font-size: 1.5rem; color: #D9D9D6; line-height: 1; transition: transform .1s ease, color .1s ease; }
.fx-estrellas button.on { color: #F5B800; }
.fx-estrellas button:hover { transform: scale(1.15); }
.fx-estrellas-txt { margin-left: .5rem; font-weight: 700; font-size: .78rem; color: var(--fx-gris-texto); }
.fx-imc-res { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 1rem; border-radius: 14px; background: var(--fx-gris-fondo); }
.fx-imc-res > div > b { display: block; font-family: var(--fx-cond); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.fx-imc-res > div > small { font-size: .66rem; color: var(--fx-gris-texto); text-transform: uppercase; letter-spacing: .05em; }
.fx-imc-res #me_rec { font-size: .72rem; color: var(--fx-gris-texto); line-height: 1.35; }

/* ---------- Tests físicos ---------- */
.fx-tests-menu { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 1199.98px){ .fx-tests-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fx-test-op { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .4rem; border-radius: 14px; background: #fff; text-decoration: none; color: var(--fx-tinta); text-align: center; border: 2px solid transparent; transition: all .12s ease; }
.fx-test-op .fa { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-gris-fondo); color: var(--fx-naranja); font-size: .95rem; }
.fx-test-op b { font-size: .74rem; font-weight: 700; }
.fx-test-op:hover { border-color: var(--fx-gris-linea); color: var(--fx-tinta); }
.fx-test-op.on { border-color: var(--fx-naranja); }
.fx-test-op.on .fa { background: var(--fx-naranja); color: var(--fx-sobre-naranja); }
.fx-test-tabla-caja { margin: 0 -.2rem; }
.fx-test-tabla { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.fx-test-tabla th { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-gris-texto); padding: .4rem .35rem; white-space: nowrap; }
.fx-test-tabla td { padding: .35rem; border-top: 1px solid #F0F0EE; vertical-align: middle; }
.fx-test-tabla td:first-child { min-width: 190px; max-width: 240px; }
.fx-test-tabla .form-control { min-width: 62px; text-align: center; font-variant-numeric: tabular-nums; }
.fx-test-tabla td:last-child .form-control:not(.fx-in) { text-align: left; min-width: 140px; }
.fx-test-tabla .c { text-align: center; white-space: nowrap; }
.fx-test-tabla td.c { color: var(--fx-gris-texto); font-weight: 700; font-size: .76rem; background: #FAFAF9; }
.fx-test-tabla tbody tr:hover td { background: #F7F7F5; }
.fx-pie-par { display: inline-flex; gap: 2px; }
.fx-pie input { position: absolute; opacity: 0; pointer-events: none; }
.fx-pie span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #F1F1EF; color: var(--fx-gris-texto); font-size: .66rem; font-weight: 800; cursor: pointer; }
.fx-pie input:checked + span { background: #14A44D; color: #fff; }
.fx-pie input:focus-visible + span { outline: 2px solid var(--fx-naranja); }
.fx-rank { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-gris-fondo); font-size: .7rem; font-weight: 800; flex-shrink: 0; }
.fx-rank.p1 { background: #F5B800; color: #fff; } .fx-rank.p2 { background: #B9BCC2; color: #fff; } .fx-rank.p3 { background: #C98A4B; color: #fff; }

/* ---------- Roles y permisos ---------- */
.fx-roles { display: flex; flex-direction: column; gap: .4rem; position: sticky; top: 1rem; }
.fx-rol { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: 14px; background: #fff; text-decoration: none; color: var(--fx-tinta); border: 2px solid transparent; transition: border-color .12s ease, transform .12s ease; }
.fx-rol:hover { color: var(--fx-tinta); border-color: var(--fx-gris-linea); }
.fx-rol.on { border-color: var(--fx-naranja); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.fx-rol b { font-size: .84rem; font-weight: 700; }
.fx-rol small { display: block; font-size: .7rem; color: var(--fx-gris-texto); }
.fx-rol-ico { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-gris-fondo); color: var(--fx-gris-texto); font-size: .85rem; }
.fx-rol.on .fx-rol-ico { background: var(--fx-naranja); color: var(--fx-sobre-naranja); }
.fx-rol .fa-crown { color: #F5B800; }
.fx-rol.on .fa-crown { color: var(--fx-sobre-naranja); }

.fx-alcance { position: relative; flex: 1 1 220px; display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .85rem; border-radius: 14px; border: 2px solid var(--fx-gris-linea); cursor: pointer; margin: 0; }
.fx-alcance input { position: absolute; opacity: 0; pointer-events: none; }
.fx-alcance > .fa { margin-top: .15rem; color: var(--fx-gris-texto); }
.fx-alcance b { display: block; font-size: .85rem; }
.fx-alcance small { display: block; font-size: .72rem; color: var(--fx-gris-texto); line-height: 1.35; }
.fx-alcance.on { border-color: var(--fx-naranja); background: var(--fx-naranja-suave); }
.fx-alcance.on > .fa { color: var(--fx-naranja-osc); }

.fx-permisos { font-size: .82rem; }
.fx-perm-cab, .fx-perm-fila { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 72px); align-items: center; gap: .3rem; }
.fx-perm-cab { position: sticky; top: 0; z-index: 2; background: #fff; padding: .5rem .6rem; border-bottom: 2px solid var(--fx-tinta); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fx-gris-texto); }
.fx-perm-cab span:not(:first-child) { text-align: center; }
.fx-perm-mod { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .45rem .6rem; border-radius: 10px; background: var(--fx-cl-fondo); color: var(--fx-cl-fuerte); font-size: .8rem; }
.fx-perm-mod b { margin-right: auto; text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; }
.fx-perm-mod .btn-link { color: var(--fx-cl-texto); font-size: .72rem; text-decoration: none; }
.fx-perm-mod .btn-link:hover { color: var(--fx-cl-fuerte); }
.fx-perm-fila { padding: .45rem .6rem; border-bottom: 1px solid #F0F0EE; }
.fx-perm-fila:hover { background: #FAFAF9; }
.fx-perm-fila small { font-size: .68rem; }
.fx-perm-chk { display: flex; justify-content: center; margin: 0; cursor: pointer; }
.fx-perm-chk input { position: absolute; opacity: 0; pointer-events: none; }
.fx-perm-chk span { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--fx-gris-linea); background: #fff; color: transparent; font-size: .78rem; transition: all .12s ease; }
.fx-perm-chk:hover span { border-color: var(--fx-gris-texto); }
.fx-perm-chk input:focus-visible + span { outline: 2px solid var(--fx-naranja); outline-offset: 2px; }
.fx-perm-chk input:checked + span { color: #fff; }
.fx-perm-chk.ver input:checked + span { background: var(--fx-tinta); border-color: var(--fx-tinta); }
.fx-perm-chk.crear input:checked + span { background: #14A44D; border-color: #14A44D; }
.fx-perm-chk.editar input:checked + span { background: var(--fx-naranja); border-color: var(--fx-naranja); }
.fx-perm-chk.eliminar input:checked + span { background: #D93025; border-color: #D93025; }
.fx-perm-chk input:disabled + span { cursor: default; opacity: .75; }
.fx-perm-guardar { position: sticky; bottom: 1rem; z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* Listas y catálogos */
.fx-cat-grupo { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--fx-gris-texto); margin: .7rem .3rem .1rem; }
.fx-cat-grupo:first-child { margin-top: 0; }
.fx-cat-item .fx-lf-btn[disabled] { opacity: .3; cursor: not-allowed; }
.fx-cat-item.inactivo .fx-lf-nom { color: var(--fx-gris-texto); text-decoration: line-through; }
@media (max-width: 575.98px){ .fx-perm-cab, .fx-perm-fila { grid-template-columns: minmax(0, 1fr) repeat(4, 38px); } .fx-perm-chk span { width: 26px; height: 26px; } .fx-perm-cab { font-size: .55rem; letter-spacing: 0; } }
.fx-lista-caja > .fx-lista:first-child { margin-top: -.3rem; }
.fx-lista-vacio { padding: 2rem 1rem; text-align: center; color: var(--fx-gris-texto); font-size: .82rem; }

/* Columnas de cada listado (--cols en la .fx-lista) */
.fx-lista-dep { --cols: minmax(0, 2.3fr) 90px minmax(0, 1.5fr) minmax(0, 1.1fr) 92px var(--acc, 78px); }

@media (max-width: 1199.98px){
	.fx-lista-dep { --cols: minmax(0, 2.2fr) 80px minmax(0, 1.5fr) 92px var(--acc, 78px); }
	.fx-lista-dep .fx-lista-cab > :nth-child(4), .fx-lista-dep .fx-lf-cel { display: none; }
	.fx-lf-xl { display: none !important; }
}
@media (max-width: 767.98px){
	.fx-lista-caja { padding: .9rem .8rem .3rem; }
	.fx-lista-filtros .form-select { max-width: none; flex: 1 1 140px; }
	.fx-lista-buscar { max-width: none; flex-basis: 100%; order: -1; }
	.fx-lista-cab { display: none !important; }
	/* En celular: principal + acciones arriba, el resto debajo en una línea */
	.fx-lista-fila { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .8rem; padding: .7rem .5rem; }
	.fx-lista-fila + .fx-lista-fila::before { left: .5rem; right: .5rem; }
	.fx-lista-fila > .fx-lf-dep { grid-column: 1; grid-row: 1; }
	.fx-lista-fila > .fx-lf-acc { grid-column: 2; grid-row: 1; }
	.fx-lista-fila > :not(.fx-lf-dep):not(.fx-lf-acc) { grid-column: 1 / -1; padding-left: calc(46px + .8rem); }
	.fx-lf-md { display: none !important; }
	.fx-lf-num { display: flex; align-items: baseline; gap: .3rem; }
	.fx-lf-num b { display: inline; font-size: 1.05rem; }
	.fx-lista-dep .fx-lista-fila > .fx-lf-grupo { grid-column: 1; grid-row: 2; }
	.fx-lista-dep .fx-lista-fila > .fx-lf-estado { grid-column: 2; grid-row: 2; padding-left: 0; text-align: right; }
	.fx-lista-dep .fx-lf-edad { display: none; }
}

/* Listado de deportistas en tarjetas */
.fx-dep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; padding: .6rem 0 .8rem; }
.fx-dep-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--fx-cl-fondo); text-decoration: none; color: var(--fx-cl-fuerte); transition: transform .15s ease, box-shadow .15s ease; }
.fx-dep-card:hover { color: var(--fx-cl-fuerte); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.fx-dep-card.inactivo { opacity: .6; }
.fx-dep-card-foto { position: relative; display: block; }
.fx-dep-card-img { width: 100%; aspect-ratio: 4 / 5; height: auto; display: flex; background: var(--fx-cl-fondo-2) !important; }
.fx-dep-card-img.err { color: var(--fx-cl-suave); font-family: var(--fx-cond); font-weight: 800; font-size: 2.6rem; }
.fx-dep-card-foto::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--fx-cl-fondo)); pointer-events: none; }
.fx-dep-card-dorsal { position: absolute; left: .55rem; bottom: .2rem; z-index: 1; font-family: var(--fx-cond); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--fx-cl-fuerte); text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.fx-dep-card-pos { position: absolute; top: .45rem; right: .45rem; z-index: 1; font-size: .6rem; font-weight: 800; letter-spacing: .04em; padding: .12rem .45rem; border-radius: 999px; background: var(--fx-naranja); color: var(--fx-sobre-naranja); max-width: calc(100% - .9rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Asignar grupos al personal: casillas en tarjetas */
.fx-checks-grupos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; max-height: 320px; overflow-y: auto; }
@media (max-width: 575.98px){ .fx-checks-grupos { grid-template-columns: 1fr; } }
.fx-check-grupo { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border: 1px solid var(--fx-gris-linea); border-radius: 12px; cursor: pointer; font-size: .8rem; margin: 0; }
.fx-check-grupo:has(input:checked) { border-color: var(--fx-naranja); background: var(--fx-naranja-suave); }
.fx-check-grupo.ya { opacity: .6; cursor: default; }
.fx-check-grupo .form-check-input { margin: 0; flex-shrink: 0; }
.fx-check-grupo b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-check-grupo small { display: block; font-size: .68rem; color: var(--fx-gris-texto); }
.fx-dep-card-estado { position: absolute; top: .45rem; left: .45rem; z-index: 1; font-size: .58rem; font-weight: 700; text-transform: uppercase; padding: .12rem .45rem; border-radius: 999px; background: #fff; color: var(--fx-tinta); }
.fx-dep-card-txt { display: flex; flex-direction: column; gap: .15rem; padding: .35rem .7rem .7rem; border-top: 3px solid var(--fx-naranja); min-width: 0; }
.fx-dep-card-nom { font-family: var(--fx-cond); font-weight: 600; font-size: 1rem; line-height: 1.05; text-transform: uppercase; color: var(--fx-cl-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-dep-card-nom b { display: block; font-weight: 800; color: var(--fx-cl-fuerte); overflow: hidden; text-overflow: ellipsis; }
.fx-dep-card-txt small { font-size: .66rem; color: var(--fx-cl-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px){ .fx-dep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .75rem; gap: .6rem; } }

.fx-cancha-vacia { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .78rem; font-weight: 600; background: rgba(0,0,0,.25); }

/* ------------------------- Cobros: cuentas y soportes de pago ------------------------- */
.fx-cob-demo { font-size: .82rem; color: var(--fx-gris-texto); background: #fff; border: 1px dashed var(--fx-gris-linea); border-radius: 12px; padding: .6rem .9rem; }
.fx-cob-demo b { color: var(--fx-naranja); }
.fx-cob-demo .fx-estado { margin: 0 .25rem; }
.fx-sop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 1rem; }
.fx-sop { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1rem; padding: 1rem; }
.fx-sop-img { display: block; border-radius: 12px; overflow: hidden; background: var(--fx-gris-fondo); aspect-ratio: 9 / 16; max-height: 340px; }
.fx-sop-img img { width: 100%; height: 100%; object-fit: contain; }
.fx-sop-pdf { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; color: var(--fx-gris-texto); }
.fx-sop-pdf .fa { font-size: 2.4rem; color: #D93025; }
.fx-sop-cuerpo { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.fx-sop-tabla { width: 100%; font-size: .8rem; border-collapse: collapse; }
.fx-sop-tabla th { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-gris-texto); font-weight: 600; padding: 0 .4rem .25rem; text-align: left; }
.fx-sop-tabla td { padding: .3rem .4rem; border-top: 1px solid var(--fx-gris-linea); overflow-wrap: anywhere; }
.fx-sop-tabla td:first-child { color: var(--fx-gris-texto); width: 78px; }
.fx-sop-tabla tr.ok td:last-child b { color: #128C4A; }
.fx-sop-tabla tr.ok td:last-child b::after { content: " ✓"; }
.fx-sop-tabla tr.mal td:last-child b { color: #B3261E; }
.fx-sop-banco { display: flex; gap: .6rem; align-items: flex-start; border-radius: 10px; padding: .5rem .7rem; font-size: .8rem; }
.fx-sop-banco .fa { margin-top: .2rem; }
.fx-sop-banco small { display: block; color: var(--fx-gris-texto); overflow-wrap: anywhere; }
.fx-sop-banco.si { background: #E7F7EE; } .fx-sop-banco.si .fa { color: #128C4A; }
.fx-sop-banco.no { background: var(--fx-gris-fondo); } .fx-sop-banco.no .fa { color: var(--fx-gris-texto); }
.fx-sop-alertas { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.fx-sop-alertas li { font-size: .72rem; font-weight: 600; color: #B3261E; background: #FCE8E6; border-radius: 999px; padding: .15rem .6rem; }
.fx-sop-texto summary { font-size: .74rem; color: var(--fx-gris-texto); cursor: pointer; }
.fx-sop-texto pre { font-size: .7rem; white-space: pre-wrap; max-height: 180px; overflow: auto; background: var(--fx-gris-fondo); border-radius: 8px; padding: .5rem; margin: .4rem 0 0; }
@media (max-width: 575.98px){ .fx-sop { grid-template-columns: 1fr; } .fx-sop-img { aspect-ratio: auto; max-height: 260px; } }

/* ------------------------- Submenú dentro de un módulo ------------------------- */
.fx-cl-sub-btn { width: 100%; border: 0; background: transparent; text-align: left; }
.fx-cl-sub .fx-cl-flecha { font-size: .55rem; transition: transform .15s ease; }
.fx-cl-sub.abierto .fx-cl-flecha { transform: rotate(180deg); }
.fx-cl-sub-ops { display: none; margin: .1rem 0 .3rem .6rem; padding-left: .6rem; border-left: 1px solid var(--fx-cl-linea); }
.fx-cl-sub.abierto .fx-cl-sub-ops { display: block; }

/* ------------------------- Facturas recibidas ------------------------- */
.fx-fe-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.fx-fe-datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem 1rem; }
.fx-fe-datos small { display: block; font-size: .68rem; color: var(--fx-gris-texto); text-transform: uppercase; letter-spacing: .05em; }
.fx-fe-datos b { font-size: .86rem; font-weight: 600; }
.fx-fe-totales { margin: .8rem 0 0 auto; max-width: 300px; font-size: .84rem; }
.fx-fe-totales div { display: flex; justify-content: space-between; padding: .2rem 0; }
.fx-fe-totales div.total { border-top: 1px solid var(--fx-gris-linea); margin-top: .3rem; padding-top: .4rem; font-size: 1rem; }
.fx-fe-json { font-size: .7rem; max-height: 320px; overflow: auto; background: var(--fx-gris-fondo); border-radius: 8px; padding: .6rem; margin: .5rem 0 0; }
.fx-fe-subir { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 2rem 1rem; border: 2px dashed var(--fx-gris-linea); border-radius: 14px; cursor: pointer; color: var(--fx-gris-texto); font-size: .84rem; }
.fx-fe-subir .fa { font-size: 1.8rem; color: var(--fx-naranja); }
.fx-fe-subir b { color: var(--fx-tinta); font-size: 1rem; }
@media (max-width: 991.98px){ .fx-fe-grid { grid-template-columns: 1fr; } }

/* ------------------------- Autocompletar desplegable (Funciones.autocompletar) ------------------------- */
.fx-auto-caja { position: relative; }
.fx-auto { position: absolute; z-index: 1060; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--fx-gris-linea); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: .25rem; }
.fx-auto-op { display: flex; width: 100%; justify-content: space-between; gap: .6rem; align-items: baseline; border: 0; background: transparent; text-align: left; padding: .4rem .55rem; border-radius: 7px; font-size: .82rem; color: var(--fx-tinta); }
.fx-auto-op small { color: var(--fx-gris-texto); font-size: .68rem; white-space: nowrap; }
.fx-auto-op:hover, .fx-auto-op.activa { background: var(--fx-gris-fondo); }
.fx-auto-op.activa { box-shadow: inset 2px 0 0 var(--fx-naranja); }

/* ------------------------- Impuestos de las facturas recibidas ------------------------- */
.fx-fe-ret { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: .5rem; align-items: center; margin-bottom: .3rem; }
.fx-fe-asiento td, .fx-fe-asiento th { font-size: .78rem; }
.fx-fe-asiento td small { font-size: .68rem; }
.fx-imp-cab, .fx-imp-fila { display: grid; grid-template-columns: 170px minmax(0, 1.5fr) 70px 105px 120px 90px 54px 118px; gap: .5rem; align-items: center; }
.fx-imp-cab { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fx-gris-texto); font-weight: 600; padding-bottom: .4rem; }
.fx-imp-fila { padding: .4rem 0; border-top: 1px solid var(--fx-gris-linea); }
@media (max-width: 991.98px){ .fx-imp-fila { grid-template-columns: 1fr 1fr; } }

/* Cancha de la ficha (En la cancha): SVG vertical con las 11 posiciones */
.fx-campo { position: relative; width: 210px; flex-shrink: 0; aspect-ratio: 68 / 105; border-radius: 14px; overflow: hidden;
	background: radial-gradient(ellipse at 50% 45%, #34A05A 0%, #2A8447 70%, #236F3B 100%); box-shadow: 0 10px 24px rgba(20,70,40,.22), inset 0 0 0 1px rgba(0,0,0,.08); }
.fx-campo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-campo-hueco { position: absolute; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.55); }
.fx-campo-pos { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: #fff; color: #1F5F35; font-size: .62rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 0 0 2px rgba(31,95,53,.25), 0 4px 10px rgba(0,0,0,.28); z-index: 1; }
.fx-campo-pos.principal { width: 44px; height: 44px; font-size: .78rem; background: var(--fx-naranja); color: var(--fx-sobre-naranja, #fff); z-index: 2;
	box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0,0,0,.32); }
.fx-campo-pos.principal::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(240,78,15,.55); animation: fx-campo-pulso 2.4s ease-out infinite; }
@keyframes fx-campo-pulso { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce){ .fx-campo-pos.principal::after { animation: none; } }
.fx-campo-vacia { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .4rem; align-items: center; justify-content: center; color: #fff; font-size: .78rem; font-weight: 600; background: rgba(0,0,0,.28); z-index: 3; }
.fx-campo-vacia i { font-size: 1.4rem; opacity: .85; }
.fx-campo-ataque { position: absolute; top: 7px; left: 7px; display: flex; align-items: center; gap: .25rem; font-size: .56rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.8); }
.fx-campo-otras { display: flex; flex-direction: column; gap: .35rem; margin-top: .25rem; }
.fx-campo-otras span { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .85rem; }
.fx-campo-otras b { min-width: 34px; padding: .1rem .35rem; border-radius: 6px; background: #E8F3EC; color: #1F5F35; font-size: .62rem; text-align: center; }
.fx-pj .fx-cancha-caja { align-items: stretch; }
.fx-datos-1 .fx-cancha-ley { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .9rem; }
.fx-datos-1 .fx-cancha-ley span { flex: 0 0 auto; }
.fx-cancha-ley span.hueco { background: transparent; box-shadow: none; border: 1.5px dashed #9AA7A0; }
@media (max-width: 575px){ .fx-pj .fx-cancha-caja { flex-direction: column; align-items: center; } .fx-campo { width: min(240px, 100%); } .fx-datos-1 { width: 100%; } }

/* Competiciones: cifras y torneos que abren el detalle por partido */
.fx-globales > .fx-glob-clic { appearance: none; background: transparent; border: 0; border-right: 1px solid var(--fx-gris-linea); border-bottom: 1px solid var(--fx-gris-linea); border-radius: 0;
	text-align: left; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; cursor: pointer; transition: background .15s; font: inherit; color: inherit; }
.fx-glob-clic:hover:not(:disabled), .fx-glob-clic:focus-visible { background: #FFF4EE; outline: none; }
.fx-glob-clic:disabled { cursor: default; }
.fx-glob-clic small i { font-size: .6rem; margin-left: .2rem; opacity: .6; transition: transform .15s; }
.fx-glob-clic:hover small i { transform: translateX(3px); opacity: 1; color: var(--fx-naranja); }
.fx-glob-clic.naranja b { color: var(--fx-naranja); }
.fx-fila-clic { cursor: pointer; transition: background .15s; }
.fx-fila-clic:hover, .fx-fila-clic:focus-visible { background: #FFF4EE; outline: none; }
.fx-partido-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .4rem; }
.fx-partido-acc span { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; background: #F3F3F1; font-size: .72rem; font-weight: 600; }
.fx-partido-acc .fa-futbol { color: var(--fx-naranja); }
#ml_dep_partidos .fx-partido-fecha { min-width: 44px; }

/* Mi familia: tablero del acudiente (views/view/acu-inicio.php) */
.fx-fam-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
	padding: 1.8rem 2rem; border-radius: 20px; background: var(--fx-cl-fondo, #25282D); color: #fff; }
.fx-fam-hero::before { content: ""; position: absolute; top: -40%; bottom: -40%; left: 52%; width: 90px; background: var(--fx-naranja); transform: rotate(18deg); opacity: .9; }
.fx-fam-hero::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: calc(52% + 110px); width: 14px; background: var(--fx-naranja); transform: rotate(18deg); opacity: .35; }
.fx-fam-hero > * { position: relative; z-index: 1; }
.fx-fam-kicker { display: flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-naranja); }
.fx-fam-hero h1 { font-family: var(--fx-cond); font-weight: 800; font-size: 2.4rem; line-height: 1.05; margin: .35rem 0 .25rem; text-transform: uppercase; }
.fx-fam-hero p { margin: 0; color: rgba(255,255,255,.65); font-size: .9rem; }
.fx-fam-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.fx-fam-kpis > div { min-width: 118px; padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(4px); display: flex; flex-direction: column; gap: .2rem; }
.fx-fam-kpis b { font-family: var(--fx-cond); font-size: 2rem; font-weight: 800; line-height: 1; }
.fx-fam-kpis small { font-size: .7rem; color: rgba(255,255,255,.65); }
.fx-fam-kpis .alerta b { color: var(--fx-naranja); } .fx-fam-kpis .ok b { color: #3DD68C; }

.fx-fam-dep { background: #fff; border-radius: 18px; padding: 1.3rem 1.4rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.fx-fam-dep-cab { display: flex; align-items: center; gap: 1.1rem; color: inherit; text-decoration: none; }
.fx-fam-dep-cab:hover .fx-fam-nom { color: var(--fx-naranja); }
.fx-fam-foto { width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--fx-naranja-suave); color: var(--fx-naranja);
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--fx-naranja); overflow: hidden; }
.fx-fam-foto img { width: 100%; height: 100%; object-fit: cover; }
.fx-fam-nom { display: block; font-family: var(--fx-cond); font-weight: 800; font-size: 1.6rem; line-height: 1.1; text-transform: uppercase; transition: color .15s; }
.fx-fam-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.fx-fam-chips > span { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; background: var(--fx-gris-fondo); font-size: .74rem; font-weight: 600; color: #444; }
.fx-fam-chips i { font-size: .68rem; color: var(--fx-naranja); }
.fx-fam-chips .off { background: #FCE8E6; color: #B3261E; }
.fx-fam-anillo { --p: 0; flex-shrink: 0; width: 86px; height: 86px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--fx-naranja) calc(var(--p) * 1%), #EDEDEA 0); }
.fx-fam-anillo b { font-family: var(--fx-cond); font-size: 1.45rem; font-weight: 800; line-height: 1; }
.fx-fam-anillo small { font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-gris-texto); }

.fx-fam-marcas { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--fx-gris-linea, #E6E6E3); }
.fx-fam-marcas > small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fx-gris-texto); }
.fx-fam-marcas > span:not(.fx-fam-ley) { display: flex; gap: .3rem; }
.fx-fam-marcas i { width: 16px; height: 16px; border-radius: 5px; background: #DADAD6; display: inline-block; }
.fx-fam-marcas i.a, .fx-fam-ley i.a { background: #14A44D; } .fx-fam-marcas i.f, .fx-fam-ley i.f { background: #D93025; } .fx-fam-marcas i.e, .fx-fam-ley i.e { background: #F2B705; }
.fx-fam-marcas em { font-size: .8rem; color: var(--fx-gris-texto); }
.fx-fam-ley { margin-left: auto; display: flex; align-items: center; gap: .3rem; font-size: .68rem; color: var(--fx-gris-texto); }
.fx-fam-ley i { width: 9px !important; height: 9px !important; border-radius: 3px; margin-left: .35rem; }

.fx-fam-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
.fx-fam-stats > * { display: flex; flex-direction: column; gap: .3rem; padding: .75rem .9rem; border-radius: 12px; background: var(--fx-gris-fondo); color: inherit; text-decoration: none; min-width: 0; }
.fx-fam-stats > a:hover { box-shadow: inset 0 0 0 1.5px var(--fx-naranja); }
.fx-fam-stats small { font-size: .68rem; color: var(--fx-gris-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-fam-stats b { font-family: var(--fx-cond); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.fx-fam-stats b.naranja { color: var(--fx-naranja); }
.fx-fam-stats b i { font-family: var(--fx-letra, inherit); font-style: normal; font-size: .72rem; font-weight: 600; color: var(--fx-gris-texto); margin-left: .2rem; }
.fx-fam-stats .fx-estado { font-size: .85rem; }
.fx-fam-acc { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

.fx-fam-caja { background: #fff; border-radius: 18px; padding: 1.2rem 1.3rem; }
.fx-fam-caja h2 { display: flex; align-items: center; gap: .5rem; font-family: var(--fx-cond); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; margin: 0 0 .8rem; }
.fx-fam-caja h2 > i { color: var(--fx-naranja); font-size: .95rem; }
.fx-fam-n { margin-left: auto; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 999px; background: var(--fx-naranja); color: #fff; font-family: inherit; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
.fx-fam-ok { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .8rem; border-radius: 12px; background: #E7F7EE; color: #128C4A; font-size: .85rem; font-weight: 600; }
.fx-fam-vacio { margin: 0; font-size: .85rem; color: var(--fx-gris-texto); }
.fx-fam-pend { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; margin-bottom: .45rem; border-radius: 12px; background: var(--fx-naranja-suave); color: inherit; text-decoration: none; font-size: .84rem; font-weight: 600; transition: transform .15s; }
.fx-fam-pend:hover { transform: translateX(3px); }
.fx-fam-pend > i:first-child { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: #fff; color: var(--fx-naranja); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.fx-fam-pend > i:last-child { margin-left: auto; font-size: .65rem; color: var(--fx-gris-texto); }
.fx-fam-pend.mal { background: #FCE8E6; } .fx-fam-pend.mal > i:first-child { color: #D93025; }
.fx-fam-fila { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--fx-gris-linea, #E6E6E3); color: inherit; text-decoration: none; }
.fx-fam-caja h2 + .fx-fam-fila { border-top: 0; padding-top: 0; }
a.fx-fam-fila:hover .fx-fam-fila-t { color: var(--fx-naranja); }
.fx-fam-fecha { width: 46px; flex-shrink: 0; padding: .35rem 0; border-radius: 10px; background: var(--fx-cl-fondo, #25282D); color: #fff; text-align: center; font-size: .62rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.fx-fam-fecha b { display: block; font-family: var(--fx-cond); font-size: 1.25rem; }
.fx-fam-fecha.ok { background: #E7F7EE; color: #128C4A; }
.fx-fam-fila-t { display: block; font-weight: 700; font-size: .88rem; transition: color .15s; }
.fx-fam-fila-t em { font-style: normal; font-weight: 600; color: var(--fx-gris-texto); font-size: .75rem; margin: 0 .15rem; }
.fx-fam-fila small { font-size: .74rem; color: var(--fx-gris-texto); }

@media (max-width: 767px){
	.fx-fam-hero { padding: 1.4rem 1.2rem; border-radius: 16px; }
	.fx-fam-hero::before, .fx-fam-hero::after { left: 78%; }
	.fx-fam-hero h1 { font-size: 1.9rem; }
	.fx-fam-kpis { width: 100%; } .fx-fam-kpis > div { min-width: 0; padding: .7rem; }
	.fx-fam-dep { padding: 1.1rem 1rem; }
	.fx-fam-dep-cab { align-items: flex-start; gap: .8rem; }
	.fx-fam-anillo { width: 58px !important; height: 58px !important; } .fx-fam-anillo b { font-size: 1.05rem; } .fx-fam-anillo small { font-size: .45rem; letter-spacing: 0; }
	.fx-fam-foto { width: 64px; height: 64px; }
	.fx-fam-anillo { width: 70px; height: 70px; }
	.fx-fam-nom { font-size: 1.3rem; }
	.fx-fam-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fx-fam-ley { margin-left: 0; }
}

/* Equipo > Desarrollo y tecnología (views/view/equ-tecnologia.php) */
.fx-tec-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.8rem 2rem; border-radius: 20px;
	background: var(--fx-cl-fondo, #25282D); color: #fff; }
.fx-tec-hero::before { content: "</>"; position: absolute; right: -10px; bottom: -48px; font-family: var(--fx-cond); font-weight: 800; font-size: 11rem; line-height: 1; color: var(--fx-naranja); opacity: .14; pointer-events: none; }
.fx-tec-hero > * { position: relative; }
.fx-tec-kicker { display: flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-naranja); }
.fx-tec-hero h1 { font-family: var(--fx-cond); font-weight: 800; font-size: 2.4rem; text-transform: uppercase; margin: .35rem 0 .25rem; }
.fx-tec-hero p { margin: 0; color: rgba(255,255,255,.65); font-size: .9rem; max-width: 520px; }
.fx-tec-pilas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.fx-tec-pilas span { display: flex; align-items: center; gap: .55rem; padding: .6rem .9rem; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.fx-tec-pilas i { color: var(--fx-naranja); font-size: 1.1rem; width: 20px; text-align: center; }
.fx-tec-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); background: #fff; border-radius: 18px; overflow: hidden; }
.fx-tec-cifras > div { padding: 1rem 1.1rem; border-right: 1px solid var(--fx-gris-linea, #E6E6E3); display: flex; flex-direction: column; gap: .25rem; }
.fx-tec-cifras b { font-family: var(--fx-cond); font-weight: 800; font-size: 2rem; line-height: 1; }
.fx-tec-cifras > div:first-child b { color: var(--fx-naranja); }
.fx-tec-cifras small { font-size: .72rem; color: var(--fx-gris-texto); }
.fx-tec-caja { background: #fff; border-radius: 18px; padding: 1.3rem 1.4rem; }
.fx-tec-caja h2 { display: flex; align-items: center; gap: .5rem; font-family: var(--fx-cond); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; margin: 0 0 1rem; }
.fx-tec-caja h2 > i { color: var(--fx-naranja); font-size: .95rem; }
.fx-tec-n { margin-left: auto; padding: .15rem .6rem; border-radius: 999px; background: var(--fx-naranja-suave); color: var(--fx-naranja); font-family: inherit; font-size: .8rem; }
.fx-tec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.fx-tec-grid > div { padding: .7rem .85rem; border-radius: 12px; background: var(--fx-gris-fondo); display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.fx-tec-grid small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fx-gris-texto); }
.fx-tec-grid b { font-family: var(--fx-cond); font-size: 1.35rem; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.fx-tec-grid span { font-size: .72rem; color: var(--fx-gris-texto); }
.fx-tec-ext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; }
.fx-tec-ext > div { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem 0; }
.fx-tec-ext i { margin-top: .15rem; color: #14A44D; }
.fx-tec-ext .no i { color: #D93025; }
.fx-tec-ext .no b { color: #B3261E; }
.fx-tec-ext span { display: flex; flex-direction: column; min-width: 0; }
.fx-tec-ext b { font-size: .85rem; font-family: ui-monospace, Consolas, monospace; }
.fx-tec-ext small { font-size: .72rem; color: var(--fx-gris-texto); }
.fx-tec-libs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .5rem; }
.fx-tec-libs > div, .fx-tec-int { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--fx-gris-linea, #E6E6E3); }
.fx-tec-int { border: 0; border-bottom: 1px solid var(--fx-gris-linea, #E6E6E3); border-radius: 0; padding: .6rem 0; }
.fx-tec-int:last-of-type { border-bottom: 0; }
.fx-tec-libs b, .fx-tec-int b { display: block; font-size: .88rem; }
.fx-tec-libs small, .fx-tec-int small { display: block; font-size: .72rem; color: var(--fx-gris-texto); line-height: 1.3; }
.fx-tec-libs em, .fx-tec-int em { font-style: normal; font-weight: 700; font-size: .78rem; padding: .15rem .5rem; border-radius: 8px; background: var(--fx-cl-fondo, #25282D); color: #fff; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.fx-tec-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--fx-naranja-suave); color: var(--fx-naranja); display: flex; align-items: center; justify-content: center; }
.fx-tec-sub { margin: 1.1rem 0 .5rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--fx-gris-texto); }
.fx-tec-fuentes { display: flex; gap: .6rem; flex-wrap: wrap; }
.fx-tec-fuentes span { padding: .6rem 1rem; border-radius: 12px; background: var(--fx-gris-fondo); display: flex; flex-direction: column; }
.fx-tec-fuentes b { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.fx-tec-fuentes small { font-family: var(--fx-letra, inherit); font-size: .7rem; color: var(--fx-gris-texto); }
.fx-tec-seg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .6rem; }
.fx-tec-seg > div { padding: .9rem 1rem; border-radius: 14px; background: var(--fx-gris-fondo); display: flex; flex-direction: column; gap: .25rem; }
.fx-tec-seg i { color: #14A44D; font-size: 1.1rem; margin-bottom: .2rem; }
.fx-tec-seg b { font-size: .88rem; }
.fx-tec-seg small { font-size: .74rem; color: var(--fx-gris-texto); }
.fx-tec-nota { font-size: .82rem; color: var(--fx-gris-texto); margin: -.4rem 0 .8rem; }
.fx-tec-barra { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr auto; align-items: center; gap: .7rem; padding: .35rem 0; font-size: .8rem; }
.fx-tec-barra span { font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-tec-barra i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--fx-naranja), #FF8A4C); }
.fx-tec-barra b { font-size: .78rem; }
.fx-tec-rec { display: flex; justify-content: space-between; gap: .8rem; padding: .3rem 0; font-size: .78rem; }
.fx-tec-rec code { color: var(--fx-tinta, #111); background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-tec-rec small { color: var(--fx-gris-texto); white-space: nowrap; }
@media (max-width: 767px){ .fx-tec-hero { padding: 1.4rem 1.2rem; } .fx-tec-hero h1 { font-size: 1.9rem; } .fx-tec-pilas, .fx-tec-pilas span { width: 100%; } .fx-tec-grid, .fx-tec-ext { grid-template-columns: 1fr; } }

/* Política de privacidad del acudiente (views/view/acu-politica.php) */
.fx-pol { max-width: 920px; margin: 0 auto; }
.fx-pol-cab { display: flex; gap: 1.2rem; align-items: center; padding: 1.6rem 1.8rem; border-radius: 20px; background: var(--fx-cl-fondo, #25282D); color: #fff; position: relative; overflow: hidden; }
.fx-pol-cab::after { content: ""; position: absolute; top: -40%; bottom: -40%; right: 8%; width: 70px; background: var(--fx-naranja); transform: rotate(18deg); opacity: .85; }
.fx-pol-cab > * { position: relative; z-index: 1; }
.fx-pol-ico { width: 64px; height: 64px; flex-shrink: 0; border-radius: 18px; background: var(--fx-naranja); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.fx-pol-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-naranja); }
.fx-pol-cab h1 { font-family: var(--fx-cond); font-weight: 800; font-size: 2.1rem; line-height: 1.05; text-transform: uppercase; margin: .3rem 0 .35rem; max-width: 620px; }
.fx-pol-cab p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.65); }
.fx-pol-aviso { display: flex; gap: .8rem; align-items: flex-start; margin: 1rem 0; padding: 1rem 1.2rem; border-radius: 14px; background: var(--fx-naranja-suave); font-size: .92rem; line-height: 1.5; }
.fx-pol-aviso i { color: var(--fx-naranja); font-size: 1.2rem; margin-top: .15rem; }
.fx-pol-texto { background: #fff; border-radius: 18px; padding: 1.8rem 2rem; max-height: 58vh; overflow-y: auto; font-size: 1.02rem; line-height: 1.7; color: #2B2B2B; outline: none;
	box-shadow: inset 0 -24px 24px -24px rgba(0,0,0,.15); }
.fx-pol-texto h2 { font-family: var(--fx-cond); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; margin: 1.6rem 0 .5rem; color: var(--fx-tinta, #111); }
.fx-pol-texto h2:first-child { margin-top: 0; }
.fx-pol-texto ul { padding-left: 1.2rem; } .fx-pol-texto li { margin-bottom: .35rem; }
.fx-pol-texto li::marker { color: var(--fx-naranja); }
.fx-pol-fin { margin-top: 1.4rem; padding: .7rem 1rem; border-radius: 12px; background: var(--fx-gris-fondo); color: var(--fx-gris-texto); font-size: .82rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; transition: background .3s, color .3s; }
.fx-pol-fin.visto { background: #E7F7EE; color: #128C4A; }
.fx-pol-acc { position: sticky; bottom: 0; margin-top: 1rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: #fff; box-shadow: 0 -8px 30px rgba(0,0,0,.08); z-index: 5; }
.fx-pol-check { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; font-weight: 600; cursor: pointer; margin-bottom: .7rem; }
.fx-pol-check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: .1rem; accent-color: var(--fx-naranja); cursor: pointer; }
.fx-pol-check.opcional { font-weight: 400; font-size: .88rem; color: #444; }
.fx-pol-btns { display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .6rem; }
.fx-pol-btns .btn { font-weight: 700; font-size: 1rem; padding: .8rem 1.5rem; border-radius: 12px; }
.fx-pol-si { background: var(--fx-naranja); color: #fff; border: 0; }
.fx-pol-si:hover:not(:disabled) { background: var(--fx-naranja-osc, #C93F0A); color: #fff; }
.fx-pol-si:disabled { background: #F4B49A; color: #fff; opacity: 1; }
.fx-pol-ok { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: #E7F7EE; color: #128C4A; font-weight: 600; display: flex; gap: .6rem; align-items: center; }
@media (max-width: 767px){
	.fx-pol-cab { padding: 1.3rem 1.1rem; gap: .9rem; } .fx-pol-ico { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 14px; }
	.fx-pol-cab h1 { font-size: 1.5rem; } .fx-pol-texto { padding: 1.2rem 1.1rem; font-size: .97rem; max-height: 52vh; }
	.fx-pol-btns .btn { width: 100%; } .fx-pol-btns { flex-direction: column-reverse; }
}
.fx-pol-nota { display: block; margin: -.2rem 0 .3rem 2.1rem; font-size: .78rem; color: var(--fx-gris-texto); }
.fx-pol-link { background: none; border: 0; padding: 0; color: var(--fx-naranja); font-weight: 700; text-decoration: underline; cursor: pointer; text-align: left; }
.fx-pol-modal { max-height: none; box-shadow: none; border-radius: 0; font-size: .97rem; }
.fx-pol-modal ol { padding-left: 1.3rem; } .fx-pol-modal ol li { margin-bottom: .5rem; }

/* Pie del menú del acudiente: política del club y términos de Fénix */
.fx-cl-legal { margin-top: auto; padding: 1rem 1rem 1.3rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .15rem; }
.fx-cl-legal a { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 8px; font-size: .78rem; color: rgba(255,255,255,.6); text-decoration: none; }
.fx-cl-legal a:hover, .fx-cl-legal a.activo { color: #fff; background: rgba(255,255,255,.06); }
.fx-cl-legal i { color: var(--fx-naranja); }
.fx-pol-pdf { margin-left: auto; flex-shrink: 0; align-self: flex-start; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; padding: .55rem 1rem; border-radius: 10px; font-size: .85rem; font-weight: 600; }
.fx-pol-pdf:hover { background: var(--fx-naranja); border-color: var(--fx-naranja); }
.fx-pol-completo { max-height: none; box-shadow: none; }
.fx-pol-volver { margin: 1rem 0 0; font-size: .88rem; } .fx-pol-volver a { color: var(--fx-naranja); font-weight: 600; }
@media print {
	.fx-cl-side, .fx-cl-top, .no-print, .fx-pol-acc, .fx-pol-fin, .fx-pol-aviso, .modal, .pace { display: none !important; }
	.fx-cl-main { margin-left: 0 !important; } .fx-cl-content { padding: 0 !important; max-width: none; } body { background: #fff !important; }
	.fx-pol { max-width: none; } .fx-pol-cab { background: #fff !important; color: #111 !important; border: 0; border-bottom: 3px solid var(--fx-naranja); border-radius: 0; padding: 0 0 .8rem; }
	.fx-pol-cab::after, .fx-pol-ico, .fx-pol-kicker { display: none !important; } .fx-pol-cab p { color: #555 !important; }
	.fx-pol-texto { max-height: none !important; overflow: visible !important; box-shadow: none !important; padding: .5rem 0 0 !important; font-size: 10.5pt; line-height: 1.55; }
	.fx-pol-texto h2 { break-after: avoid; font-size: 13pt; } .fx-pol-texto li, .fx-pol-texto p { break-inside: avoid; }
}

/* Plataforma: cifras clicables y buscadores de deportistas, personal y clubes (org-buscar) */
.fx-totales > a.fx-totales-ir { padding: .85rem 1.1rem; border-right: 1px solid #EFEFED; color: inherit; text-decoration: none; transition: background .15s; }
.fx-totales > a.fx-totales-ir:last-child { border-right: 0; }
.fx-totales > a.fx-totales-ir:hover { background: #FFF4EE; }
.fx-totales > a.fx-totales-ir small { display: block; font-size: .7rem; color: var(--fx-gris-texto); font-weight: 500; }
.fx-totales > a.fx-totales-ir small i { font-size: .6rem; margin-left: .2rem; color: var(--fx-naranja); transition: transform .15s; }
.fx-totales > a.fx-totales-ir:hover small i { transform: translateX(3px); }
.fx-totales > a.fx-totales-ir .fx-num { font-size: 1.6rem; }
.fx-ob-tabs { display: inline-flex; gap: 3px; padding: 3px; background: #fff; border-radius: 10px; flex-wrap: wrap; }
.fx-ob-tabs a { padding: .4rem .8rem; border-radius: 8px; font-size: .85rem; font-weight: 600; color: #3F3F3F; text-decoration: none; }
.fx-ob-tabs a.activo { background: var(--fx-tinta); color: #fff; }
.fx-ob-tabs a:not(.activo):hover { background: var(--fx-gris-fondo); }
.fx-ob-buscar { position: relative; } .fx-ob-buscar i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--fx-gris-texto); font-size: .85rem; }
.fx-ob-buscar .form-control { padding-left: 2.1rem; }
.fx-ob-lista { padding: .3rem 0; }
.fx-ob-fila { display: flex; align-items: center; gap: .9rem; padding: .7rem 1.1rem; border-bottom: 1px solid #EFEFED; }
.fx-ob-fila:last-child { border-bottom: 0; }
.fx-ob-fila:hover { background: #FAFAF8; }
.fx-ob-fila.off { opacity: .62; }
.fx-ob-foto { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: var(--fx-naranja-suave); color: var(--fx-naranja); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; overflow: hidden; }
.fx-ob-foto img { width: 100%; height: 100%; object-fit: cover; }
.fx-ob-nom { font-weight: 700; font-size: .92rem; } .fx-ob-nom small { font-weight: 600; color: var(--fx-gris-texto); margin-left: .25rem; }
.fx-ob-club { width: 230px; flex-shrink: 0; font-size: .85rem; }
.fx-ob-dato { flex-direction: column; align-items: flex-end; width: 90px; flex-shrink: 0; line-height: 1.1; } .fx-ob-dato small { font-size: .7rem; color: var(--fx-gris-texto); }
.fx-ob-fila .fx-estado { width: 70px; flex-shrink: 0; }
.fx-ob-acc { display: flex; gap: .35rem; flex-shrink: 0; }
.fx-tile-caja { position: relative; }
.fx-tile-caja > a { height: 100%; }
.fx-tile-editar { position: absolute; top: .55rem; right: .55rem; z-index: 2; width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(255,255,255,.92); color: var(--fx-tinta); box-shadow: 0 2px 8px rgba(0,0,0,.12); opacity: 0; transition: opacity .15s; }
.fx-tile-caja:hover .fx-tile-editar, .fx-tile-editar:focus-visible { opacity: 1; }
.fx-tile-editar:hover { background: var(--fx-naranja); color: #fff; }
.fx-filas .fx-tile-caja .fx-tile-editar { top: 50%; transform: translateY(-50%); right: 2.4rem; }
@media (hover: none){ .fx-tile-editar { opacity: 1; } }
@media (max-width: 767px){ .fx-ob-fila { flex-wrap: wrap; } .fx-ob-acc { width: 100%; justify-content: flex-end; } }

/* Ficha: pestañas Evaluaciones y Tests con todo el historial (blk-dep-historial.php) */
.fx-hist-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.fx-hist-resumen > div { padding: .8rem 1rem; border-radius: 12px; background: var(--fx-gris-fondo); display: flex; flex-direction: column; gap: .2rem; }
.fx-hist-resumen b { font-family: var(--fx-cond); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.fx-hist-resumen b.sube { color: #128C4A; } .fx-hist-resumen b.baja { color: #D93025; }
.fx-hist-resumen small { font-size: .72rem; color: var(--fx-gris-texto); }
.fx-hist-barras { display: flex; align-items: flex-end; gap: .5rem; height: 150px; padding: .5rem .2rem 0; margin-bottom: 1.2rem; overflow-x: auto; border-bottom: 1px solid var(--fx-gris-linea, #E6E6E3); }
.fx-hist-barras > div { flex: 1 0 42px; max-width: 70px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .2rem; position: relative; }
.fx-hist-barras span { width: 70%; border-radius: 6px 6px 0 0; background: var(--fx-naranja); min-height: 4px; }
.fx-hist-barras span.n1, .fx-hist-barras span.n2 { background: #D93025; } .fx-hist-barras span.n3 { background: #F2B705; } .fx-hist-barras span.n4, .fx-hist-barras span.n5 { background: #14A44D; }
.fx-hist-barras b { order: -1; font-size: .72rem; }
.fx-hist-barras small { font-size: .62rem; color: var(--fx-gris-texto); white-space: nowrap; text-transform: capitalize; padding-bottom: .3rem; }
.fx-hist-periodos { display: flex; flex-direction: column; gap: .6rem; }
.fx-hist-periodo { border: 1px solid var(--fx-gris-linea, #E6E6E3); border-radius: 14px; padding: .7rem .9rem; }
.fx-hist-periodo summary { list-style: none; display: flex; align-items: center; gap: .8rem; cursor: pointer; }
.fx-hist-periodo summary::-webkit-details-marker { display: none; }
.fx-hist-periodo summary b { display: block; } .fx-hist-periodo summary small { font-size: .75rem; color: var(--fx-gris-texto); }
.fx-hist-periodo summary > i { color: var(--fx-gris-texto); transition: transform .2s; }
.fx-hist-periodo[open] summary > i { transform: rotate(180deg); }
.fx-hist-p-nota { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--fx-cond); font-weight: 800; font-size: 1.35rem; background: var(--fx-gris-fondo); }
.fx-hist-p-nota.n1, .fx-hist-p-nota.n2 { background: #FCE8E6; color: #B3261E; } .fx-hist-p-nota.n3 { background: #FFF6D6; color: #8A6A00; } .fx-hist-p-nota.n4, .fx-hist-p-nota.n5 { background: #E7F7EE; color: #128C4A; }
.fx-hist-tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .9rem; }
.fx-hist-test { border: 1px solid var(--fx-gris-linea, #E6E6E3); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.fx-hist-test header { display: flex; align-items: center; gap: .7rem; }
.fx-hist-test header b { display: block; } .fx-hist-test header small { font-size: .72rem; color: var(--fx-gris-texto); }
.fx-hist-t-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--fx-naranja-suave); color: var(--fx-naranja); display: flex; align-items: center; justify-content: center; }
.fx-hist-t-ult { text-align: right; line-height: 1; } .fx-hist-t-ult b { font-family: var(--fx-cond); font-size: 1.7rem; font-weight: 800; }
.fx-hist-t-graf { background: var(--fx-gris-fondo); border-radius: 10px; padding: .5rem .6rem .4rem; color: #444; }
.fx-hist-linea { width: 100%; height: 54px; display: block; }
.fx-hist-t-graf small { font-size: .7rem; color: var(--fx-gris-texto); }
.fx-hist-t-tabla { width: 100%; font-size: .82rem; border-collapse: collapse; }
.fx-hist-t-tabla th { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-gris-texto); padding: .3rem .4rem; border-bottom: 1px solid var(--fx-gris-linea, #E6E6E3); }
.fx-hist-t-tabla td { padding: .4rem; border-bottom: 1px solid #F1F1EF; }
.fx-hist-t-tabla tr:last-child td { border-bottom: 0; }
.fx-hist-t-tabla tr.mejor td { background: #FFF8F3; } .fx-hist-t-tabla .fa-trophy { color: var(--fx-naranja); font-size: .7rem; }
.fx-hist-t-tabla em { font-style: normal; font-weight: 700; font-size: .78rem; } .fx-hist-t-tabla em.sube { color: #128C4A; } .fx-hist-t-tabla em.baja { color: #D93025; }

/* Ficha en pestañas: Información personal agrupa datos, familia, salud, estudios y documentos */
.fx-pj .tab-pane .fx-pj { padding: 0; background: none; border-radius: 0; box-shadow: none; margin-bottom: 0 !important; }
.fx-ficha-sec + .fx-ficha-sec { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--fx-gris-linea, #E6E6E3); }
.fx-ficha-sec-tit { font-family: var(--fx-cond); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; margin: 0 0 1rem; display: flex; align-items: center; gap: .4rem; scroll-margin-top: 80px; }
.fx-ficha-sec { scroll-margin-top: 80px; }
.fx-pj-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.fx-pj-tabs .nav-link { white-space: nowrap; }
.fx-sd-sexo { display: flex; gap: .3rem; flex-shrink: 0; } .fx-sd-sexo .btn:hover { background: var(--fx-naranja); color: #fff; }

/* Imprimir la ficha del deportista: todas las pestañas una tras otra, sin menú ni botones */
.fx-print-tit, .fx-print-pie { display: none; }
@media print {
	@page { size: A4; margin: 12mm 11mm; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.fx-cl-side, .fx-cl-top, .fx-cl-velo, .modal, .pace, .fx-toasts, #fx_toasts { display: none !important; }
	.fx-cl-main { margin-left: 0 !important; } .fx-cl-content { padding: 0 !important; max-width: none !important; } body, .fx-cl { background: #fff !important; }
	.fx-jugador { break-inside: avoid; border-radius: 12px; margin-bottom: 8px !important; }
	.fx-jugador .btn, #fx_ficha_tabs .btn, #fx_ficha_tabs .fx-pj-link, .fx-pj-tabs, .fx-pendiente .btn, .fx-acudiente-btns, .fx-tile-editar, #fx_ficha_tabs select, #fx_ficha_tabs .form-select { display: none !important; }
	.fx-pendiente { break-inside: avoid; margin-bottom: 8px !important; }
	#fx_ficha_tabs { padding: 0 !important; background: none !important; box-shadow: none !important; }
	#fx_ficha_tabs > .tab-content > .tab-pane { display: block !important; opacity: 1 !important; break-before: page; }
	#fx_ficha_tabs > .tab-content > .tab-pane:first-child { break-before: auto; }
	.fx-print-tit { display: block; font-family: var(--fx-cond); font-weight: 800; font-size: 17pt; text-transform: uppercase; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 3px solid var(--fx-naranja); }
	#p_competiciones .fx-pj-cab h2, #p_asistencia .fx-pj-cab h2, #p_cancha .fx-pj-cab h2 { font-size: 17pt; }
	#p_competiciones .fx-pj-cab, #p_asistencia .fx-pj-cab, #p_cancha .fx-pj-cab { border-bottom: 3px solid var(--fx-naranja); padding-bottom: 6px; }
	.fx-ficha-sec { break-inside: avoid-page; }
	.fx-ficha-sec + .fx-ficha-sec { margin-top: 14px; padding-top: 12px; }
	.fx-hist-periodo, .fx-eval, .fx-hist-test, .fx-partido, .fx-filas-item, .fx-acudiente { break-inside: avoid; }
	.fx-hist-periodo summary > i, .fx-campo-pos.principal::after { display: none !important; }
	.fx-hist-tests { grid-template-columns: 1fr 1fr; }
	.fx-hist-barras { overflow: visible; height: 120px; } .fx-hist-barras > div { flex: 1 1 0; min-width: 0; } .fx-hist-barras small { font-size: 6pt; } .fx-hist-barras b { font-size: 6.5pt; }
	.fx-eval-obs { max-height: none !important; -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; }
	a { color: inherit !important; text-decoration: none !important; }
	.fx-print-pie { display: block; margin-top: 14px; padding-top: 6px; border-top: 1px solid #ddd; font-size: 8pt; color: #777; text-align: center; }
}

/* Documentos del deportista: subir y ver desde la ficha */
.fx-doc-subir { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem 1rem; border: 2px dashed #D6D6D2; border-radius: 14px; background: var(--fx-gris-fondo); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.fx-doc-subir:hover { border-color: var(--fx-naranja); background: var(--fx-naranja-suave); }
.fx-doc-subir > i { font-size: 2rem; color: var(--fx-naranja); } .fx-doc-subir small { color: var(--fx-gris-texto); } .fx-doc-subir #dd_nombre { font-weight: 700; color: var(--fx-tinta); }
.fx-doc-subir input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fx-doc-ver { background: #2B2E33; display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.fx-doc-ver iframe { width: 100%; height: 75vh; border: 0; background: #fff; display: block; }
.fx-doc-ver img { max-width: 100%; max-height: 75vh; display: block; margin: auto; }

/* Scouting: rankings (dep-scouting, tb-scouting) */
.fx-sc-tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .9rem; }
.fx-sc-grupo > small { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--fx-gris-texto); margin-bottom: .35rem; }
.fx-sc-grupo > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.fx-sc-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--fx-gris-linea, #E6E6E3); background: #fff; border-radius: 999px; padding: .32rem .75rem; font-size: .8rem; font-weight: 600; color: #333; }
.fx-sc-chip i { color: var(--fx-naranja); font-size: .78rem; }
.fx-sc-chip:hover { border-color: var(--fx-naranja); }
.fx-sc-chip.activo { background: var(--fx-tinta, #111); border-color: var(--fx-tinta, #111); color: #fff; }
.fx-sc-cab { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.fx-sc-cab > div:first-child { display: flex; align-items: center; gap: .8rem; }
.fx-sc-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--fx-naranja); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.fx-sc-cab small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fx-gris-texto); font-weight: 700; }
.fx-sc-cab h2 { font-family: var(--fx-cond); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; margin: 0; line-height: 1; }
.fx-sc-res { display: flex; gap: .6rem; flex-wrap: wrap; }
.fx-sc-res > span { background: #fff; border-radius: 12px; padding: .5rem .85rem; display: flex; flex-direction: column; min-width: 110px; }
.fx-sc-res b { font-family: var(--fx-cond); font-size: 1.4rem; font-weight: 800; line-height: 1; } .fx-sc-res small { font-size: .68rem; color: var(--fx-gris-texto); text-transform: none; letter-spacing: 0; font-weight: 500; }
.fx-sc-podio { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: .9rem; align-items: end; margin-bottom: 1rem; }
.fx-sc-p { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: 1.2rem .8rem 0; border-radius: 18px; background: #fff; color: inherit; text-decoration: none; overflow: hidden; transition: transform .15s; }
.fx-sc-p:hover { transform: translateY(-3px); }
.fx-sc-p.p1 { background: var(--fx-cl-fondo, #25282D); color: #fff; padding-top: 1.6rem; }
.fx-sc-p.p1 small { color: rgba(255,255,255,.65) !important; }
.fx-sc-medalla { position: absolute; top: .7rem; left: .7rem; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--fx-cond); font-weight: 800; font-size: 1.05rem; color: #fff; background: #B8B8B4; }
.fx-sc-p.p1 .fx-sc-medalla { background: #E8B004; width: 36px; height: 36px; font-size: 1.3rem; } .fx-sc-p.p3 .fx-sc-medalla { background: #C27A3E; }
.fx-sc-foto { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--fx-naranja-suave); color: var(--fx-naranja); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #D6D6D2; }
.fx-sc-p.p1 .fx-sc-foto { width: 104px; height: 104px; box-shadow: 0 0 0 3px var(--fx-cl-fondo, #25282D), 0 0 0 6px #E8B004; }
.fx-sc-foto img { width: 100%; height: 100%; object-fit: cover; }
.fx-sc-nom { margin-top: .5rem; font-size: .95rem; line-height: 1.2; }
.fx-sc-p small { font-size: .74rem; color: var(--fx-gris-texto); }
.fx-sc-valor { font-family: var(--fx-cond); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--fx-naranja); margin-top: .3rem; }
.fx-sc-valor i { font-style: normal; font-family: var(--fx-letra, inherit); font-size: .75rem; font-weight: 600; margin-left: .25rem; color: inherit; opacity: .8; }
.fx-sc-p.p1 .fx-sc-valor { font-size: 2.8rem; }
.fx-sc-fecha { margin-bottom: .8rem; }
.fx-sc-base { display: block; width: calc(100% + 1.6rem); height: 10px; margin: 0 -.8rem; background: #E6E6E3; }
.fx-sc-p.p1 .fx-sc-base { background: var(--fx-naranja); height: 14px; } .fx-sc-p.p2 .fx-sc-base { height: 8px; } .fx-sc-p.p3 .fx-sc-base { background: #E9C7AA; height: 6px; }
.fx-sc-lista { padding: .3rem 0; }
.fx-sc-fila { display: flex; align-items: center; gap: .85rem; padding: .6rem 1.1rem; border-bottom: 1px solid #EFEFED; color: inherit; text-decoration: none; }
.fx-sc-fila:last-child { border-bottom: 0; } .fx-sc-fila:hover { background: #FAFAF8; }
.fx-sc-fila b { font-size: .9rem; } .fx-sc-fila small { font-size: .74rem; color: var(--fx-gris-texto); }
.fx-sc-pos { width: 30px; flex-shrink: 0; text-align: center; font-family: var(--fx-cond); font-weight: 800; font-size: 1.25rem; color: var(--fx-gris-texto); }
.fx-sc-mini { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--fx-naranja-suave); color: var(--fx-naranja); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; }
.fx-sc-mini img { width: 100%; height: 100%; object-fit: cover; }
.fx-sc-bar { width: 200px; flex-shrink: 0; height: 8px; border-radius: 99px; background: #EFEFED; overflow: hidden; } .fx-sc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FF8A4C, var(--fx-naranja)); }
.fx-sc-v { width: 120px; flex-shrink: 0; text-align: right; } .fx-sc-v b { font-family: var(--fx-cond); font-size: 1.35rem; font-weight: 800; display: block; line-height: 1; }
@media (max-width: 767px){ .fx-sc-podio { grid-template-columns: 1fr; } .fx-sc-p.p1 { order: -1; } .fx-sc-v { width: 90px; } }

/* Scouting: detalle del puesto (ml-scouting-detalle) */
.fx-scd-cab { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.fx-scd-cab .fx-sc-foto { width: 64px; height: 64px; box-shadow: none; flex-shrink: 0; }
.fx-scd-nom { font-size: 1.1rem; display: block; }
.fx-scd-puesto { text-align: center; background: var(--fx-cl-fondo, #25282D); color: #fff; border-radius: 14px; padding: .45rem .9rem; line-height: 1.1; flex-shrink: 0; }
.fx-scd-puesto b { display: block; font-family: var(--fx-cond); font-size: 2.2rem; font-weight: 800; color: var(--fx-naranja); } .fx-scd-puesto b i { font-style: normal; font-size: 1rem; } .fx-scd-puesto small { font-size: .66rem; color: rgba(255,255,255,.7); }
.fx-scd-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.fx-scd-cifras > div { background: var(--fx-gris-fondo); border-radius: 12px; padding: .6rem .75rem; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.fx-scd-cifras small { font-size: .66rem; color: var(--fx-gris-texto); } .fx-scd-cifras b { font-family: var(--fx-cond); font-size: 1.6rem; font-weight: 800; line-height: 1; } .fx-scd-cifras b.nar { color: var(--fx-naranja); } .fx-scd-cifras span { font-size: .72rem; color: #555; overflow: hidden; text-overflow: ellipsis; }
.fx-scd-barra { position: relative; height: 8px; border-radius: 99px; margin: 1rem 0 1.4rem; background: linear-gradient(90deg, #14A44D, #F2B705, #D93025); }
.fx-scd-barra i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--fx-tinta, #111); transform: translate(-50%, -50%); }
.fx-scd-barra span { position: absolute; top: 12px; font-size: .64rem; color: var(--fx-gris-texto); } .fx-scd-barra span:last-child { right: 0; }
.fx-scd-vecinos { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; margin-bottom: .9rem; } .fx-scd-vecinos i { width: 20px; color: var(--fx-naranja); }
.fx-scd-explica { display: flex; gap: .5rem; align-items: flex-start; background: var(--fx-naranja-suave); border-radius: 10px; padding: .6rem .8rem; font-size: .85rem; margin-bottom: .6rem; } .fx-scd-explica i { color: var(--fx-naranja); margin-top: .2rem; }
.fx-scd-tabla td, .fx-scd-tabla th { font-size: .82rem; vertical-align: top; } .fx-scd-tabla tr.cuenta td { background: #FFF4EE; } .fx-scd-tabla tr.fuera td { color: #A5A5A1; text-decoration: line-through; }
.fx-scd-tag { display: inline-block; margin-left: .3rem; padding: .05rem .4rem; border-radius: 6px; background: var(--fx-naranja); color: #fff; font-size: .62rem; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 767px){ .fx-scd-cifras { grid-template-columns: 1fr 1fr; } }

/* Scouting v2: cabecera, filtros en cadena, resumen y distribución */
.fx-sc-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; border-radius: 20px; background: var(--fx-cl-fondo, #25282D); color: #fff; position: relative; overflow: hidden; }
.fx-sc-hero::after { content: ""; position: absolute; top: -40%; bottom: -40%; right: 38%; width: 60px; background: var(--fx-naranja); transform: rotate(18deg); opacity: .9; }
.fx-sc-hero > * { position: relative; z-index: 1; } .fx-sc-hero .fx-titulo { color: #fff; font-family: var(--fx-cond); font-weight: 800; font-size: 2.3rem; text-transform: uppercase; }
.fx-sc-hero p { max-width: 560px; color: rgba(255,255,255,.7); font-size: .88rem; }
.fx-sc-buscar { position: relative; width: min(360px, 100%); } .fx-sc-buscar > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--fx-gris-texto); z-index: 2; }
.fx-sc-buscar .form-control { padding-left: 2.3rem; height: 44px; border-radius: 12px; border: 0; }
.fx-sc-filtros { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--fx-gris-linea, #E6E6E3); }
.fx-sc-paso { position: relative; } .fx-sc-paso > span { position: absolute; top: 0; right: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--fx-naranja-suave); color: var(--fx-naranja); font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fx-sc-filtros .form-label { font-size: .72rem; font-weight: 600; color: var(--fx-gris-texto); margin-bottom: .25rem; }
.fx-sc-filtros select:disabled { background-color: #F4F4F2; color: #9A9A96; font-style: italic; }
.fx-sc-activos { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; font-size: .8rem; }
.fx-sc-activos #sc_resumen b { color: var(--fx-tinta, #111); font-weight: 600; background: var(--fx-naranja-suave); padding: .1rem .45rem; border-radius: 6px; }
.fx-sc-limpiar { margin-left: auto; border: 0; background: none; color: var(--fx-naranja); font-weight: 700; font-size: .8rem; }
.fx-sc-dist { margin-bottom: 1rem; }
.fx-sc-dist-cab { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; font-size: .82rem; margin-bottom: .6rem; } .fx-sc-dist-cab span { color: var(--fx-gris-texto); }
.fx-sc-dist-cab i.prom { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--fx-tinta, #111); margin-right: .3rem; vertical-align: -1px; }
.fx-sc-hist { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.fx-sc-hist > div { flex: 1; height: 100%; display: flex; align-items: flex-end; } .fx-sc-hist > div i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #D9D9D5; } .fx-sc-hist > div i.top { background: var(--fx-naranja); }
.fx-sc-hist-prom { position: absolute; top: -4px; bottom: 0; width: 2px; background: var(--fx-tinta, #111); }
.fx-sc-hist-ejes { display: flex; justify-content: space-between; font-size: .68rem; color: var(--fx-gris-texto); margin-top: .25rem; }
@media (max-width: 991px){ .fx-sc-filtros { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fx-sc-hero::after { display: none; } }
@media (max-width: 575px){ .fx-sc-filtros { grid-template-columns: 1fr 1fr; } }

/* Barra Volver + migas de pan en pantallas internas (blk-volver.php) */
.fx-volver { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; flex-wrap: wrap; }
.fx-volver-btn { display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 .9rem 0 .75rem; border: 1px solid var(--fx-gris-linea, #E6E6E3); border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 700; color: var(--fx-tinta, #111); transition: border-color .15s, color .15s, box-shadow .15s; }
.fx-volver-btn i { color: var(--fx-naranja); transition: transform .15s; }
.fx-volver-btn:hover { border-color: var(--fx-naranja); box-shadow: 0 2px 8px rgba(240,78,15,.15); } .fx-volver-btn:hover i { transform: translateX(-3px); }
.fx-volver-migas { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .8rem; color: var(--fx-gris-texto); min-width: 0; }
.fx-volver-migas li { display: flex; align-items: center; }
.fx-volver-migas li + li::before { content: "\203A"; margin: 0 .5rem; color: #B5B5B1; font-size: 1rem; }
.fx-volver-migas a { color: var(--fx-gris-texto); text-decoration: none; font-weight: 500; } .fx-volver-migas a:hover { color: var(--fx-naranja); text-decoration: underline; }
.fx-volver-migas li[aria-current] span { color: var(--fx-tinta, #111); font-weight: 700; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media print { .fx-volver { display: none !important; } }
@media (max-width: 575px){ .fx-volver-btn span { display: none; } .fx-volver-btn { padding: 0; width: 34px; justify-content: center; } }
.fx-volver.solo-migas { margin-bottom: .5rem; } .fx-volver.solo-migas .fx-volver-migas { font-size: .76rem; }
.fx-volver-migas li:first-child a, .fx-volver-migas li:first-child span { font-weight: 600; }

/* Perfil del personal: estado de licencias y documentos */
.fx-estado-doc { flex-shrink: 0; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .25rem .55rem; border-radius: 999px; background: var(--fx-gris-fondo); color: var(--fx-gris-texto); }
.fx-estado-doc.ok { background: #E6F6EC; color: #0F7A3A; }
.fx-estado-doc.pronto { background: #FFF3E0; color: #B45309; }
.fx-estado-doc.vencida { background: #FDE8E8; color: #B42318; }
.fx-estado-doc.curso { background: #EEF2FF; color: #3730A3; }

/* Panel de evaluaciones: estado nutricional filtrable */
.fx-nut-filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.fx-nut-estados { display: grid; gap: .35rem; }
.fx-nut-est { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: .6rem; width: 100%; padding: .45rem .7rem; border: 1px solid var(--fx-gris-linea); border-radius: 10px; background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.fx-nut-est:hover { border-color: var(--fx-tinta); }
.fx-nut-est.activo { border-color: var(--fx-naranja); background: #FFF6F1; box-shadow: inset 3px 0 0 var(--fx-naranja); }
.fx-nut-est b { font-family: "Barlow Condensed", sans-serif; font-size: 1.15rem; line-height: 1; }
.fx-nut-est small { color: var(--fx-gris-texto); text-align: right; font-size: .74rem; }
.fx-nut-lista { max-height: 430px; overflow-y: auto; padding-right: .25rem; }
#nut_barra span { transition: flex .25s; }

/* Evaluar: aviso de observación sugerida */
.fx-ev-sug { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin-top: .4rem; padding: .4rem .6rem; border-radius: 8px; background: #FFF6F1; font-size: .74rem; color: var(--fx-gris-texto); }
.fx-ev-sug i { color: var(--fx-naranja); }
.fx-ev-sug .btn-link { font-size: .74rem; font-weight: 600; color: var(--fx-naranja); text-decoration: none; }
.fx-ev-sug[hidden] { display: none; }

/* Listado de deportistas: botón de mensualidad (sin cuota = naranja, beca = morado) y su ventana */
.fx-lf-btn.alerta { color: var(--fx-naranja); }
.fx-lf-btn.beca { color: #7B61FF; }
.fx-estado.falta { color: var(--fx-falta, #D93025); } .fx-estado.falta::before { background: #D93025; box-shadow: 0 0 0 3px #FDE8E8; }
.fx-mn-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--fx-gris-fondo); }
.fx-mn-total small { display: block; font-size: .72rem; color: var(--fx-gris-texto); }
.fx-mn-total b { font-family: "Barlow Condensed", sans-serif; font-size: 1.8rem; line-height: 1; color: var(--fx-tinta); }
.fx-mn-meses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.fx-mn-meses > div { padding: .6rem .7rem; border: 1px solid var(--fx-gris-linea); border-radius: 10px; }
.fx-mn-meses small { display: block; font-size: .7rem; color: var(--fx-gris-texto); }
.fx-mn-meses b { display: block; font-size: .95rem; margin: .1rem 0 .2rem; }

/* Administrativo · Servicios: categorías como filtro */
.fx-srv-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.fx-srv-cats a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--fx-gris-linea); border-radius: 12px; text-decoration: none; color: var(--fx-tinta); transition: border-color .15s, background .15s; }
.fx-srv-cats a:hover { border-color: var(--fx-tinta); }
.fx-srv-cats a.activo { border-color: var(--fx-naranja); background: #FFF6F1; box-shadow: inset 3px 0 0 var(--fx-naranja); }
.fx-srv-cats i { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-gris-fondo); color: var(--fx-naranja); }
.fx-srv-cats b { font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; line-height: 1; }
.fx-srv-cats small { font-size: .7rem; color: var(--fx-gris-texto); line-height: 1.2; }

/* Inventario: tallas (existencia por talla), botones de entrada/salida, kardex */
.fx-inv-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.fx-inv-chips span { display: inline-flex; flex-direction: column; align-items: center; min-width: 38px; padding: .2rem .35rem; border-radius: 8px; background: #E7F7EE; color: #0F7A3A; line-height: 1.1; }
.fx-inv-chips span small { font-size: .6rem; font-weight: 600; opacity: .8; }
.fx-inv-chips span b { font-size: .9rem; }
.fx-inv-chips span.poco { background: #FFF3E0; color: #B45309; }
.fx-inv-chips span.cero { background: #F3F3F1; color: #A3A3A0; }
.fx-inv-chips.grande span { min-width: 56px; padding: .45rem .6rem; border-radius: 12px; }
.fx-inv-chips.grande span b { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; }
.fx-inv-btn.entra { color: #0F7A3A; }
.fx-inv-btn.sale { color: var(--fx-naranja); }
.fx-lf-btn[disabled] { opacity: .35; pointer-events: none; }
.fx-inv-cab { display: flex; gap: 1.2rem; align-items: center; }
.fx-inv-foto { width: 96px; height: 96px; border-radius: 16px; flex-shrink: 0; font-size: 2rem; }
.fx-inv-total { text-align: center; padding: .6rem 1.2rem; border-radius: 14px; background: var(--fx-gris-fondo); }
.fx-inv-total b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2.6rem; line-height: 1; }
.fx-inv-total small { font-size: .72rem; color: var(--fx-gris-texto); }
.fx-inv-det { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .78rem; color: var(--fx-gris-texto); }
.fx-inv-det b { color: var(--fx-tinta); }
@media (max-width: 767.98px){ .fx-inv-cab { flex-wrap: wrap; } .fx-inv-foto { width: 72px; height: 72px; } }
/* Ventanas: casillas de tallas y cantidades por talla */
.fx-tallas { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.fx-tallas > small { width: 58px; font-size: .72rem; color: var(--fx-gris-texto); }
.fx-talla input { position: absolute; opacity: 0; pointer-events: none; }
.fx-talla span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 .5rem; border: 1px solid var(--fx-gris-linea); border-radius: 9px; font-size: .8rem; font-weight: 600; cursor: pointer; user-select: none; }
.fx-talla input:checked + span { background: var(--fx-tinta); border-color: var(--fx-tinta); color: #fff; }
.fx-talla input:focus-visible + span { outline: 2px solid var(--fx-naranja); outline-offset: 2px; }
.fx-inv-tallas { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .5rem; }
.fx-inv-talla { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .5rem; border: 1px solid var(--fx-gris-linea); border-radius: 12px; }
.fx-inv-talla b { font-size: .85rem; }
.fx-inv-talla input { text-align: center; font-weight: 700; }
.fx-inv-talla small { font-size: .68rem; color: var(--fx-gris-texto); }

/* Factura de compra */
.fx-compra-datos { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: .4rem; }
.fx-compra-datos small { display: block; font-size: .68rem; color: var(--fx-gris-texto); text-transform: uppercase; letter-spacing: .04em; }
.fx-compra-datos b { font-size: .9rem; }
.fx-compra-total { min-width: 180px; padding: .8rem 1.2rem; border-radius: 14px; background: var(--fx-tinta); color: #fff; text-align: right; align-self: flex-start; }
.fx-compra-total small { display: block; font-size: .7rem; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.fx-compra-total b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2rem; line-height: 1.1; }
.fx-compra-total span { font-size: .74rem; opacity: .75; }
.fx-compra-pie { display: flex; justify-content: flex-end; align-items: baseline; gap: 1.2rem; padding: .9rem .5rem 0; border-top: 2px solid var(--fx-tinta); margin-top: .3rem; }
.fx-compra-pie span { font-size: .78rem; color: var(--fx-gris-texto); text-transform: uppercase; letter-spacing: .05em; }
.fx-compra-pie b { font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; }
a.fx-lista-fila, a.fx-lista-fila:hover { text-decoration: none; color: inherit; }
a.fx-lista-fila:hover .fx-lf-nom { color: var(--fx-naranja); }

/* Proveedores */
.fx-seg-sm .btn { padding: .3rem .8rem; font-size: .78rem; }
.fx-seg .btn input + * { pointer-events: none; }
.fx-pv-dv { min-width: 62px; justify-content: center; font-weight: 700; font-size: .78rem; }
.fx-cc-prov { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--fx-naranja); border-radius: 12px; background: #FFF6F1; }
.fx-cc-prov-ico { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-tinta); color: #fff; flex-shrink: 0; }
.fx-cc-prov b { display: block; } .fx-cc-prov small { display: block; color: var(--fx-gris-texto); font-size: .74rem; }

/* Factura de compra (documento) */
.fx-cp-doc { background: #fff; border-radius: 20px; padding: 1.3rem 1.4rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.fx-cp-pasos { display: flex; list-style: none; padding: 0; margin: 0 0 1.2rem; gap: 0; }
.fx-cp-pasos li { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 600; color: var(--fx-gris-texto); position: relative; }
.fx-cp-pasos li + li::before { content: ""; position: absolute; left: -12%; width: 10%; top: 50%; border-top: 2px dashed var(--fx-gris-linea); }
.fx-cp-pasos span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-gris-fondo); font-size: .75rem; }
.fx-cp-pasos li.hecho { color: var(--fx-tinta); } .fx-cp-pasos li.hecho span { background: #14A44D; color: #fff; }
.fx-cp-pasos li.anulado { color: #B42318; } .fx-cp-pasos li.anulado span { background: #FDE8E8; color: #B42318; }
.fx-cp-cab { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 1.2rem; align-items: start; }
.fx-cp-prov small, .fx-cp-fact small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-gris-texto); }
.fx-cp-prov > b { display: block; font-size: 1.35rem; line-height: 1.2; margin: .15rem 0 .3rem; }
.fx-cp-prov > span { display: block; font-size: .8rem; color: var(--fx-gris-texto); margin-top: .15rem; }
.fx-cp-prov > span i { width: 14px; margin-right: .25rem; color: var(--fx-naranja); }
.fx-cp-fact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; padding: .9rem 1rem; border-radius: 14px; background: var(--fx-gris-fondo); }
.fx-cp-fact b { font-size: .95rem; } .fx-cp-fact em { display: block; font-style: normal; font-size: .72rem; color: var(--fx-naranja); }
.fx-cp-obs { margin: 1rem 0 0; font-size: .82rem; color: var(--fx-gris-texto); } .fx-cp-obs i { margin-right: .4rem; }
.fx-cp-cxp { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .7rem 1rem; border-radius: 12px; background: #FFF3E0; color: #8A4B0B; text-decoration: none; }
.fx-cp-cxp b { display: block; } .fx-cp-cxp small { display: block; font-size: .74rem; opacity: .8; }
.fx-cp-cxp.pagada { background: #E6F6EC; color: #0F7A3A; } .fx-cp-cxp.vencida { background: #FDE8E8; color: #B42318; }
.fx-cp-meta { margin: .6rem 0 0; font-size: .74rem; color: var(--fx-gris-texto); }
.fx-cp-acciones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--fx-gris-linea); }
.fx-cp-vacio { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 2.2rem 1rem; text-align: center; color: var(--fx-gris-texto); }
.fx-cp-vacio i { font-size: 2rem; color: var(--fx-gris-linea); } .fx-cp-vacio b { color: var(--fx-tinta); } .fx-cp-vacio span { font-size: .82rem; max-width: 420px; }
@media (max-width: 991.98px){ .fx-cp-cab { grid-template-columns: 1fr; } .fx-compra-total { text-align: left; } }
/* Panel lateral para agregar productos */
.fx-cp-panel { --bs-offcanvas-width: 460px; }
.fx-cp-panel .offcanvas-header { border-bottom: 1px solid var(--fx-gris-linea); }
.fx-cp-sel { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; background: var(--fx-tinta); color: #fff; }
.fx-cp-sel i { font-size: 1.2rem; color: var(--fx-naranja); } .fx-cp-sel b { display: block; } .fx-cp-sel small { display: block; font-size: .72rem; opacity: .75; }
.fx-cp-sub { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9rem; padding: .7rem .9rem; border-radius: 12px; background: var(--fx-gris-fondo); font-size: .8rem; color: var(--fx-gris-texto); }
.fx-cp-sub b { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; color: var(--fx-tinta); }
.fx-cp-ultimos { margin-top: 1.4rem; } .fx-cp-ultimos ul { list-style: none; padding: 0; margin: 0; }
.fx-cp-ultimos li { padding: .5rem 0; border-bottom: 1px solid var(--fx-gris-linea); animation: fxEntra .3s ease; }
.fx-cp-ultimos li b { display: block; font-size: .85rem; } .fx-cp-ultimos li small { color: var(--fx-gris-texto); font-size: .74rem; }
@keyframes fxEntra { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Cuentas por pagar */
.fx-cxp-res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.fx-cxp-res > div { padding: .7rem .8rem; border-radius: 12px; background: var(--fx-gris-fondo); }
.fx-cxp-res small { display: block; font-size: .68rem; color: var(--fx-gris-texto); text-transform: uppercase; letter-spacing: .05em; }
.fx-cxp-res b { display: block; font-size: 1.05rem; }
.fx-cxp-res .saldo { background: var(--fx-tinta); color: #fff; } .fx-cxp-res .saldo small { color: rgba(255,255,255,.7); }
.fx-cxp-pagar { padding: 1rem; border: 1px dashed var(--fx-gris-linea); border-radius: 14px; }
.fx-cxp-dias { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #E6F6EC; color: #0F7A3A; }
.fx-cxp-dias.pronto { background: #FFF3E0; color: #B45309; } .fx-cxp-dias.vencida { background: #FDE8E8; color: #B42318; }
@media (max-width: 575.98px){ .fx-cxp-res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Facturación periódica */
.fx-fac-paso { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.fx-fac-paso > span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-naranja); color: #fff; font-weight: 800; flex-shrink: 0; }
.fx-fac-paso h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.fx-fac-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fx-fac-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .3rem; max-height: 220px; overflow-y: auto; padding-right: .2rem; }
.fx-fac-grupo { display: flex; align-items: flex-start; gap: .45rem; padding: .4rem .5rem; border: 1px solid var(--fx-gris-linea); border-radius: 9px; font-size: .78rem; cursor: pointer; }
.fx-fac-grupo small { display: block; font-size: .66rem; color: var(--fx-gris-texto); }
.fx-fac-grupo:has(input:checked) { border-color: var(--fx-tinta); background: var(--fx-gris-fondo); }
.fx-fac-concepto { display: flex; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--fx-naranja); border-radius: 12px; background: #FFF6F1; cursor: pointer; }
.fx-fac-concepto b { display: block; } .fx-fac-concepto small { display: block; font-size: .74rem; color: var(--fx-gris-texto); }
.fx-fac-sincuota { margin: .6rem 0 0 1.8rem; font-size: .76rem; color: var(--fx-gris-texto); }
.fx-fac-servicios { display: grid; gap: .3rem; max-height: 320px; overflow-y: auto; }
.fx-fac-serv { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: .5rem; align-items: center; padding: .35rem .5rem; border-radius: 9px; }
.fx-fac-serv label { display: flex; gap: .45rem; align-items: flex-start; font-size: .8rem; cursor: pointer; }
.fx-fac-serv small { display: block; font-size: .66rem; color: var(--fx-gris-texto); }
.fx-fac-serv.activo { background: var(--fx-gris-fondo); }
.fx-fac-previa-caja { position: sticky; top: 76px; }
.fx-fac-avisos { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.fx-fac-avisos span { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: var(--fx-gris-fondo); font-size: .76rem; }
.fx-fac-avisos span.ok { background: var(--fx-tinta); color: #fff; } .fx-fac-avisos span.mal { background: #FFF3E0; color: #B45309; }
.fx-fac-filtro { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; margin-bottom: .4rem; }
.fx-fac-lista { max-height: 62vh; overflow-y: auto; }
.fx-fac-lista > label { cursor: pointer; }
.fx-fac-lista .fx-lista-fila.fx-fac-fuera { opacity: .45; }
.fx-fac-lineas { display: flex; flex-direction: column; gap: .1rem; font-size: .76rem; }
.fx-fac-lineas b { font-weight: 700; } .fx-fac-lineas s { color: var(--fx-gris-texto); font-size: .7rem; }
.fx-fac-lineas em { font-style: normal; font-size: .7rem; color: var(--fx-gris-texto); } .fx-fac-lineas em i { margin-right: .3rem; }
.fx-fac-lineas em.falta, .fx-fac-lineas em.acu { color: #B45309; } .fx-fac-lineas em.beca { color: #5B4BB7; } .fx-fac-lineas em.ya { color: #0F7A3A; }
.fx-fac-barra { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; padding: .7rem 1rem; border-radius: 16px; background: var(--fx-tinta); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.fx-fac-barra > span { font-size: .9rem; } .fx-fac-barra b { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; }
.fx-fac-barra input { max-width: 300px; margin-left: auto; }
.fx-fac-barra .btn-dark { background: var(--fx-naranja); border-color: var(--fx-naranja); }
.fx-fac-estados { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.fx-fac-estados a { padding: .6rem .8rem; border: 1px solid var(--fx-gris-linea); border-radius: 12px; text-decoration: none; color: var(--fx-tinta); }
.fx-fac-estados a.activo { border-color: var(--fx-naranja); background: #FFF6F1; }
.fx-fac-estados small { display: block; font-size: .7rem; color: var(--fx-gris-texto); } .fx-fac-estados b { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; line-height: 1.1; } .fx-fac-estados em { display: block; font-style: normal; font-size: .7rem; color: var(--fx-gris-texto); }
.fx-estado.mal { color: #B42318; } .fx-estado.mal::before { background: #D93025; }
@media (max-width: 767.98px){ .fx-fac-estados { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-fac-previa-caja { position: static; } }

/* Facturación periódica por etapas, sede por sede */
.fx-fac-etapas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.fx-fac-etapas li { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--fx-gris-linea); cursor: pointer; transition: all .15s; }
.fx-fac-etapas li > span { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-gris-fondo); font-weight: 800; color: var(--fx-gris-texto); }
.fx-fac-etapas li b { font-size: .9rem; } .fx-fac-etapas li small { font-size: .72rem; color: var(--fx-gris-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-fac-etapas li.activa { border-color: var(--fx-naranja); box-shadow: inset 0 -3px 0 var(--fx-naranja); } .fx-fac-etapas li.activa > span { background: var(--fx-naranja); color: #fff; }
.fx-fac-etapas li.hecha > span { background: #14A44D; color: #fff; font-size: 0; } .fx-fac-etapas li.hecha > span::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8rem; }
.fx-fac-sedes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.fx-fac-sede { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; text-align: left; padding: .9rem 1rem; border: 2px solid var(--fx-gris-linea); border-radius: 14px; background: #fff; transition: all .15s; }
.fx-fac-sede i { grid-row: 1 / 3; align-self: center; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--fx-gris-fondo); color: var(--fx-naranja); }
.fx-fac-sede small { font-size: .72rem; color: var(--fx-gris-texto); }
.fx-fac-sede:hover:not(:disabled) { border-color: var(--fx-tinta); }
.fx-fac-sede.activa { border-color: var(--fx-naranja); background: #FFF6F1; } .fx-fac-sede.activa i { background: var(--fx-naranja); color: #fff; }
.fx-fac-sede:disabled { opacity: .45; }
.fx-fac-nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--fx-gris-linea); }
.fx-fac-resumen { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.fx-fac-resumen span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: var(--fx-gris-fondo); font-size: .78rem; } .fx-fac-resumen i { color: var(--fx-naranja); }
.fx-fac-etapa .fx-fac-lista { max-height: none; }
.fx-fac-barra .btn-outline-light { border-color: rgba(255,255,255,.35); }
@media (max-width: 767.98px){ .fx-fac-etapas li small { display: none; } }

/* Detalle de la facturación periódica */
.fx-fl-cab { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem 1.4rem; padding: 1.3rem 1.4rem; border-radius: 20px; background: #fff; }
.fx-fl-tit h1 { font-family: "Barlow Condensed", sans-serif; font-size: 2.1rem; font-weight: 800; line-height: 1; margin: 0; text-transform: uppercase; }
.fx-fl-tit h1 span { color: var(--fx-naranja); }
.fx-fl-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.fx-fl-chips span { padding: .25rem .65rem; border-radius: 999px; background: var(--fx-gris-fondo); font-size: .74rem; font-weight: 600; }
.fx-fl-total { align-self: start; padding: 1rem 1.2rem; border-radius: 16px; background: var(--fx-tinta); color: #fff; }
.fx-fl-total small { display: block; font-size: .68rem; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.fx-fl-total > b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2.3rem; line-height: 1.05; }
.fx-fl-total > span { font-size: .76rem; opacity: .75; }
.fx-fl-recaudo { margin-top: .8rem; } .fx-fl-recaudo > div { height: 7px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.fx-fl-recaudo > div span { display: block; height: 100%; background: #14A44D; } .fx-fl-recaudo em { display: block; font-style: normal; font-size: .7rem; opacity: .8; margin-top: .3rem; }
.fx-fl-acciones { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; padding-top: 1rem; border-top: 1px solid var(--fx-gris-linea); }
.fx-fl-filtros { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: .4rem 0 .6rem; }
.fx-fl-factura { border: 1px solid var(--fx-gris-linea); border-radius: 16px; overflow: hidden; margin-top: .4rem; }
.fx-fl-fact-cab { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1rem 1.2rem; background: var(--fx-gris-fondo); }
.fx-fl-fact-cab small { display: block; font-size: .66rem; color: var(--fx-gris-texto); text-transform: uppercase; letter-spacing: .05em; } .fx-fl-fact-cab b { font-size: .95rem; }
.fx-fl-tabla { width: 100%; border-collapse: collapse; }
.fx-fl-tabla th { padding: .7rem 1.2rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fx-gris-texto); border-bottom: 2px solid var(--fx-tinta); text-align: left; }
.fx-fl-tabla td { padding: .8rem 1.2rem; border-bottom: 1px solid var(--fx-gris-linea); font-size: .86rem; vertical-align: top; }
.fx-fl-tabla td small { display: block; font-size: .7rem; color: var(--fx-gris-texto); }
.fx-fl-tabla .n { text-align: right; white-space: nowrap; }
.fx-fl-totales { display: grid; grid-template-columns: 1fr auto; gap: .3rem 2rem; padding: 1rem 1.2rem; justify-items: end; }
.fx-fl-totales > div:not(.estados) { display: contents; } .fx-fl-totales > div > span { color: var(--fx-gris-texto); font-size: .82rem; }
.fx-fl-totales > div > b { font-size: .95rem; } .fx-fl-totales .total span { font-weight: 700; color: var(--fx-tinta); text-transform: uppercase; letter-spacing: .04em; }
.fx-fl-totales .total b { font-family: "Barlow Condensed", sans-serif; font-size: 1.9rem; color: var(--fx-naranja); line-height: 1; }
.fx-fl-totales .estados { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--fx-gris-linea); }
.fx-fl-totales .estados span { padding: .5rem .7rem; border-radius: 10px; background: var(--fx-gris-fondo); } .fx-fl-totales .estados i { font-style: normal; font-size: .7rem; }
.fx-fl-totales .estados b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; line-height: 1.1; } .fx-fl-totales .estados em { font-style: normal; font-size: .7rem; color: var(--fx-gris-texto); }
@media (max-width: 991.98px){ .fx-fl-cab { grid-template-columns: 1fr; } .fx-fl-fact-cab, .fx-fl-totales .estados { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Recibos de caja */
.fx-rc-dep { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 14px; background: var(--fx-gris-fondo); margin-bottom: 1rem; }
.fx-rc-dep b { display: block; font-size: 1rem; } .fx-rc-dep small { display: block; font-size: .74rem; color: var(--fx-gris-texto); }
.fx-rc-cuentas { display: grid; gap: .7rem; }
.fx-rc-cuenta { border: 1px solid var(--fx-gris-linea); border-radius: 14px; overflow: hidden; transition: opacity .15s; }
.fx-rc-cuenta.fuera { opacity: .5; }
.fx-rc-cab { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 1rem; cursor: pointer; }
.fx-rc-cab b { display: block; font-size: .92rem; } .fx-rc-cab small { display: block; font-size: .72rem; color: var(--fx-gris-texto); }
.fx-rc-lin { display: flex !important; flex-wrap: wrap; gap: .2rem .8rem; margin-top: .2rem; }
.fx-rc-saldo { text-align: right; } .fx-rc-saldo b { font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; line-height: 1; }
.fx-rc-ajustes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 120px minmax(0, 1.3fr); gap: .5rem; align-items: end; padding: .7rem 1rem .9rem; background: #FAFAF8; border-top: 1px solid var(--fx-gris-linea); }
.fx-rc-ajustes small { display: block; font-size: .66rem; color: var(--fx-gris-texto); margin-bottom: .2rem; white-space: nowrap; }
.fx-rc-ajustes small em { font-style: normal; color: var(--fx-naranja); font-weight: 700; }
.fx-rc-neto b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; }
.fx-rc-abono { position: relative; } .fx-rc-abono .input-group { box-shadow: 0 0 0 2px var(--fx-naranja); border-radius: 8px; }
.fx-rc-abono input { font-weight: 800; } .fx-rc-abono .rc-todo { position: absolute; right: 0; top: -2px; font-size: .68rem; }
.fx-rc-resto { padding: .45rem 1rem; background: #FFF3E0; color: #8A4B0B; font-size: .76rem; } .fx-rc-resto i { margin-right: .4rem; }
.fx-rc-pago { position: sticky; top: 76px; }
.fx-rc-medio { display: grid; grid-template-columns: 1fr 1fr 32px; gap: .35rem; padding: .5rem 0; border-bottom: 1px solid var(--fx-gris-linea); }
.fx-rc-medio [data-c=referencia] { grid-column: 1 / 3; }
.fx-rc-medio .fx-lf-btn { grid-row: 1; grid-column: 3; }
.fx-rc-tot { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--fx-gris-linea); }
.fx-rc-tot > div { display: contents; } .fx-rc-tot span { font-size: .8rem; color: var(--fx-gris-texto); } .fx-rc-tot b { text-align: right; font-size: .95rem; }
.fx-rc-tot .total span { font-weight: 700; color: var(--fx-tinta); text-transform: uppercase; letter-spacing: .04em; align-self: center; }
.fx-rc-tot .total b { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; color: var(--fx-naranja); line-height: 1; }
.fx-rc-tot .medios span, .fx-rc-tot .medios b { font-size: .74rem; }
.fx-rc-regla { padding: .8rem 1rem; border: 1px solid var(--fx-gris-linea); border-radius: 12px; margin-bottom: .6rem; }
.fx-rc-regla > div:first-child { margin-bottom: .5rem; } .fx-rc-regla b { display: block; font-size: .9rem; } .fx-rc-regla small { display: block; font-size: .72rem; color: var(--fx-gris-texto); }
.fx-rc-med-fila { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--fx-gris-linea); }
.fx-rc-med-fila small { display: block; font-size: .7rem; color: var(--fx-gris-texto); }
.fx-rc-medios-mes { display: flex; flex-wrap: wrap; gap: .5rem; }
.fx-rc-medios-mes a { padding: .5rem .8rem; border: 1px solid var(--fx-gris-linea); border-radius: 10px; text-decoration: none; color: var(--fx-tinta); min-width: 130px; }
.fx-rc-medios-mes a.activo { border-color: var(--fx-naranja); background: #FFF6F1; }
.fx-rc-medios-mes small { display: block; font-size: .7rem; color: var(--fx-gris-texto); } .fx-rc-medios-mes b { display: block; } .fx-rc-medios-mes em { font-style: normal; font-size: .66rem; color: var(--fx-gris-texto); }
.fx-si-excel { display: flex; flex-direction: column; gap: .2rem; } .fx-si-excel small { font-size: .74rem; color: var(--fx-gris-texto); }
@media (max-width: 1199.98px){ .fx-rc-ajustes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-rc-pago { position: static; } }
