*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif;
    background: #f4f7f2;
    color: #222;
    line-height: 1.6;
}

.contenedor{
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.encabezado{
    background: #1f5c2e;
    color: white;
    padding: 18px 0;
}

.encabezado .contenedor{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.encabezado h1{
    font-size: 1.8rem;
}

.encabezado nav{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.encabezado nav a{
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hero{
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("ajuscoanp.jpg");
    background-size: cover;
    background-position: center 80%;
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.hero-contenido{
    max-width: 800px;
    margin: 0 auto;
}

.hero h2{
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero p{
    font-size: 1.05rem;
}

.seccion{
    background: white;
    margin: 30px 0;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.seccion h2{
    color: #1f5c2e;
    margin-bottom: 15px;
}

.seccion p{
    margin-bottom: 12px;
}

.lista{
    padding-left: 20px;
}

.lista li{
    margin-bottom: 10px;
}

.tarjetas-ecosistemas{
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
    margin-top: 20px;
}

.card-eco{
    flex: 1;
    min-width: 220px;
    background: #f8fbf7;
    border: 2px solid #d9e6d8;
    border-radius: 12px;
    padding: 20px;
}

.card-eco h3{
    color: #1f5c2e;
    margin-bottom: 10px;
}

.card-eco p{
    margin-bottom: 18px;
}

.final{
    text-align: center;
}

.boton{
    display: inline-block;
    margin-top: 18px;
    background: #2f7d32;
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
}

.boton:hover{
    background: #245f27;
}

.pie{
    background: #1f5c2e;
    color: white;
    text-align: center;
    padding: 16px;
    margin-top: 30px;
}

@media (max-width: 768px){
    .encabezado .contenedor{
        flex-direction: column;
        gap: 12px;
    }

    .encabezado nav{
        justify-content: center;
    }

    .tarjetas-ecosistemas{
        flex-wrap: wrap;
    }

    .card-eco{
        min-width: 100%;
    }
}

.subtexto{
    margin-bottom: 18px;
}

.centrar-boton{
    text-align: center;
    margin-top: 15px;
}

.galeria-videos{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.galeria-videos video{
    width: 300px;
    max-width: 100%;
    border-radius: 10px;
    border: 2px solid #d9e6d8;
    background: #000;
}

.galeria-talleres{
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.galeria-talleres img{
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #d9e6d8;
    background: #eee;
}

@media (max-width: 768px){
    .galeria-videos video{
        width: 100%;
        max-width: 320px;
    }

    .galeria-talleres img{
        width: 140px;
        height: 180px;
    }
}

.anp-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border-radius: 25px;
    padding: 35px;
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.anp-imagen{
    display: flex;
    justify-content: center;
    align-items: center;
}

.anp-imagen img{
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anp-imagen img:hover{
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.anp-texto h3{
    font-size: 2rem;
    color: #2f6b3c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.anp-texto p{
    font-size: 1.08rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

/* MODAL */
.modal{
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-contenido{
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.cerrar{
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px){
    .anp-grid{
        grid-template-columns: 1fr;
        text-align: center;
    }

    .anp-texto h3{
        font-size: 1.6rem;
    }

    .anp-texto p{
        font-size: 1rem;
    }
}