/* Insufficient slides centering styles */
.nav-second-sticky.insufficient-slides .nav-second-cont {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-second-sticky.insufficient-slides .nav-container {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  margin: 0 auto;
}
.nav-second-sticky.insufficient-slides .nav-container-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}
.nav-second-sticky.insufficient-slides .swiper,
.nav-second-sticky.insufficient-slides .swiper-nav,
.nav-second-sticky.insufficient-slides .swiper-wrapper {
  width: auto !important;
  width: fit-content !important;
  max-width: none;
}
.nav-second-sticky.insufficient-slides .swiper,
.nav-second-sticky.insufficient-slides .swiper-nav {
  flex: 0 0 auto;
  margin: 0 auto;
}
.nav-second-sticky.insufficient-slides .swiper-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate3d(0, 0, 0) !important;
  margin: 0 auto;
}
.nav-second-sticky.insufficient-slides .swiper-slide {
  width: auto !important;
  flex: 0 0 auto;
  margin-right: 0 !important;
}
.nav-second-sticky.insufficient-slides .nav-link {
  padding-left: 12px;
  padding-right: 12px;
}
.nav-second-sticky.insufficient-slides .swiper-slide:last-child .nav-link {
  padding-right: 12px;
}
.nav-second-sticky.insufficient-slides .travel-planner-nav-arrows {
  display: none;
}
.nav-second-sticky.insufficient-slides .swiper-button-next-nav,
.nav-second-sticky.insufficient-slides .swiper-button-prev-nav {
  display: none;
}

/* Texture light arriba y abajo del nav-container claro */
.nav-container.nav-container-wrap {
  position: relative;
  z-index: 1;
}

.navbar-width.nav-second.nav-second-inner::before,
.navbar-width.nav-second.nav-second-inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 18px; /* ajusta según el alto de tu textura */
  background-image: url(../images/texture-light.png);
  background-repeat: no-repeat;
  
  pointer-events: none;
  z-index: 2;
  background-position: center;
}

.nav-second-block.nav-second-is-sticky .navbar-width.nav-second.nav-second-inner::after,
#navsec.sticky .navbar-width.nav-second.nav-second-inner::after {
  display: none;
}

.nav-second-block.nav-second-is-sticky .navbar-width.nav-second.nav-second-inner::before,
#navsec.sticky .navbar-width.nav-second.nav-second-inner::before {
  display: block;
  top: 0;
}

.nav-second-block.text-blocks-row-colored.nav-second-is-sticky .navbar-width.nav-second.nav-second-inner::before,
#navsec.text-blocks-row-colored.sticky .navbar-width.nav-second.nav-second-inner::before {
  background-image: url(../images/texture-gold.png);
}

.nav-second-block:not(.text-blocks-row-colored) .navbar-width.nav-second.nav-second-inner::before,
.nav-second-block:not(.text-blocks-row-colored) .navbar-width.nav-second.nav-second-inner::after,
#navsec:not(.text-blocks-row-colored) .navbar-width.nav-second.nav-second-inner::before,
#navsec:not(.text-blocks-row-colored) .navbar-width.nav-second.nav-second-inner::after {
  background-image: url(../images/texture-gold.png);
}

.nav-second-block.nav-second-header-light:not(.sticky) .navbar-width.nav-second.nav-second-inner::before,
.nav-second-block.nav-second-header-light:not(.sticky) .navbar-width.nav-second.nav-second-inner::after,
#navsec.nav-second-header-light:not(.sticky) .navbar-width.nav-second.nav-second-inner::before,
#navsec.nav-second-header-light:not(.sticky) .navbar-width.nav-second.nav-second-inner::after {
  background-image: url(../images/texture-light.png);
}


.navbar-width.nav-second.nav-second-inner::before {
  top: -10px; 
}
.navbar-width.nav-second.nav-second-inner::after {
  bottom: -10px;
}

.nav-container.nav-container-wrap::before {
  top: 0;
}

.nav-container.nav-container-wrap::after {
  bottom: 0;
}
.text-block-end--row.set-2.prev-end-lg{
    background-color: #f3ecdc !important;
  }



.text-block-end--row.set-2.prev-end-lg .swiper-nav .nav-link {
    color: #978357;
  }
  
 .text-block-end--row.set-1.prev-end-lg{
    background-color: #20160c;
  }

.nav-sticky{
    min-height: 100px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    padding: 18px 0;
    max-height: 100%;
    /*background-color: #20160c;*/
}

  .nav-sticky.nav-second-header-light:not(.sticky),
  #navsec.nav-second-header-light:not(.sticky) {
    background-color: #f3ecdc;
  }

.nav-second,
.nav-second-cont,
.nav-container,
.swiper-nav {
  width: 100%;
}

.nav-container-wrap {
  position: relative;
  padding: 0 40px;
}

