/* =====================================================
   HEADER - OPTIMIZACIÓN CANARIAS V2
===================================================== */

#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

#header .container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 14px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =====================================================
   LOGO
===================================================== */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 190px;
    height: auto;
    display: block;
}

/* =====================================================
   NAVEGACIÓN
===================================================== */

.nav ul {
    display: flex;
    align-items: center;
    gap: 40px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav a {
    color: #0B2149;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    transition: color 0.3s ease;
}

.nav a:hover {
    color: #7DAA3D;
}

/* =====================================================
   BOTÓN HEADER
===================================================== */

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #7DAA3D;
    color: #ffffff;

    padding: 16px 28px;

    border-radius: 12px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.btn-header:hover {
    background: #6A9332;
    transform: translateY(-2px);
}

/* =====================================================
   BOTÓN HAMBURGUESA
===================================================== */

.menu-toggle {
    display: none;

    width: 48px;
    height: 48px;

    padding: 0;

    border: none;
    border-radius: 10px;

    background: #0B2149;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    z-index: 1100;
}

.menu-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    background: #ffffff;

    border-radius: 2px;

    transition: all 0.3s ease;
}

/* =====================================================
   ANIMACIÓN HAMBURGUESA
===================================================== */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {

    #header .container {
        padding: 14px 25px;
    }

    .nav ul {
        gap: 25px;
    }

    .nav a {
        font-size: 14px;
    }

    .btn-header {
        padding: 14px 20px;
        font-size: 14px;
    }

}

/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 768px) {

    #header .container {
        padding: 12px 20px;
    }

    .logo img {
        height: 52px;
    }

    /* Mostrar hamburguesa */

    .menu-toggle {
        display: flex;
    }

    /* Ocultar botón de escritorio */

    .btn-header {
        display: none;
    }

    /* Menú móvil */

    .nav {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        background: #ffffff;

        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    /* Menú abierto */

    .nav.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .nav ul {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 15px 20px 25px;
    }

    .nav li {
        width: 100%;
    }

    .nav a {

        display: block;

        width: 100%;

        padding: 16px 10px;

        border-bottom: 1px solid #EEF0F3;

        font-size: 16px;
    }

    .nav li:last-child a {
        border-bottom: none;
    }

}

/* =====================================================
   MÓVIL PEQUEÑO
===================================================== */

@media (max-width: 480px) {

    #header .container {
        padding: 10px 16px;
    }

    .logo img {
        height: 46px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }

}