*{
    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("bosqueurbano.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;
    }
}