/* Estilos para los templates de proyectos */

.proyectos-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../assets/header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.proyectos-header h1 {
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.proyectos-header .sector-tag {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    font-size: 1.2rem;
}

.proyectos-grid {
    padding: 60px 0;
}

.proyectos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.proyectos-grid h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
}

.proyectos-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.proyecto-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.proyecto-imagen {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.proyecto-card:hover .proyecto-imagen img {
    transform: scale(1.1);
}

.proyecto-contenido {
    padding: 25px;
}

.proyecto-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.proyecto-meta .ubicacion {
    font-weight: bold;
    color: #333;
}

.proyecto-meta .ano {
    color: #007cba;
    font-weight: bold;
}

.proyecto-titulo {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.proyecto-titulo a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.proyecto-titulo a:hover {
    color: #007cba;
}

.proyecto-descripcion {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.proyecto-categorias {
    margin-bottom: 15px;
}

.proyecto-categorias .categoria {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 5px;
}

.leer-mas {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.leer-mas:hover {
    background: #005a87;
    color: white;
}

.filtros {
    text-align: center;
    margin-bottom: 40px;
}

.filtro-btn {
    background: white;
    border: 2px solid #007cba;
    color: #007cba;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.filtro-btn:hover,
.filtro-btn.activo {
    background: #007cba;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .proyectos-header h1 {
        font-size: 2rem;
    }
    
    .proyectos-items {
        grid-template-columns: 1fr;
    }
    
    .proyectos-grid h2 {
        font-size: 2rem;
    }
    
    .proyectos-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .proyectos-header {
        padding: 60px 0;
    }
    
    .proyectos-header h1 {
        font-size: 1.8rem;
    }
    
    .proyectos-grid {
        padding: 40px 0;
    }
    
    .proyectos-grid h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .proyecto-card {
        margin-bottom: 20px;
    }
}