/*Menu */
header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    min-height: 96px;
    width: 100%;
    z-index: 99;
    transform: translateY(0);
    transition: all 0.4s ease;
    will-change: transform, background;
    background: transparent;
    backdrop-filter: none;
}
header.bgWhite {
    transform: translateY(0);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    background: rgba(244,241,236,0.70);
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header * {
    text-decoration: none;
    font-size: 15px;
    color: var(--white-color-default);
    transition: color 0.4s ease;
}
a.logo {
    position: absolute;
    width: 170px;
    height: 54px;
    background-color: #ffffff;
    mask-image: var(--alc-logo-mask, url(../img/logo.png));
    -webkit-mask-image: var(--alc-logo-mask, url(../img/logo.png));
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-size: contain;
    transition: background-color 0.4s ease;
    z-index: 10;
}
i.iconMundi {
    position: relative;
    display: inline-block;
    background: var(--white-color-default);
    mask-image: url(../img/mundi.png);
    width: 15px;
    height: 15px;
    margin-right: 5px;
    z-index: 2;
}
.bgWhite * {
    color: var(--brown-color);
    text-shadow: none;
}

header .logo {
    background-color: #ffffff;
    transition: background-color 0.4s ease;
}
header i.iconMundi {
    background-color: var(--white-color-default);
    transition: background-color 0.4s ease;
}

.home-ready .menu-mobile .logo,
.bgWhite .logo {
    background-color: var(--brown-color);
}
.bgWhite i.iconMundi {
    background-color: var(--brown-color);
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 2.5vw;
}
nav ul {
    display: inline-flex;
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 2.5rem;
}

nav ul li a {
    display: block;
    transition: .3s ease-in;
    font-size: 15px;
}

.mt-cta{
    margin-top: 1.5rem;
}
.hero__blur{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 96px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    /* El blur se desvanece de arriba hacia abajo */
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 0;
    left: 0;
    top: 0;
}
.cta-btn {
    display: inline-block;
    padding: 8px 15px;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
    text-align: center;
    text-decoration: none;
}
.cta-btn.cta-btn-outline.cta-btn-white{
    border-color: rgba(247, 244, 239, 0.72);
    background: transparent;
    color: #f5f1e8;
}
.cta-btn.cta-btn-outline.cta-btn-white:hover{
    background: rgba(42, 42, 42, 0.34);
    color: #f5f1e8;
}

.box-menu-right {
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    margin-left: 1.5rem;
}

.query {
    padding: 5px 10px;
    border: 1px solid var(--white-color-soft);
    border-radius: 5px;
    margin-right: 2rem;
    transition: .4s ease-in;
}
.query:hover {
    color: var(--tuquesa-color);
    transition: .4s ease-in;
}

.bgWhite .query {
    border: 1px solid var(--brown-color);
    color: var(--brown-color);
    transition: all 0.4s ease;
}

.box-menu-right select {
    background: transparent;
    border: transparent;
}

.box-menu-right select * {
    background: transparent;
    border: transparent;
    color: var(--main-color);
}

.bgWhite nav select {
    background: transparent;
    color: var(--main-color);
}

.box-menu-right select:focus,
.box-menu-right input:focus,
.box-menu-right button:focus {
    outline: none;
    /* Removes the focus ring */
    border: none;
    /* Removes the physical border if desired */
    box-shadow: none;
    /* Removes any browser-specific glow/shadow */
}

.box-menu-right select option {
    background-color: var(--white-color);
    color: var(--main-color);
}
#lenguage {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
}
@media(min-width: 768px){
    a.logo {
        position: relative;
    }
}
/* OVERLAY */
header .overlay {
    opacity:0;
    visibility:hidden;
    display: none;
    transition:
        opacity .45s ease,
        visibility .45s ease;
}
header.menu-mobile .overlay{
    position:fixed;
    width: 100%;
    height: 100vh;
    inset:0;
    z-index:0;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction: column;
    background:rgba(255,255,255,.50);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    opacity:0;
    visibility:hidden;
    transition:
        opacity .7s ease,
        visibility .45s ease;
}
/* ACTIVO */
header.menu-mobile .overlay{
    opacity:1;
    visibility:visible;
    transition:
        opacity .7s ease,
        visibility .45s ease;
}
header.menu-mobile .overlay nav {
    margin-right: 0;
}
header.menu-mobile .overlay nav ul li {
    margin-left: 0;
    text-align: center;
}
header.menu-mobile .overlay *, header.menu-mobile .overlay ul {
    flex-direction: column;
    color: var(--brown-color);
}
header.menu-mobile .overlay ul li a {
    /* color: var(--brown-color); */
    font-size: 25px;
    line-height: 2;
}
header.menu-mobile .overlay .query {
    margin: 0 auto 20px;
    border: 1px solid var(--brown-color);
}
header.menu-mobile .overlay .box-menu-right {
    margin-left: 0;
    margin-top: 15px;
}
header.menu-mobile .overlay .box-menu-right * {
    font-size: 20px;
}
header.menu-mobile {
    position: fixed;
    transform: translateY(0) !important;
    backdrop-filter: none !important;
    /* transition: 0s; */
    transition:
        opacity .7s ease,
        visibility .45s ease;
    background: none !important;
}
header.menu-mobile *{
    color: var(--brown-color) !important;
}
@media(min-width:991px){
    header  .overlay {
        position: relative;
        width: calc(100% - 150px);
        height: inherit;
        display: inline-flex;
        justify-content: flex-end;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity:1;
        visibility:visible;
    }
    header .btn_menu {
        display: none;
    }
}
@media(min-width:1199px){
    nav {
        margin-right: 6vw;
    }
}

