body, #body_p2, #body_p3, #body_p4  {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    /* Background */
    background-image: url(images/DSC_0147.JPG); 
    background-size: cover;
    background-repeat: no-repeat;  /* Sin repetición */
    background-attachment: fixed;  /* Lo importante: fondo fijo */
    width: 100vw;
    height: 100vh;                      
}
#body_p2 {
    background-image: url(/images/IMG_0589.jpeg);     
}
#body_p3, #body_p6 {
    background-image: url(/images/DSC_0107.JPG);     
}
#body_p4 {
    background-image: url(/images/DSC_0206.JPG);     
}
#body_p7 {
    background-image: url(/images/DSC_0194.JPG);     
}
#body_p8 {
    background-image: url(/images/DSC_0120.JPG);     
}
#body_p10 {
    background-image: url(/images/DSC_0123.JPG);     
}
#body_p12 {
    background-image: url(/images/DSC_0143.JPG);     
}
/*Titulo*/
h1 {
    color: #F4F4F4;
    font-size:xx-large;
    margin: 0;
    background-color: #000c;
    padding: 15px 50px;
    border: 1px solid #F4F4F4;
}
/*Barra de Navegación*/
.nav {
    background-color: #000c;
    border: 1px solid #F4F4F4;
}
.nav__list{
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    list-style: none;
}
.nav__item {
    display: inline-block;
}
.nav__link{
    color: #F4F4F4;
    font-size: larger;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
}
.nav__link--right {
    margin-left: auto;
    margin-right: 40px;
}
.nav__link:hover{
    background-color: #F4F4F4;
    color: #000e;
}
/*Objetivo, Biografia y Video Ejemplo*/
.content-box {
    height: 1400px;
    margin: 50px;
    border: 1px solid transparent;
    position: relative;
    box-sizing: border-box;
}
.info-box, .point-box{
    width: 600px;
    background-color: #f4f4f4e3;
    border: 1px solid white;
    -webkit-box-shadow: 4px 4px 10px black;
    -moz-box-shadow: 4px 4px 10px black;
    box-shadow: 4px 4px 10px black;
    color: #000e;
    padding: 20px;
    position: relative;
    left: 30px;
}
.bio-box {
    width: 500px;
    height: 600px;
    border: 1px solid white;
    background-image: url(images/DSC_0121.JPG);
    background-size: cover;
    -webkit-box-shadow: 4px 4px 10px black;
    -moz-box-shadow: 4px 4px 10px black;
    box-shadow: 4px 4px 10px black;
    color: #f4f4f4;
    -webkit-text-shadow: 2px 2px 1px #000e;
    -moz-text-shadow: 2px 2px 1px #000e;
    text-shadow: 2px 2px 1px #000e;
    padding: 20px;
    position: relative;
    top: 30px;
    left: 800px;
    overflow: hidden;
    box-sizing: border-box;
}
.video-example {
    width: 854px;
    height: 480px;
    position: relative;
    top: 60px;
    left: 30px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid white;
    -webkit-box-shadow: 4px 4px 10px black;
    -moz-box-shadow: 4px 4px 10px black;
    box-shadow: 4px 4px 10px black;
    margin-bottom: 100px;
}
.box__title, .point__title {
    font-size: 1.8em;
    font-weight: bold;
}
.box__text, .point__text {
    font-size: 1.4em;
    text-align: justify;
}
.bio-text {
    position: relative;
    top: 400px;
}
.audio_link{
    font-weight: bolder;
    text-decoration: none;
    color: #35b9bde0;
}
/*Reproductor de Audio*/
#audio-player {
    margin: 0;
    padding: 15px;
    border: 1px solid #F4F4F4;
    background: #000c;
}
#waveform {
    color: #000c;
    width: 80%;
    margin: auto;
}
.controls {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 28%;
    padding: 10px;
    margin: auto;
}
.play-btn {
    background: none;
    padding: 10px;
    cursor: pointer;
    -webkit-transition: 0.2s;
    -moz-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
.play-btn:hover {
    background: #F4F4F4;
}
.play-btn svg {
    -webkit-transition: transform 0.2s ease;
    -moz-transition: transform 0.2s ease;
    -o-transition: transform 0.2s ease;
    transition: transform 0.2s ease;
}
.icon-p {
    fill: #F4F4F4;
    -webkit-transition: transform 0.2s ease;
    -moz-transition: transform 0.2s ease;
    -o-transition: transform 0.2s ease;
    transition: transform 0.2s ease;
}
.icon-p:hover {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
    fill: #000e;
}
.volume-bar {
    width: 200px;   /* ancho deseado */
    height: 5px;   /* altura deseada */
    background-color: #9a9a9a;  /* color de fondo (barra vacía) */
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}
.volumeFill {
    background-color: #9fe4ffee;  /* Cambia este color al que prefieras */
    height: 100%;
    width: 0; /* Se controla desde JS */
    -webkit-transition: width 0.3s ease;
    -moz-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.time {
    font-size: 0.85em;
    text-align: right;
    color: #F4F4F4 ;
}
.parallax {
    -webkit-transition: transform 0.1s ease-out;
    -moz-transition: transform 0.1s ease-out;
    -o-transition: transform 0.1s ease-out;
    transition: transform 0.1s ease-out;
    will-change: transform;
}
/*Archivo Audio*/
.archive-box {
    margin: 50px;
    padding: 20px;
    background-color: #F4F4F4e3;
    border: 1px solid #f4f4f4;
    -webkit-box-shadow: 4px 4px 10px black;
    -moz-box-shadow: 4px 4px 10px black;
    box-shadow: 4px 4px 10px black;
    position: relative;
    box-sizing: border-box;
}
.puntos {
    list-style: none;
    padding-left: 0;
    position: relative;
    display: inline-block;
    bottom: 300px;
}
.puntos li {
    font-size: 1.2em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}
.puntos li::before {
    content: "";
    position: absolute;
    left: 4px;
    width: 20px;
    height: 20px;
    background-image: url('point-mark.png');
    background-size: contain;
    background-repeat: no-repeat;
}
.puntos a {
    color: #000c;
    text-decoration: none;
    font-size:x-large;
}
#mapa_int {
    position: relative;
    display: inline-block;
    margin-left: 150px;
    width: 400px;
    height: 800px;
    background: url(Ruta_fix.jpg) no-repeat center center; /* Imagen de fondo del mapa */
    background-size: cover;
    border: 1px solid #f4f4f4;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}
.punto {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: rgb(255, 0, 0);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: red;
}
.punto:hover{
    background-color: #03fffb;
    -webkit-transition: color 0.1s;
    -moz-transition: color 0.1s;
    -o-transition: color 0.1s;
    transition: color 0.1s;
}
.puntotext:hover {
    color: #03fffb;
    -webkit-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.514);
    -moz-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.514);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.514);
}
/* Posiciones personalizadas para cada punto */
.punto1  { bottom: 55px;  left:  50px;  }
.punto2  { bottom: 110px; left:  50px;  }
.punto3  { bottom: 170px; left:  65px;  }
.punto4  { bottom: 200px; left:  25px;  }
.punto5  { bottom: 195px; left:  110px; }
.punto6  { bottom: 265px; left:  150px; }
.punto6  { bottom: 265px; left:  150px; }
.punto7  { bottom: 360px; left:  200px; }
.punto8  { bottom: 415px; right: 70px;  }
.punto9  { bottom: 475px; right: 30px;  }
.punto10 { bottom: 490px; right: 80px;  }
.punto11 { bottom: 535px; right: 125px; }
.punto12 { bottom: 600px; right: 200px; }
.punto13 { bottom: 580px; left:  110px; }
/* Contenedor lateral */
.sidebar {
    position:absolute;
    top: -50px;
    right: -50px;
    width: 50px;
    height: 950px;
    background-color: #116ebb;
    -webkit-transition: width 0.5s ease;
    -moz-transition: width 0.5s ease;
    -o-transition: width 0.5s ease;
    transition: width 0.5s ease;
    overflow: hidden;
    z-index: 1000;
    cursor: pointer;
    border-bottom-left-radius: 20px;
}

