/* ======================================================
   CRC SYSTEM - New Home Design
   ====================================================== */

body { font-family: 'Inter', sans-serif; }

/* ─── Navbar ─────────────────────────────────────────── */
#menu-home {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
#menu-home.scrolled {
    background-color: #0f172a;
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.menu-home__link {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.menu-home__link:hover { color: #f97316; border-bottom-color: #f97316; }

.menu-home__btn-primary {
    background-color: #f97316;
    color: white !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1.2rem;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.15s;
    display: inline-block;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.menu-home__btn-primary:hover { background-color: #c2620d; transform: translateY(-1px); }

.menu-home__btn-outline {
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    display: inline-block;
}
.menu-home__btn-outline:hover {
    color: white;
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.05);
}

/* ─── Hero stat cards ────────────────────────────────── */
.hero-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.hero-stat-card:hover { transform: translateY(-4px); border-color: rgba(249,115,22,0.4); }

.hero-stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 2.6rem;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
    display: inline;
}
.hero-stat-plus {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #f97316;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.66rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.45rem;
    margin-bottom: 0;
    font-weight: 600;
}

@keyframes statPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.hero-stat-card.appeared .hero-stat-number { animation: statPop 0.35s ease; }

/* ─── Section typography ─────────────────────────────── */
.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f97316;
    display: block;
    margin-bottom: 0.5rem;
}
.section-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    color: #0f172a;
}
.section-headline--light { color: #ffffff; }
.orange-line {
    display: block;
    width: 48px;
    height: 4px;
    background: #f97316;
    border-radius: 2px;
}

/* ─── Discipline chips ───────────────────────────────── */
.disc-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    min-width: 88px;
    background: white;
    cursor: default;
    transition: all 0.25s ease;
}
.disc-chip:hover {
    border-color: #f97316;
    box-shadow: 0 8px 24px rgba(249,115,22,0.15);
    transform: translateY(-5px);
}
.disc-chip svg {
    width: 34px;
    height: 34px;
    color: #f97316;
    margin-bottom: 0.5rem;
    transition: transform 0.25s ease;
}
.disc-chip:hover svg { transform: scale(1.18); }
.disc-chip span {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569;
    text-align: center;
    line-height: 1.2;
}

/* ─── Event cards ────────────────────────────────────── */
.ecard {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.ecard:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.ecard__img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #1e293b;
    flex-shrink: 0;
}
.ecard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.ecard__img iframe { width: 100%; height: 100%; border: none; }
.ecard:hover .ecard__img img { transform: scale(1.06); }

.ecard__date-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f97316;
    color: white;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}
.ecard__closed {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 2rem 1rem 0.7rem;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}
.ecard__body {
    padding: 1.2rem 1.2rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ecard__name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
.ecard__name:hover { color: #f97316; }
.ecard__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.7rem;
    font-weight: 500;
}
.ecard__location svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}
.ecard__btn-cta svg,
.ecard__btn-sec svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}
.ecard__desc {
    font-size: 0.81rem;
    color: #94a3b8;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.ecard__actions { display: flex; gap: 0.5rem; margin-top: auto; }

.ecard__btn-cta {
    flex: 1;
    background: #f97316;
    color: white !important;
    border: none;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}
.ecard__btn-cta:hover { background: #c2620d; color: white !important; }

.ecard__btn-sec {
    background: #f1f5f9;
    color: #475569 !important;
    border: none;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}
.ecard__btn-sec:hover { background: #e2e8f0; color: #1e293b !important; }

/* ─── Fade-up animation ──────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Gradient hero text ─────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Hero CTA buttons ───────────────────────────────── */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f97316;
    color: white !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.hero-btn-primary:hover {
    background: #c2620d;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
}
.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    color: white !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    text-decoration: none !important;
    transition: border-color 0.2s, background-color 0.2s;
}
.hero-btn-outline:hover {
    border-color: #f97316;
    background: rgba(249,115,22,0.1);
    color: white !important;
}

/* ─── MTB Feature badge ──────────────────────────────── */
.mtb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249,115,22,0.12);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f97316;
}


/* ══════════════════════════════════════════════════════════
   NEXT EVENT CARD (ned-*)
   Sección countdown al próximo evento — home page
   ══════════════════════════════════════════════════════════ */

.ned-section {
    position: relative;
    background-color: #060d18;
    padding: 4rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(249,115,22,0.15);
    border-bottom: 1px solid rgba(249,115,22,0.15);
}

/* Imagen de fondo muy opaca del evento */
.ned-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    filter: blur(4px) saturate(0.5);
    transform: scale(1.05);
}

