/* =========================================
   ESTILOS DEL MAIN (PROJECT DETAIL)
   ========================================= */
/* --- CONFIGURACIÓN BASE (IMPORTANTE PARA FONDO NEGRO) --- */
body {
    background-color: #161214; /* Fondo Negro Profundo */
    color: #eee;               /* Texto base claro */
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/* =========================================
   ESTILOS ESPECÍFICOS: PROYECTO NEON SOUL
   ========================================= */

/* --- 1. ENCABEZADO TIPO "EXPEDIENTE" (DATOS TÉCNICOS) --- */
.proj-header {
    /* Espacio superior para que no choque con el menú fijo */
    padding: 140px 5% 80px 5%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.proj-meta {
    display: inline-block;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    color: var(--lab-purple); /* Morado Neón */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid var(--lab-purple);
    padding: 5px 15px;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(127, 42, 247, 0.2);
}

.meta-date { color: #888; margin-left: 10px; font-weight: 400; }

.proj-title {
    font-size: 4rem;
    color: white;
    margin: 0 0 50px 0;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
}

/* Tabla de Datos (Estado, Género, Motor) */
.proj-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    text-align: left;
}

.spec-col { display: flex; flex-direction: column; gap: 5px; }

.spec-label {
    color: var(--lab-cyan); /* Cyan Neón */
    font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
}

.spec-val { color: #ddd; font-size: 1.1rem; font-weight: 600; }


/* --- 2. HERO ATMÓSFERA (GLITCH & MOOD) --- */
.proj-hero-img {
    width: 100%; max-width: 1400px; margin: 0 auto 100px auto; padding: 0 5%;
}

.atmosphere-box {
    position: relative; width: 100%; height: 500px;
    background: #000; overflow: hidden; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #333;
}

/* Imagen de fondo oscura */
.bg-mood {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.5;
    filter: grayscale(100%) contrast(1.2); /* Look cinematográfico */
    transition: transform 10s ease; /* Efecto zoom lento */
}
.atmosphere-box:hover .bg-mood { transform: scale(1.1); }

.atmosphere-content {
    z-index: 2; text-align: center; padding: 20px; max-width: 800px;
}

/* Texto con Efecto Glitch */
.glitch-text {
    font-size: 3.5rem; color: white; font-weight: 900; letter-spacing: -1px; margin: 0;
    position: relative;
    text-shadow: 2px 2px var(--lab-purple), -2px -2px var(--lab-cyan);
    animation: glitch 3s infinite alternate;
}
.atmosphere-content p {
    color: var(--lab-cyan); font-family: 'Courier New', monospace; margin-top: 15px; font-size: 1rem;
}

@keyframes glitch {
    0% { text-shadow: 2px 2px var(--lab-purple), -2px -2px var(--lab-cyan); }
    20% { text-shadow: -2px -2px var(--lab-purple), 2px 2px var(--lab-cyan); }
    40% { text-shadow: 0 0 transparent; }
    100% { text-shadow: 2px 0 var(--lab-purple), -2px 0 var(--lab-cyan); }
}


/* --- 3. CARACTERÍSTICAS (BLOQUES ZIG-ZAG) --- */
.proj-features {
    max-width: 1200px; margin: 0 auto 120px auto; padding: 0 5%;
    display: flex; flex-direction: column; gap: 100px;
}

.feature-block {
    display: flex; align-items: center; gap: 60px;
}
/* Invierte el orden para el segundo bloque */
.feature-block.reverse { flex-direction: row-reverse; }

.feat-img {
    flex: 1; position: relative;
    border: 1px solid #333; border-radius: 8px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    height: 350px;
}
.feat-img img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}
.feat-img:hover img { transform: scale(1.05); }

/* Etiqueta técnica sobre la imagen */
.feat-caption {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0,0,0,0.85); color: var(--lab-cyan);
    font-family: 'Courier New', monospace; font-size: 0.75rem;
    padding: 5px 10px; border: 1px solid var(--lab-cyan);
    backdrop-filter: blur(4px);
}

.feat-text { flex: 1; }

.feat-title {
    font-size: 2rem; color: white; margin-bottom: 25px;
    display: flex; align-items: center; gap: 15px;
}
.feat-title i { color: var(--lab-purple); }

.feat-text p {
    font-size: 1.1rem; color: #ccc; margin-bottom: 20px; line-height: 1.7;
}


/* --- 4. ROADMAP DETALLADO (LÍNEA DE TIEMPO) --- */
.proj-roadmap-detailed {
    max-width: 800px; margin: 0 auto 150px auto; padding: 0 5%;
}

.proj-h2 { text-align: center; font-size: 2.5rem; margin-bottom: 10px; }
.roadmap-subtitle { text-align: center; color: #777; margin-bottom: 60px; font-family: 'Courier New', monospace; }

.timeline-wrapper {
    position: relative;
    border-left: 2px solid #222; /* Línea vertical base */
    padding-left: 50px;
}

.timeline-item { position: relative; margin-bottom: 50px; }

/* El círculo del hito */
.tl-marker {
    position: absolute; left: -66px; top: 0;
    width: 30px; height: 30px;
    background: #0a0a0a; border: 2px solid #444; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #555; font-size: 0.9rem; z-index: 2;
    transition: 0.3s;
}

/* ESTADO: COMPLETADO (Verde/Cyan) */
.timeline-item.completed .tl-marker {
    background: var(--lab-cyan); border-color: var(--lab-cyan); color: black;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}
.timeline-item.completed h4 { text-decoration: line-through; color: #666; }

/* ESTADO: ACTIVO (Morado Brillante) */
.timeline-item.active .tl-marker {
    background: var(--lab-purple); border-color: white; color: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--lab-purple);
}
.timeline-item.active h4 { color: white; }

.status-badge {
    background: var(--lab-purple); color: white; font-size: 0.65rem;
    padding: 3px 8px; border-radius: 4px; font-weight: bold; text-transform: uppercase;
    margin-bottom: 8px; display: inline-block;
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.tl-content h4 { margin: 0 0 8px 0; font-size: 1.2rem; }
.tl-content p { margin: 0; font-size: 0.95rem; color: #999; }


/* --- 5. THE VAULT (GALERÍA MASONRY) --- */
.proj-breakdown {
    max-width: 1400px; margin: 0 auto 150px auto; padding: 0 5%;
}

.breakdown-header {
    display: flex; align-items: center; gap: 20px; margin-bottom: 50px;
}
.breakdown-header h3 {
    color: #555; font-family: 'Courier New', monospace; font-size: 1.1rem; margin: 0; letter-spacing: 1px;
}
.breakdown-header .line { flex: 1; height: 1px; background: #222; }

/* Grid Mágico (Pinterest Style) */
.lab-masonry-grid {
    column-count: 3; /* 3 Columnas */
    column-gap: 25px;
}

.masonry-item {
    break-inside: avoid; /* Evita que la imagen se corte entre columnas */
    margin-bottom: 25px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    border: 1px solid #222;
    transition: transform 0.3s;
}

.masonry-item img {
    width: 100%; display: block;
    filter: sepia(15%) contrast(1.1) grayscale(30%); /* Efecto boceto artístico */
    transition: 0.5s;
}

.masonry-item:hover { transform: translateY(-5px); border-color: var(--lab-cyan); }
.masonry-item:hover img {
    filter: sepia(0%) contrast(1) grayscale(0%); /* Color real al hover */
    transform: scale(1.05);
}

/* Texto Overlay al pasar el mouse */
.m-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.9);
    border-top: 1px solid var(--lab-cyan);
    color: var(--lab-cyan);
    font-family: 'Courier New', monospace; font-size: 0.75rem; font-weight: bold;
    transform: translateY(100%);
    transition: 0.3s;
}
.masonry-item:hover .m-overlay { transform: translateY(0); }


/* --- 6. NAVEGACIÓN INFERIOR (NEXT PROJECT) --- */
.proj-next {
    text-align: center; padding: 100px 0;
    background: linear-gradient(to top, rgba(127, 42, 247, 0.08), transparent);
    border-top: 1px solid #222;
}

.next-link { display: inline-block; transition: 0.3s; }
.next-sub { display: block; color: #666; font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 3px; }
.next-title { font-size: 3rem; margin: 0; font-weight: 800; transition: 0.3s; color: white; }

.next-link:hover .next-title { color: var(--lab-cyan); text-shadow: 0 0 20px rgba(100, 255, 218, 0.3); }
.next-link:hover i { transform: translateX(10px); }


/* --- RESPONSIVE (MÓVIL & TABLET) --- */
@media (max-width: 900px) {
    .proj-title { font-size: 3rem; }
    .proj-specs-grid { grid-template-columns: 1fr; gap: 20px; } /* Datos en fila vertical */
    
    .feature-block, .feature-block.reverse { flex-direction: column; height: auto; }
    .feat-img { width: 100%; height: 300px; }
    
    .lab-masonry-grid { column-count: 2; } /* 2 columnas en tablet */
}

@media (max-width: 600px) {
    .proj-header { padding-top: 120px; }
    .proj-title { font-size: 2.5rem; }
    .glitch-text { font-size: 2rem; }
    
    .timeline-wrapper { padding-left: 30px; }
    .tl-marker { width: 20px; height: 20px; left: -41px; font-size: 0.7rem; }
    
    .lab-masonry-grid { column-count: 1; } /* 1 columna en móvil */
}