/* Estilos globales */

html {
    scroll-behavior: smooth;
    overflow: auto;

}

a {
    display: flex; /* Cambia el elemento <a> a bloque para que ocupe todo el ancho disponible */
    text-decoration: none;
    color: inherit;
}

body {
    margin: 0;
    background: rgb(255, 255, 255);
    color: #000000;
    overflow-x: hidden;
    font-family: "Euclid Circular A", "Poppins";
}

* {
    box-sizing: border-box;
}

nav {
    position: fixed;
    z-index: 1;
    overflow-x: hidden;
    top: 0;
    width: 100%;
    height: 88px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgb(255, 36, 67);
    -webkit-backdrop-filter: blur(5px);
    -moz-backdrop-filter: blur(5px);
    -ms-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    backface-visibility: hidden;
    transform: translateZ(0px);
    transition: 0.3s;
}

nav img {
    height: 60px;
}

.burger {
    position: fixed;
    z-index: 3;
    top: 0;
    right: 5px;
    display: grid;
    place-items: center;
    padding: 0;
    width: 82px;
    height: 82px;
    font-size: 29px;
    color: #f9f9f9;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.burger i:last-child {
    display: none;
}

body.open .burger i:first-child {
    display: none;
}

body.open .burger i:last-child {
    font-size: 30px;
    display: block;
}

.overlay {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgb(27 32 44 / 70%);
    visibility: hidden;
    opacity: 0;
    backdrop-filter: blur(6px);
    transition: 0.3s;
}

body.open .overlay {
    visibility: visible;
    opacity: 1;
}

h1{
    font-size: 3.5em;
    text-align: center;
}

h2{
    padding-top: 15vh;
    font-size: 3.5em;
    text-align: center;
}

h3{font-size: 2em;}
p{font-size: 1.25em;}

#Inicio{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    color: white;
    background-image:
            linear-gradient(
                    0deg,
                    rgba(0, 0, 0, 0.3),
                    rgba(0, 0, 0, 0.25)),
            url("fondoInicio.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#Inicio h1{
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

#Inicio .texto p{
    text-align: justify;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    height: auto;
    margin: -30px 50px 50px;
    max-width: 1000px;
    font-size: 1.5em;
    background-color: rgba(40, 40, 40, 0.3);
    padding: 25px 50px;
}

#Mapas{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    background-image:
            linear-gradient(
                    0deg,
                    rgba(0, 0, 0, 0.01),
                    rgba(0, 0, 0, 0.01)),
            url("fondoMapas.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding-bottom: 50px;
}

#Mapas h2{
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

#Glosario {
    padding-bottom: 50px;
}

main {
    padding: 10px 30px;
}

article {
    flex-grow: 1;
    flex-basis: 400px;
    display: flex;
    gap: 16px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto 28px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

article img {
    height: 60px;
}

article name {
    text-align: left;
    color: rgba(14, 14, 14, 0.5);
}

article p {
    margin: 8px 0 10px;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

div .mapaTarjeta {
    width: 284px;
    text-align: left;
}

nav button {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.enlace-article {
    gap: 16px;
    width: 400px;
    height: 100px;
    display: flex;
    text-decoration: none; /* Para quitar el subrayado del enlace, si es necesario */
    /* Otros estilos para tu enlace si lo deseas */
}

.contenido {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    /*height: 100vh; /* Esto asegura que el contenedor ocupe toda la altura de la pantalla */
    flex-wrap: wrap; /* Los elementos <article> se envolverán cuando no haya suficiente espacio horizontal */
}

aside {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 260px;
    height: 100%;
    padding: 18px 20px 20px;
    color: white;
    background: #bd1a34;

    translate: 100% 0;
    transition: 0.3s;
}

body.open aside {
    translate: 0;
    box-shadow: 0 0 20px rgb(255, 36, 67);
}

aside a {
    display: flex;
    align-items: center;
    height: 50px;
    text-decoration: none;
    color: inherit;
}

aside h3 {
    margin: 50px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 1000;
    font-size: 18px;
    text-align: center;
}

aside button {
    cursor: pointer;
    background-image: linear-gradient(-60deg, #8700ff, #ff009e);
    color: #f7f7f7;
    border: 0;
    height: 60px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 18px;
    margin-top: 20px;
    transition: background-position 0.9s ease; /* Agregamos la propiedad de transición */
    background-size: 200% 100%; /* Aumentamos el tamaño del fondo */
    background-position: 100% 0; /* Inicialmente, el gradiente está desplazado completamente a la derecha */
}

aside button:hover {
    background-position: 0 0; /* Al hacer hover, movemos el gradiente a la posición inicial */
}

/* Estilos para el footer */
footer {
    background-color: #333; /* Color de fondo del footer */
    color: white; /* Color del texto del footer */
    padding: 20px; /* Espaciado interno del footer */
    text-align: center; /* Alineación del texto en el centro */
}

/* Estilos para los enlaces dentro del footer */
footer a {
    color: white; /* Color de los enlaces */
    text-decoration: none; /* Eliminar subrayado de los enlaces */
    margin: 0 10px; /* Espaciado entre los enlaces */
}

/* Estilos para los enlaces cuando se les hace hover */
footer a:hover {
    text-decoration: underline; /* Subrayado al hacer hover */
}