/* ==============================================================================
   PROYECTO: Malafollas On the Road (malafollasontheroad.es)
   SISTEMA DE DISEÑO PRO SPORT: Cicloturismo de Alforjas & Grandes Travesías en Bicicleta
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=JetBrains+Mono:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Syne:wght@700;800;900&display=swap');

/* Variables y Tokens de Color Deportivos Pro */
:root {
    --color-volt: #ccff00;        /* High-Vis Racing Volt / Neon */
    --color-volt-hover: #bbf400;
    --color-orange: #ff5500;      /* Hyper Blaze Orange */
    --color-cyan: #00f0ff;        /* Telemetry Cyan */
    --color-carbon-950: #06080d;  /* Deep Matte Carbon */
    --color-carbon-900: #0c1017;  /* Chassis Background */
    --color-carbon-850: #121822;  /* Cockpit Card Surface */
    --color-carbon-800: #1a2230;  /* Structural Lines */
    --color-carbon-700: #2a364a;
}

/* Tipografía y renderizado suave */
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-carbon-950);
}

/* Utilidades Tipográficas Deportivas */
.font-athletic {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.font-telemetry {
    font-family: 'JetBrains Mono', monospace;
    font-feature-settings: "tnum" 1;
}

.font-display {
    font-family: 'Syne', sans-serif;
}

/* Fondos y Texturas Técnicas */
.bg-carbon-950 { background-color: var(--color-carbon-950); }
.bg-carbon-900 { background-color: var(--color-carbon-900); }
.bg-carbon-850 { background-color: var(--color-carbon-850); }
.bg-carbon-800 { background-color: var(--color-carbon-800); }

/* Patrón Técnico / Grid Deportivo */
.tech-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

.carbon-mesh {
    background-color: #080b11;
    background-image: radial-gradient(rgba(204, 255, 0, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Bordes y Glows de Alto Rendimiento */
.glow-volt {
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.25);
}

.glow-volt-sm {
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.35);
}

.glow-orange {
    box-shadow: 0 0 25px rgba(255, 85, 0, 0.3);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

/* Etiquetas Inclinadas / Slanted Badges (Estilo Ciclismo Racing) */
.slant-cut {
    transform: skewX(-12deg);
}

.slant-cut-content {
    transform: skewX(12deg);
}

/* Botón Deportivo Pro con Corte Aerodinámico */
.btn-racing-volt {
    background: linear-gradient(135deg, #ccff00 0%, #a3e635 100%);
    color: #06080d;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-racing-volt:hover {
    background: linear-gradient(135deg, #d8ff26 0%, #ccff00 100%);
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.5);
    transform: translateY(-2px);
}

.btn-racing-dark {
    background: rgba(18, 24, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.btn-racing-dark:hover {
    border-color: #ccff00;
    color: #ccff00;
    background: rgba(26, 34, 48, 0.95);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
    transform: translateY(-2px);
}

/* Barra de Telemetría Ticker (Marquee Continuo) */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-move {
    display: inline-flex;
    animation: ticker 28s linear infinite;
}

.ticker-wrap:hover .ticker-move {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Scrollbar Deportiva Personalizada */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #06080d;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccff00;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==============================================================================
   PERSONALIZACIÓN SWIPER.JS PRO (HERO HUD CAROUSEL)
   ============================================================================== */
.hero-swiper .swiper-pagination-bullet {
    width: 44px;
    height: 4px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 6px !important;
}

.hero-swiper .swiper-pagination-bullet-active {
    width: 64px;
    background: #ccff00 !important;
    box-shadow: 0 0 14px rgba(204, 255, 0, 0.8);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    background: rgba(12, 16, 23, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: #ccff00 !important;
    border-color: #ccff00 !important;
    color: #06080d !important;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.5) !important;
}

.hero-swiper .swiper-button-prev:after,
.hero-swiper .swiper-button-next:after {
    font-size: 15px !important;
    font-weight: 900;
}

.swiper-slide-active .hero-image {
    transform: scale(1.06);
    transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tarjetas de Ruta con Acabado Aerodinámico */
.route-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(180deg, #101520 0%, #0a0e16 100%);
    border: 1px solid #1c2536;
}

.route-card:hover {
    transform: translateY(-6px);
    border-color: #ccff00;
    box-shadow: 0 16px 35px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(204, 255, 0, 0.15);
}

.route-card:hover .route-card-img {
    transform: scale(1.06);
}

/* Animación de Pulso Neon Deportivo */
@keyframes pulse-volt {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.animate-pulse-volt {
    animation: pulse-volt 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Cockpit Metric HUD */
.cockpit-metric {
    background: rgba(6, 8, 13, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.cockpit-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #ccff00;
}

/* Iframes responsive dentro del contenido (Komoot, Strava, YouTube, Wikiloc) */
.prose iframe {
    width: 100%;
    min-height: 440px;
    border-radius: 1rem;
    border: 1px solid #2a364a;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6);
}