/* Franja diagonal naranja decorativa — esquina superior derecha */
.ned-diagonal-stripe {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 18px,
        rgba(249,115,22,0.03) 18px,
        rgba(249,115,22,0.03) 19px
    );
    pointer-events: none;
}

/* Línea naranja vertical izquierda */
.ned-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, #f97316 30%, #f97316 70%, transparent);
}

.ned-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .ned-container { padding-inline: 3rem; }
}

/* ─── Eyebrow ─────────────────────────────────────────── */
.ned-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.ned-live-dot {
    width: 8px;
    height: 8px;
    background: #f97316;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ned-live-pulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(249,115,22,0.5);
}

@keyframes ned-live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(249,115,22,0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(249,115,22,0); }
    100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

.ned-eyebrow > span:nth-child(2) {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f97316;
}

.ned-tipo-chip {
    background: rgba(249,115,22,0.12);
    border: 1px solid rgba(249,115,22,0.25);
    color: #f97316 !important;
    font-size: 0.62rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 2px 10px;
    border-radius: 4px;
}

/* ─── Grid 3 columnas ──────────────────────────────────── */
.ned-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .ned-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
    .ned-grid { grid-template-columns: 280px 1fr 280px; gap: 3rem; }
}

/* ─── Col 1: Countdown ─────────────────────────────────── */
.ned-col-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ned-countdown-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #475569;
    margin: 0 !important;
}

.ned-cd-pair {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
}

.ned-countdown { display: flex; flex-direction: column; gap: 0.6rem; }

.ned-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(249,115,22,0.18);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    min-width: 72px;
    position: relative;
    overflow: hidden;
}

/* Línea central tipo flip-clock */
.ned-cd-block::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(249,115,22,0.12);
    transform: translateY(-50%);
}

.ned-digit {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    color: #f97316 !important;
    line-height: 1 !important;
    letter-spacing: 0.02em;
    text-shadow: 0 0 20px rgba(249,115,22,0.4), 0 0 40px rgba(249,115,22,0.15);
    transition: color 0.1s;
}

.ned-digit-secs { color: rgba(249,115,22,0.65) !important; font-size: 2rem !important; }

.ned-cd-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #475569;
    margin-top: 0.2rem;
}

.ned-cd-sep {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: rgba(249,115,22,0.4) !important;
    line-height: 1 !important;
    margin-bottom: 1.4rem;
}

.ned-sep-blink { animation: ned-blink 1s step-end infinite; }

@keyframes ned-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.1; }
}

/* ─── Col 2: Info del evento ────────────────────────────── */
.ned-col-info {}

.ned-nombre {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.05 !important;
    margin: 0 0 0.6rem !important;
    text-transform: uppercase;
}

.ned-orange-bar {
    width: 48px;
    height: 3px;
    background: #f97316;
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.ned-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ned-detail-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.ned-detail-list li svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0;
    color: #f97316;
}

.ned-detail-list li strong { color: #f97316; font-weight: 700; }

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

.ned-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f97316;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(249,115,22,0.35);
}

.ned-btn-primary:hover {
    background: #c2620d;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249,115,22,0.45);
}

.ned-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
    letter-spacing: 0.04em;
}

.ned-btn-secondary:hover { color: #f97316; gap: 0.6rem; }

.ned-inscripciones-cerradas {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─── Col 3: Mapa ──────────────────────────────────────── */
.ned-col-map {}

.ned-map-wrap {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(249,115,22,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

@media (min-width: 1100px) {
    .ned-map-wrap { height: 260px; }
}

.ned-map-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #475569;
    margin: 0.5rem 0 0 !important;
}

.ned-map-label svg { flex-shrink: 0; color: #f97316; }

/* ─── Tira de participantes ────────────────────────────── */
.ned-participants-strip {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.ned-participants-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 1rem;
}

.ned-participants-label svg { color: #f97316; flex-shrink: 0; }

.ned-avatars-overflow {
    overflow: hidden;
    /* Fade suave en los bordes */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.ned-avatars-track {
    display: flex;
    gap: 0.6rem;
    width: max-content;
    animation: ned-scroll-avatars 28s linear infinite;
}

/* Pausa al hover para que el usuario pueda ver cada cara */
.ned-avatars-overflow:hover .ned-avatars-track {
    animation-play-state: paused;
}

@keyframes ned-scroll-avatars {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ned-avatar-item {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(249,115,22,0.3);
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    cursor: default;
}

.ned-avatar-item:hover {
    transform: scale(1.18) translateY(-3px);
    border-color: #f97316;
    z-index: 2;
}

.ned-avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ned-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,0.85) !important;
    letter-spacing: 0;
    border-radius: 50%;
}
