* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #d7eaf7 url('../img/fondo.jpg') center top no-repeat;
    color: #ffffff;
    overflow-x: hidden;
}

.site-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.top-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('../img/hojas.png') center top no-repeat;
    pointer-events: none;
    z-index: 1;
}

.header {
    position: relative;
    z-index: 5;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;

    padding: 60px 5% 0;
}

.logo-container {
    display: block;
    width: 292px;
    flex-shrink: 0;
}

.logo {
    width: 100%;
    height: 100px;

    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 22px;

    background:
        rgba(255,255,255,0.5)
        url('../img/LOGO_AIVER.jpg')
        center center
        no-repeat;

    background-size: contain;

    box-shadow: 0 0 8px rgba(5,57,133,0.5);
}

.main-menu {
    display: flex;
    align-items: center;

    width: 682px;
    max-width: 100%;
    height: 48px;

    padding: 0 24px;

    background: url('../img/Barra_menu-flash.png') center center no-repeat;
    background-size: contain;
}

.main-menu a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 95px;
    height: 48px;

    text-decoration: none;
    font-size: 15px;
    color: #ffffff;

    transition: all 0.2s ease;
}

.main-menu a:hover,
.main-menu a.active {
    font-family: 'Oxygen', sans-serif;
    /*font-weight: 700;*/
    color: #053985;

    background: url('../img/btn.png') center bottom no-repeat;
}

/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    position: relative;

    width: 90%;
    height: 250px;

    margin: 40px auto 0;

    border-radius: 30px;
    overflow: visible;
}

.hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    transition: opacity 0.8s ease-in-out;

    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
}

.promo-section {
    display: flex;
    justify-content: center;
    gap: 12px;

    width: 78%;
    margin: 55px auto 0;
    padding-bottom: 20px;
}

.promo-card {
    flex: 1;

    transition: transform 0.2s ease;
}

.promo-card.large {
    flex: 0.95;
}

.promo-card.small {
    flex: 0.8;
}

.promo-card:hover {
    transform: scale(1.05);
}

.footer {
    border-radius: 25px 25px 0 0;
    margin-top: 18px;
    padding: 35px 20px;

    background: #053985;

    text-align: center;
    font-size: 16px;
}

.footer a {
    color: #70f500;
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   WHATSAPP BUTTON
========================= */

.whatsapp-button {
    position: fixed;

    top: 10px;
    right: 10px;

    bottom: auto;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 18px;

    background: #25D366;

    border-radius: 60px;

    text-decoration: none;

    box-shadow: 0 6px 20px rgba(0,0,0,0.25);

    z-index: 999;

    transition: all 0.25s ease;
}

.whatsapp-button:hover {
    transform: scale(1.05);
}

.whatsapp-button {
    animation: whatsappFloat 6s ease-in-out infinite;
}

@keyframes whatsappFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.whatsapp-button img {
    width: 34px;
    height: 34px;
}

.whatsapp-button span {
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================
   WHATSAPP RESPONSIVE
========================= */

@media (max-width: 1200px) {

    .whatsapp-button {
        padding: 10px 16px;
        gap: 10px;
    }

    .whatsapp-button span {
        font-size: 13px;
    }

    .whatsapp-button img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 980px) {

    .whatsapp-button {
        padding: 10px 14px;
        gap: 8px;

        border-radius: 40px;
    }

    .whatsapp-button span {
        font-size: 0;
    }

    .whatsapp-button span::after {
        content: '¡Contáctanos!';

        font-size: 13px;
        font-weight: 700;

        color: #ffffff;

        white-space: nowrap;
    }

    .whatsapp-button img {
        width: 34px;
        height: 34px;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1080px) {

    .hero-slider {
        
        height: 180px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
    }

    .main-menu {
        justify-content: center;
    }

    .promo-section {
        width: 92%;
    }
}


@media (max-width: 768px) {

    .header {
        padding-top: 55px;
    }

    .main-menu {
        flex-wrap: wrap;

        width: 100%;
        height: auto;

        padding: 10px;

        background-position: center top;
    }

    .main-menu a {
        min-width: auto;
        width: 20%;
        font-size: 14px;
    }

    .hero-slider {
        height: 110px;
        width: 90%;
        border-radius: 0;
    }

    .promo-section {
        flex-direction: column;
        width: 75%;
    }

    .footer {
        margin-top: 20px;
        font-size: 14px;
    }

}


@media (max-width: 500px) {

    .logo-container {
        width: 90%;
        max-width: 292px;
    }

    .main-menu a {
        font-size: 13px;
        letter-spacing: -0.5px;
    }

    .promo-section {
        width: 85%;
    }
}

/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
    display: none;

    position: absolute;
    top: 95px;
    right: 5%;

    background: #053985;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    padding: 10px 14px;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 3px 8px rgba(0,0,0,0.2);

    z-index: 100;
}


@media (max-width: 768px) {

    .whatsapp-button {
        top: 10px;
        right: 10px;
    
        bottom: auto;
    }

    .menu-toggle {
        display: block;
        margin: 10px auto 0;
    }

    .main-menu {
        display: none;

        flex-direction: column;
        align-items: stretch;

        width: 92%;
        height: auto;

        margin: 10px auto 0;
        padding: 15px;

        background: rgba(5,57,133,0.95);
        border-radius: 18px;
    }

    .main-menu.menu-open {
        display: flex;
    }

    .main-menu a {
        width: 100%;
        min-width: 0;

        height: auto;

        padding: 14px 10px;

        font-size: 16px;
        text-align: center;

        background: none !important;
        color: #ffffff !important;
    }

    .main-menu a:hover,
    .main-menu a.active {
        background: rgba(255,255,255,0.12) !important;
        border-radius: 10px;
        color: #ffffff !important;
    }
}

/* =========================
   HERO SLIDER CONTROLS
   Flechas + indicadores
========================= */

.slider-arrow {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 54px;
    height: 54px;

    border: none;
    border-radius: 50%;

    background: rgba(5, 57, 133, 0.85);

    color: #fff;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;

    z-index: 20;

    transition: all 0.25s ease;
}

.slider-arrow:hover {
    background: rgba(5, 57, 133, 1);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev {
    left: -38px;
}

.slider-arrow.next {
    right: -38px;
}

.slider-dots {
    position: absolute;

    left: 50%;
    bottom: -50px;

    transform: translateX(-50%);

    display: flex;
    gap: 20px;

    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: rgba(135, 135, 135, 0.501);

    cursor: pointer;

    transition: all 0.25s ease;
}

.dot.active {
    background: #2e67c7;
    transform: scale(1.15);
}