/* --- ESTILOS DE CASO DE ESTUDIO (PROYECTOS) --- */

/* Contenedor Principal */
.project-case-main {
    background-color: #0F172A; /* Tu fondo oscuro */
    color: #e2e8f0;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 100px;
}

.case-container-limit {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. HERO HEADER --- */
.case-hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center;
    margin-bottom: 80px;
}

.case-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.3), #0F172A); /* Difuminado hacia abajo */
}

.hero-content-wrapper {
    position: relative; z-index: 2; width: 100%; max-width: 900px; text-align: center;
}

/* Etiquetas */
.project-tag {
    display: inline-block; padding: 8px 18px; border-radius: 50px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; color: #00E5FF;
}

.project-title {
    font-size: 4rem; font-weight: 900; line-height: 1; margin-bottom: 40px; color: white;
    text-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Caja de Datos (Cliente, Estado, etc) */
.project-meta-box {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px);
    padding: 25px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}
.meta-label { display: block; font-size: 0.7rem; text-transform: uppercase; color: #94a3b8; letter-spacing: 1px; margin-bottom: 5px; }
.meta-value { display: block; font-size: 1rem; font-weight: 700; color: white; }

/* Puntos de Estado */
.status-wip { color: #FF4081; display: flex; align-items: center; gap: 8px; } /* En proceso */
.status-done { color: #00E5FF; display: flex; align-items: center; gap: 8px; } /* Terminado */

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: pulse 2s infinite;
}

/* --- 2. CONTENIDO --- */
.section-block { margin-bottom: 100px; }

.text-intro { text-align: center; max-width: 700px; margin: 0 auto; }
.text-intro h2 { font-size: 2.5rem; color: white; margin-bottom: 20px; }
.text-intro p { font-size: 1.15rem; line-height: 1.8; color: #cbd5e1; }


/* --- BLOQUE A: ROADMAP (Para Jaka / Proyectos Nuevos) --- */
.roadmap-box {
    background: #1e293b; padding: 50px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.05);
}
.roadmap-title { text-align: center; margin-bottom: 30px; font-size: 1.5rem; font-weight: 700; color: white; }

.progress-labels { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.8rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; }
.progress-bar-bg {
    width: 100%; height: 14px; background: #334155; border-radius: 50px; overflow: hidden; position: relative;
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, #FF4081, #7C4DFF); /* Gradiente */
    border-radius: 50px; position: relative; width: 0%; transition: width 1s ease;
}
.progress-bar-fill::after { /* Brillo animado */
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}
.status-text { text-align: center; margin-top: 25px; color: #e2e8f0; font-style: italic; }


/* --- BLOQUE B: MÉTRICAS (Para GDP / Proyectos Viejos) --- */
.metrics-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    background: #1e293b; padding: 40px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.05);
}
.metric-item { text-align: center; }
.metric-num { font-size: 3.5rem; font-weight: 800; color: #00E5FF; line-height: 1; display: block; }
.metric-desc { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-top: 10px; }


/* --- VISUALES --- */
.visual-full img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 60px; }
.visual-grid img { width: 100%; border-radius: 20px; }

.info-box {
    padding: 30px; border-left: 4px solid #FF4081; background: rgba(255,255,255,0.03); border-radius: 0 20px 20px 0;
}
.info-box h3 { font-size: 1.5rem; margin-top: 0; color: white; }

/* --- FOOTER NAV --- */
.project-nav {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; margin-top: 80px;
    display: flex; justify-content: space-between;
}
.btn-nav { text-decoration: none; color: white; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
.btn-nav:hover { color: #00E5FF; }

/* Animaciones */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(255, 64, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 64, 129, 0); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Responsive */
@media (max-width: 768px) {
    .project-title { font-size: 2.5rem; }
    .project-meta-box { grid-template-columns: 1fr; }
    .metrics-grid, .visual-grid { grid-template-columns: 1fr; }
}