/* Ajustes de rendimiento y visualización — v14 */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.navigation-menu .container {
  display: flex;
  align-items: center;
}

.navigation-menu .width-logo {
  flex: 0 0 170px;
  width: 170px;
}

.navigation-menu .width-logo img {
  display: block;
  width: 150px;
  height: auto;
  max-height: 122px;
  object-fit: contain;
}

/* La plantilla incluye dos variantes del mismo logo; se usa una sola en todos los estados. */
.navigation-menu .width-logo .logo_sticky {
  display: none !important;
}

.navigation-menu .width-logo .logo_transparent_static,
.sticky_header.affix .navigation-menu .width-logo .logo_transparent_static {
  display: block !important;
}

.navigation-menu .width-navigation {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.sticky_header.affix .navigation-menu .width-logo img {
  width: 82px;
  max-height: 67px;
}

.site-header .navbar-nav > li > a {
  white-space: nowrap;
}

/* Encabezados interiores: imagen completa, mayor altura y contraste legible. */
.wrapper-content > .top_site_main {
  position: relative;
  min-height: clamp(230px, 18.2vw, 364px);
  height: clamp(230px, 18.2vw, 364px);
  background-position: center center !important;
  background-size: cover !important;
}

.wrapper-content > .top_site_main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 15, .48);
}

.top_site_main .banner-wrapper {
  position: relative;
  z-index: 1;
}

.top_site_main .banner-wrapper .heading_primary {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}

/* Presentación del video del inicio. */
.home-video-section {
  display: flex;
  align-items: flex-start;
  gap: 52px;
  width: calc(100% - 64px);
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.home-video-section > [class*="col-"] {
  float: none;
  padding-left: 0;
  padding-right: 0;
}

.home-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}

.home-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.home-video-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-video-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .36);
}

.home-video-fallback span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  border: 2px solid #fff;
  background: #ffb300;
  color: #16110a;
  font-size: 16px;
  font-weight: 700;
}

.home-video-section .post_list_item_excerpt {
  font-size: 16px;
  line-height: 1.72;
}

.home-video-section .post_list_item_excerpt > div {
  text-align: left !important;
}

.home-video-section .icon-btn {
  display: inline-flex;
  min-width: 190px;
  min-height: 50px;
  padding: 14px 28px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.home-video-section .icon-btn i {
  margin-right: 9px;
}

/* Slider independiente del carrusel antiguo */
.legend-hero {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 68vw, 780px);
  overflow: hidden;
  background: #100904;
  color: #fff;
}

.legend-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .75s ease, visibility .75s ease;
}

.legend-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.legend-hero__media,
.legend-hero__media picture,
.legend-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.legend-hero__media img {
  object-fit: cover;
  object-position: center;
}

.legend-hero__slide:nth-child(1) .legend-hero__media img {
  object-position: 52% center;
}

.legend-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,5,2,.88) 0%, rgba(8,5,2,.62) 42%, rgba(8,5,2,.22) 72%, rgba(8,5,2,.34) 100%);
}

.legend-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(560px, 68vw, 780px);
  max-width: 720px;
  padding-top: 60px;
  padding-bottom: 90px;
}

.legend-hero__eyebrow {
  margin: 0 0 18px;
  color: #ffb300;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.legend-hero h1,
.legend-hero h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.06;
  text-shadow: 0 3px 18px rgba(0,0,0,.4);
}

.legend-hero__text {
  max-width: 650px;
  margin: 0 0 30px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.legend-hero__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  background: #ffb300;
  color: #17110a;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.legend-hero__button:hover,
.legend-hero__button:focus {
  background: #fff;
  color: #17110a;
  transform: translateY(-2px);
}

.legend-hero__controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1170px, calc(100% - 40px));
  transform: translateX(-50%);
}

.legend-hero__arrows,
.legend-hero__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-hero__arrow,
.legend-hero__dot {
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.34);
  color: #fff;
  cursor: pointer;
}

.legend-hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
}

.legend-hero__dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.48);
}

.legend-hero__dot.is-active {
  background: #ffb300;
}

/* Evita el gran vacío lateral de las fichas en monitores amplios. */
@media (min-width: 1200px) {
  .single-woo-tour > .container {
    width: min(1380px, calc(100% - 80px));
  }

  .tb_single_tour .images_single_left {
    width: calc(100% - 360px);
    padding-right: 36px;
  }

  .tb_single_tour .description_single {
    width: 360px;
  }
}

