/* ══════════════════════════════════════════════════════════
   MTB 2026 — Ranking page styles
   Depende de: global-new.css (variables y clases base)
══════════════════════════════════════════════════════════ */

/* ── HEADER ──────────────────────────────────────────── */
.m26-header {
    background: #0f172a;
    border-bottom: 3px solid #f97316;
    padding: 7rem 1.5rem 3rem;   /* 7rem top para clearance del navbar fijo */
}

.m26-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
    justify-content: space-between;
}

/* Badge "Temporada activa" */
.m26-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249,115,22,0.12);
    color: #f97316;
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.m26-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #f97316;
    border-radius: 50%;
    animation: m26-pulse 1.5s ease-in-out infinite;
}

@keyframes m26-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

.m26-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.8rem);
    color: #fff;
    line-height: 1.05;
    margin: 0 0 0.75rem;
}

.m26-title span {
    color: #f97316;
}

.m26-next-label {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
}

.m26-next-label strong {
    color: #f97316;
    font-weight: 700;
}

/* Countdown */
.m26-countdown {
    text-align: center;
}

.m26-cd-label {
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.m26-cd-blocks {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.m26-cd-block {
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 0.6rem;
    padding: 0.7rem 0.9rem;
    text-align: center;
    min-width: 3.5rem;
}

.m26-cd-block span {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: #f97316;
    line-height: 1;
}

.m26-cd-block small {
    display: block;
    color: #475569;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

.m26-cd-sep {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #334155;
    line-height: 1;
}


/* ── STATS BAR ───────────────────────────────────────── */
.m26-stats-bar {
    background: #f97316;
    padding: 2rem 1.5rem;
}

.m26-stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.m26-stat {
    text-align: center;
    padding: 0 2.5rem;
    flex: 1;
    min-width: 9rem;
}

.m26-stat-num {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: #fff;
    line-height: 1;
}

.m26-stat-num small {
    font-size: 0.45em;
    opacity: 0.75;
}

.m26-stat-lbl {
    display: block;
    color: rgba(255,255,255,0.82);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

.m26-stat-div {
    width: 1px;
    height: 3.5rem;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .m26-stat-div { display: none; }
    .m26-stat { padding: 0.75rem 1rem; }
}


/* ── LÍDERES ─────────────────────────────────────────── */
.m26-lideres {
    background: #fff;
    padding: 4rem 0;
}

.m26-section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.m26-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.m26-lideres-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #f97316 #f1f5f9;
}

.m26-lideres-scroll::-webkit-scrollbar      { height: 4px; }
.m26-lideres-scroll::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 2px; }
.m26-lideres-scroll::-webkit-scrollbar-thumb { background: #f97316; border-radius: 2px; }

.m26-lider-card {
    flex-shrink: 0;
    width: 195px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 1rem 1.25rem;
    text-align: center;
    scroll-snap-align: start;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.m26-lider-card:hover {
    border-color: #f97316;
    box-shadow: 0 6px 24px rgba(249,115,22,0.15);
    transform: translateY(-4px);
}

.m26-lider-top {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.m26-lider-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f97316;
    display: block;
}

.m26-lider-medal {
    position: absolute;
    bottom: -4px;
    right: -8px;
    font-size: 1.1rem;
    line-height: 1;
}

.m26-lider-cat {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f97316;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.m26-lider-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.m26-lider-city {
    font-size: 0.77rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.m26-lider-pts {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 1rem;
}

.m26-lider-pts span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.m26-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.m26-share-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

/* Flechas de scroll (solo visible en desktop) */
.m26-scroll-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.m26-scroll-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

.m26-scroll-prev { left: -1.25rem; }
.m26-scroll-next { right: -1.25rem; }

@media (min-width: 768px) {
    .m26-scroll-btn { display: flex; }
}


/* ── RANKING ─────────────────────────────────────────── */
.m26-ranking {
    background: #f8fafc;
    padding: 4rem 0 5rem;
}

/* Buscador */
.m26-search-wrap {
    position: relative;
    max-width: 30rem;
    margin-bottom: 1.5rem;
}

.m26-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
}

.m26-search-input {
    width: 100%;
    padding: 0.85rem 3rem 0.85rem 2.9rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: #fff;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.m26-search-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.m26-search-count {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    pointer-events: none;
}

/* Tabs */
.m26-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.m26-tab {
    padding: 0.4rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.m26-tab:hover {
    border-color: #f97316;
    color: #f97316;
}

.m26-tab.active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

/* Leyenda dots */
.m26-dot-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.m26-dot-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Tabla */
.m26-table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
}

.m26-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.m26-table thead th {
    background: #0f172a;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 0.75rem;
    white-space: nowrap;
    border: none;
}

.m26-table thead th:first-child { border-radius: 0; }

.m26-table tbody .m26-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.m26-table tbody .m26-row:last-child { border-bottom: none; }
.m26-table tbody .m26-row:hover { background: #fff7ed !important; }

.m26-table tbody .m26-row.row-gold   { background: #fffbeb; }
.m26-table tbody .m26-row.row-silver { background: #f8fafc; }

.m26-table td {
    padding: 0.7rem 0.75rem;
    vertical-align: middle;
    border: none;
}

.th-pos, .td-pos {
    width: 2.75rem;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
}

.m26-row-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.m26-row-city {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.td-cat {
    color: #64748b;
    font-size: 0.78rem;
    white-space: nowrap;
}

/* Ocultar categoría en mobile (ya visible con el tab activo) */
@media (max-width: 640px) {
    .td-cat { display: none; }
    .th-cat { display: none; }
}

.td-dots { white-space: nowrap; }

.m26-th-fecha {
    display: inline-block;
    width: 1.6rem;
    text-align: center;
    font-size: 0.62rem;
    margin: 0 0.1rem;
}

/* Dots */
.m26-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    margin: 0 0.1rem;
    vertical-align: middle;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: default;
}

.m26-dot.dot-scored {
    background: #f97316;
    color: #fff;
    cursor: pointer;
}

.m26-dot.dot-scored:hover {
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}

.m26-dot.dot-absent {
    background: #e2e8f0;
    color: #94a3b8;
}

.m26-dot.dot-future {
    background: transparent;
    border: 2px dashed #cbd5e1;
    color: #cbd5e1;
}

.td-total {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: #f97316;
    text-align: right;
    white-space: nowrap;
}

.m26-bonus {
    display: block;
    font-size: 0.7rem;
    color: #22c55e;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: right;
    margin-top: 0.1rem;
}

/* No results */
.m26-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}


/* ── CTA ─────────────────────────────────────────────── */
.m26-cta {
    background: #0f172a;
    border-top: 3px solid #f97316;
    padding: 4rem 0;
}

.m26-cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.m26-cta-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    margin: 0.4rem 0 0.5rem;
    line-height: 1.1;
}

.m26-cta-date {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
    text-transform: capitalize;
}

.m26-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.m26-cta-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid #334155;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.m26-cta-share:hover {
    border-color: #f97316;
    color: #f97316;
}


/* ── SCROLL HINT (mobile, posición fija) ─────────────── */
.m26-scroll-hint {
    display: none;              /* JS lo activa */
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 200;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.7rem 0.65rem 0.9rem;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(249,115,22,0.25);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.m26-scroll-hint--visible {
    opacity: 1;
}

.m26-scroll-hint-icon {
    flex-shrink: 0;
    color: #f97316;
    display: flex;
    align-items: center;
}

.m26-scroll-hint-text {
    flex: 1;
    margin: 0;
    font-size: 0.77rem;
    line-height: 1.45;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
}

.m26-scroll-hint-text strong {
    color: #f97316;
}

.m26-scroll-hint-close {
    flex-shrink: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s;
    padding: 0;
}

.m26-scroll-hint-close:hover {
    background: rgba(249,115,22,0.15);
    border-color: rgba(249,115,22,0.4);
    color: #f97316;
}

/* Solo mobile */
@media (min-width: 768px) {
    .m26-scroll-hint { display: none !important; }
}


/* ── TOAST ───────────────────────────────────────────── */
.m26-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: #0f172a;
    color: #f97316;
    border: 1.5px solid #334155;
    border-radius: 0.6rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    white-space: nowrap;
}

.m26-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