.swiper-nav .swiper-slide {
  width: auto;
}

.swiper-nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 20px 8px;
  color: #95835E;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.swiper-nav .nav-link:hover,
.swiper-nav .nav-link:focus {
  color: #ffffff;
  text-decoration: underline;
}

.swiper-button-next-nav,
.swiper-button-prev-nav {
  color: #f3ecdc;
  width: 28px;
  height: 28px;
  margin-top: -14px;
}

.swiper-button-next-nav:after,
.swiper-button-prev-nav:after {
  font-size: 18px;
  font-weight: 700;
}

.nav-second-spacer {
  display: block;
  width: 100%;
  height: 0;
}

.nav-second-block.nav-second-is-sticky,
#navsec.sticky {
 /*background-color: #20160c !important;*/
  background-image: url(../images/bg-texture.png);
  background-repeat: repeat;
  background-position: center top;
  overflow: visible;
}

.nav-second-block.nav-second-is-sticky, #navsec.sticky {
  background-color: transparent !important;
}


/*
.nav-second-block.nav-second-is-sticky:after,
#navsec.sticky:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 100%;
  height: 18px;
  background-image: url(../images/bg-bottom-texture.png);
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 18px;
  pointer-events: none;
}
*/
.nav-second-block.nav-second-is-sticky .swiper-nav .nav-link,
.nav-second-block.nav-second-is-sticky .swiper-button-next-nav,
.nav-second-block.nav-second-is-sticky .swiper-button-prev-nav,
#navsec.sticky .swiper-nav .nav-link,
#navsec.sticky .swiper-button-next-nav,
#navsec.sticky .swiper-button-prev-nav {
  color: #95835E !important;
  padding: 30px 8px;
}

.nav-second-block.nav-second-is-sticky .swiper-nav .nav-link:hover,
.nav-second-block.nav-second-is-sticky .swiper-nav .nav-link:focus,
#navsec.sticky .swiper-nav .nav-link:hover,
#navsec.sticky .swiper-nav .nav-link:focus {
  color: #95835E !important;
}

body.nav-second-sticky-active .main-nav.scrolled::after,
body.nav-second-sticky-active .main-nav.navscrolled::after {
  background-image: url(../images/nav-bg-top-5px.png), url(../images/nav-bg.png);
  background-repeat: repeat;
  background-size: 100% 5px, 100%;
  background-position: 60% 0, 60% 0;
  background-color: #231f15;
  background-size: 3500px;
}

body:not(.nav-second-sticky-active) .main-nav.scrolled::after,
body:not(.nav-second-sticky-active) .main-nav.navscrolled::after {
  background-image: url(../images/nav-bg.png);
  background-repeat: no-repeat;
  background-size: 3500px;
  background-position: 60% 0;
}

@media (max-width: 600px) {
  body:not(.nav-second-sticky-active) .main-nav.scrolled::after,
  body:not(.nav-second-sticky-active) .main-nav.navscrolled::after {
    background-size: 3100px;
  }
}

#navsec.sticky {
  position: fixed;
  top: var(--nav-sticky-top, 0);
  left: 0;
  right: 0;
  z-index: 1002; /* o más alto si hay overlays */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  background-image: url(../images/nav-bg.png);
  background-repeat: no-repeat;
  background-size: 3500px;
  background-position: 60% 0;
  align-items: center;
  padding-top: 0;
}

#navsec {
  transition: top 0.2s;
}

@media (max-width: 767px) {
  .nav-sticky {
    min-height: 72px;
    padding: 12px 0;
  }

  .nav-second-block.nav-second-is-sticky .navbar-width.nav-second.nav-second-inner::after,
  #navsec.sticky .navbar-width.nav-second.nav-second-inner::after {
    display: block;
    bottom: 0;
  }

  .nav-container-wrap {
    padding: 0 32px;
  }

  .swiper-nav .nav-link {
    min-height: 40px;
    padding: 25px 14px;
    font-size: 15px;
  }

  .swiper-button-next-nav,
  .swiper-button-prev-nav {
    width: 24px;
    height: 24px;
    margin-top: -12px;
  }
}

.nav-link.active,
.swiper-slide.is-active .nav-link {
  text-decoration: underline;
}



@media (max-width: 1024px) {
    #navsec .nav-sticky {
      min-height: 100px;
    }
}

@media (max-width: 767px) {
  .nav-second-block.nav-second-is-sticky .navbar-width.nav-second.nav-second-inner::after, #navsec.sticky .navbar-width.nav-second.nav-second-inner::after {
    display: none;
  }
}

#navsec .swiper-button-next, #navsec .swiper-button-prev {
  display: none;
}

.nav-second-header-light  .nav-link:hover,
.nav-second-header-light .nav-link:focus {
  color: #95835E !important;
  text-decoration: underline;
}