/* Hero video */
.bg-video {
    position: relative;
    /* display: flex;
    align-items: center;
    justify-content: center; */
    background: black;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bg-fallback {
    /* display: none; */
    position: absolute;
    inset: 0;
    /* ocupa todo el contenedor */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* LA CLAVE */
    object-position: center;
    transform: scale(1.02);
    transition: opacity .35s ease-out;
    z-index: 2;
}

/* CONTENEDOR */
#player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease-out;
    z-index: 1;
}

/* POSTER */
.poster {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease;
    z-index: 3;
}

.bg-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* background: rgb(0 0 0 / .15); */
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.50) 0%,
            rgba(0, 0, 0, 0.35) 35%,
            rgba(0, 0, 0, 0.15) 65%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 5;
}

/* CONTENIDO */
.bg-video > .container.hero-content {
    position: absolute;
    top: calc(38% - 60px);
    left: 0;
    right: 0;
    z-index: 10;
}



.hero-title-block {
    max-width: 800px;
}

.bg-video .container.hero-content h1,
.bg-video .container.hero-content h2 {
    color: var(--white-color-default);
    text-align: left;
    margin-bottom: 0;
    white-space: nowrap;
}

.bg-video .container.hero-content h1 {
    line-height: 1.2;
}

.bg-video .container.hero-content h2 {
    line-height: 1.15;
    margin-top: 0.35em;
}

@media(min-width: 1199px) {
    .bg-video .container.hero-content h1 {
        font-size: 60px;
    }

    .bg-video .container.hero-content h2 {
        font-size: 47px;
    }
    .bg-video .container.hero-content .hero-title-block,
    .bg-video .container.hero-content .hero-subtitle {
        margin-left: 80px;
    }
}

.bg-video .container.hero-content p.hero-subtitle {
    color: var(--white-color);
    max-width: 540px;
    font-weight: lighter;
    margin-top: 32px;
    font-size: 15px;
    line-height: 1.5;
}

@media(min-width: 1199px) {
    .bg-video .container.hero-content p.hero-subtitle {
        font-size: 15px;
    }
}

/* CUANDO EL VIDEO ESTÁ REPRODUCIÉNDOSE */
.bg-video.ready #player {
    opacity: 1;
    transition: opacity .35s ease-out;
    z-index: 1;
}

.bg-video.ready .bg-fallback {
    transform: scale(1);
    opacity: 0;
    transition: opacity .25s ease-out;
}

.bg-video.ready .poster {
    opacity: 0;
}
/* .mouse{
    position: absolute;
    left: 0;
    right: 0;
    display: inline-block;
    width: 18px;
    height: 32px;
    border: 1px solid #fff;
    margin: 0 auto;
    border-radius: 10px;
    bottom: 5%;
    z-index: 90;
}
.mouse::after{
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
} */

/* 🖱️ Mouse completo */
.mouse {
    position: absolute;
    bottom: 48px;
    width: 26px;
    height: 42px;
    border: 2px solid var(--white-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6px;
    animation: floatMouse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 90;
}

.mouse::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 6px;
    background: var(--white-color);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(0);
    animation: scroll 3s ease-in-out infinite;
}

/* 🔥 Movimiento del mouse (suave + pausa) */
@keyframes floatMouse {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateY(10px);
        opacity: 1;
    }
    70% {
        transform: translateY(10px);
        opacity: 0.6; /* leve fade para elegancia */
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 🔥 Movimiento interno (bolita) */
@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
    }
    60% {
        opacity: 1;
        transform: translateY(12px);
    }
    100% {
        opacity: 0;
        transform: translateY(18px);
    }
}
