/* Importa las fuentes que ya usas */
@import url('font.css');

.roadmap-container {
    padding: 15vh 5%;
    background: url(../images/bg/2.png) top/cover no-repeat; /* Reusa tu fondo */
    color: #e1e1e1;
    font-family: 'Maron Rose', sans-serif;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 8vh;
}

.roadmap-header h1 {
    font-size: 7vh;
    color: rgb(237, 224, 203);
    text-shadow: 0vh 1vh 2vh rgba(0, 0, 0, 0.4);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.roadmap-column h2 {
    font-size: 3.5vh;
    margin-bottom: 3vh;
    padding-bottom: 1.5vh;
    border-bottom: 2px solid rgba(138, 131, 112, 0.5);
    display: flex;
    align-items: center;
}

.roadmap-column h2 i {
    margin-right: 15px;
    font-size: 3vh;
}

/* Colores para cada estado */
.completed h2 { color: #4CAF50; } /* Verde */
.in-progress h2 { color: #FFC107; } /* Ámbar */
.planned h2 { color: #2196F3; } /* Azul */

.roadmap-card {
    background-color: rgba(20, 16, 11, 0.6);
    border: 1px solid rgba(116, 109, 85, 0.5);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.roadmap-card h3 {
    font-size: 2.5vh;
    color: #f5deb3; /* Wheat color */
    margin-bottom: 10px;
}

.roadmap-card p {
    font-size: 1.8vh;
    color: #b0a99a;
    line-height: 1.6;
}

/* Barra de Progreso */
.progress-bar {
    background-color: rgba(0,0,0,0.4);
    border: 1px solid rgba(138, 131, 112, 0.2);
    border-radius: 5px;
    height: 20px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    /* El color de fondo se elimina de aquí y se aplicará con JS */
    height: 100%;
    text-align: center;
    color: white; /* Blanco para que resalte en todos los fondos */
    font-weight: bold;
    line-height: 20px;
    font-size: 1.5vh;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7); /* Sombra para legibilidad */
    transition: width 0.5s ease-in-out, background-color 0.5s ease; /* Transición suave */
}

/* Etiquetas */
.card-tags {
    margin-top: 15px;
}

.tag {
    background-color: rgba(138, 131, 112, 0.3);
    color: #f5deb3;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.4vh;
    display: inline-block;
    margin-right: 5px;
}

.roadmap-filters {
    text-align: center;
    margin-bottom: 5vh;
}

.filter-btn {
    background: transparent;
    border: 2px solid rgba(138, 131, 112, 0.7);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-family: 'Maron Rose', sans-serif;
    font-size: 1.8vh;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: rgba(138, 131, 112, 0.9);
    color: white;
    box-shadow: 0 0 15px rgba(255, 198, 52, 0.5);
}

/* --- CLASES DE COLOR PARA EL PROGRESO --- */

/* Menos de 25%: Rojo */
.progress.red {
    background: linear-gradient(90deg, #d32f2f, #f44336);
}

/* 25% a 74%: Amarillo */
.progress.yellow {
    background: linear-gradient(90deg, #FFC107, #FF9800);
}

/* 75% a 98%: Azul */
.progress.blue {
    background: linear-gradient(90deg, #1976D2, #2196F3);
}

/* 99% o más: Verde */
.progress.green {
    background: linear-gradient(90deg, #388E3C, #4CAF50);
}

/* --- ESTILOS DE LA LÍNEA DE TIEMPO --- */

/* --- ESTILOS DE LA LÍNEA DE TIEMPO (ACTUALIZADO) --- */

.timeline-wrapper {
    grid-column: 1 / -1; 
    padding: 4vh 0 10vh 0; /* Aumentamos el padding inferior para dar más espacio */
    margin-bottom: 2vh;
    position: relative;
}

.timeline {
    position: relative;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(138, 131, 112, 0.3), rgba(239, 225, 200, 0.7), rgba(138, 131, 112, 0.3));
    border-radius: 2px;
}

.timeline-milestone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    /* Añadimos transición para el efecto de zoom */
    transition: transform 0.3s ease;
}

/* Efecto de Zoom al pasar el cursor por el hito */
.timeline-milestone:hover {
    transform: translateY(-50%) scale(1.15); /* Aumenta el tamaño */
    z-index: 10; /* Se asegura que esté por encima de otros hitos */
}

.timeline-point {
    width: 20px;
    height: 20px;
    background-color: rgb(102, 78, 45);
    border: 3px solid rgb(199, 183, 153);
    border-radius: 50%;
    z-index: 2;
}

.timeline-milestone.current .timeline-point {
    background-color: #FFC107;
    border-color: #f5deb3;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}

.timeline-content {
    position: absolute;
    bottom: 35px; /* Coloca el texto arriba del punto */
    width: 150px;
    text-align: center;
    background-color: rgba(10, 9, 4, 0.85);
    border: 1px solid rgba(71, 62, 48, 0.61);
    padding: 8px;
    border-radius: 5px;
    
    /* MODIFICACIÓN: Hacemos el texto visible por defecto */
    opacity: 1;
    transform: translateY(0);
    /* No necesitamos transición aquí porque ya es visible */
}

.timeline-date {
    font-size: 1.8vh;
    font-weight: bold;
    color: rgb(237, 224, 203);
}

.timeline-title {
    font-size: 1.6vh;
    color: #b0a99a;
}