@font-face {
	font-family: Roboto;
	src: url(../font/Roboto-Regular.ttf);
}

/* Evitar márgenes y paddings extra en toda la página */
html, body {
    font-family: "Roboto";
    font-weight: Regular;
    font-style: Regular;	
    margin: 0;
    padding: 0;
    overflow: hidden; /* Evita scroll */
    height: 100%;
}

/* Mapa ocupa toda la pantalla */
#map {
    width: 100%;
    height: 100vh; /* 100% de la altura de la pantalla */
    position: relative;
}

/* Header y Footer responsivos */
#map header, #map footer {
    position: absolute;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
}

#map header {
    top: 0;
    height: 10vh; /* 10% de la altura de la pantalla */
    line-height: 10vh;
    background-color: rgba(229,233,240,0.8);
}

#map footer {
    bottom: 0;
    height: 3vh; /* 8% de la altura de la pantalla */
    line-height: 1vh;
}

/* Botón en la esquina inferior derecha */
.toggle-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.toggle-btn:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

/* Botón en la esquina inferior derecha */
.toggle-btn-i {
    position: absolute;
    bottom: 2px;
    right: 32px;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.toggle-btn-i:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}


/* Animación al ocultar header/footer */
.hidden {
    opacity: 0;
    pointer-events: none;
}

.navbar {
    height: 100%;
}

.navbar-brand,
.navbar-nav .nav-link {
    line-height: normal; /* Evita que el texto herede la altura del header */
}

.navbar-brand img,
.right-img {
    height: 8vh; /* Ajusta el tamaño de las imágenes según el header */
    width: auto;
}

.navbar-toggler {
    line-height: normal;
}

#label_about:hover {
    text-decoration: underline !important;
    text-decoration-color: black;
}

/* Ocultar imagen UNAM en móviles */
@media (max-width: 768px) {
    .right-img {
        display: none;
    }

    .navbar-brand img {
        height: 30px; /* Reduce el tamaño del logo */
    }

    .navbar-brand span {
        font-size: 14px; /* Reduce el tamaño del texto */
    }
}

/* Para el acerca de */
.swal-texto {
    text-align: justify; /* Justificar el texto */
    white-space: pre-line; /* Mantener saltos de línea */
}

.titulo-header{
    width: 100%;
    pointer-events: none;
    font-size: 1.8rem;
}

.navbar-brand img{
    height: 60px;
}

.right-img{
    height: 65px;
}

/* Responsive */
@media (max-width: 992px){

    .titulo-header{
        position: static !important;
        transform: none !important;
        width: auto;
        font-size: 1rem;
        margin: 0 auto;
        text-align: center;
        padding: 0 10px;
    }

    .container{
        flex-wrap: wrap;
        gap: 10px;
    }

}

.form-control{
    height: 30px;
    font-size: .85rem;
    padding: .25rem .5rem;
}
#coordenada_x1,
#coordenada_x2,
#coordenada_y1,
#coordenada_y2{
    height: 32px;
    font-size: .9rem;
}

/* Para el nuevo menu de méxico */
.fa-mexico {
    display: inline-block;
    width: 1.8em;
    height: 1.8em;
    vertical-align: -0.125em;

    background-color: currentColor;

    -webkit-mask-image: url("../icons/mexico.svg");
    mask-image: url("../icons/mexico.svg");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}