/* Al hacer hover, se expande */
.sidebar:hover {
    width: 600px; /* tamaño del mapa + margen */
}

        .sidebar h2 {
            writing-mode: vertical-rl;
            text-align: center;
            color: white;
            padding: 10px 0;
            font-size: 18px;
            margin: 10px;
        }
/*About*/
#body_about {
    background-image: url(images/DSC_0123.JPG); 
    background-size: cover;
    background-repeat: no-repeat;  /* Sin repetición */
    background-attachment: fixed;  /* Lo importante: fondo fijo */
    width: 100vw;
    height: 100vh;       
}
.about-box {
    margin: 50px;
    border: 1px solid #F4F4F4;
    position: relative;
    box-sizing: border-box;
    background-color: #f4f4f4e3;
    -webkit-box-shadow: 4px 4px 10px black;
    -moz-box-shadow: 4px 4px 10px black;
    box-shadow: 4px 4px 10px black;
    color: #000e;
    padding: 20px;
    z-index: 10;
}
.about__text {
    font-size: 1.4em;
    text-align: justify;
}
.img_about {
    width: 800px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    margin: auto;
    border: 1px solid white;
    -webkit-box-shadow: 4px 4px 10px black;
    -moz-box-shadow: 4px 4px 10px black;
    box-shadow: 4px 4px 10px black;
    z-index: 5;

}
/*Playlist*/
.playlist-box {
    border: 1px solid #F4F4F4;
    background-color: #000c;
    text-align: center;
    position: relative;
}
.playlist__title {
    font-size: 1.8em;
    font-weight: bold;
    color: #F4F4F4;
}
.playlist {
    list-style: none;
    padding: 0;
    margin: auto;
    margin-top: 50px;
}
.playlist li {
    cursor: pointer;
    padding: 10px 70px;
    border-top: 4px solid #ccc;
    background-color: #1e1e1e;
    color: #f4f4f4;
    font-size: 1em;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    display: inline-block;
}
.playlist li:hover {
    background-color: #333;
}
.playlist li.active {
    background-color: #8e8e8e;
    color: #fff;
    font-weight: bold;
}

