:root {
    --purpura: #9536B5;
    --naranja: #E68A37;
    --purpura-oscuro: #380955;
    --purpura-vino: #3B1142;
    --morazul: #6636B5;
}


html {
    font-size: 62.5%;
    box-sizing: border-box;
    height: 100%;
    margin: 0;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden; 
    font-family:  "Nunito", sans-serif;
}

.cortina-filtro {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background: #3b0d4bf5;
    opacity: .80;
    z-index: 1;
}


.flecha-atras {
    width: 3rem;
    position: absolute;
    margin: 20px 0 0 20px;
    z-index: 9;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flecha-atras:hover {
    transform: scale(1.1);
}

.titulo-mapa h1{
    position: absolute;
    font-family:  "Nunito", sans-serif;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    font-size: 4rem;
    color: var(--naranja);
    margin: 0;
    z-index: 9;
    color: white;
    text-shadow: 1px 5px 8px rgba(0,0,0,0.98);
}

/* Contenedor del mapa interactivo */
.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

}

#interactive-map {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    display: flex;
    align-items:center;
    justify-content: center;
    flex-direction: column-reverse;
    z-index: 2;
}

.name-station{
    color: white;
    font-size: 220%;
    margin: 0%;
    border-radius: 25%;
    font-family: 'Nunito', sans-serif;
}

.image-container {
width: 10%; /* Ajusta el tamaño de la imagen según sea necesario */
height: 25%;
display: flex;
justify-content: center;
align-items: center;
}

.image-container img {
width: 100%;
height: auto;
border-radius: 10px;
position: relative;
z-index: 1; /* Asegura que la imagen esté por encima del efecto */
}


footer {
    position: absolute;
    bottom: 2%;
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    z-index: 3;
}

footer img {    
    width: 30px;
    transition: transform 0.3s ease;
}

footer img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px 10px rgba(255, 115, 0, 0.788);
    border-radius: 50%;    
    padding: 10%;             
}


.station img {
    width: 150px; /* Tamaño de la imagen */
    height: auto;
    border-radius: 50%;
    max-width: 100px;
}

.station span {
    display: none;
    color: #fff;
    font-size: large;
    font-weight: 400;
}


/* Ubicaciones de las estaciones */
#station-design {
    top: 40%;
    left: 40%;
}

#station-development {
    top: 55%;
    left: 60%;
}

#station-seo {
    top: 75%;
    left: 30%;
}

#station-maintenance {
    top: 80%;
    left: 70%;
}

/* Panel lateral */


.side-panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: rgb(208, 190, 209);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.5s ease-in-out;
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
}

.side-panel.active {
    right: 0;
}

#panel-title {
    font-size: 24px;
    margin-bottom: 10px;
}

#panel-content {
    font-size: 16px;
    margin-bottom: 20px;
}

#panel-video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

#close-panel {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--purpura-oscuro);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#close-panel:hover {
    background-color: var(--naranja);
}

/* Responsividad */


@media only screen and (min-width: 1023px) and (max-width: 1199px){
    .image-container{
        width: 22%;
        height: 18%;
    }
}


@media only screen and (min-width: 768px) and (max-width: 1023px){
    .image-container{
        width: 18%;
        height: 13%;    
    }
}

@media only screen and (min-width: 481px) and (max-width: 767px){
    .titulo-mapa h1{
        top: 2%;
    }
    .station {
        padding: 5px;
    }

    .station img{
        width: 100px;
    }

    #panel-title {
        font-size: 20px;
    }

    #panel-content {
        font-size: 14px;
    }
    .image-container{
        width: 18%;
        height: 13%;    
    }
    #station-development{
        left: 71%;
    }
}

@media only screen and (min-width: 320px) and (max-width: 480px){
    .image-container{
        width: 25%;
        height: 15%;
    }
    .station img{
        width: 120px;
    }
    #station-development{
        left: 71%;
    }
}
