:root{
    --bgColor: #a9383d;
    --textColor: white;
    --blur: 0px;
}

.contact{
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 0px;
    background-color: black;
    font-family: 'body-font';
    color: white;
    margin: 0;
}
.contact-group{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
}
.contact-element {
    display: flex; /* Asegura que su contenido se expanda */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    height: 100%; /* Igual altura que su contenedor */
    padding: 10px 20px;
}
.contact-element a {
    display: flex; /* Hace que el enlace tome el tamaño de su contenido */
    align-items: center; /* Centra la imagen dentro del enlace */
    justify-content: center;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.contact-element a:hover {
    color: var(--bgColor);
    transform: scale(1.1) rotate(-5deg);
}
.socialmedia-element:hover{
    background-color: rgba(255, 255, 255, 0.5); /* Efecto hover sin alterar tamaño */
    cursor: pointer;
}
header {
    position: sticky;
    top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--textColor);
    padding: 0px 15px;
    font-family: 'body-font';
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
header::after{
    content: "";
    position: absolute;
    inset: 0;  /* Reemplaza top, left, width y height (ocupa 100% del contenedor) */
    filter: blur(var(--blur));
    background-color: var(--bgColor);
    z-index: -1;
}
.branding {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}
.logo{
    height: 50px;
    max-width: 150px; /* Evita que se agrande demasiado */
    object-fit: contain; /* Mantiene las proporciones */
}
.hamburger{
    grid-column: 3;          /* menú a la derecha */
    justify-self: end;
    height: 50px;
    width: 50px;
    position: relative;
    cursor: pointer;
}
.hamburger-1{
    height: 5px;
    width: 50px;
    border-radius: 5px;
    background-color: white;
    position: absolute;
    top: 0;
    transition: transform 0.5s ease-in-out;
    transform-origin: center;
}
.hamburger-1.active {
    /*transform: translateY(20px) rotate(-45deg); */
    transform: scaleX(0) translateY(20px);
}
.hamburger-2{
    height: 5px;
    width: 50px;
    border-radius: 5px;
    background-color: white;
    position: absolute;
    top: 20px;
    transition: transform 0.5s ease-in-out;
    transform-origin: center;
}
.hamburger-2.active {
   /* transform: scaleX(0);  */
   transform: rotate(-45deg);
}
.hamburger-3{
    height: 5px;
    width: 50px;
    border-radius: 5px;
    background-color: white;
    position: absolute;
    top: 40px;
    transition: transform 0.5s ease-in-out;
    transform-origin: center;
}
.hamburger-3.active {
    transform: translateY(-20px) rotate(45deg);
}
.social-media, .contact-logo {
    height: 70%;
    width: auto;
}
.contact-text {
    display: none;
}
.title{
    display: none;
    font-family: 'title-font';
}
.noeffect{
    grid-column: 2;          /* logo en la columna central */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
nav {
    display: block;
    width: 100%;
    text-align: justify;
    max-height: 0; /* Inicialmente colapsado */
    overflow: hidden; /* Oculta el contenido que sobresale */
    transition: max-height 0.3s ease-in-out;
}
nav.show {
    max-height: 300px; /* Ajusta este valor según el contenido del menú */
}
nav a {
    position: relative; /* Necesario para que ::after se posicione correctamente */
    display: block;
    padding: 10px 5px;
    align-content: center;
    color: inherit;
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: fit-content;
}
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px; /* Ajusta la posición del borde */
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0); /* Inicialmente invisible */
    transform-origin: left; /* Para que crezca desde la izquierda, por defecto creceria del centro hacia los lados */
    transition: transform 0.3s ease-in-out, bottom 0.3s ease;
}
nav a:hover {
    opacity: 0.7;
    transform: translateY(-5px);
}
nav a:hover::after {
    transform: scaleX(1); /* Expande el borde de izquierda a derecha */
    bottom: -3px;
}