/* ======= TWO COLUMN LAYOUT ======= */
.two-column-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: center;
  padding-block: 10px;
}

.text-column {
  flex: 1 1 50%;
  min-width: 300px;
}

.text-column h3 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 16px;
}

.text-column p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: #ddd;
  text-align: justify;
}

.image-column {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.team-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  font-size: 1.5rem;
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #00aaff;
  transform: scale(1.2);
}

/* Responsive two-column to single column */
@media (max-width: 768px) {
  .two-column-container {
    flex-direction: column;
    text-align: center;
  }
  .text-column,
  .image-column {
    flex: 1 1 100%;
  }
}

/* Text transform uppercase helper */
.caps {
  text-transform: uppercase;
}

/* ======= POSTER SLIDER ======= */
.poster-slider-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 10px auto;
  overflow: hidden;
}

.poster-slider {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.4s ease-in-out;
}

.poster,
.poster2 {
  box-sizing: border-box;
  text-align: center;
  padding: 10px;
}

.poster {
  flex: 0 0 calc(100% / 3);
}

.poster2 {
  flex: 0 0 calc(100% / 2);
}

/* Poster common styles */
.poster a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.poster img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

.poster-title {
  margin-top: 10px;
  font-size: 16px;
  color: #eee;
}

/* Slider buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1f2932;
  color: #fff;
  font-size: 32px;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 109;
  border-radius: 10%;
}

.slider-btn.left {
  left: 10px;
}

.slider-btn.right {
  right: 10px;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive sliders */
@media (max-width: 1024px) {
  .poster,
  .poster2 {
    flex: 0 0 50%;
  }
  .poster-slider {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .poster,
  .poster2 {
    flex: 0 0 100% !important; /* force 100% width */
  }
  .poster-slider {
    justify-content: left;
  }
  .poster img {
    width: 95%;
    margin: 0 auto;
  }
}

/* Special for #slider-eq */
@media (max-width: 600px) {
  #slider-eq .poster {
    flex: 0 0 100% !important;
  }
}

/* ======= WHO WE ARE ======= */
#who-we-are.container {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.txt-center {
  text-align: center;
  margin-bottom: 40px;
}

.about-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-column {
  flex: 1 1 30%;
  max-width: 350px;    /* límite ancho para columnas */
  min-width: 280px;    /* mínimo ancho para evitar que se achiquen mucho */
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #111;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
}

.about-column img {
  width: 100%;
  max-width: 280px;   /* límite ancho para imágenes */
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.about-column p {
  font-size: 90%;
  margin: 15px auto;
}

.social-links {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ffd700;
}

/* Responsive about columns */
@media (max-width: 992px) {
  .about-column {
    flex: 1 1 45%;
    max-width: 45%;
    min-width: auto;
    margin-bottom: 30px;
  }
  
  .about-column img {
    max-width: 100%; /* para que se adapte al contenedor */
  }
}

@media (max-width: 600px) {
  .about-column {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .about-column img {
    max-width: 100%;
  }
}


/* ======= SERVICES ======= */
.services-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 72px auto;
  flex-wrap: wrap;
}

.service-column {
  flex: 1 1 45%;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.service-list li {
  font-size: 1.05rem;
  color: #7098a3;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  transition: all 0.2s ease-in-out;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li h4 {
  font-size: 1.08rem;
  color: #7098a3;
  padding: 10px 0;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  line-height: 1.8;
  transition: all 0.2s ease-in-out;
}

.service-list li a {
  font-size: 0.8rem;
  color: #7098a3;
  padding: 6px 0;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.service-list li a:hover {
  color: #ccc;
}

/* Responsive services */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
  }
  .service-column {
    flex: 1 1 100%;
    margin-bottom: 40px;
  }
}

/* ======= GALLERY ======= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.09);
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  transform-origin: center;
  border-radius: 8px;
}

.gallery-item:hover img {
  transform: scale(1.05) rotateZ(1.5deg);
}

/* Text overlay */
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1em;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  font-size: 0.9em;
  pointer-events: none;
}

