
/* NAVBAR */
.navbar {
    position: fixed;    
    width: 100vw;
    height: var(--alto-menu);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: 0.3s ease;
}
.top {
    top:0px;
}
.botton{
    bottom: 0px;
}

.sticky {
    position: sticky;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
    position: relative;
    padding-left: 10%;
    width: 25%;
}
.nav-right {
    display: flex;
    justify-content: flex-end;
    position: relative;
    padding-right: 10%;
    width: 25%;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-nav {
    height: 55px;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
}

/* ICONOS */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-color: var(--color-light);
    mask: center / contain no-repeat;
    transition: 0.3s;
}

.icon-whatsapp { mask-image: url('/svg/whatsapp.svg'); }
.icon-facebook { mask-image: url('/svg/facebook.svg'); }
.icon-instagram { mask-image: url('/svg/instagram.svg'); }
.icon-youtube { mask-image: url('/svg/youtube.svg'); }
.icon-linkedin { mask-image: url('/svg/linkedin.svg'); }
.icon-menu-hamburguesa { mask-image: url('/svg/menu-hamburguesa.svg'); }
.icon-cruz { mask-image: url('/svg/cruz.svg'); }
.icon-incluye { mask-image: url('/svg/incluye.svg'); }
.icon-no-incluye { mask-image: url('/svg/no-incluye.svg'); }
.icon-mascara {mask-image: url('/svg/mascara.svg');}

.navbar-scrolled {
    background: var(--color-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-scrolled .icon {
    background-color: var(--color-dark);
}

.social {
    display: flex;
    gap: 10px;
}

.social a:hover .icon {
    background-color: var(--color-primary);
}

/* OFFCANVAS */
.offcanvas {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--color-light);
    transition: 0.3s;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.offcanvas.open {
    left: 0;
}

.offcanvas-header,
.offcanvas-content,
.offcanvas-bottom {
    padding: 20px;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    color: var(--color-primary);
}

.offcanvas-content {
    flex: 1;
    overflow-y: auto;
}

.offcanvas-bottom {
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.offcanvas .icon {
    background-color: var(--color-dark);
}

.offcanvas-header .icon ,
.offcanvas-bottom .icon {
    background-color: var(--color-primary);
}

/* MENU */
.menu-list {
    list-style: none;
    padding: 0 0 20px;
    font-size: 1.2rem;
    margin: 0px;
}

.menu-list li {
    margin-bottom: 15px;
}

.menu-list a {
    text-decoration: none;
    font-weight: bold;
    color: var(--color-primary);
}

.menu-list a:hover {
    color: var(--color-dark);
}

/* OVERLAY */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1500;
}

#overlay.show {
    opacity: 1;
    visibility: visible;
}

/* PANEL DESTINOS */
.destinos-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100vw - 300px);
    height: 100vh;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    transform: translateX(100%);
    transition: 0.4s;
    z-index: 3000;
    overflow-y: auto;
}

.destinos-panel.active {
    transform: translateX(0);
}

.close-panel {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
}

.logo-panel {
    height: 100px;
    top: 20px;
    left: 30px;
    position: relative;
}

.svg-wrapper {
    width: 100%;
    height: 100%;
    padding: 40px;
}
.svg-wrapper svg g {
    cursor: pointer;
}
.svg-wrapper svg {
    width: 100%;    
    object-fit: contain;
}
.svg-wrapper svg g[id] path {
    transition: fill 0.25s ease;
}

/* Hover sobre el grupo completo */
.svg-wrapper svg g[id]:hover path {
    fill: #b58c3f; /* ajusta a tu color */
}

.svg-globo-wrapper{
    background: rgba(255,255,255,0.92);
}
.svg-globo-wrapper svg g[id] path {
    transition: opacity 0.25s ease;
    opacity: 0.2;
    fill:#b58c3f;
}
.svg-globo-wrapper svg g[id]:hover path{
    opacity: 1;
}
.seccion-globo {
    height: calc(100vh - var(--alto-menu));        
}

.map-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.map-tooltip svg {
    width: 160px;
    height: auto;
    display: block;
}

/* MOBILE */
.destinos-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-right {
        padding-right: 10px;
        width: 10%;
    }
    .nav-left {
        padding-left: 10px;
        width: auto;
    }

    .destinos-panel {
        width: 100vw;
    }
    .destinos-panel.active {
        transform: translateX(0);
        left: 0;
    }

    .destinos-desktop {
        display: none;
    }

    .destinos-mobile {
        display: block;
        text-align: center;
        margin-top: 80px;
        left: 0;
        right: auto;
        
    }
    .offcanvas {
        width: 100vw;
        left : -100vw;
    }
    .offcanvas.destinos-open {
    left: -100vw;
    }
    .seccion-globo {
        height: auto;
        
    }
}

/* El navbar sigue fijo abajo */
#InnerNavbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--alto-menu);
    z-index: 1000;
    overflow: hidden; /* necesario para la ola */
}

/* La ola animada */
#InnerNavbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(18, 114, 98, 0) 0%,
        rgba(18, 114, 98, 0.4) 20%,
        rgba(255, 127, 80, 0.7) 50%,
        rgba(18, 114, 98, 0.4) 80%,
        rgba(18, 114, 98, 0) 100%
    );
    opacity: 0;
    pointer-events: none;
}

#InnerNavbar.llamada::after {
    animation: olaNavbar 2.5s ease;
    opacity: 1;
}

@keyframes olaNavbar {
    0%   { left: -100%; opacity: 0; }
    10%  { opacity: 1; }
    50%  { left: 0%; }
    90%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
@media (max-width: 768px) {
  nav#InnerNavbar.navbar.botton.navbar-scrolled {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;

    width: 100% !important;
    height: auto !important;
    min-height: unset !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    gap: 8px;
    padding: 12px 15px;
    box-sizing: border-box;
  }

  nav#InnerNavbar .nav-left,
  nav#InnerNavbar .nav-center,
  nav#InnerNavbar .nav-right {
    width: 100%;
    text-align: center;
  }

  nav#InnerNavbar .nav-right .btn {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: block;
  }
}

/* Contenedor general */
.idioma-wrapper {
  position: relative;
  margin-left: 14px;
}

/* Icono idioma.svg */
.idioma-icono {
  width: 22px;
  height: 22px;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-scrolled .idioma-icono {
  color: #000;
}

.idioma-icono:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Menú desplegable */
.menu-idiomas {
  position: absolute;
  top: 30px;
  right: 0;  
  padding: 8px;
  border-radius: 6px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 9999;
}

.menu-idiomas.visible {
  display: flex;
}

/* Banderas */
.menu-idiomas img {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-idiomas img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Ocultar basura visual de Google */
.goog-te-banner-frame,
.goog-te-menu-frame,
.goog-te-gadget img {
  display: none !important;
}