.single-tour-tabs-panel,
.panel-group .content-inner {
  overflow-wrap: anywhere;
}

.single-tour-tabs-panel {
  padding: clamp(20px, 3vw, 34px) !important;
}

.single-tour-tabs-panel h1 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
}

.service-surprise {
  border-color: #ffb300 !important;
  background: linear-gradient(135deg, #fff 0%, #fff9e8 100%);
}

.service-surprise-wrap {
  margin-top: 30px;
}

/* Acerca de: tarjetas equilibradas, imágenes consistentes y lectura cómoda. */
.about-page .about-main {
  padding-right: 34px;
}

.about-page .about-card {
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid #e8e8e8;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

/* La plantilla añade pseudo-elementos de limpieza; dentro del grid creaban filas vacías. */
.about-page .about-card::before,
.about-page .about-card::after {
  content: none !important;
  display: none !important;
}

.about-page .about-card:nth-child(even) .img_post {
  order: 2;
}

.about-page .about-card .img_post,
.about-page .about-card .entry-content {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.about-page .about-card .img_post img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.about-page .about-card .entry-title {
  margin-top: 0;
  margin-bottom: 14px;
}

.about-page .about-card .entry-desc,
.about-page .about-card .entry-desc p {
  font-size: 16px;
  line-height: 1.72;
  text-align: left !important;
}

@media (max-width: 1120px) {
  .site-header .navbar-nav > li > a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 13px;
  }
}

@media (max-width: 993px) {
  .navigation-menu .container {
    justify-content: space-between;
  }

  .navigation-menu .width-logo {
    flex-basis: 118px;
    width: 118px;
  }

  .navigation-menu .width-logo img,
  .sticky_header.affix .navigation-menu .width-logo img {
    width: 104px;
    max-height: 85px;
  }

  .navigation-menu .width-navigation {
    flex: 0 0 auto;
  }

  .menu-mobile-effect {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }

  .tb_single_tour .images_single_left,
  .tb_single_tour .description_single {
    width: 100%;
    float: none;
    padding-right: 0;
  }

  .description_single .affix-sidebar {
    position: static !important;
    width: auto !important;
  }

  .home-video-section {
    display: block;
    width: calc(100% - 48px);
  }

  .home-video-section > [class*="col-"] {
    width: 100%;
  }

  .home-video-section__content {
    margin-top: 40px;
  }

  .about-page .about-main,
  .about-page .about-sidebar {
    float: none;
    width: 100%;
  }

  .about-page .about-main {
    padding-right: 15px;
  }
}

@media (max-width: 767px) {
	.home-video-section {
		width: 100%;
		padding-right: 22px;
		padding-left: 22px;
	}

	.home-video-section__content {
		margin-top: 34px;
	}

	.about-page .about-card {
		display: block;
		margin-bottom: 28px;
		padding: 18px;
	}

	.about-page .about-card .img_post {
		margin-bottom: 22px;
	}

	.about-page .about-card .img_post img {
		height: auto;
		max-height: 320px;
	}

	.wrapper-content > .top_site_main {
		min-height: 190px;
		height: 190px;
	}

	.top_site_main .banner-wrapper {
		padding-left: 22px;
		padding-right: 22px;
	}

  .legend-hero,
  .legend-hero__content {
    min-height: 610px;
  }

  .legend-hero__slide::after {
    background: linear-gradient(180deg, rgba(8,5,2,.32) 0%, rgba(8,5,2,.68) 47%, rgba(8,5,2,.92) 100%);
  }

  .legend-hero__media img,
  .legend-hero__slide:nth-child(1) .legend-hero__media img {
    object-position: center;
  }

  .legend-hero__content {
    justify-content: flex-end;
    max-width: none;
    padding: 120px 22px 105px;
  }

  .legend-hero h1,
  .legend-hero h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .legend-hero__text {
    display: block;
    font-size: 17px;
    line-height: 1.45;
  }

  .legend-hero__button {
    display: inline-flex;
    width: 100%;
  }

  .legend-hero__controls {
    bottom: 25px;
    width: calc(100% - 44px);
  }

  .section-white.padding-top-6x,
  .section-white.padding-bottom-6x,
  .content-area {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .single-woo-tour > .container {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  iframe {
    max-width: 100%;
  }

  #wh-widget-send-button {
    transform: scale(.88);
    transform-origin: right bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legend-hero__slide,
  .legend-hero__button {
    transition: none;
  }
}
