@import url(style.css);
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
:root{
    --main:#002a8f;
    --rojo:rgba(176, 58, 74, 1);
    --botun: #172a57;
}
@font-face {
    font-family: 'fuente-carta';
    src: url('font/Forum-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

header {
    z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  transition: 0.6s;
  background: transparent;
    
}
header.down{
    background: rgba(0, 31, 102, 0.7); /* Fondo azul translúcido */
    padding: 15px 80px;
    border-bottom: 0.16em solid #002a8f;
}
header .nav{
    
    display: flex;
    align-items: center;
  justify-content: center;
    
}
header .nav a:hover{
    color: #810000;
  }

.logo {
    max-width: 5rem;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 1rem;
    padding:0 50px;
    position: relative;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}



header .nav-list ul li{
    list-style:none;
}

header .nav-list li a {
    text-decoration: none;
    color: #ffffff;/*cambiar a blanco*/
    list-style:none;
}

.abrir-menu,
.cerrar-menu {
    display: none;
}
 .social a{
    display: inline-block;
    background-color: var(--rojo);
    text-decoration: none;
    color: white;
    padding: 5px 5px;
    border-radius: 10px;
  }
  .social > i{
    display: inline-block;
    color: #a8a8a8;
    margin-left: 10px;
  }
   .redes{
  max-width: 20px;
  }

@media screen and (max-width: 550px) {
    
    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: 0;
        font-size: 1.25rem;
        background-color: transparent;
        cursor: pointer;
    }

    .abrir-menu {
        color: #ececec;
    }

    .cerrar-menu {
        color: #ececec;
    }

    .nav {
        display: none; /* Cambiado para ocultar inicialmente el menú */
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
        position: fixed; /* Usar fixed para que el menú se posicione en relación a la ventana */
        top: 0;
        right: 0;
        width: 100%; /* Asegura que el menú ocupe todo el ancho */
        height: 100vh; /* Asegura que el menú ocupe toda la altura */
        background: var(--botun);
        padding: 2rem;
        z-index: 1000; /* Asegura que el menú esté por encima de otros elementos */
        visibility:hidden;
    }

    .nav.visible {
        display: flex; /* Cambiado para mostrar el menú cuando tiene la clase .visible */
        visibility:visible;
    }
    .nav-list {
        flex-direction: column;
        align-items: end;
    }

    .nav-list li a {
        color: #fafafaec;
    }
}