/* ===== ROADMAP PAGE DARK THEME (CREDITS AESTHETIC) ===== */

:root {
    --roadmap-red: #b30f0f;
    --roadmap-red-bright: #ff3333;
    --roadmap-red-glow: rgba(255, 50, 50, 0.4);
}

body.roadmap-page .roadmap-section.modern {
    background: linear-gradient(180deg, #000 0%, #0a0a0a 60%, #111 100%);
    color: #fff;
    min-height: 100vh;
    padding-bottom: 100px;
}

.roadmap-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

/* --- Hero Header (like credits) --- */
.roadmap-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
}

.roadmap-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(179, 15, 15, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.roadmap-hero h1 {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ff3333 60%, #b30f0f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.roadmap-hero p {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.35rem;
    color: #888;
    max-width: 600px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-style: italic;
    margin: 0 auto;
}

/* Scroll To Present Button */
.scroll-present-btn {
    background: transparent;
    border: 1px solid rgba(179, 15, 15, 0.5);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(179, 15, 15, 0.2);
}

.scroll-present-btn svg {
    width: 18px;
    height: 18px;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(4px);
    }

    60% {
        transform: translateY(2px);
    }
}

.scroll-present-btn:hover {
    background: rgba(179, 15, 15, 0.2);
    border-color: var(--roadmap-red-bright);
    box-shadow: 0 0 25px rgba(255, 50, 50, 0.6);
    transform: translateY(-2px);
}

.credits-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b30f0f, transparent);
    margin: 40px auto 0;
    position: relative;
    z-index: 1;
}

/* ===== THE TIMELINE SECRETS ===== */
.roadmap-timeline-wrapper {
    position: relative;
    /* Height will be injected dynamically by JS */
    height: 2800px;
    margin: 0 auto;
    width: 100%;
}

/* Vertical Center Line (Background) */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(179, 15, 15, 0.3) 5%, rgba(179, 15, 15, 0.3) 95%, transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

/* Vertical Progress Line (Foreground) */
.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, var(--roadmap-red-bright) 100%);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px var(--roadmap-red-bright);
    transition: height 1s cubic-bezier(0.1, 0.8, 0.3, 1);
    height: 0%;
}

/* "We Are Here" Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 25px var(--roadmap-red-bright), 0 0 10px #fff;
    transition: top 1s cubic-bezier(0.1, 0.8, 0.3, 1);
    top: 0%;
}

.timeline-marker span {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-family: 'Bebas Neue', serif;
    font-size: 1.2rem;
    white-space: nowrap;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.8);
    animation: flashMarkerText 2s infinite alternate;
}

@keyframes flashMarkerText {
    from {
        color: #ccc;
        text-shadow: 0 0 5px rgba(255, 50, 50, 0.5);
    }

    to {
        color: #fff;
        text-shadow: 0 0 15px rgba(255, 50, 50, 1);
    }
}

/* Individual Checkpoints */
.roadmap-block {
    position: absolute;
    /* CLAVE PARA POSICIONAMIENTO PROPORCIONAL */
    width: 50%;
    transform: translateY(-50%);
    /* Center perfectly on the exact date % */
    padding: 0 40px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.roadmap-block.visible {
    opacity: 1;
    /* Maintain the translate offset! */
}

/* Timeline dot */
.roadmap-block::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #111;
    border: 2px solid rgba(179, 15, 15, 0.4);
    border-radius: 50%;
    transform: translateY(-50%) scale(1);
    z-index: 4;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.roadmap-block.past::before {
    background: var(--roadmap-red-bright);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.8);
}

.roadmap-block:hover::before {
    box-shadow: 0 0 25px rgba(255, 50, 50, 1);
    transform: translateY(-50%) scale(1.4);
}

/* Positioning left/right text */
.roadmap-block.left {
    left: 0;
    text-align: right;
}

.roadmap-block.right {
    left: 50%;
    text-align: left;
}

.roadmap-block.left::before {
    right: -6px;
}

.roadmap-block.right::before {
    left: -6px;
}

/* Card Content Aesthetics - No Backgrounds, Pure Text */
.roadmap-content {
    position: relative;
    transition: transform 0.4s ease;
    display: inline-block;
    width: 100%;
    max-width: 450px;
}

.roadmap-block:hover .roadmap-content {
    transform: translateY(-4px);
}

/* Texts using Cinematic fonts directly inspired by credits */
.date-badge {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.roadmap-block.past .date-badge {
    color: #999;
}

.pulse-badge {
    color: var(--roadmap-red-bright);
    animation: textPulse 2s infinite alternate;
}

@keyframes textPulse {
    from {
        text-shadow: 0 0 5px rgba(255, 50, 50, 0);
    }

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

.rm-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: 0.03em;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.roadmap-block:hover .rm-title {
    color: #fff;
}

.rm-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(179, 15, 15, 0.5);
    margin-top: 8px;
    transition: width 0.4s ease, background 0.4s ease;
}

.roadmap-block.left .rm-title::after {
    margin-left: auto;
}

.roadmap-block:hover .rm-title::after {
    width: 70px;
    background: rgba(255, 50, 50, 0.7);
}

.rm-desc {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.1rem;
    color: #888;
    line-height: 1.55;
    font-style: italic;
    margin: 0;
}

.roadmap-block:hover .rm-desc {
    color: #aaa;
}

/* ===== MINIMALIST COUNTDOWN TIMER ===== */
.roadmap-countdown {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.roadmap-block.left .roadmap-countdown {
    justify-content: flex-end;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4444;
    line-height: 1;
    text-shadow: 0 0 10px rgba(179, 15, 15, 0.3);
}

.countdown-item .label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #666;
    margin-top: 4px;
}

/* General Fade In (used by observer) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .roadmap-timeline-wrapper {
        height: 5200px;
        /* Much taller on mobile to fit physically stacked cards with proportional gap math */
    }

    .timeline-line,
    .timeline-progress {
        left: 20px;
        transform: none;
    }

    .timeline-marker {
        left: 20px;
        transform: translate(-50%, -50%);
        /* Circle centered on line */
    }

    .timeline-marker span {
        left: 20px;
    }

    .roadmap-block {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
    }

    .roadmap-block.right {
        left: 0;
    }

    .roadmap-block.left,
    .roadmap-block.right {
        text-align: left;
    }

    .roadmap-block.left .roadmap-content {
        text-align: left;
    }

    .roadmap-block.left .rm-title::after {
        margin-left: 0;
    }

    .roadmap-block.left .roadmap-countdown {
        justify-content: flex-start;
    }

    .roadmap-block.left::before,
    .roadmap-block.right::before {
        left: 14px;
        /* Align to the 20px line minus 6px radius */
        right: auto;
    }

    .roadmap-hero h1 {
        font-size: 2.5rem;
    }

    .roadmap-hero p {
        font-size: 1.1rem;
    }
}