*{
    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;
}

.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("barrancabasura.jpeg");
    background-size: cover;
    background-position: center;
    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;
}

.info-grid{
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 25px;
    align-items: center;
}

.personaje{
    text-align: center;
}

.personaje img{
    width: 180px;
    max-width: 100%;
    height: auto;
}

.lista{
    padding-left: 20px;
}

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

.subtexto{
    margin-bottom: 18px;
}

.galeria{
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
}

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

.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;
    }

    .info-grid{
        grid-template-columns: 1fr;
        text-align: center;
    }

    .galeria{
        flex-wrap: wrap;
    }

    .galeria img{
        width: 150px;
        height: 200px;
    }
}