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

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

.img-ampliable{
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-ampliable:hover{
    transform: scale(1.03);
}

.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: 15px;
    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;
}

/* VIDEO */
.video-contenedor{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.video-pequeno{
    width: 320px;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: width 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.video-pequeno.activo{
    width: 90%;
    max-width: 850px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

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

    .encabezado nav{
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .video-pequeno{
        width: 240px;
    }

    .video-pequeno.activo{
        width: 100%;
        max-width: 100%;
    }
}