/* ============================================
   PROYECTOS MUNICIPALES (Sección Verde Institucional)
   ============================================ */
.proyectos,
.proyectos-verde {
    padding: 2.5rem 0 3.5rem 0;
    background-color: #006633;
    position: relative;
}

.proyectos-verde .container {
    position: relative;
    z-index: 2;
}

/* Olas decorativas sutiles en Proyectos */
.proyectos-wave-top {
    position: absolute;
    top: -21px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.proyectos-wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 22px;
}

.proyectos-wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.proyectos-wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 22px;
}

.proyectos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.proyectos-header .section-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.ver-todo-white {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    transition: all 0.3s ease;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}

.ver-todo-white:hover {
    background-color: #ffffff;
    color: #006633;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.proyecto-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.proyecto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* Imagen de Portada y Badges */
.proyecto-thumb-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #004D25;
}

.proyecto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

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

.proyecto-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.badge-desarrollo {
    background-color: #FF6600;
}

.badge-aprobado {
    background-color: #006633;
}

.badge-licitacion {
    background-color: #0549BD;
}

/* Contenido de la Tarjeta */
.proyecto-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proyecto-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #006633;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.proyecto-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--texto-principal);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proyecto-title a {
    color: var(--texto-principal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.proyecto-title a:hover {
    color: #006633;
}

/* Metadatos con Iconos SVG */
.proyecto-meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.82rem;
    color: var(--texto-secundario);
    margin-bottom: 0.5rem;
}

.proyecto-fecha,
.proyecto-autor {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.meta-icon svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: block !important;
}

.meta-icon svg path,
.meta-icon svg circle {
    fill: var(--azul-institucional) !important;
}

.proyecto-excerpt {
    color: var(--texto-secundario);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: auto;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer de Tarjeta */
.proyecto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.proyecto-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #006633;
    text-decoration: none;
    transition: color 0.2s ease;
}

.proyecto-link:hover {
    color: #FF6600;
}

.proyecto-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #006633;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.proyecto-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}

.proyecto-card:hover .proyecto-btn {
    background-color: #FF6600;
    transform: translateX(3px);
}

/* Responsividad Proyectos */
@media (max-width: 1100px) {
    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .proyectos,
    .proyectos-verde {
        padding: 2.5rem 0;
    }

    .proyectos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .proyecto-thumb-wrap {
        height: 180px;
    }

    .proyecto-content {
        padding: 1.25rem;
    }
}
