
/* MAV MARKETING - ROYAL SIGNATURE */

.header {
    --royal-purple:#421b49;
    --royal-gold:#b68d48;
    --royal-ivory:#faf6ef;

    isolation:isolate;
    position:sticky;
    top:0;
    z-index:1000;

    border-top:5px solid var(--royal-purple);
    border-bottom:1px solid #b68d48;

    background:
        radial-gradient(
            ellipse at 9% 0%,
            #e4d0ad35,
            transparent 40%
        ),
        linear-gradient(
            110deg,
            #faf5ec,
            #fffdfa 55%,
            #faf4ec
        );

    box-shadow:0 5px 25px #421b490b;

    transition:
        background .35s ease,
        box-shadow .35s ease;
}

/* Ondas decorativas doradas */

.header::before {
    content:"";
    position:absolute;
    inset:0 0 0 auto;
    width:240px;
    z-index:-1;
    pointer-events:none;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120'%3E%3Cg fill='none' stroke='%23b68d48' stroke-width='1'%3E%3Cpath d='M0 120 C110 115 148 45 240 8' opacity='.72'/%3E%3Cpath d='M35 120 C135 115 174 60 240 27' opacity='.55'/%3E%3Cpath d='M73 120 C154 117 197 80 240 48' opacity='.36'/%3E%3C/g%3E%3C/svg%3E");

    background-position:right bottom;
    background-repeat:no-repeat;
    background-size:contain;
}

.header .navigation {
    width:min(1500px,91%);
    min-height:118px!important;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:clamp(25px,4vw,70px);

    transition:min-height .3s ease;
}

/* Logotipo original */

.header .navigation > .brand {
    position:relative;
    display:flex;
    align-items:center;
    flex-shrink:0;
    padding-right:clamp(28px,4vw,62px);
}

.header .navigation > .brand::after {
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:52px;

    background:linear-gradient(
        transparent,
        #b68d48bb,
        transparent
    );
}

.header .brand img {
    display:block;
    width:clamp(200px,17vw,265px)!important;
    height:auto!important;
    max-height:88px!important;
    max-width:100%;
    object-fit:contain;

    transition:
        width .3s ease,
        max-height .3s ease;
}

/* Navegacion editorial */

.header .nav-links {
    flex:1;
    justify-content:flex-end;
    align-items:center;
    gap:clamp(25px,4vw,65px)!important;
}

.header .nav-links > a {
    position:relative;

    font-family:
        Georgia,
        "Times New Roman",
        serif!important;

    font-size:clamp(19px,1.65vw,25px)!important;
    font-weight:400!important;
    font-style:normal!important;
    letter-spacing:-.25px!important;
    text-transform:none!important;

    color:var(--royal-purple);

    padding:17px 3px!important;

    transition:
        color .25s ease,
        font-size .3s ease;
}

.header .nav-links > a:hover {
    color:#9c7336;
}

.header .nav-links > a[aria-current="page"] {
    font-weight:600!important;
}

.header .nav-links > a::after {
    bottom:7px;
    height:2px;

    background:linear-gradient(
        90deg,
        #b68d48,
        #d8b773,
        #b68d48
    );

    box-shadow:0 2px 6px #b68d4822;

    transition:width .3s ease;
}

/* Idioma */

.header .mav-language {
    position:relative;
    padding-left:clamp(22px,2.4vw,38px);
}

.header .mav-language::before {
    content:"";
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:46px;

    background:linear-gradient(
        transparent,
        #b68d48bb,
        transparent
    );
}

.header .mav-language summary {
    min-width:85px;
    justify-content:center;

    border:1px solid #b68d4877!important;
    border-radius:40px!important;
    padding:12px 19px!important;

    background:#ffffff40;
    color:var(--royal-purple);

    font-family:Georgia,serif!important;
    font-style:normal!important;
    font-size:17px!important;
    font-weight:500!important;

    transition:
        background .25s ease,
        border-color .25s ease;
}

.header .mav-language summary:hover {
    background:#f0e2cc;
    border-color:#b68d48!important;
}

.header .mav-language-options {
    background:#fffcf6;
    border-color:#b68d4860;
    border-radius:12px;
    box-shadow:0 15px 40px #421b491c;
}

.header .mav-language-options a {
    font-family:Georgia,serif!important;
    font-style:normal!important;
    font-size:17px;
}

/* Glass compacto al desplazarse */

.header.is-scrolled {
    background:rgba(250,246,239,.91);
    backdrop-filter:blur(22px) saturate(135%);
    -webkit-backdrop-filter:blur(22px) saturate(135%);
    box-shadow:0 6px 25px #421b4917;
}

.header.is-scrolled .navigation {
    min-height:76px!important;
}

.header.is-scrolled .brand img {
    width:190px!important;
    max-height:58px!important;
}

.header.is-scrolled .brand::after {
    height:38px;
}

.header.is-scrolled .nav-links > a {
    font-size:20px!important;
}

.header.is-scrolled .mav-language summary {
    padding:9px 16px!important;
}

/* Accesibilidad */

.header a:focus-visible,
.header summary:focus-visible,
.header button:focus-visible {
    outline:2px solid #b68d48;
    outline-offset:4px;
}

/* Tablet */

@media(max-width:1000px) {

    .header .navigation {
        gap:25px;
        min-height:102px!important;
    }

    .header .brand img {
        width:205px!important;
    }

    .header .nav-links {
        gap:25px!important;
    }

    .header .nav-links > a {
        font-size:21px!important;
    }
}

/* Movil */

@media(max-width:700px) {

    .header {
        border-top-width:4px;
    }

    .header::before {
        width:115px;
        opacity:.65;
    }

    .header .navigation {
        min-height:86px!important;
        gap:15px;
        padding:10px 0;
    }

    .header.is-scrolled .navigation {
        min-height:69px!important;
    }

    .header .navigation > .brand {
        padding-right:0;
    }

    .header .navigation > .brand::after,
    .header .mav-language::before {
        display:none;
    }

    .header .brand img {
        width:185px!important;
        max-height:62px!important;
    }

    .header.is-scrolled .brand img {
        width:165px!important;
        max-height:50px!important;
    }

    .header .nav-links {
        align-items:stretch;
        justify-content:flex-start;
        gap:7px!important;

        background:rgba(255,251,244,.98);
        border:1px solid #b68d4866;
        border-radius:0 0 14px 14px;
        box-shadow:0 18px 35px #421b491a;
    }

    .header .nav-links > a,
    .header.is-scrolled .nav-links > a {
        font-size:23px!important;
        padding:13px 10px!important;
    }

    .header .mav-language {
        padding:0;
        margin-top:10px;
    }

    .header .mav-mobile-toggle {
        border-radius:50%;
        background:#ffffff55;
    }
}

@media(prefers-reduced-motion:reduce) {
    .header,
    .header * {
        animation:none!important;
        transition:none!important;
    }
}
