/* =========================================
           PROYECTOS
   ========================================= */

:root {
    --primary-blue: #1565c0;   /* Azul institucional */
    --accent-green: #2e7d32;   /* Verde para "En Ejecución" */
    --accent-gray: #607d8b;    /* Gris para "Finalizado" */
    --bg-light: #f4f6f8;       /* Fondo gris muy suave */
}

body {
    background-color: var(--bg-light);
    font-family: 'Montserrat', sans-serif;
    color: #333;
}


.project-hero {
    
    background-image: url('hero_proyectos.jpeg');
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    background: rgba(21, 101, 192, 0.80); 
    width: 100%; height: 100%;
    display: flex; 
    align-items: center; 
    
    
    justify-content: flex-start; 
    
    
    padding-left: 10%; 
}

.hero-content { 
    
    text-align: left; 
    color: white; 
    
    
    max-width: 600px; 
}

.project-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; 
    
    
    
    pointer-events: none; 
}
.hero-content h1 { font-family: 'Merriweather', serif; font-size: 4rem; margin: 5px 0; }
.hero-content p { font-size: 1.1rem; color: #bbdefb; }
.hero-content h5 { text-transform: uppercase; letter-spacing: 2px; font-weight: 600; color: #e3f2fd; }

.main-container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }


.toolbar-container {
    display: flex; justify-content: center; margin-bottom: 40px;
}
.filter-group {
    background: white; padding: 5px; border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; gap: 5px;
}
.filter-btn {
    border: none; background: transparent; padding: 10px 20px;
    border-radius: 25px; cursor: pointer; font-weight: 600; color: #666;
    font-family: 'Montserrat', sans-serif; transition: 0.3s;
}
.filter-btn:hover { background: #eee; }
.filter-btn.active { background: var(--primary-blue); color: white; }





.projects-list {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* Espacio entre tarjetas */
    margin-bottom: 40px;
}


.proj-card {
    background: white;
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    
    
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.proj-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.12); 
    border-color: var(--primary-blue);
}


.status-running { border-top: 5px solid var(--accent-green); border-left: 1px solid #e0e0e0; }
.status-finished { border-top: 5px solid var(--accent-gray); border-left: 1px solid #e0e0e0; }


.proj-header {
    padding: 20px 20px 0 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.proj-badge {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    padding: 5px 10px; border-radius: 20px; /* Badge redondito */
}
.status-running .proj-badge { background: #e8f5e9; color: var(--accent-green); }
.status-finished .proj-badge { background: #eceff1; color: var(--accent-gray); }

.proj-date { font-size: 0.8rem; color: #999; font-weight: 600; }


.proj-body { 
    padding: 15px 20px; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.proj-title {
    font-family: 'Merriweather', serif; 
    font-size: 1.2rem; 
    color: #333;
    margin: 10px 0 15px 0; 
    line-height: 1.4;
    font-weight: 700;
}

.proj-desc { 
    color: #555; 
    font-size: 0.95rem;
    line-height: 1.6; 
    margin-bottom: 20px;
    
    
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.proj-meta {
    background: #f8f9fa; 
    padding: 12px; 
    border-radius: 8px;
    margin-top: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    font-size: 0.85rem;
}

.meta-row { display: flex; flex-direction: column; }
.meta-row strong { font-size: 0.7rem; color: #1565c0; text-transform: uppercase; margin-bottom: 2px; }
.meta-row span { font-weight: 600; color: #444; }


.proj-footer {
    padding: 15px 20px; 
    border-top: 1px solid #eee; 
    text-align: center; 
    background: #fff;
}

.btn-details {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-decoration: none; 
    color: var(--primary-blue); 
    font-weight: 700; 
    font-size: 0.9rem;
    border: 1px solid var(--primary-blue);
    border-radius: 30px;
    transition: 0.2s;
}

.btn-details:hover { 
    background-color: var(--primary-blue);
    color: white; 
}

