:root {
    --bg-primary: #121214;
    /* Dark Anthracite Gray */
    --accent-color: #ff5e00;
    /* Neon Orange */
    --text-primary: #f0f0f5;
    --text-secondary: #9aa0a6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Compatibility tokens used by other pages/partials */
    --primary-cyan: var(--accent-color);
    --primary-blue: var(--accent-color);
    --light-text: var(--text-primary);
    --secondary-text: var(--text-secondary);
    --muted-text: rgba(154, 160, 166, 0.75);
    --dark-bg: var(--bg-primary);
    --dark-card: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-radius: 16px;
    --transition-speed: 0.25s;
    --copper-orange: var(--accent-color);
    --max-width: 1200px;
    --container-padding: 24px;

    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

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

html {
    scroll-behavior: smooth;
}

/* Landing page only (inicio): snap scrolling */
html.landing {
    scroll-snap-type: y mandatory;
}

body {
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Shared layout helpers for non-landing pages */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

body:not(.landing) .page-content {
    padding-top: 24px; /* navbar spacing handled by header spacer */
    position: relative;
    z-index: 5;
}

/* Brushed metal texture overlay */
.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255, 255, 255, 0.01) 1px, rgba(255, 255, 255, 0.01) 2px),
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 255, 255, 0.005) 1px, rgba(255, 255, 255, 0.005) 2px);
    pointer-events: none;
    z-index: 1;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-left {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.cta-button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.2);
}

.cta-button:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.6);
}

/* Hero Section */
/* Hero behavior is landing-only; other pages should scroll normally */
body.landing .hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Footer (used by public pages) */
.main-footer {
    margin-top: auto;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    position: relative;
    z-index: 5;
}

.main-footer p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.link-secondary {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.link-secondary:hover {
    color: var(--text-primary);
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* Large Background text */
.brand-bg {
    position: absolute;
    top: 35%;
    /* Subido para que la bicicleta no lo tape por completo */
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(6rem, 12vw, 15rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.25);
    /* Un poco más brillante */
    text-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 94, 0, 0.15);
    /* Brillo naranja sutil */
    z-index: 3;
    pointer-events: none;
    letter-spacing: 10px;
}

/* =========================================================
   PRELOADER (PANTALLA DE CARGA)
========================================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    /* #121214 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    letter-spacing: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 94, 0, 0.2);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 94, 0, 0.8);
    }
}

.loader-bar-container {
    width: 250px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff5e00, #ff2a00);
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.8);
    transition: width 0.1s linear;
}

.loader-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Center Three.js Stage */
.bike-container {
    position: relative;
    z-index: 20;
    width: min(92vw, 980px);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.three-stage {
    width: min(92vw, 920px);
    min-height: clamp(360px, 60vh, 560px);
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: radial-gradient(circle at 20% 20%, rgba(255, 94, 0, 0.2), transparent 38%),
        radial-gradient(circle at 75% 85%, rgba(0, 164, 255, 0.14), transparent 42%),
        linear-gradient(145deg, rgba(13, 13, 18, 0.95), rgba(5, 5, 8, 0.98));
    box-shadow: 0 38px 65px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(255, 255, 255, 0.025);
}

.three-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.25;
    pointer-events: none;
}

#mtb-canvas {
    width: 100%;
    height: 100%;
    min-height: clamp(360px, 60vh, 560px);
    display: block;
    position: relative;
    z-index: 2;
}

.stage-overlay {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.overlay-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(12, 12, 16, 0.74);
    color: #f6f7fa;
    letter-spacing: 0.6px;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.tech-tooltip {
    position: fixed;
    max-width: 290px;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 14, 0.94);
    color: #e9ebf3;
    font-size: 0.82rem;
    line-height: 1.5;
    pointer-events: none;
    z-index: 200;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.tech-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legacy reviews card still used on lower sections */
.reviews-panel {
    width: 100%;
    max-width: 520px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 25;
}

.reviews-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--text-primary);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 12, 18, 0.9);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.65rem;
}

.review-star {
    font-size: 1.05rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.25);
    text-shadow: 0 0 10px rgba(255, 94, 0, 0.1);
}

.review-star.filled {
    color: var(--accent-color);
    text-shadow: 0 0 16px rgba(255, 94, 0, 0.35);
}

.review-text {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.65);
}

