/* ==========================================================================
   Área privada del club (v5.1): perfil, mis actividades, agenda, alta y acceso
   Piel «dorsal»: papel crema con trama de puntos, tinta, radio 4 px, sin sombras. El color de acento (--club) sale
   del logo del club (js/rh-club.js; sin logo, el azul de DendroCT). Naranja = Strava y nada más.
   Va DESPUÉS de rh-forms.css y solo actúa en <body class="club">: el resto de páginas no cambia.
   ========================================================================== */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

body.club {
    --paper: #F2F1EC; --sheet: #FFFFFF; --ink: #0E1730; --ink2: #4D5C70; --ink3: #7A8697; --line: #D9D6CB; --line2: #E8E6DF;
    --club: #0B4A8B; --club-tint: #E3ECF6;
    --strava: #FC4C02; --strava-dark: #D63F00; --strava-tint: #FFE9DF;
    --topo: #2E7A57; --topo-tint: #DCEADF; --off: #AEB5C4; --red: #B42318;
    --r: 4px;
    --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
    --f-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-num: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --primary: var(--ink);
    display: block; margin: 0; padding: 0; min-height: 100vh;
    background: var(--paper); color: var(--ink); font: 16px/1.4 var(--f-text);
    background-image: radial-gradient(rgba(14, 23, 48, .07) 1px, transparent 1.2px); background-size: 14px 14px;
    -webkit-text-size-adjust: 100%;
}
body.club *, body.club *::before, body.club *::after { box-sizing: border-box; }

/* La tarjeta de antes pasa a ser la columna de la página */
body.club .card, body.club .report-wrapper, body.club .report-card {
    max-width: 480px; width: 100%; margin: 0 auto; padding: 0 16px 28px; background: none; border-radius: 0; box-shadow: none;
}
body.club.has-tabs .card, body.club.has-tabs .report-card { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.club .report-wrapper { padding: 0; }

/* ---------- Cabecera del club ---------- */
.club-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; margin: 0 -16px; padding: 10px 16px;
    background: rgba(242, 241, 236, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--line); }
