*{
    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 ===== */
.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{
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.encabezado nav a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.encabezado nav a:hover::after{
    width: 100%;
}

.encabezado nav a:hover{
    color: #c8f7c5;
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero{
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("bosqueurbano.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero-contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* centra vertical */
    align-items: center;      /* centra horizontal */
    text-align: center;       /* centra texto */
    height: 100%;
}

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


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

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

.hero .boton{
    display: inline-block;
    margin-top: 20px;
    background-color: #2e7d32;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.hero .boton:hover{
    background-color: #1b5e20;
}

/* ===== SECCIONES ===== */
.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;
}

.subtexto{
    margin-bottom: 18px;
}

.final{
    text-align: center;
}

/* ===== LISTAS ===== */
.lista{
    padding-left: 20px;
}

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

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

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

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

/* ===== TARJETAS ===== */
.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;
}

/* ===== VIDEOS ===== */
.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;
}

/* ===== SLIDER TALLERES ===== */
.slider-talleres{
    position: relative;
    max-width: 760px;
    width: 100%;
    margin: 25px auto 0;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #d9e6d8;
    background: #eef5ec;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.slides{
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.slides img{
    width: 100%;
    min-width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

/* ===== CONTROLES DEL SLIDER ===== */
.slider-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 92, 46, 0.78);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    cursor: pointer;
    font-size: 1.4rem;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover{
    background: rgba(31, 92, 46, 0.95);
}

.slider-btn.prev{
    left: 14px;
}

.slider-btn.next{
    right: 14px;
}

.slider-dots{
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
}

.dot{
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.65);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.dot.active{
    background: white;
    transform: scale(1.15);
}

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

/* ===== RESPONSIVE ===== */
@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%;
    }

    .galeria-videos video{
        width: 100%;
        max-width: 320px;
    }

    .slides img{
        height: 260px;
    }

    .slider-btn{
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .slider-btn.prev{
        left: 10px;
    }

    .slider-btn.next{
        right: 10px;
    }

    .slider-dots{
        bottom: 12px;
        gap: 8px;
        padding: 5px 8px;
    }

    .dot{
        width: 10px;
        height: 10px;
    }
}

/* Visión */
.vision {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

/* GRID HERO */
.hero-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

/* Punto 10 */
.hero-punto10 {
    background: #ffb6a5;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #f83f16;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: aparecerSuave 0.8s ease, flotar 4s ease-in-out infinite;
}

@keyframes aparecerSuave {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flotar {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Icono */
.icono-punto {
    width: 60px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

/* Imagen clickeable */
.img-punto {
    width: 220px;        /* tamaño fijo */
    max-width: 100%;     /* responsive */
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    animation: zoom 0.3s ease;
}

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

@keyframes zoom {
    from {transform: scale(0.7);}
    to {transform: scale(1);}
}

.music-player{
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: rgba(31, 92, 46, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.music-player:hover{
    transform: scale(1.1);
    background: #2e7d32;
}

.music-container{
    position: fixed;
    bottom: 25px;
    right: 25px;
}

/* BOTÓN */
.music-player{
    width: 60px;
    height: 60px;
    background: rgba(31, 92, 46, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.music-player:hover{
    transform: scale(1.1);
}

/* NUBECITA */
.mensaje-musica{
    position: absolute;
    bottom: 70px; /* arriba del botón */
    right: 0;
    max-width: 220px;
    background: white;
    color: #1f5c2e;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* COLITA */
.mensaje-musica::after{
    content: "";
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
}

/* APARECE AL HOVER */
.music-container:hover .mensaje-musica{
    opacity: 1;
    transform: translateY(0);
}

.music-container{
    position: fixed;
    bottom: 25px;
    right: 25px;
}

.music-player{
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(31, 92, 46, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    overflow: visible;
    z-index: 2;
}

.music-player:hover{
    transform: scale(1.08);
}

#icono{
    position: relative;
    z-index: 3;
}

/* Ondas */
.onda{
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

/* ===== BOTÓN DE MÚSICA + NUBECITA + ONDAS ===== */
.music-container{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.music-player{
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(31, 92, 46, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.30);
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: visible;
    z-index: 2;
}

.music-player:hover{
    transform: scale(1.08);
    background: #2e7d32;
}

#icono{
    position: relative;
    z-index: 3;
    line-height: 1;
}

/* Ondas */
.wave{
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

.music-player.playing .wave1{
    animation: pulse 1.8s infinite;
}

.music-player.playing .wave2{
    animation: pulse 1.8s infinite 0.9s;
}

@keyframes pulse{
    0%{
        transform: scale(1);
        opacity: 0.6;
    }
    100%{
        transform: scale(2);
        opacity: 0;
    }
}

/* Nubecita */
.mensaje-musica{
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 230px;
    background: rgba(255,255,255,0.97);
    color: #1f5c2e;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Colita tipo nubecita */
.mensaje-musica::before{
    content: "";
    position: absolute;
    bottom: -8px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.97);
    border-radius: 50%;
}

.mensaje-musica::after{
    content: "";
    position: absolute;
    bottom: -16px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.97);
    border-radius: 50%;
}

/* Mostrar nubecita */
.music-container:hover .mensaje-musica,
.mensaje-musica.mostrar{
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE CELULAR ===== */
@media (max-width: 768px){
    .music-container{
        bottom: 16px;
        right: 16px;
    }

    .music-player{
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .wave{
        width: 54px;
        height: 54px;
    }

    .mensaje-musica{
        width: 190px;
        bottom: 66px;
        right: 0;
        font-size: 12px;
        padding: 10px 12px;
        border-radius: 16px;
    }
}

@media (max-width: 480px){
    .music-container{
        bottom: 14px;
        right: 14px;
    }

    .music-player{
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .wave{
        width: 50px;
        height: 50px;
    }

    .mensaje-musica{
        width: 165px;
        bottom: 60px;
        right: 0;
        font-size: 11px;
        line-height: 1.35;
        padding: 9px 11px;
    }
}

.decalog{
    text-align: center;
}

.contenedor-decalogo img{
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.modal{
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-contenido{
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
}

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

.img-decalogo{
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.app-guardianes {
    background: linear-gradient(135deg, #eaf4e8, #ffffff);
    border-radius: 22px;
    padding: 50px 35px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.app-contenido {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
    align-items: center;
}

.etiqueta-app {
    display: inline-block;
    background: #1f5c2e;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

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

.app-imagen-link img {
    width: 100%;
    max-width: 360px;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-imagen-link img:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .app-contenido {
        grid-template-columns: 1fr;
        text-align: center;
    }
}