/* ==============================================================
   TRAIL CAÑARI - ESTILOS DEPORTIVOS DE ALTO RENDIMIENTO
   Paleta: Trail Orange (#ff5500), Charcoal, Amber & Blanco Puro
   Soporte Integral para Modo Claro y Modo Oscuro
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-orange: #ff5500;
    --brand-orange-hover: #e04400;
    --brand-amber: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
html.dark ::-webkit-scrollbar-track {
    background: #090b0e;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #262c38;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-orange);
}

/* Typography Utility Classes */
.font-bebas {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
}

.font-oswald {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.02em;
}

/* Brand Colors */
.text-brand-orange {
    color: var(--brand-orange);
}

.bg-brand-orange {
    background-color: var(--brand-orange);
}

.border-brand-orange {
    border-color: var(--brand-orange);
}

/* Custom Cursor Follower */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--brand-orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255, 85, 0, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-hover .custom-cursor-ring {
    width: 52px;
    height: 52px;
    border-color: var(--brand-orange);
    background-color: rgba(255, 85, 0, 0.14);
}

.cursor-hover .custom-cursor-dot {
    width: 4px;
    height: 4px;
}

/* Card & Surface Defaults */
.card-surface {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    transition: all 0.25s ease;
}

html.dark .card-surface {
    background-color: #11141b;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #f8fafc;
}

/* Feature card hover */
.feature-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 85, 0, 0.45);
    box-shadow: 0 12px 30px -5px rgba(255, 85, 0, 0.15);
}

html.dark .feature-card:hover {
    border-color: rgba(255, 85, 0, 0.5);
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 85, 0, 0.2);
}

/* Countdown Card */
.countdown-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff5500, #f59e0b);
}

html.dark .countdown-box {
    background: rgba(17, 20, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

html.dark .countdown-box::before {
    background: linear-gradient(90deg, transparent, #ff5500, transparent);
}

/* Modality Tabs */
.modality-tab {
    transition: all 0.25s ease;
    cursor: pointer;
}

.modality-tab.active {
    background: linear-gradient(135deg, #ff5500 0%, #ea580c 100%);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(255, 85, 0, 0.4);
}

/* Event Section Tabs (Image 3 Style) */
.event-main-tab {
    transition: all 0.25s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.event-main-tab.active {
    border-color: #ff5500;
    color: #ff5500 !important;
    font-weight: 700;
}

/* Elevation SVG Profile */
.elevation-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s ease forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Stats Pill Container */
.stats-pill-container {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
}

html.dark .stats-pill-container {
    background: #11141b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* Pulsing Badge */
@keyframes pulseBadge {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

.pulse-badge {
    animation: pulseBadge 3s infinite ease-in-out;
}

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
