/* Imagen con texto superpuesto */
.conainer-img-titulo-main {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}

.conainer-img-titulo-main img {
    width: 100%;
    object-fit: cover;
}

.conteiner-titulo {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 2px solid #2d8b3f;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
}

.conteiner-titulo h4 {
    color: #2d8b3f;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.conteiner-titulo p {
    color: #2d8b3f;
    font-weight: bold;
}

/* Bot¨Žn votar estilo Uiverse aplicado a <a> */
.boton-votar {
    font-size: 1.4em;
    padding: 0.6em 0.8em;
    border-radius: 0.5em;
    border: none;
    background-color: #fff;
    color: black;
    cursor: pointer;
    box-shadow: 2px 2px 3px #338c33;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Contenedor del bot¨Žn con efecto de halo verde */
.container-boton {
    text-align: center;
    margin: 50px 20px 20px 20px;
}

/*
.container-votar {
    position: relative;
    padding: 3px;
    background: linear-gradient(90deg, #338c33, #338c33);
    border-radius: 0.9em;
    transition: all 0.4s ease;
    display: inline-block;
    z-index: 0;
}

.container-votar::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 0.9em;
    z-index: -1;
    background: linear-gradient(90deg, #338c33, #338c33);
    filter: blur(0);
    transition: filter 0.4s ease;
}

.container-votar:hover::before {
    filter: blur(1.2em);
}

.container-votar:active::before {
    filter: blur(0.2em);
}
*/

/* Estilo para el titulo de Votacion Cerrada */

.titulo-cierre {
    color: #338c33;
    font-size: 2rem; 
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contenedor de proyectos (grilla flexible) */
.container-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 50px 50px 120px 50px;
}

.card-wrapper {
    width: 100%;
    text-align: center;
}

/* Tarjeta de proyecto como fondo */
.card-proyecto {
    width: 100%;
    height: 180px;
    border: 2px solid #2d8b3f;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.card-proyecto:hover {
    transform: scale(1.03);
}

/* Fondo semitransparente y texto centrado */
.nombre-proyecto {
    margin-top: 8px;
    font-weight: bold;
    color: #2d8b3f;
    font-size: 16px;
}

/* Responsivo */
@media only screen and (max-width: 768px) {
    .conainer-img-titulo-main {
        max-height: 200px;
    }

    .conteiner-titulo {
        top: 10%;
        padding: 15px;
        width: 90%;
    }

    .conteiner-titulo h4 {
        font-size: 16px;
    }

    .conteiner-titulo p {
        font-size: 14px;
    }

    .container-boton {
        margin: 15px 0;
    }

    .container-votar {
        border-radius: 10px;
    }

    .boton-votar {
        padding: 8px 20px;
        font-size: 14px;
    }

    .container-proyectos {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
        padding: 40px 20px;
    }

    .card-proyecto {
        height: 140px;
    }

    .nombre-proyecto {
        font-size: 14px;
    }
}

