/*!
 * Gestión de Club - estilos
 * Desarrollado por RED ENTRE RIOS - www.redentrerios.com
 */
:root {
    --c1: #0d47a1;
    --c2: #f9a825;
    --texto: #1d2433;
    --suave: #5b6577;
    --borde: #e2e6ee;
    --fondo: #f4f6fa;
    --blanco: #fff;
    --ok: #1b873f;
    --ok-f: #e3f5e9;
    --mal: #c62828;
    --mal-f: #fdeaea;
    --aviso: #a86400;
    --aviso-f: #fff4dc;
    --info: #1565c0;
    --info-f: #e7f0fd;
    --radio: 12px;
    --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--texto);
    background: var(--fondo);
}
img { max-width: 100%; }
a { color: var(--c1); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
code { background: #eef1f6; padding: 1px 6px; border-radius: 5px; font-size: .9em; word-break: break-all; }
[hidden] { display: none !important; }
.mt { margin-top: 12px; }
.centrado { text-align: center; }
.der { text-align: right; }
.ayuda { color: var(--suave); font-size: .9rem; }
.sub { color: var(--suave); margin-top: -.3em; }
.vacio { color: var(--suave); font-style: italic; }
.txt-ok { color: var(--ok); }
.txt-mal { color: var(--mal); }
.angosto { max-width: 760px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border: 0; border-radius: 9px; cursor: pointer;
    background: var(--c1); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
    transition: filter .15s, transform .05s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: 5px 10px; font-size: .85rem; border-radius: 7px; }
.btn-grande { padding: 13px 24px; font-size: 1.02rem; }
.btn-sec { background: #e8ecf3; color: var(--texto); }
.btn-ok { background: var(--ok); }
.btn-peligro { background: var(--mal); }
.btn-aviso { background: var(--c2); color: #222; }
.btn-acento { background: var(--c2); color: #1b1b1b; }
.btn-borde { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.btn-mp { background: #009ee3; }
.btn-link { background: none; border: 0; padding: 0 4px; color: var(--c1); cursor: pointer; font: inherit; text-decoration: underline; }
.form-inline { display: inline; margin: 0; }

/* ---------- Alertas y badges ---------- */
.alerta { padding: 12px 16px; border-radius: 10px; margin: 0 0 14px; border-left: 4px solid; background: var(--info-f); border-color: var(--info); }
.alerta-ok { background: var(--ok-f); border-color: var(--ok); }
.alerta-error { background: var(--mal-f); border-color: var(--mal); }
.alerta-aviso { background: var(--aviso-f); border-color: var(--c2); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.badge-ok { background: var(--ok-f); color: var(--ok); }
.badge-mal { background: var(--mal-f); color: var(--mal); }
.badge-aviso { background: var(--aviso-f); color: var(--aviso); }
.badge-gris { background: #eceff4; color: #5f6878; }
.badge-info { background: var(--info-f); color: var(--info); }

/* ---------- Formularios ---------- */
.form label, label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
input, select, textarea {
    display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
    font: inherit; font-weight: 400; color: var(--texto);
    background: #fff; border: 1px solid #cfd6e2; border-radius: 8px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--c1) 35%, transparent); border-color: var(--c1); }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; margin: 0 6px 0 0; transform: scale(1.15); accent-color: var(--c1); }
input[type=color] { padding: 2px; height: 42px; }
input[type=file] { padding: 7px; background: #fafbfd; }
label.check { display: flex; align-items: center; font-weight: 500; gap: 2px; }
fieldset { border: 1px solid var(--borde); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
legend { font-weight: 700; padding: 0 6px; }
.grid2, .grid3 { display: grid; gap: 4px 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
    .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.grid2 > .tarjeta, .grid3 > .tarjeta { margin-bottom: 18px; }
.campo-info { font-size: .9rem; padding: 10px; background: var(--fondo); border-radius: 8px; margin-bottom: 12px; }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0 0 16px; }
.filtros input, .filtros select { width: auto; margin-top: 3px; }
.filtros label { margin: 0; font-weight: 500; }
.filtro-q { min-width: 240px; flex: 1; }
.filtro-corto { max-width: 110px; }
.fila-flex { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.fila-flex label { margin: 0; }
.fila-flex select, .fila-flex input { width: auto; }
.botones-linea { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.resultado-inputs { display: flex; align-items: center; gap: 8px; }
.resultado-inputs input { width: 80px; }
.fila-cat, .fila-plan { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.fila-cat input, .fila-plan input, .fila-plan select { width: auto; flex: 1 1 120px; margin: 0; }
.fila-cat.nueva, .fila-plan.nueva { padding-top: 10px; border-top: 1px dashed var(--borde); }
.fila-plan label.check { margin: 0; }
.logo-previa { max-height: 120px; display: block; margin: 0 0 10px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 8px; padding: 6px; }
.portada-previa { max-height: 120px; display: block; margin: 0 0 10px; border-radius: 8px; }
.foto-previa { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 8px; }

/* ---------- Tarjetas y tablas ---------- */
.tarjeta { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px 20px; margin-bottom: 18px; }
.tarjeta.destacada { box-shadow: 0 0 0 2px var(--c1), var(--sombra); }
.tabla-wrap { overflow-x: auto; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); margin-bottom: 16px; }
.tarjeta .tabla-wrap { box-shadow: none; border: 1px solid var(--borde); }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--suave); background: #f8f9fc; padding: 10px 12px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla td { padding: 9px 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.tabla tbody tr:hover { background: #fafbff; }
.tabla tfoot td { background: #f8f9fc; border-bottom: 0; }
.tabla td.acciones { white-space: nowrap; text-align: right; }
.tabla small { color: var(--suave); }
.tabla-mini td { padding: 5px 8px; }
.fila-pendiente { background: #fffaf0; }
.fila-baja td { opacity: .6; }
.paginacion { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 20px; }
.paginacion a, .paginacion .actual { min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 8px; background: #fff; box-shadow: var(--sombra); text-decoration: none; }
.paginacion .actual { background: var(--c1); color: #fff; }
.paginacion .info { color: var(--suave); margin-left: 8px; font-size: .9rem; }
.lista-simple { list-style: none; padding: 0; margin: 0 0 12px; }
.lista-simple li { padding: 7px 0; border-bottom: 1px solid #f0f2f6; }
.lista-simple li:last-child { border-bottom: 0; }
.lista-simple small { color: var(--suave); }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.datos { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.datos dt { color: var(--suave); font-size: .88rem; }
.datos dd { margin: 0; }
.obs { background: var(--fondo); padding: 10px; border-radius: 8px; font-size: .9rem; }
details summary { cursor: pointer; color: var(--c1); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--borde); margin: 0 0 18px; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--suave); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.activo, .tabs a:hover { color: var(--c1); border-bottom-color: var(--c1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.chips a { padding: 5px 14px; border-radius: 99px; background: #fff; box-shadow: var(--sombra); text-decoration: none; color: var(--texto); font-size: .88rem; }
.chips a.activo { background: var(--c1); color: #fff; }
.chips-check { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.titulo-acciones { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.titulo-acciones h1 { margin: 0; }
.titulo-acciones > div { display: flex; gap: 8px; flex-wrap: wrap; }
.barra { height: 7px; background: #e9edf3; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.barra i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.barra-chica { display: inline-block; width: 70px; height: 6px; margin: 0 6px 0 0; vertical-align: middle; }
.copiar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.codigo { background: #1d2433; color: #e8ecf3; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .85rem; text-align: left; }

/* ---------- Administración ---------- */
.topbar { background: var(--c1); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.topbar-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 16px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.marca img { width: 38px; height: 38px; object-fit: contain; background: rgba(255,255,255,.95); border-radius: 50%; padding: 3px; }
.nav-toggle { margin-left: auto; display: none; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 8px; font-size: 1.4rem; padding: 4px 12px; cursor: pointer; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.9); text-decoration: none; padding: 7px 11px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.nav a:hover, .nav a.activo { background: rgba(255,255,255,.18); color: #fff; }
.nav-usuario { display: flex; align-items: center; gap: 4px; margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.3); }
.nav-usuario .btn-link { color: #fff; }
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 6px 0 4px; }
    .nav.abierto { display: flex; }
    .nav-usuario { margin: 6px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); justify-content: space-between; }
}
.contenedor { max-width: 1280px; margin: 0 auto; padding: 22px 16px 30px; }
.contenedor.angosto { max-width: 920px; }
.pie-admin { text-align: center; padding: 16px; }
.credito { font-size: .8rem; color: var(--suave); text-align: center; margin-top: 18px; }
.credito a { color: inherit; font-weight: 600; }
.cabecera-club { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cabecera-club img { width: 72px; height: 72px; object-fit: contain; }
.cabecera-club h1 { margin: 0; }
.botonera { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.boton-modulo {
    --bm: var(--c1);
    display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, var(--bm), color-mix(in srgb, var(--bm) 70%, #000));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--bm) 35%, transparent); transition: transform .15s;
}
.boton-modulo:hover { transform: translateY(-3px); }
.bm-icono { font-size: 2rem; }
.bm-txt { font-size: 1.25rem; font-weight: 800; }
.bm-dato { font-size: .85rem; opacity: .9; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.kpi-num { font-size: 1.55rem; font-weight: 800; }
.kpi-txt { color: var(--suave); font-size: .88rem; }
.kpi-alerta { box-shadow: 0 0 0 2px var(--c2), var(--sombra); }
.kpis-chicos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kpis-chicos .kpi { box-shadow: none; border: 1px solid var(--borde); }
.kpis-chicos .kpi-num { font-size: 1.25rem; }
.ficha-cab { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ficha-foto { width: 84px; height: 84px; border-radius: 50%; background: var(--c1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; overflow: hidden; flex: none; }
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha-titulo { flex: 1; min-width: 220px; }
.ficha-titulo h1 { margin: 0 0 4px; }
.ficha-titulo p { margin: 0; color: var(--suave); }
.ficha-acciones { display: flex; gap: 8px; }
.disc-check { border: 1px solid var(--borde); border-left: 5px solid var(--bm); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.disc-check label { margin: 0; }
.disc-check select { margin-top: 6px; }
.disc-cab { --bm: var(--c1); display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; color: #fff; margin-bottom: 16px; background: linear-gradient(135deg, var(--bm), color-mix(in srgb, var(--bm) 65%, #000)); }
.disc-cab h1 { margin: 0; }
.disc-cab p { margin: 2px 0 0; opacity: .9; }
.disc-icono { font-size: 2.6rem; }
.buscador { position: relative; }
.buscador input.elegido { border-color: var(--ok); background: var(--ok-f); }
.buscador-res { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid var(--borde); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.15); max-height: 300px; overflow-y: auto; margin-top: 4px; }
.buscador-res.visible { display: block; }
.br-item { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #f0f2f6; padding: 9px 12px; cursor: pointer; font: inherit; }
.br-item:hover, .br-item:focus { background: var(--info-f); }
.br-item strong, .br-item small { display: block; }
.br-item small { color: var(--suave); font-weight: 400; }
.br-vacio { padding: 10px 12px; color: var(--suave); font-weight: 400; }
.lista-asistencia { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-bottom: 14px; }
.asis-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--borde); border-radius: 10px; cursor: pointer; margin: 0; font-weight: 500; user-select: none; }
.asis-item input { position: absolute; opacity: 0; pointer-events: none; }
.asis-tilde { width: 28px; height: 28px; flex: none; border-radius: 8px; border: 2px solid #c5ccd8; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 1rem; }
.asis-item input:checked + .asis-tilde { background: var(--ok); border-color: var(--ok); color: #fff; }
.asis-item:has(input:checked) { border-color: var(--ok); background: var(--ok-f); }
.asis-item input:focus-visible + .asis-tilde { outline: 2px solid var(--c1); outline-offset: 2px; }
.asis-nombre small { display: block; color: var(--suave); font-weight: 400; }

/* ---------- Pantallas simples (login, instalador, errores) ---------- */
.pagina-simple { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px 30px; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 12%, #fff), var(--fondo) 60%); }
.caja-centro { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(16,24,40,.12); padding: 28px 26px; }
.caja-centro.ancho { max-width: 720px; }
.caja-centro h1 { text-align: center; font-size: 1.45rem; }
.caja-centro .sub { text-align: center; }
.acceso-logo { display: block; text-align: center; margin-bottom: 10px; }
.acceso-logo img { width: 88px; height: 88px; object-fit: contain; }
.inst-cab { text-align: center; }

/* ---------- Web pública ---------- */
.pub-top { background: #fff; box-shadow: 0 1px 0 var(--borde); position: sticky; top: 0; z-index: 20; }
.pub-top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; }
.pub-top .marca { color: var(--texto); }
.pub-top .marca img { background: none; padding: 0; width: 42px; height: 42px; }
.pub-nav { display: flex; align-items: center; gap: 12px; }
.pub-nav a { text-decoration: none; font-weight: 600; }
.pub-main > .alerta { max-width: 1180px; margin: 14px auto; }
.hero {
    --portada: none;
    position: relative; color: #fff; text-align: center; padding: 70px 18px 80px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 88%, transparent), color-mix(in srgb, var(--c1) 70%, #000)), var(--portada) center / cover no-repeat, var(--c1);
    overflow: hidden;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; background: var(--fondo); clip-path: ellipse(60% 100% at 50% 100%); }
.hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-logo { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); margin-bottom: 12px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 8px; letter-spacing: -.01em; }
.hero-lema { font-size: 1.2rem; margin: 0 0 4px; opacity: .95; }
.hero-fund { margin: 0 0 24px; color: var(--c2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hero-botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cifras { max-width: 900px; margin: -10px auto 10px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 0 18px; }
.cifras div { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); text-align: center; padding: 16px 10px; }
.cifras strong { display: block; font-size: 2rem; color: var(--c1); line-height: 1.1; }
.cifras span { color: var(--suave); font-size: .9rem; }
.seccion { max-width: 1180px; margin: 0 auto; padding: 46px 18px; }
.seccion-gris { max-width: none; background: #fff; }
.seccion-gris > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.seccion-titulo { text-align: center; font-size: 1.8rem; margin-bottom: 8px; }
.seccion-titulo::after { content: ""; display: block; width: 56px; height: 4px; background: var(--c2); border-radius: 4px; margin: 10px auto 0; }
.seccion-sub { text-align: center; color: var(--suave); max-width: 620px; margin: 0 auto 24px; }
.grid-disc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 18px; margin-top: 26px; }
.disc-card { --bm: var(--c1); background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: 24px; border-top: 6px solid var(--bm); transition: transform .15s; }
.disc-card:hover { transform: translateY(-4px); }
.disc-card-icono { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; font-size: 2rem; border-radius: 16px; background: color-mix(in srgb, var(--bm) 14%, #fff); margin-bottom: 10px; }
.disc-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.disc-comp { color: var(--bm); font-weight: 700; font-size: .9rem; margin: 0 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { background: var(--fondo); border-radius: 99px; padding: 3px 11px; font-size: .82rem; }
.lista-partidos { list-style: none; padding: 0; margin: 18px 0 0; }
.lista-partidos li { --bm: var(--c1); display: flex; align-items: center; gap: 14px; background: var(--fondo); border-left: 5px solid var(--bm); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.lp-fecha { font-weight: 800; font-size: 1.1rem; color: var(--bm); min-width: 50px; }
.lp-txt { flex: 1; font-size: .92rem; }
.lp-txt small { color: var(--suave); }
.lp-res { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.lp-res.g { background: var(--ok); }
.lp-res.p { background: var(--mal); }
.lp-res.e { background: #8a94a6; }
.grid-planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto 18px; }
.plan-card { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: 26px 22px; text-align: center; }
.plan-destacado { box-shadow: 0 0 0 3px var(--c2), var(--sombra); }
.plan-etiqueta { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--c2); color: #222; font-weight: 700; font-size: .78rem; padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.plan-precio { font-size: 2rem; font-weight: 800; color: var(--c1); margin: 6px 0; }
.plan-precio small { font-size: .9rem; color: var(--suave); font-weight: 500; }
.texto-largo { max-width: 760px; margin: 20px auto 0; font-size: 1.05rem; }
.grid-contacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.contacto-item { display: flex; gap: 12px; background: #fff; padding: 16px; border-radius: var(--radio); box-shadow: var(--sombra); }
.contacto-item > span { font-size: 1.6rem; }
.contacto-item a { text-decoration: none; font-weight: 600; }
.pub-pie { background: #141a26; color: #c5ccd8; padding: 26px 18px; text-align: center; }
.pub-pie-in { max-width: 1180px; margin: 0 auto; }
.pub-pie p { margin: 0 0 6px; }
.pub-pie strong { color: #fff; }
.pub-pie .credito { color: #8b95a7; }

/* ---------- Portal del socio ---------- */
body.portal main.contenedor { padding-top: 26px; }
.carnet { max-width: 440px; margin: 0 auto 22px; border-radius: 18px; overflow: hidden; color: #fff; box-shadow: 0 14px 34px rgba(16,24,40,.25); background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000)); }
.carnet-cab { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 800; letter-spacing: .02em; background: rgba(0,0,0,.15); }
.carnet-cab img { width: 36px; height: 36px; object-fit: contain; }
.carnet-cuerpo { display: flex; gap: 16px; padding: 18px; align-items: center; }
.carnet-foto { width: 86px; height: 86px; border-radius: 14px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; overflow: hidden; flex: none; border: 2px solid rgba(255,255,255,.6); }
.carnet-foto img { width: 100%; height: 100%; object-fit: cover; }
.carnet-datos { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.carnet-datos strong { font-size: 1.08rem; }
.carnet-disc { font-size: 1.3rem; margin-top: 4px; }
.carnet-estado { text-align: center; padding: 10px; font-weight: 800; letter-spacing: .05em; font-size: .9rem; }
.carnet-ok .carnet-estado { background: var(--ok); }
.carnet-debe .carnet-estado { background: var(--mal); }
.exito-grande { font-size: 1.1rem; color: var(--ok); font-weight: 600; }
.pago-barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--fondo); border-radius: 10px; padding: 12px 16px; }
.pago-barra strong { font-size: 1.25rem; }
.total-grande { font-size: 1.5rem; font-weight: 800; color: var(--c1); margin: 8px 0 0; }
.pasos { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pasos { grid-template-columns: 1fr 1fr; } }
.paso { position: relative; padding-top: 26px; }
.paso-num { position: absolute; top: -14px; left: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--c1); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.resultado-pago { text-align: center; max-width: 620px; margin: 10px auto; }
.resultado-pago .tarjeta { text-align: left; }
.resultado-icono { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; background: var(--info); }
.resultado-aprobado .resultado-icono, .resultado-informado .resultado-icono { background: var(--ok); }
.resultado-pendiente .resultado-icono { background: var(--c2); }
.resultado-rechazado .resultado-icono { background: var(--mal); }

/* ---------- Recibo ---------- */
.recibo-body { background: #e9edf3; padding: 20px; }
.recibo-acciones { text-align: center; margin-bottom: 14px; }
.recibo { max-width: 720px; margin: 0 auto; background: #fff; padding: 28px; border-radius: 6px; box-shadow: var(--sombra); }
.recibo-cab { display: flex; align-items: center; gap: 16px; border-bottom: 3px solid var(--c1); padding-bottom: 14px; margin-bottom: 16px; }
.recibo-cab img { width: 70px; height: 70px; object-fit: contain; }
.recibo-cab h2 { margin: 0 0 4px; }
.recibo-cab p { margin: 0; color: var(--suave); font-size: .88rem; }
.recibo-cab > div:nth-child(2) { flex: 1; }
.recibo-num { text-align: right; font-size: .9rem; }
.recibo-num strong { font-size: 1.15rem; }
.recibo-firma { margin: 60px 0 10px auto; width: 240px; border-top: 1px solid #333; text-align: center; font-size: .85rem; padding-top: 4px; }
@media print {
    .no-print, .topbar, .pub-top, .pie-admin { display: none !important; }
    .recibo-body { background: #fff; padding: 0; }
    .recibo { box-shadow: none; padding: 0; }
    body { background: #fff; }
}

/* ---------- Responsive general ---------- */
@media (max-width: 640px) {
    h1 { font-size: 1.4rem; }
    .tarjeta { padding: 16px 14px; }
    .filtros input, .filtros select, .filtros .btn { width: 100%; max-width: none; }
    .filtros label { width: 100%; }
    .tabla { font-size: .86rem; }
    .tabla th, .tabla td { padding: 8px; }
    .hero { padding: 46px 16px 64px; }
    .hero-logo { width: 110px; height: 110px; }
    .datos { grid-template-columns: 1fr; }
    .datos dt { margin-top: 6px; }
    .pub-top .marca span { font-size: .95rem; }
    .botonera { grid-template-columns: 1fr 1fr; gap: 10px; }
    .boton-modulo { padding: 14px; }
    .bm-txt { font-size: 1.05rem; }
    .grid-disc { grid-template-columns: 1fr; }
}