.club-logo { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center;
    overflow: hidden; font: 800 17px/1 var(--f-display); color: #fff; }
.club-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.club-logo.is-initials { background: var(--club); border-color: var(--club); }
.club-bar-txt { min-width: 0; flex: 1; line-height: 1.1; }
.club-name { font: 800 18px/1.05 var(--f-display); font-stretch: 110%; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-reto { font-size: 13px; color: var(--ink2); font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-reto:empty { display: none; }
.strava-state { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--strava-tint);
    color: var(--strava-dark); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.strava-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--strava); }
.strava-state[hidden] { display: none; }

/* ---------- Menú al pie ---------- */
.club-tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--ink); }
.club-tabs[hidden] { display: none; }
.club-tabs a, .club-tabs button { flex: 1 1 0; min-width: 0; max-width: 110px; min-height: 56px; padding: 0 2px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: var(--r); background: none; color: #B9C3D4;
    font: 700 12.5px/1.1 var(--f-text); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.club-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.club-tabs [aria-current="page"] { background: #fff; color: var(--ink); }
.club-tabs a:focus-visible, .club-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.club-tabs [hidden] { display: none; }

/* ---------- Títulos, estados y textos ---------- */
body.club .header-status { text-align: left; margin: 0; }
body.club .status-badge { display: none; }
body.club .status-badge.error-mode { display: inline-flex; }
body.club #output h2, body.club h2.title { font: 800 26px/1.1 var(--f-display); font-stretch: 108%; margin: 18px 0 4px; letter-spacing: -.005em; color: var(--ink); text-align: left; }
body.club #output h2:empty { display: none; }
body.club #output .success-message-text, body.club .success-message-text { color: var(--ink2); font-size: 14.5px; margin: 0 0 12px; text-align: left; }
body.club #output:empty { display: none; }
body.club .tab-note, body.club .subtitle { color: var(--ink2); font-size: 14px; text-align: left; }
body.club .page-loading { padding: 60px 0; }
body.club .page-loading p { color: var(--ink2); }
body.club .loader { border-color: var(--line); border-top-color: var(--ink); }
body.club .step-indicator { display: none; }
body.club .sec-title { font: 700 12px/1 var(--f-text); text-transform: uppercase; letter-spacing: .1em; color: var(--ink2); margin: 22px 0 8px; }
.cinta { position: relative; padding: 11px 14px 11px 16px; border-radius: var(--r); font-size: 14.5px; line-height: 1.45;
    box-shadow: inset 4px 0 0 var(--c); background: var(--bg); color: var(--t); }
.cinta b { display: block; }
.cinta.info { --c: #1560BD; --bg: #E6EEF9; --t: #123B6D; }
.cinta.ok { --c: #2E7A57; --bg: #E3F1E8; --t: #1D4D37; }
.cinta.warn { --c: #B45309; --bg: #FFF4E5; --t: #7A3E00; }

/* ---------- Hojas (bloques blancos) ---------- */
.sheet { background: var(--sheet); border-radius: var(--r); padding: 4px 14px 14px; margin-top: 10px; }
body.club form.form-wrapper, body.club #accountForm, body.club #dataContainerOTP, body.club #emailOtpBox,
body.club #voucherSection, body.club #accountSection, body.club #otpSection, body.club #dataContainer, body.club .agenda-form {
    background: var(--sheet); border-radius: var(--r); padding: 4px 14px 14px; margin-top: 10px;
}
body.club #userLoginSent { margin-top: 10px; }

/* ---------- Campos ---------- */
body.club .input-group { margin-top: 12px; margin-bottom: 0; }
body.club label { font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
body.club input[type="text"], body.club input[type="email"], body.club input[type="url"], body.club input[type="number"],
body.club input[type="date"], body.club input[type="time"], body.club textarea {
    min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink);
    font: 16px/1.3 var(--f-text); box-shadow: none;
}
body.club textarea { padding: 12px 14px; min-height: 96px; }
body.club input:focus, body.club textarea:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); outline: 0; }
body.club input[readonly] { background: var(--paper); color: var(--ink2); }
body.club .mail-field input[readonly] { background: var(--paper); color: var(--ink2); }
body.club .mail-edit { color: var(--club); border-radius: var(--r); }
body.club .tooltip { border-radius: var(--r); }
body.club .check-row { font-weight: 600; font-size: 15px; }
body.club .check-row input { accent-color: var(--topo); width: 20px; height: 20px; }
/* Categorías: dos botones como fichas */
body.club .radio-tiles { gap: 8px; }
body.club .tile-content { min-height: 52px; border: 0; border-radius: var(--r); background: var(--paper); box-shadow: none; }
body.club .tile-content span { font-weight: 800; color: var(--ink2); font-size: 15.5px; }
body.club .tile input:checked + .tile-content { background: var(--ink); border: 0; box-shadow: none; }
body.club .tile input:checked + .tile-content span { color: #fff; }
body.club .tile input:disabled:checked + .tile-content { background: var(--ink2); }

/* Código de invitación: grande y centrado */
body.club #txtVoucher { min-height: 58px; border: 0; box-shadow: inset 0 0 0 2px var(--ink); font: 700 24px/1 var(--f-num);
    letter-spacing: .18em; text-transform: uppercase; text-align: center; }
body.club #txtVoucher::placeholder { font: 600 16px/1 var(--f-text); letter-spacing: 0; text-transform: none; }

/* Código de 6 cifras (v5.2.6, José Manuel): una casilla normal, centrada, con «000000» sombreado de muestra, como antes
   de la v5.1. Las rayas que tapaban las cifras se descolocaban al pegar y al teclear en Android. */
body.club input.otp-input { display: block; width: 100%; min-height: 64px; padding: 0 12px; border: 0; border-radius: var(--r);
    box-shadow: inset 0 0 0 2px var(--ink); background: #fff; color: var(--ink); text-align: center;
    font: 700 28px/64px var(--f-num); font-size: 28px !important; letter-spacing: .35em; text-indent: .35em;
    font-variant-numeric: tabular-nums; }
body.club input.otp-input::placeholder { color: var(--line); opacity: 1; }
body.club input.otp-input:focus { box-shadow: inset 0 0 0 3px var(--ink); border: 0; }

/* ---------- Botones ---------- */
body.club .rh-btn { min-height: 52px; padding: 0 18px; border-radius: var(--r); font: 800 16px/1.2 var(--f-text); letter-spacing: 0; text-transform: none;
    box-shadow: none; background: var(--ink); color: #fff; transform: none; }
body.club .rh-btn::after { display: none; }
body.club .rh-btn:hover { transform: none; filter: none; }
body.club .rh-btn-blue, body.club .rh-btn-blue:hover { background: var(--ink); }
body.club .rh-btn:disabled { background: var(--off); color: #fff; opacity: 1; box-shadow: none; }
body.club .rh-btn-orange, body.club .rh-btn-orange:hover { background: var(--strava); color: #fff; min-height: 56px; font-size: 17px; }
body.club .rh-btn-orange:active { background: var(--strava-dark); }
body.club .rh-btn-outline, body.club .rh-btn-outline:hover { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); border: 0; }
body.club .rh-btn-outline:disabled { background: var(--sheet); color: var(--ink3); box-shadow: inset 0 0 0 1.5px var(--line); }
body.club .rh-btn-danger { background: var(--red); }
/* «Guardar»: verde con cambios, gris azulado sin ellos (como el rutómetro) */
body.club #btnAccount, body.club #btnSend { background: var(--topo); }
body.club #btnAccount:disabled, body.club #btnSend:disabled { background: var(--off); }
/* «Enviar código» del acceso (v5.2.6, José Manuel): azul oscuro como el resto, no verde */
body.club #loginBox #btnSend, body.club #dataContainer #btnSend { background: var(--ink); }
body.club #loginBox #btnSend:disabled, body.club #dataContainer #btnSend:disabled { background: var(--off); }
body.club .btn-gap { margin-top: 10px; }
body.club form > .rh-btn, body.club form .input-group + .rh-btn { margin-top: 14px; }
body.club .link-btn { color: var(--ink2); font-weight: 700; }
body.club .login-register { color: var(--ink2); font-size: 15px; text-align: center; }
body.club .login-register a { color: var(--club); font-weight: 800; text-decoration: none; display: inline-block; min-height: 44px; line-height: 44px; }
body.club .captcha-status { font: 600 12.5px/1.3 var(--f-num); color: var(--ink3); }
body.club .btn-report img { display: none; }

/* ---------- Hoja de ruta del alta (Código · Tus datos · Email · Strava · Alias) ---------- */
.ruta { display: grid; grid-template-columns: repeat(5, 1fr); margin: 14px -4px 4px; position: relative; padding: 0; list-style: none; }
.ruta::before { content: ""; position: absolute; left: 10%; right: 10%; top: 13px; border-top: 2px dashed var(--line); }
.ruta li { position: relative; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink3); line-height: 1.15; }
.ruta i { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 5px; border-radius: 50%; background: var(--paper);
    box-shadow: inset 0 0 0 2px var(--line); font: 800 13px/1 var(--f-num); font-style: normal; color: var(--ink3); }
.ruta .done i { background: var(--topo); box-shadow: none; color: #fff; }
.ruta .done { color: var(--ink2); }
.ruta .now i { background: var(--ink); box-shadow: none; color: #fff; }
.ruta .now { color: var(--ink); }
.ruta .strava.now i { background: var(--strava); }

/* ---------- Dorsal (pantalla Reto) ---------- */
.bib { position: relative; margin-top: 16px; background: var(--sheet); border-radius: 6px; overflow: hidden; }
.bib[hidden] { display: none; }
.bib-band { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 40px; background: var(--club); color: #fff;
    font: 800 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.bib-band span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bib-hole { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px #C9C5B8; }
.bib-hole.tl { top: 8px; left: 12px; } .bib-hole.tr { top: 8px; right: 12px; } .bib-hole.bl { bottom: 8px; left: 12px; } .bib-hole.br { bottom: 8px; right: 12px; }
.bib-main { padding: 16px 20px 6px; text-align: center; }
.bib-alias { font: 900 38px/.95 var(--f-display); font-stretch: 120%; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bib-cat { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-weight: 700; color: var(--ink2); font-size: 15px; }
.bib-pts { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }  /* «PUNTOS» debajo: el número queda centrado */
.bib-pts b { font: 900 58px/1 var(--f-display); font-stretch: 112%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bib-pts > span { font: 800 13px/1 var(--f-display); letter-spacing: .2em; color: var(--ink2); }
.bib-tear { position: relative; margin: 14px 0 0; border-top: 2px dashed var(--line); }
.bib-tear::before, .bib-tear::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.bib-tear::before { left: -8px; } .bib-tear::after { right: -8px; }
.split { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 8px 16px; }
/* Franja de abajo: el nombre del club, con los dos agujeros */
.bib-band-b { padding: 8px 40px; font-size: 12px; }
.split div { text-align: center; padding: 0 4px; min-width: 0; }
.split div + div { border-left: 1.5px dashed var(--line2); }
.split b { display: block; font: 800 19px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.split span { display: block; font-size: 12px; font-weight: 700; color: var(--ink2); margin-top: 3px; }
.split .bonus b { color: var(--topo); }
.split i { display: block; height: 4px; margin: 6px auto 0; border-radius: 2px; background: var(--club); opacity: .85; }
.bib-note { text-align: center; font-size: 13px; color: var(--ink2); margin: -16px 0 18px; }

/* ---------- Perfil: filas, bloque Strava y baja ---------- */
.rows { background: var(--sheet); border-radius: var(--r); margin-top: 10px; }
.rows[hidden] { display: none; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 14px; border: 0; border-bottom: 1.5px dashed var(--line2);
    background: none; font: 700 16px/1.2 var(--f-text); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.rows > .row:last-child, .rows > :not([hidden]):last-of-type { border-bottom: 0; }
.row[hidden] { display: none !important; }
.row svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.row .go { margin-left: auto; color: var(--ink3); font-weight: 400; font-size: 20px; }
.row.is-god svg { stroke: var(--topo); }
details.strava-blk { background: var(--sheet); border-radius: var(--r); margin-top: 10px; padding: 0 14px; box-shadow: inset 4px 0 0 var(--strava); }
details.strava-blk[hidden] { display: none; }
details.strava-blk > summary { min-height: 56px; display: flex; align-items: center; gap: 8px; font: 800 17px/1.2 var(--f-display); cursor: pointer; }
details.strava-blk > summary::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--strava); flex: 0 0 auto; }
details.strava-blk p { margin: 0 0 10px; color: var(--ink2); font-size: 14px; }
details.strava-blk .rh-btn { margin-bottom: 10px; }
.btn-leave { display: block; width: 100%; min-height: 48px; margin-top: 14px; border: 0; background: none; color: var(--red); font: 700 15.5px/1.2 var(--f-text); cursor: pointer; }
.btn-leave[hidden] { display: none; }
/* Lo que se mueve al menú al pie o a las filas del Perfil */
body.club .profile-tabs, body.club .corner-actions, body.club #btnAgenda, body.club #btnRoadbook, body.club #stravaManage,
body.club .corner-link, body.club #profileTop, body.club #profileBottom { display: none !important; }
body.club .profile-footer { justify-content: center; margin-top: 14px; }

/* Plegables con cuña azul */
body.club details > summary { list-style: none; }
body.club details > summary::-webkit-details-marker { display: none; }

/* Diálogos */
body.club .result-dialog, body.club .agenda-dialog { border-radius: 6px; border: 0; }
body.club .result-title { font: 800 21px/1.2 var(--f-display); }

/* ---------- Permisos de Strava ---------- */
body.club .scopes-container { padding-top: 6px; }
body.club .scopes-title { font: 800 26px/1.1 var(--f-display); font-stretch: 108%; text-align: left; margin: 18px 0 4px; }
body.club .scopes-lead, body.club .scopes-note { text-align: left; color: var(--ink2); }
body.club .strava-mock { border-radius: var(--r); box-shadow: none; border: 0; }

/* ---------- Mis actividades ---------- */
body.club .badge-container { display: none; }
body.club .summary { display: none; }
body.club .act-filter { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1.5px solid var(--line); margin: 18px 0 4px; overflow: visible; background: none; padding: 0; }
body.club .act-filter-btn { border: 0; border-radius: 0; background: none; padding: 12px 0 10px; min-height: 44px; font: 700 15px/1 var(--f-text); color: var(--ink2);
    border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; box-shadow: none; }
body.club .act-filter-btn[aria-pressed="true"] { color: var(--ink); background: none; border-bottom-color: var(--ink); }
body.club .table-data { width: 100%; border-collapse: collapse; background: var(--sheet); border-radius: var(--r); margin-top: 10px; box-shadow: none; border: 0; }
body.club .table-data { table-layout: fixed; }
body.club .table-data thead { display: none; }
body.club .table-data td.cell-puntos { width: 70px; }
body.club .table-data tr, body.club .row-even, body.club .row-odd { background: none; }
body.club .table-data td { border: 0; border-bottom: 1.5px dashed var(--line2); padding: 12px 6px; vertical-align: middle; background: none; }
body.club .table-data tr:last-child td { border-bottom: 0; }
body.club .table-data td:first-child { padding-left: 14px; width: 58px; }
body.club .table-data td:last-child { padding-right: 14px; }
body.club .cell-main { font: 700 13px/1.15 var(--f-num); color: var(--ink2); text-align: center; }
body.club .act-date-d { display: block; font: 800 22px/1 var(--f-display); font-stretch: 105%; color: var(--ink); }
body.club .act-date-m { display: block; font: 700 11.5px/1 var(--f-text); color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
body.club .act-name { font: 700 16px/1.25 var(--f-text); color: var(--ink); overflow-wrap: anywhere; }
body.club .act-type { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: 13px; color: var(--ink2); }
body.club .act-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 3px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
body.club .act-tag.fijo { background: var(--club); color: #fff; }
body.club .act-tag.carrera { background: var(--ink); color: #fff; }
body.club .act-tag.libre { background: var(--line2); color: var(--ink); }
body.club .act-gps, body.club .act-repeated { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 3px; font-size: 12px; font-weight: 800; border: 0; }
body.club .act-gps-ok { background: var(--topo-tint); color: #1D4D37; }
body.club .act-gps-partial { background: #FFF1D6; color: #7A4B00; }
body.club .act-gps-none { background: #FDECEA; color: #7A1A12; }
body.club .act-repeated { background: var(--line2); color: var(--ink2); }
body.club .act-strava { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 800; color: var(--strava-dark); text-decoration: none; }
body.club .cell-puntos { font: 700 16px/1 var(--f-display); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); white-space: nowrap; }
body.club .cell-empty { text-align: center; color: var(--ink2); padding: 22px 14px; }
body.club .powered-strava { display: flex; justify-content: center; padding: 18px 0 4px; }
body.club .powered-strava img { width: 190px; height: auto; }
body.club #state-error { background: var(--sheet); border-radius: var(--r); padding: 14px; margin-top: 16px; }

/* ---------- Agenda: las tarjetas de siempre con la piel del dorsal ---------- */
body.club .agenda-head { margin-top: 14px; }
body.club .agenda-heading { font: 800 15px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
/* «Añadir» con la esquina doblada (la etiqueta «Nuevo track» del rutómetro, en tinta) */
body.club .rh-btn.agenda-add-top { width: auto; min-height: 44px; padding: 0 16px 0 12px; background: var(--ink); color: #fff; box-shadow: none; font-size: 15px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); border-radius: var(--r) 0 var(--r) var(--r); }
body.club .agenda-filter { background: none; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 0; gap: 20px; }
body.club .agenda-filter-btn { border: 0; border-radius: 0; background: none; padding: 12px 0 10px; min-height: 44px; font: 700 15px/1 var(--f-text); color: var(--ink2);
    border-bottom: 3px solid transparent; margin-bottom: -1.5px; box-shadow: none; }
body.club .agenda-filter-btn[aria-pressed="true"] { color: var(--ink); background: none; border-bottom-color: var(--ink); box-shadow: none; }
body.club .agenda-filter-new { border-radius: 999px; padding: 0 12px; min-height: 40px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); border: 0; margin: 0; color: var(--ink); font-weight: 800; }
body.club .agenda-filter-new[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
body.club .agenda-fold { color: #1560BD; font-weight: 700; }
body.club .agenda-month-title { font: 800 15px/1 var(--f-display); font-stretch: 108%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); min-height: 48px; }
body.club .agenda-month-title .num { font: 600 12.5px/1 var(--f-num); letter-spacing: 0; text-transform: none; color: var(--ink2); }
/* La columna del club es de 480 px: siempre una tarjeta por fila (en escritorio rh-forms pone dos columnas) */
body.club .card-wide .agenda-monthgroup > .agenda-list, body.club .card-wide .dup-box > .agenda-list { display: flex; flex-direction: column; gap: 10px; }
/* Borde fino neutro (v5.2.0): sobre el papel punteado, cada tarjeta se ve dónde empieza y acaba (sin color ni sombra) */
body.club .agenda-item { position: relative; overflow: hidden; background: var(--sheet); border: 1.5px solid var(--line); border-radius: 6px; box-shadow: none; padding: 14px 14px 4px; font-size: 14.5px; color: var(--ink); }
body.club .agenda-item.is-past { background: #F8F7F3; border-color: var(--line2); }
/* Evento al que se llega por enlace (agenda?evento=<id>, v5.2.0): marco en el color del club que se queda, y al
   llegar un destello de fondo y dos latidos del marco. Mismo trato para la casilla del boletín (profile?foco=boletin). */
body.club .agenda-item.is-target { border-color: var(--club); box-shadow: 0 0 0 3px var(--club-tint); scroll-margin: 90px 0 90px; }
body.club .input-group.is-target { border-radius: var(--r); background: var(--club-tint); box-shadow: 0 0 0 10px var(--club-tint), 0 0 0 11.5px var(--club); scroll-margin: 90px 0 90px; }
body.club .agenda-item.is-arrived { animation: rh-arrive-card 2.4s ease-out 1; }
body.club .input-group.is-arrived { animation: rh-arrive-row 2.4s ease-out 1; }
@keyframes rh-arrive-card {
    0%, 30%, 60% { background: var(--club-tint); box-shadow: 0 0 0 7px var(--club-tint); }
    15%, 45% { box-shadow: 0 0 0 3px var(--club-tint); }
    100% { background: var(--sheet); box-shadow: 0 0 0 3px var(--club-tint); }
}
@keyframes rh-arrive-row {
    0%, 30%, 60% { box-shadow: 0 0 0 10px var(--club-tint), 0 0 0 14px var(--club); }
    15%, 45%, 100% { box-shadow: 0 0 0 10px var(--club-tint), 0 0 0 11.5px var(--club); }
}
@media (prefers-reduced-motion: reduce) {
    body.club .agenda-item.is-arrived, body.club .input-group.is-arrived { animation: none; }
}
body.club .agenda-notfound { margin: 0 0 12px; }
body.club .agenda-ribbon { top: 17px; right: -36px; width: 132px; padding: 4px 0; font: 800 10.5px/1 var(--f-display); letter-spacing: .14em; box-shadow: none; }
body.club .agenda-ribbon.is-race { background: var(--club); }
body.club .agenda-ribbon.is-meetup { background: var(--topo); }
/* Cuadro de fecha tipo calendario: el de producción (rh-forms.css), sin cambios */
body.club .agenda-title, body.club a.agenda-title[href] { font: 800 18.5px/1.2 var(--f-display); font-stretch: 104%; color: var(--ink); text-decoration: none; }
body.club .agenda-title .ext { color: var(--ink3); }
body.club .agenda-meta { font-size: 14.5px; color: var(--ink2); }
body.club .agenda-location-link { color: #1560BD; font-weight: 600; text-decoration: none; }
body.club .agenda-reg { border: 0; border-radius: var(--r); padding: 8px 12px 8px 14px; font-size: 14px; font-weight: 700;
    --c: #1560BD; --bg: #E6EEF9; --t: #123B6D; box-shadow: inset 4px 0 0 var(--c); background: var(--bg); color: var(--t); }
body.club .agenda-reg.is-open { --c: #2E7A57; --bg: #E3F1E8; --t: #1D4D37; }
body.club .agenda-reg.is-closed { --c: #B42318; --bg: #FDECEA; --t: #7A1A12; }
body.club .agenda-reg.is-past { --c: #8A93A3; --bg: #ECEBE6; --t: #4D5C70; }
body.club .agenda-desc { font-size: 14.5px; color: var(--ink2); line-height: 1.45; }
/* «¿Te interesa?» / «¿Te apuntas?»: dos filas a todo el ancho, con el recuento y el ojo dentro */
body.club .agenda-marks { display: grid; grid-template-columns: 1fr; gap: 6px; }
body.club .agenda-mark-cell { position: relative; display: block; }
body.club .agenda-mark { width: 100%; min-height: 50px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 48px 4px 12px;
    border: 0; border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: none; font: 800 15.5px/1.15 var(--f-text); text-align: left; }
body.club .agenda-mark .lbl { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; }
body.club .agenda-mark .cnt { margin-left: auto; }
body.club .agenda-mark .ico { width: 22px; height: 22px; }
body.club .agenda-mark .cnt { font: 600 13.5px/1 var(--f-text); color: var(--ink2); }
body.club .agenda-mark.is-active { background: var(--ink); color: #fff; }
body.club .agenda-mark.is-active .cnt { color: #C9D1DF; }
body.club .agenda-mark:disabled { opacity: .75; }
body.club .agenda-eye { position: absolute; right: 4px; bottom: auto; top: 50%; padding: 0; transform: translateY(-50%); width: 40px; height: 44px; border: 0; background: none; color: var(--ink);
    display: grid; place-items: center; box-shadow: none; border-radius: var(--r); }
body.club .agenda-mark-cell:has(.agenda-mark.is-active) .agenda-eye { color: #fff; }
body.club .agenda-eye svg { width: 20px; height: 20px; }
body.club .agenda-actions { min-height: 48px; font-size: 13.5px; color: var(--ink2); }
body.club .agenda-share { color: #128C4B; font-weight: 800; min-height: 44px; }
body.club .agenda-actions .link-btn { color: var(--ink); font-weight: 800; min-height: 44px; }
body.club .agenda-actions .link-danger { color: var(--red); }
body.club #btnNew { margin-top: 14px; }
/* El perfil está en el menú al pie */
body.club #lnkProfile, body.club #lnkProfileTop { display: none !important; }
body.club.has-tabs #pageFooter:not(:has(#lnkLogin:not([style*="none"]))) { display: none !important; }
body.club .dup-box { border: 0; border-radius: var(--r); box-shadow: inset 4px 0 0 #E8691C; background: #FFF4E5; color: #7A3E00; }
body.club .agenda-dialog-title { font: 800 21px/1.15 var(--f-display); }
body.club .agenda-dialog-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; counter-reset: p; }
body.club .agenda-dialog-list li { min-height: 36px; display: flex; align-items: center; gap: 8px; border-bottom: 1.5px dashed var(--line2); font-size: 15px; counter-increment: p; }
body.club .agenda-dialog-list li::before { content: counter(p); font: 600 12.5px/1 var(--f-num); color: var(--ink3); width: 20px; }
body.club .agenda-dialog-list li.agenda-dialog-empty { grid-column: 1 / -1; font-style: italic; color: var(--ink2); }
body.club .agenda-dialog-list li.agenda-dialog-empty::before { content: none; }

body.club .act-sub { margin: 0 0 4px; color: var(--ink2); font-size: 14.5px; }
/* Mis actividades (v5.2.3): una línea fina de resumen en vez del dorsal; la lista es la protagonista */
.act-line { margin: 2px 0 0; color: var(--ink2); font-size: 15px; }
.act-line b { font: 700 15px/1 var(--f-num); color: var(--ink); font-variant-numeric: tabular-nums; }
.act-line[hidden] { display: none; }
/* Últimas actividades bajo el dorsal */
.last-acts { list-style: none; margin: 0; padding: 0 14px; background: var(--sheet); border-radius: var(--r); }
.last-acts li { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1.5px dashed var(--line2); }
.last-acts li:last-child { border-bottom: 0; }
.la-date { flex: 0 0 40px; text-align: center; }
.la-date b { display: block; font: 800 22px/1 var(--f-display); font-stretch: 105%; }
.la-date span { display: block; font: 700 11.5px/1 var(--f-text); color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.la-main { flex: 1; min-width: 0; }
.la-name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-type { display: block; font-size: 13px; color: var(--ink2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-pts { font: 700 16px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Decimales de los puntos: más pequeños y en gris, para que la coma no destaque */
.pts-dec { font-size: .8em; font-weight: 600; color: var(--ink3); }
#reportSlot .rh-btn { margin-top: 12px; }
/* «Ver el ranking»: secundario, con el color del club (el naranja es de Strava) */
body.club .btn-ranking, body.club .btn-ranking:hover { color: var(--club); box-shadow: inset 0 0 0 2px var(--club); text-decoration: none; }
body.club .btn-ranking[hidden] { display: none; }
#reportSlot .btn-ranking { margin-top: 10px; }
body.club #panelChallenge > .tab-note { margin-top: 14px; }

@media (max-width: 360px) {
    .bib-alias { font-size: 32px; }
    .bib-pts b { font-size: 54px; }
    .club-tabs a, .club-tabs button { font-size: 11.5px; }
}

/* ---------- Escritorio (como el rutómetro): menú a la izquierda, columna más ancha y agenda en varias columnas ---------- */
@media (min-width: 900px) {
    body.club.has-tabs { padding-left: 112px; }
    .club-tabs { top: 0; right: auto; width: 96px; flex-direction: column; justify-content: flex-start; padding: 18px 8px; }
    .club-tabs a, .club-tabs button { flex: 0 0 auto; width: 100%; max-width: none; min-height: 68px; }
    body.club .report-wrapper { max-width: none; }
    body.club .card, body.club .report-card { max-width: 860px; padding-left: 24px; padding-right: 24px; }
    body.club.has-tabs .card, body.club.has-tabs .report-card { padding-bottom: 40px; }
    body.club .club-bar { margin: 0 -24px; padding: 12px 24px; }
    body.club .card.card-wide { max-width: 1180px; }
    body.club .card-wide .agenda-monthgroup > .agenda-list, body.club .card-wide .dup-box > .agenda-list {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
    body.club .card-wide .agenda-form, body.club .card-wide .agenda-empty { max-width: 560px; margin-left: auto; margin-right: auto; }
    body.club .agenda-tools { justify-content: flex-start; gap: 20px; }
    body.club .agenda-fold { margin-left: auto; }
}

/* ==========================================================================
   Mi cuenta (account.html, <body class="club acct-page">): la misma piel, sin cabecera ni menú del club
   ========================================================================== */
body.acct-page .card { padding-top: 14px; }
body.acct-page .acct-back { min-height: 44px; margin: 0; padding: 0; color: var(--ink); font: 700 15px/1 var(--f-text); }
body.acct-page .rb-lang-menu.acct-lang { top: 14px; right: 16px; }
body.acct-page .rb-lang-menu summary { border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--sheet); color: var(--ink); min-height: 40px; }
body.acct-page .rb-lang-menu ul { border: 0; border-radius: var(--r); box-shadow: 0 0 0 1.5px var(--line), 0 10px 24px rgba(14, 23, 48, .12); }
body.acct-page .rb-lang-menu button[aria-current] { color: var(--ink); }
body.acct-page #output h2 { margin-top: 8px; }
body.acct-page .acct-back[hidden] + .rb-lang-menu + .page-loading + .header-status #output h2 { margin-top: 18px; }
/* Quién soy: nombre grande y el correo debajo, a la izquierda */
body.acct-page .acct-who { align-items: flex-start; text-align: left; margin: 0 0 2px; padding-right: 0; }
body.acct-page .acct-who-name { font: 800 21px/1.2 var(--f-display); font-stretch: 104%; color: var(--ink); }
body.acct-page .acct-who-mail { font-size: 14.5px; color: var(--ink2); }
body.acct-page .acct-edit-open { text-align: left; margin: 0 0 14px; }
body.acct-page .acct-edit-open .link-btn { margin: 0; padding: 0; min-height: 40px; font-size: 14.5px; color: #1560BD; text-decoration: none; }
body.acct-page .acct-god-link { justify-content: flex-start; margin: 0 0 22px; }
body.acct-page .acct-god-pill { min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r); background: var(--ink); box-shadow: none; font: 800 14.5px/1 var(--f-text); gap: 8px; }
body.acct-page .acct-god-pill:hover { background: var(--ink); filter: brightness(1.25); }
/* Formulario de cambiar nombre o correo: hoja blanca */
body.acct-page .acct-edit { padding: 14px; border: 0; border-radius: var(--r); background: var(--sheet); }
body.acct-page .acct-edit-actions { justify-content: flex-start; }
body.acct-page .acct-edit-actions .rh-btn { padding: 0 22px; min-height: 48px; }
body.acct-page .mail-field input[readonly] { background: var(--paper); color: var(--ink2); }
body.acct-page .mail-edit { color: var(--ink); border-radius: var(--r); }
body.acct-page .acct-edit .subtitle.mail-warn { border: 0; border-radius: var(--r); background: #FFF6E0; box-shadow: inset 4px 0 0 #C98A00; color: #6B4A00; }
/* Secciones: etiqueta y lista en hoja blanca con filas separadas por raya discontinua (como «Últimas actividades») */
body.acct-page .acct-section { margin: 0 0 22px; }
body.acct-page .acct-section h3 { font: 800 12.5px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin: 0 0 8px; }
body.acct-page .acct-list { display: block; padding: 0 14px; background: var(--sheet); border-radius: var(--r); }
body.acct-page .acct-item { flex-wrap: wrap; min-height: 72px; padding: 12px 0; border: 0; border-bottom: 1.5px dashed var(--line2); border-radius: 0; background: none; box-shadow: none; }
body.acct-page .acct-item:last-child { border-bottom: 0; }
body.acct-page .acct-item-name { font: 800 17.5px/1.2 var(--f-display); font-stretch: 104%; color: var(--ink); }
body.acct-page .acct-item-sub { font-size: 14px; color: var(--ink2); }
body.acct-page .acct-item-tags { margin-top: 6px; }
body.acct-page .acct-tag { padding: 3px 7px; border-radius: 3px; background: var(--club-tint); color: var(--club); font: 800 11.5px/1 var(--f-text); letter-spacing: .02em; }
body.acct-page .acct-tag.pending { background: #FFF6E0; color: #6B4A00; }
body.acct-page .acct-item .rh-btn { min-width: 92px; min-height: 44px; padding: 0 16px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
body.acct-page .acct-invite { padding: 12px 0; border-bottom: 1.5px dashed var(--line2); }
body.acct-page .acct-invite:last-child { border-bottom: 0; }
body.acct-page .acct-invite-form .rh-btn { min-height: 48px; }
body.acct-page .acct-cinta { border-radius: var(--r); background: var(--club-tint); box-shadow: inset 4px 0 0 var(--club); color: var(--ink); font-size: 14.5px; }
body.acct-page .acct-empty { color: var(--ink2); font-size: 14.5px; }
body.acct-page #accountBox > .login-register { margin-top: 8px; text-align: center; }
body.acct-page .login-register .link-btn { min-height: 44px; font-size: 14.5px; }
body.acct-page .acct-danger { border-top: 1.5px solid var(--line); }
body.acct-page .acct-danger p { color: var(--ink2); font-size: 14.5px; }
body.acct-page .terms-note { color: var(--ink2); font-size: 13.5px; text-align: left; }
body.acct-page .terms-note a { color: var(--ink); }
body.acct-page .captcha-container { margin-top: 14px; }
/* Servicio con pago (dos periodos): el texto arriba y los dos botones debajo, a lo ancho */
body.acct-page .acct-item:has(> .rh-btn + .rh-btn) .acct-item-main { flex: 1 1 100%; }
body.acct-page .acct-item > .rh-btn + .rh-btn, body.acct-page .acct-item:has(> .rh-btn + .rh-btn) > .rh-btn { flex: 1 1 200px; min-height: 52px; padding: 6px 12px; white-space: normal; line-height: 1.25; }
body.acct-page #output h2 { margin-bottom: 14px; }
body.acct-page .card.card-wide { max-width: 860px; }
body.acct-page .acct-edit-open { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 900px) {
    body.acct-page .card { padding-top: 22px; }
    body.acct-page .rb-lang-menu.acct-lang { right: 24px; top: 22px; }
    body.acct-page .acct-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
    body.acct-page .acct-cols.acct-solo { grid-template-columns: minmax(0, 1fr); }
    body.acct-page .acct-solo .acct-list { display: block; }
    body.acct-page .acct-edit { max-width: 560px; }
    body.acct-page #accountBox > .login-register { text-align: left; }
}

/* Decimales dentro del dorsal (no heredan las etiquetas «PUNTOS» ni «Libres») */
.bib-pts b { position: relative; }
/* Los decimales cuelgan a la derecha sin contar para el centrado: el número entero queda en el centro */
.bib-pts b .pts-dec { position: absolute; left: 100%; bottom: .22em; font: 800 .42em/1 var(--f-display); letter-spacing: 0; color: var(--ink3); }
.split b .pts-dec { display: inline; margin: 0; font: 700 .72em/1 var(--f-display); letter-spacing: 0; color: var(--ink3); }