/*Contenido e información*/
.content-point{
    border: 1px solid transparent;
    position: relative;
    box-sizing: border-box;
    margin: 50px;
}
/*Galeria*/
.img-box, .video-box{
    width: 650px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    margin: 20px;
    margin-top: 50px;
}
.img__button {
    margin: 10px;
    width: 100px;
    height: 40px;
    color: white;
    background-color: #000c;
    border: 1px solid white;
    -webkit-text-shadow: 2px 2px 1px #000e;
    -moz-text-shadow: 2px 2px 1px #000e;
    text-shadow: 2px 2px 1px #000e;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    position: relative;
}
.galeria-img, .galeria-video {
    border: 1px solid white;
    -webkit-box-shadow: 4px 4px 10px black;
    -moz-box-shadow: 4px 4px 10px black;
    box-shadow: 4px 4px 10px black;
}
/*Mapa*/
.mapa-box {
    width: 600px;
    text-align: center;
    border: 1px solid transparent;
    padding: 20px;
    box-sizing: content-box;
    position: absolute;
    right: 0;
    top: 0;
}
.mapa {
    width: 500px;
    height: 500px;
    margin: 10px;
    border: 1px solid white;
    -webkit-box-shadow: 4px 4px 10px black;
    -moz-box-shadow: 4px 4px 10px black;
    box-shadow: 4px 4px 10px black;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
.mapa__title {
    width: 200px;
    margin: auto;
    color: #F4F4F4;
    font-size: 1.6em;
    background-color: #000c;
    border: 1px solid white;
    -webkit-text-shadow: 2px 2px 1px #000e;
    -moz-text-shadow: 2px 2px 1px #000e;
    text-shadow: 2px 2px 1px #000e;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

/*Galería*/
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 10px auto;
    background-color: #1e1e1e5e;
}
.gale_content{
    background-color: transparent;
}
.gale_title {
    font-size: 1.8em;
    font-weight: bold;
    color: #F4F4F4;
    -webkit-text-shadow: 2px 2px 1px #000e;
    -moz-text-shadow: 2px 2px 1px #000e;
    text-shadow: 2px 2px 1px #000e;
    text-align: center;
}
.imagen {
    width: 100%;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: transform 0.3s;
    -moz-transition: transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
}
.imagen:hover {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}
.modal-contenido {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}
#caption {
    margin: 15px auto;
    text-align: center;
    color: #ccc;
    }
.cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.cerrar:hover {
    color: #f00;
}
.navi {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}
.navi.izquierda {
    left: 10px;
}
.navi.derecha {
    right: 10px;
}
.navi:hover {
    color: #aaa;
}


/* ===============================
   OPTIMIZACIÓN PARA DISPOSITIVOS MÓVILES
   =============================== */

/* Ajustes generales */
img, video {
    max-width: 100%;
    height: auto;
}

/* Tablet y pantallas medianas */
@media (max-width: 768px) {
    .nav__list {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }
    .info-box, .bio-box, .video-example {
        width: 90%;
        left: 0;
        top: 0;
        margin: 20px auto;
    }
    h1 {
        font-size: 1.5em;
        padding: 10px 20px;
    }
    body, #body_p2, #body_p3, #body_p4, #body_about {
        background-attachment: scroll; /* Mejora rendimiento y evita problemas en móviles */
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .nav__link {
        font-size: 1em;
        padding: 8px 12px;
    }
    .playlist li {
        display: block;
        padding: 10px;
    }
    .mapa, .img_about {
        width: 100%;
        height: auto;
    }
    .sidebar {
        display: none; /* Ocultar barra lateral en móviles para más espacio */
    }
}