.review-date,
.review-empty {
    margin-top: 0.6rem;
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Motivational Phrase */
.motivational-phrase {
    position: absolute;
    bottom: 5%;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    z-index: 30;
    opacity: 1;
    transition: opacity 0.3s;
}

.motivational-phrase h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Scroll Animation Sections */
.scroll-sections-container {
    position: relative;
    z-index: 20;
    margin-top: 100vh;
    padding-bottom: 5vh;
}

.landing-cut {
    min-height: 100vh;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.98), rgba(18, 18, 24, 0.99));
    position: relative;
    z-index: 80;
    scroll-snap-align: start;
}

.landing-cut-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.75rem;
}

.landing-cut-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 0.5rem;
}

.landing-cut-header p {
    color: var(--text-secondary);
    max-width: 760px;
    line-height: 1.6;
}

.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.landing-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-top: 0.5rem;
}

.stat-rating {
    color: var(--accent-color);
}

.stat-sub {
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-size: 0.92rem;
}

.stat-stars {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.2rem;
}

.landing-reviews-read {
    margin-top: 0.25rem;
}

.landing-reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.landing-reviews-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
}

.landing-reviews-placeholder {
    flex: 0 0 clamp(6rem, 10vw, 8rem);
    height: 1px;
}

.landing-reviews-read .details-content.reviews-content {
    max-width: 100%;
}

body.landing.cut-active .hero {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.landing.cut-active .navbar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-sections-container .reviews-section {
    position: relative;
    z-index: 40;
    pointer-events: auto;
}

.reviews-page {
    min-height: 100vh;
    padding: clamp(3rem, 7vw, 5rem) 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(9, 9, 12, 0.97) 50%, rgba(16, 16, 22, 0.95) 50%);
    background-size: cover;
    scroll-snap-align: start;
}

.reviews-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 94, 0, 0.08), transparent 40%);
    mix-blend-mode: screen;
    z-index: 1;
}

.reviews-page-inner {
    position: relative;
    z-index: 2;
    width: min(960px, 92vw);
    display: flex;
    justify-content: center;
}

.details-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10vw;
    scroll-snap-align: start;
    /* Locks view onto the text section precisely */
}

.details-content {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

.details-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.details-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Alignments */
.details-content.left {
    margin-right: auto;
    text-align: center;
}

.details-content.right {
    margin-left: auto;
    text-align: center;
}

.details-content.center {
    margin: 0 auto;
    text-align: center;
}

.metrics-panel,
.process-panel,
.reviews-experience-panel {
    max-width: 980px;
    width: min(92vw, 980px);
}

.performance-metrics {
    margin-top: 1.45rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.metric-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 1.05rem;
    background: rgba(11, 11, 16, 0.88);
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.02);
}

.metric-label {
    color: var(--text-secondary);
    letter-spacing: 0.8px;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.metric-value {
    margin-top: 0.6rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3.8vw, 2.7rem);
    font-weight: 800;
}

.process-timeline {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.process-step {
    position: relative;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 1rem 1rem 1rem 2.85rem;
    background: rgba(9, 9, 13, 0.9);
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 94, 0, 0.95);
}

.process-step h3 {
    margin-bottom: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    overflow: hidden;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow: hidden;
}

.split-word {
    display: inline-block;
    will-change: transform, opacity;
}

.floating-reviews-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
    perspective: 800px;
}

.floating-review-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(9, 9, 13, 0.86);
    padding: 0.95rem;
    box-shadow: 0 16px 25px rgba(0, 0, 0, 0.34);
    will-change: transform;
}

/* Reviews (Scroll 5) */
.details-content.reviews-content {
    max-width: 640px;
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.95), rgba(20, 20, 25, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.details-content.reviews-content .reviews-carousel {
    width: 100%;
}

.details-content.reviews-content .review-slide {
    display: none;
    gap: 1.25rem;
}

.details-content.reviews-content .review-slide.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.review-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.review-page-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-page-btn.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 94, 0, 0.4);
}

@media (max-width: 768px) {
    .three-stage {
        border-radius: 18px;
        min-height: 58svh;
    }

    #mtb-canvas {
        min-height: 58svh;
    }

    .stage-overlay {
        gap: 0.4rem;
    }

    .overlay-chip {
        font-size: 0.68rem;
        padding: 0.36rem 0.62rem;
    }

    .performance-metrics,
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 0.95rem 0.95rem 0.95rem 2.55rem;
    }
}