.gallery-item .caption h2 {
  margin: 0 0 8px;
  font-size: 1.2em;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

/* Underline animation */
.gallery-item .caption h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .caption h2::after {
  transform: scaleX(1);
}

.gallery-item .caption p {
  margin: 0;
  font-size: 0.8em;
}

/* ======= VIDEO POPUP ======= */
#video-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

#popup-video {
  max-width: 90%;
  max-height: 60vh;
  border-radius: 12px;
}

.popup-caption {
  margin-top: 20px;
  text-align: center;
  color: white;
  max-width: 80%;
}

.popup-caption h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
  border-bottom: 2px solid cyan;
}

.popup-caption p {
  font-size: 1em;
  line-height: 1.4;
  opacity: 0.9;
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Nav buttons for popup */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
}

#prev-video {
  left: 20px;
}

#next-video {
  right: 20px;
}

/* ======= VIDEO EMBED RESPONSIVE ======= */
.video-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.video-container {
  flex: 1 1 480px;
  max-width: 640px;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  background-color: #000;
}

/* ======= VIDEO GALLERY (2 styles) ======= */
.video-gallery,
.video-gallery-original {
  position: relative;
  margin: 0 auto;
  text-align: center;
  border-radius: 22px;
  max-width: 1024px;
}

.video-gallery .gallery-item,
.video-gallery-original .gallery-item-original {
  position: relative;
  float: left;
  overflow: hidden;
  margin: 10px 1%;
  background: #000;
  cursor: pointer;
  border-radius: 22px;
}

.video-gallery .gallery-item {
  min-width: 320px;
  max-width: 580px;
  max-height: 360px;
  width: 48%;
}

.video-gallery-original .gallery-item-original {
  width: 31%;
}

.video-gallery .gallery-item img,
.video-gallery-original .gallery-item-original img {
  position: relative;
  display: block;
  opacity: 0.45;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.35s, transform 0.35s;
  transform: translate3d(-23px, 0, 0);
  backface-visibility: hidden;
}

.video-gallery-original .gallery-item-original img {
  height: 200px;
  width: 110%;
}

.video-gallery .gallery-item .gallery-item-caption,
.video-gallery-original .gallery-item-original .gallery-item-caption-original,
.video-gallery .gallery-item .gallery-item-caption>a,
.video-gallery-original .gallery-item-original .gallery-item-caption-original>a {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  padding: 1em 2em;
  text-align: left;
}

.video-gallery .gallery-item h2,
.video-gallery-original .gallery-item-original a {
  position: relative;
  margin: 0;
  z-index: 10;
  cursor: pointer;
  font-weight: 300;
  overflow: hidden;
  padding: 0.5em 0;
}

.video-gallery .gallery-item p,
.video-gallery-original .gallery-item-original p {
  letter-spacing: 1px;
  font-size: 68%;
  padding: 1em 0;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  transform: translate3d(10%, 0, 0);
}

.video-gallery .gallery-item:hover img,
.video-gallery-original .gallery-item-original:hover img {
  opacity: 0.3;
  transform: translate3d(0, 0, 0);
}

.video-gallery .gallery-item:hover h2::after,
.video-gallery-original .gallery-item-original:hover h2::after {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.video-gallery .gallery-item:hover p,
.video-gallery-original .gallery-item-original:hover p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.video-gallery .gallery-item h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 15%;
  height: 1px;
  background: #fff;
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.3s;
}

/* Responsive video gallery */
@media screen and (min-width: 1025px) {
  .video-gallery .gallery-item img {
    height: 300px;
    aspect-ratio: auto;
  }
}

@media screen and (max-width: 50em) {
  .video-gallery-original .gallery-item-original {
    display: inline-block;
    float: none;
    margin: 10px auto;
    width: 100%;
  }
}
