/* ============================
    GENERALES
============================ */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #333;
}

/* ============================
    HEADER SUPERIOR
============================ */
.header {
    width: 100%;
    padding: 1rem 2rem;
    background: #000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: #fff;
    font-weight: bold;
}

.logo img {
    height: 40px;
}

.logo-texto {
    font-size: 0.9rem;
    line-height: 1.1;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.btn-contribuir {
    background: #7ac943;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: #fff !important;
}



/* ============================
    HERO
============================ */
.hero {
    background: url("./fotos/hero-proyectos.jpg") center/cover no-repeat;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero h1 {
    position: relative;
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
}



/* ============================
    SECCIÓN DE TARJETAS
============================ */
.proyectos {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
}

.tarjeta {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 540px;
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.tarjeta img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    transform: scale(1.08);
}

.tarjeta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.45));
    z-index: 1;
}

.tarjeta-overlay {
    position: absolute;
    left: 0;
    bottom: 28px;
    width: 100%;
    padding: 0 2rem;
    color: #fff;
    text-align: center;
    z-index: 2;
}

.tarjeta h2 {
    margin-top: 0.9rem;
    font-size: 1.9rem;
    line-height: 1.25;
    font-weight: 400;
    color: #fff;
}

/* FORZAR IMAGEN A OCUPAR TODA LA TARJETA */
.tarjeta {
    position: relative !important;
    overflow: hidden !important;
    height: 420px !important;
    border-radius: 24px !important;
    line-height: 0 !important;
}

.tarjeta img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
}

/* Texto arriba de la imagen */
.tarjeta-overlay {
    position: absolute !important;
    left: 0 !important;
    bottom: 28px !important;
    width: 100% !important;
    z-index: 3 !important;
    padding: 0 2rem !important;
    text-align: center !important;
    color: white !important;
    line-height: normal !important;
}

/* Oscurecido arriba de la imagen */
.tarjeta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.45)
    );
    z-index: 2;
}

/* ============================
   RESPONSIVE - ACTIVIDADES
============================ */
@media (max-width: 768px) {
    .proyectos {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        gap: 2rem;
    }

    .tarjeta {
        width: 100%;
        max-width: 540px;
        height: 430px;
        flex: none;
    }

    .tarjeta-overlay {
        position: absolute;
        left: 0;
        bottom: 28px;
        width: 100%;
        padding: 0 2rem;
        color: #fff;
        text-align: center;
        z-index: 2;
    }

    .tarjeta h2 {
        font-size: 1.6rem;
    }
}