/* ==========================================================================
   ESTILOS MODERNOS PARA PROYECTOS (CCO)
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

#body-proyectos {
    background-color: #f8fafc;
    min-height: 100vh;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* --- Hero Section --- */
.hero-proyectos {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-proyectos h1 {
    font-size: 3.5rem;
    color: #14522c;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-proyectos p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto;
}

/* --- Pestañas Sticky --- */
.proyectos-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 60px;
    position: sticky;
    top: 180px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #14522c;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.tab-link:hover {
    background: #03A64A;
    color: white;
    transform: translateY(-2px);
}

/* --- Grid de Proyectos --- */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.proyecto-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    scroll-margin-top: 220px;
}

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

.proyecto-img {
    height: 220px;
    overflow: hidden;
}

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

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

.proyecto-info {
    padding: 25px;
}

.proyecto-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0fdf4;
    color: #03A64A;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 12px;
}

.proyecto-info h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.proyecto-info p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    text-align: justify;
}

@media (max-width: 768px) {
    .proyectos-grid { grid-template-columns: 1fr; }
    .hero-proyectos h1 { font-size: 2.5rem; }
    .proyectos-tabs { top: 140px; }
}