.tour-container{
  background: #2F502A;
    position: relative;
    overflow: hidden;
}


  

/* Container principal */
.hero-module .layout-wrapper {
  display: flex;
  min-height: 400px;


}

.hero-module .layout-wrapper:has(.main-image[src]:not([src=""])) {
  background: transparent;
}

.hero-module .layout-wrapper:has(.main-image[src]:not([src=""])) .left-column {
  flex: 1;
  min-height: 400px;
  display: flex;
}

.hero-module .layout-wrapper:has(.main-image[src]:not([src=""])) .right-column {
  flex: 1;
  background: #2F502A;
  position: relative;
}

.hero-module .layout-wrapper:not(:has(.main-image[src]:not([src=""]))) {
  justify-content: center;
  align-items: center;
}

.hero-module .layout-wrapper:not(:has(.main-image[src]:not([src=""]))) .left-column {
  display: none;
}

.hero-module .layout-wrapper:not(:has(.main-image[src]:not([src=""]))) .right-column {
  flex: 1;
  max-width: 100%;
  background: #2F502A;
}

.hero-module .left-column {
  position: relative;
  overflow: hidden;
}

.hero-module .image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-module .main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Columna derecha - Contenido */
.hero-module .right-column {
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 3rem;
  overflow: hidden;
}

.hero-module .-content {
    text-align: left;
    z-index: 2;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: normal;
    gap: 1.5rem;
    padding-left: 50px;
}
  
  .hero-module.tour-container h2 {
    font-family: 'Playfair Display';
    font-weight: 600;
    line-height: normal;
}
.hero-module .-content h1,
.-content h2,
.hero-module .-content h3,
.hero-module .-content p {
  color: #ffffff;
  margin: 0;
  line-height:0.6;
}


.hero-module .button:has(a[href=""]),
.hero-module .button:has(a:not([href])) {
  display: none;
}

.hero-module .layout-wrapper .svg-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.hero-module .layout-wrapper .svg-overlay img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  max-width: 100%;
}

#iframeContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

#iframeContainer iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

#closeBtn {
  position: absolute;
  top: 40px;
  right: 40px;
  background: #fff;
  border: none;
  padding: 20px;
  cursor: pointer;
  border-radius: 50px;
  z-index: 200;
  color: #4A5B29;
  transition: all 0.5s ease-in-out;
}

#closeBtn:hover svg path {
  fill: #1F3D3B;
}

/* Tablets */
@media (max-width: 1024px) {
  .hero-module .layout-wrapper {
    min-height: 350px;
  }
  
  .hero-module .right-column {
    padding: 2rem;
  }
  
  .hero-module .button a {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .hero-module .layout-wrapper {
    flex-direction: column;
    min-height: auto;
  }
  
  .hero-module .layout-wrapper:has(.main-image[src]:not([src=""])) .left-column,
  .hero-module .layout-wrapper:has(.main-image[src]:not([src=""])) .right-column {
    flex: none;
  }
  
  .hero-module .left-column {
    min-height: 250px;
    order: 1;
  }
  
  .hero-module .right-column {
    order: 2;
    min-height: 300px;
    padding: 2rem 1.5rem;
  }
  
  .hero-module .layout-wrapper:not(:has(.main-image[src]:not([src=""]))) {
    min-height: 350px;
  }
  
.hero-module .-content {
    gap: 1rem;
    padding: 0;
}
  
  .hero-module .button a {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .hero-module .layout-wrapper .svg-overlay img {
    height: 60%;
    opacity: 0.5;
  }
}

.hero-module.tour-container h2 {
    font-family: 'Playfair Display';
    font-weight: 600;
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .hero-module .right-column {
    padding: 1.5rem 1rem;
    
    
  }
  
  .hero-module .right-column {
    margin-top: -44px;
    min-height: auto;
    padding: 25px 15px 37px;
}
  
  .hero-module .layout-wrapper .svg-overlay img{
  display: none;}
  .hero-module .right-column {

    margin-top: -44px;
}
  

  .hero-module .button a {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 90px;
  }
  
  .hero-module .layout-wrapper .svg-overlay img {
    height: 50%;
    opacity: 0.4;
  }
}

/* Fallback para navegadores sin soporte :has() */
@supports not selector(:has(*)) {
  .hero-module .layout-wrapper.has-image {
    background: transparent;
  }
  
  .hero-module .layout-wrapper.has-image .left-column {
    flex: 1;
    min-height: 400px;
    display: flex;
  }
  
  .hero-module .layout-wrapper.has-image .right-column {
    flex: 1;
    background: #4a6741;
  }
  
  .hero-module .layout-wrapper.no-image {
    justify-content: center;
    align-items: center;
  }
  
  .hero-module .layout-wrapper.no-image .left-column {
    display: none;
  }
  
  .hero-module .layout-wrapper.no-image .right-column {
    flex: 1;
    max-width: 100%;
  }
  
  /* Fallback para ocultar botón sin URL */
  .hero-module .layout-wrapper .button.no-url {
    display: none;
  }
  
  @media (max-width: 768px) {
    .hero-module .layout-wrapper.has-image .left-column,
    .hero-module .layout-wrapper.has-image .right-column {
      flex: none;
    }
  }
}