@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@font-face {
    font-family: 'Avenir';
    src: url('../eau_sans_book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@keyframes aparecerDesdeArriba {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
html {
    height: 100%;
}
body{
    font-family: "Anton", 'Avenir', sans-serif;
    background-color: black;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
main{
    flex-grow: 1;
}

header {
    margin: 0;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    min-height: 100px;
    background-color: rgb(0,0,0,0.80);
    font-family: 'Avenir';
    z-index: 1; 
}

.info-header {
    width: 100%;
    height: 100px;
    position: relative;
}
header .info-header img {
    width: auto;
    height: 85px;
    padding: 15px 0 15px 0;

    position: absolute;
    top: 50%;
    left: 90px;
    transform: translateY(-50%);
}

.info-header .contenedor-info{
    position: absolute;
    top: 50%;
    left: 200px;
    transform: translateY(-50%);
}

header .info-header h1 {
    margin: 0;
    color: #fbff2a;
    font-size: 40px;
    letter-spacing: 3px;
    text-align: left;
}
.subtitulo-logo {
    margin: 0;
    color: #fbff2a;
    font-size: 24px;
    text-align: center; 
    position: static;
}
nav {
    display: flex;
    align-items: flex-end;
    padding: 10px;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 30px;
}
.menu-toggle {
    display: none;
}
.menu-icon {
    display: none;
    color: #e7e7e7;
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    order: 2;
}
.menu-items {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
    order: 1;
    flex-direction: row;
    text-align: center;
    transition: all 0.3s ease;
}
nav a {
    color: #fbff2a;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #ff3131;
}

nav a::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff3131;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
nav a:hover::before {
    width: 100%;
}
.menu-toggle:checked ~ .menu-items {
    display: flex;
}
.menu-toggle:checked ~ .menu-icon .menu-open {
    display: none;
}
.menu-toggle:not(:checked) ~ .menu-icon .menu-close {
    display: none;
    padding: 100px;
}
.menu-toggle:not(:checked) ~ .menu-icon .menu-open {
    display: block;
}

.whatsapp-float {
    position: fixed;
    bottom: 2em;
    left: 2em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    z-index: 999;
}

/* El contenedor del icono ahora es transparente por defecto en PC */
.whatsapp-bg {
    transition: transform 0.2s ease-in-out;
    /* Mantenemos un padding para que la sombra no se corte al hacer hover */
    padding: 9px; 
}

/* Aplicamos el efecto de sombra solo al icono en PC */
.whatsapp-bg img {
    width: 3em;
    height: 3em;
    display: block;
    filter: drop-shadow(0 0 8px #fbff2a);
    margin: -1px -1px 1px 1px;
}

.whatsapp-bg:hover {
    transform: scale(1.1);
}

/* Globo de conversación (sin cambios) */
.whatsapp-label {
    background: #ffffff;
    color: black;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 1.3em;
    font-weight: bold;
    white-space: nowrap;
    position: relative;
    font-family: avenir;
}

/* Triangulito del globo (sin cambios) */
.whatsapp-label::after {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

@media (max-width: 576px){
    header{
        height: auto;
    }
    .info-header {
        height: auto;
        display: flex;
        align-items: center;
        position: static;
        min-height: unset;
        width: 100%;
    }
    header .info-header img{
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        height: 90px;
        margin-left: 10px;
        margin-right: 0;
    }
    .info-header .contenedor-info{
        left: 103px;
        right: 50px;
    }
    header .info-header h1{
        font-size: 1.3em;    
        text-align: center;
    }
    header .subtitulo-logo {
        font-size: 1em;
        text-align: center; 
        margin-top: 10px;
    }
    nav{
        position: static;
        transform: none;
        right: 0;
        padding: 0;
        margin-left: auto;
        width: auto;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .menu-icon {
        display: block;
        padding-right: 20px;
        z-index: 3;
    }
    .menu-items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgb(0,0,0,0.9);
        text-align: center;
        margin: 0;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    }
    .menu-items.active {
        display: flex;
        max-height: 500px;
    }
    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 5px;
        font-size: 1rem;
        margin: 0;
        opacity: 0;
    }
    /* Aplicamos la animación a los enlaces cuando el menú está activo */
    .menu-items.active a {
        animation: aparecerDesdeArriba 0.5s ease-out forwards;
    }
    /* Añadimos un retardo a cada enlace para el efecto cascada */
    .menu-items.active a:nth-child(1) {
        animation-delay: 0.1s;
    }
    .menu-items.active a:nth-child(2) {
        animation-delay: 0.2s;
    }
    .menu-items.active a:nth-child(3) {
        animation-delay: 0.3s;
    }
    .menu-items.active a:nth-child(4) {
        animation-delay: 0.4s;
    }
    .menu-items.active a:nth-child(5) {
        animation-delay: 0.5s;
    }

    .whatsapp-float {
        bottom: 7vh;
        left: 1em;
        gap: 6px;
    }

    .whatsapp-bg {
    background-color: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .whatsapp-bg img {
        width: 38px;
        height: 38px;
        filter: none;
    }

    .whatsapp-label {
        font-size: 0.9em;
        white-space: normal;
        line-height: 1.2;
        padding: 6px 10px;
    }

    .whatsapp-label::after {
        left: -11px;
        border-width: 6px;
    }
}