* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: sans-serif;
    margin: 0;
    background: #014e68;
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background-color: rgba(20, 65, 114, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.logo img {
    max-width: 80px;
    max-height: 55px;
    margin-left: 45px;
    height: 55px;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center top;
}

.logo img:hover {
    transform: scale(2.3) translateY(6px);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 15px;
}

.menu a {
    color: #f7f7f9;
    font-weight: bold;
    transition: color 0.3s ease, background 0.3s ease;
}

.menu a:hover,
.menu a.active {
    color: #000204;
}

.idiomas {
    display: flex;
    align-items: center;
    gap: 6px;
}

.idiomas img {
    width: 40px;
    cursor: pointer;
    max-width: 80px;
    max-height: 55px;
    margin-left: 4px;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center top;
}

.idiomas img:hover {
    transform: scale(2) translateY(6px);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.menu-mobile {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

main {
    margin-top: 90px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

footer{

background:#144272;
color:white;
padding:50px 0;

}

.footer-container{

max-width:1200px;
margin:auto;
display:flex;
justify-content:space-between;
flex-wrap:wrap;
gap:30px;

}

.footer-section{

width:22%;

}

.footer-section h3{

margin-bottom:15px;

}

.footer-section ul{

list-style:none;
padding:0;

}

.footer-section li{

margin-bottom:8px;

}

.footer-section a{

color:white;
text-decoration:none;

}

.footer-section a:hover{

color:#8fd3ff;

}

.footer-logo{

text-align:center;

}

.footer-logo img{

max-width:110px;
margin:auto;
margin-bottom:10px;

}

.footer-bottom{

text-align:center;
margin-top:40px;
border-top:1px solid rgba(255,255,255,0.2);
padding-top:20px;
font-size:14px;

}

@media(max-width:768px){

.footer-section{

width:100%;
text-align:center;

}
}

.social-icons{

display:flex;
justify-content:center;
gap:12px;
margin-top:10px;

}

.social-icons a{

color:white;
font-size:18px;
width:36px;
height:36px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
background:#0e3b5c;
transition:0.3s;

}

.social-icons a:hover{

background:#1da1f2;

}

.whatsapp-container{

position:fixed;
right:20px;
bottom:20px;
z-index:999;

}

.whatsapp-float{

width:55px;
height:55px;
background:#25D366;
color:white;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:26px;
cursor:pointer;
box-shadow:0 4px 10px rgba(0,0,0,0.3);

}


.whatsapp-menu{

display:none;
flex-direction:column;
background:white;
padding:12px;
border-radius:10px;
margin-bottom:10px;
box-shadow:0 4px 12px rgba(0,0,0,0.2);

}

.whatsapp-menu a{
color:#333;
padding:8px;
text-decoration:none;
font-weight:bold;
}

.whatsapp-menu a:hover {
    background: #f3f3f3;
}

.whatsapp-float {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-auto-rows: auto;
        align-items: center;
        padding: 10px 0;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        margin-left: 20px;
    }

    .menu-mobile {
        display: block;
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        font-size: 30px;
    }

    .idiomas {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        gap: 6px;
        margin-right: 12px;
        min-width: 80px;
    }

    .idiomas img {
        width: 30px;
    }

    .idiomas img:hover {
        transform: scale(2.3) translateY(4px);
    }

    nav {
        grid-column: 1 / 4;
        grid-row: 2;
    }

    .menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
        width: calc(100% - 24px);
        max-width: 420px;
        margin: 0;
        padding: 14px;
        display: none;
        opacity: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        background: rgba(20, 65, 114, 0.98);
        backdrop-filter: blur(8px);
        border-radius: 14px;
        box-shadow: 0 14px 30px rgba(0,0,0,0.28);
        z-index: 9999;
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .menu.open {
        display: flex;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .menu a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
        text-align: center;
        color: #f5efef;
        background: rgba(255,255,255,0.04);
        white-space: normal;
    }

    .menu a:hover,
    .menu a.active {
        color: #ffffff;
        background: rgba(255,255,255,0.12);
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }
}