/* Estilos para centrar el texto */
.hero {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  }
  
  /* Título principal */
  .hero h1 {
    font-size: 5rem;  
    max-width: 100%; /* Asegura que se ajuste bien */
    margin-bottom: 5px; /* Reduce la separación con la descripción */
    overflow: hidden; /* Previene problemas de desbordamiento */
    white-space: nowrap; /* Evita que se parta en dos líneas */
    font-family: 'Montserrat', sans-serif; /* Aquí aplicamos Montserrat */
  }
  
  /* Subtítulo */
  .hero p {
    font-size: 1.5rem;
    margin-top: 10px;
    margin-bottom: 0; /* Reduce la separación con .left-text */
  }
  
  /* Contenedor del texto alineado a la izquierda */
  .left-text {
    position: absolute;
    display: flex;
    flex-direction: column; /* Apila los elementos uno debajo del otro */
    bottom: 25%;
    left: 10%;
    text-align: left;
    max-width: 1000px;
    margin-top: -20px; /* Acerca la sección al .hero */
  }
  
  /* Estilo para "Te ayudamos a crear" */
  .left-text h1 {
    font-size: 50px;
    color: white;
    font-weight: bold;
    margin-top: 0;
  }
  
  /* Estilo para "Ideas y Eventos Increíbles." */
  .left-text h2 {
    font-size: 35px;
    font-weight: bold;
    margin: 0 35px;
  }
  
  .left-text h3 {
    font-size: 15px;
    font-weight: bold;
    margin-top: 10px;
    max-width: 600px;
  }
  
  /* Resaltado de color */
  .highlight {
    color: #03d7fc; /* Color celeste */
  }
  
  /* Botón "Ver más sobre nosotros" */
  .learn-more {
    display: inline-block;
    font-size: 15px;
    color: #287b8a;
    text-decoration: none;
    font-weight: bold;
  }

  /* 🔹 Sección de Proyectos */
.projects-section, .collaborators-section {
  text-align: center;
  margin: 50px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* 🔹 Estilizar el título para que sea más grande y más abajo */
.section-title {
  font-size: 50px; /* Aumenta el tamaño del título */
  text-align: center;
  margin-top: 150px; /* Ajusta la posición más abajo */
  margin-bottom: 80px; /* Espacio antes del carrusel */
}

.section-title2 {
  font-size: 50px; /* Aumenta el tamaño del título */
  text-align: center;
  margin-top: 70px; /* Ajusta la posición más abajo */
  margin-bottom: 80px; /* Espacio antes del carrusel */
}

    /* 🔹 Contenedor principal del carrusel */
    .project-carousel {
      position: relative;
      width: 90%;
      max-width: 1400px;
      aspect-ratio: 16 / 9;
      margin: 0 auto;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }

    /* 🔹 Contenedor de proyectos */
    .project-container {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* 🔹 Ajuste de cada proyecto */
    .project {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transform: scale(0.9) translateX(50px);
      transition: opacity 0.7s ease, transform 0.7s ease;
      pointer-events: none; /* Desactiva clics en proyectos no activos */
    }

    .project.active {
      opacity: 1;
      transform: scale(1) translateX(0);
      pointer-events: auto; /* Activa clics solo en el proyecto activo */
    }

    /* 🔹 Envolvente para imagen + descripción */
    .project-content {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 10px;
      overflow: hidden;
    }

    /* 🔹 Enlace dentro del proyecto */
    .project a {
      display: block;
      width: 100%;
      height: 100%;
      text-decoration: none;
      color: inherit;
    }

    /* 🔹 Imagen del evento */
    .project img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 10px;
    }

    /* 🔹 Contenedor de la descripción */
    .project-info {
      position: absolute;
      bottom: 5%;
      left: 50%;
      transform: translateX(-50%);
      width: 80%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
      color: white;
      text-align: center;
      padding: 12px 18px;
      border-radius: 15px;
      transition: opacity 0.3s ease;
      opacity: 0;
      font-size: 1rem;
    }

    .project.active .project-info {
      opacity: 1;
    }

    /* 🔹 Botones de navegación */
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.4);
      color: white;
      border: none;
      font-size: 2rem;
      padding: 15px;
      cursor: pointer;
      z-index: 10;
      width: 50px;
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      transition: background 0.3s ease;
    }

    .prev { left: 15px; }
    .next { right: 15px; }

    .carousel-btn:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    /* 🔹 Indicadores */
    .carousel-indicators {
      display: flex;
      justify-content: center;
      position: absolute;
      bottom: 15px;
      left: 50%;
      transform: translateX(-50%);
      gap: 8px;
    }

    .indicator {
      width: 12px;
      height: 12px;
      background-color: rgba(255, 255, 255, 0.5);
      border-radius: 50%;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .indicator.active {
      background-color: white;
    }

/* 🔹 Ajustes responsivos */
@media (max-width: 1024px) {
  .project-carousel {
    aspect-ratio: 16 / 10; /* Ligero ajuste en tablets */
  }

  .project-info {
    width: 85%;
    font-size: 0.9rem;
  }

  .carousel-btn {
    font-size: 1.8rem;
    width: 45px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .project-carousel {
    aspect-ratio: 4 / 3; /* Se adapta mejor a pantallas más cuadradas */
  }

  .project-info {
    width: 90%;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .carousel-btn {
    font-size: 1.5rem;
    width: 40px;
    height: 80px;
    padding: 10px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .project-carousel {
    aspect-ratio: 1 / 1; /* En móviles pequeños, más cuadrado */
  }

  .project-info {
    width: 95%;
    bottom: 10px;
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .carousel-btn {
    width: 35px;
    height: 70px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }
}

/* 🎥 Contenedor Responsivo para Videos */
.media-container {
  width: 90%; /* Ocupa todo el ancho disponible */
  max-width: 1350px; /* Límite para pantallas grandes */
  margin: 50px auto 60px auto; /* 🔹 Márgenes: 50px arriba, 30px abajo */
  display: flex;
  justify-content: center;
  position: relative;
  height: 750px; /* 🔹 Altura fija para evitar excesos */
  overflow: hidden;
  border-radius: 10px;
}

/* 📺 Estilos para el iframe */
.media-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
} 

/* 🔹 Responsive Design */
@media (max-width: 1024px) {
  .media-container {
      height: 31.25rem; /* 500px / 16 = 31.25rem */
  }
}

@media (max-width: 768px) {
  .media-container {
      height: 18.75rem; /* 300px / 16 = 18.75rem */
  }
  .content-wrapper {
      justify-content: center;
  }
  .container {
      justify-content: center;
      grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); /* 250px / 16 = 15.625rem */
      gap: 0.9375rem; /* 15px / 16 = 0.9375rem */
  }
}

/* 🔹 Estilos Responsivos */
@media (max-width: 1540px) {
  .left-text {
      bottom: 35%;
      margin-top: -6.25rem; /* -100px / 16 = -6.25rem */
  }
  .left-text h1 {
      font-size: 3rem; /* 48px / 16 = 3rem */
      margin-top: 0;
  }
  .left-text h2 {
      font-size: 2.0625rem; /* 33px / 16 = 2.0625rem */
      margin-top: 0;
  }
  .left-text h3 {
      font-size: 1rem; /* 13px / 16 = 0.8125rem */
      margin-top: 0.3125rem; /* 5px / 16 = 0.3125rem */
  }
  .section-title {
      font-size: 2.8125rem; /* 45px / 16 = 2.8125rem */
      margin-bottom: 1.25rem; /* 20px / 16 = 1.25rem */
      margin-top: -1.875rem; /* -30px / 16 = -1.875rem */
  }
  .section-title2 {
      margin-top: 2.8125rem; /* 45px / 16 = 2.8125rem */
      margin-bottom: -1.875rem; /* -30px / 16 = -1.875rem */
      font-size: 2.5rem; /* 40px / 16 = 2.5rem */
  }
  .hero h1 {
      font-size: 4.5rem;
      margin-bottom: 0.3125rem; /* 5px / 16 = 0.3125rem */
  }
  .hero p {
      margin-top: 0;
      margin-bottom: -0.625rem; /* -10px / 16 = -0.625rem */
  }
}

@media (max-width: 1330px) {
  .left-text {
      bottom: 37%;
      margin-top: -6.25rem; /* -100px / 16 = -6.25rem */
  }
  .left-text h1 {
      font-size: 2.875rem; /* 46px / 16 = 2.875rem */
      margin-top: 0;
  }
  .left-text h2 {
      font-size: 1.9375rem; /* 31px / 16 = 1.9375rem */
      margin-top: 0;
  }
  .left-text h3 {
      font-size: 1rem; /* 12px / 16 = 0.75rem */
      margin-top: 0.3125rem; /* 5px / 16 = 0.3125rem */
  }
  .section-title {
      font-size: 2.5rem; /* 40px / 16 = 2.5rem */
      margin-bottom: 1.25rem; /* 20px / 16 = 1.25rem */
      margin-top: -5.625rem; /* -90px / 16 = -5.625rem */
  }
  .section-title2 {
      margin-top: 2.5rem; /* 40px / 16 = 2.5rem */
      margin-bottom: -1.875rem; /* -30px / 16 = -1.875rem */
      font-size: 2.5rem; /* 40px / 16 = 2.5rem */
  }
  .hero h1 {
      font-size: 4rem;
      margin-bottom: 0.3125rem; /* 5px / 16 = 0.3125rem */
      white-space: nowrap;
  }
  .hero p {
      margin-top: 0;
      margin-bottom: -0.625rem; /* -10px / 16 = -0.625rem */
  }
}

@media (max-width: 1020px) {
  .left-text {
      left: auto;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      top: 55%;
      padding-bottom: 1.25rem; /* 20px / 16 = 1.25rem */
  }
  .left-text h1 {
      font-size: 2.75rem; /* 44px / 16 = 2.75rem */
      margin-bottom: 0.3125rem; /* 5px / 16 = 0.3125rem */
  }
  .left-text h2 {
      font-size: 1.8125rem; /* 29px / 16 = 1.8125rem */
      margin-bottom: 0.3125rem; /* 5px / 16 = 0.3125rem */
  }
  .left-text h3 {
      font-size: 0.9375rem; /* 15px / 16 = 0.9375rem */
      text-align: left;
      margin-left: 0.625rem; /* 10px / 16 = 0.625rem */
  }
  .section-title {
      font-size: 2.5rem; /* 40px / 16 = 2.5rem */
      margin-bottom: 0.9375rem; /* 15px / 16 = 0.9375rem */
      margin-top: -5.625rem; /* -90px / 16 = -5.625rem */
  }
  .section-title2 {
      margin-top: 1.875rem; /* 30px / 16 = 1.875rem */
      font-size: 2.5rem; /* 40px / 16 = 2.5rem */
  }
  .hero h1 {
      font-size: 3.5rem;
      margin-bottom: 0.625rem; /* 10px / 16 = 0.625rem */
      white-space: nowrap;
  }
  .hero p {
      margin-top: 0;
      margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .left-text {
      left: auto;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      top: 58%;
      padding-bottom: 1.875rem; /* 30px / 16 = 1.875rem */
  }
  .left-text h1,
  .left-text h2 {
      text-align: center;
  }
  .left-text h1 {
      font-size: 2.5rem; /* 40px / 16 = 2.5rem */
  }
  .left-text h2 {
      font-size: 1.5rem; /* 24px / 16 = 1.5rem */
  }
  .left-text h3 {
      font-size: 0.875rem; /* 14px / 16 = 0.875rem */
      text-align: left;
      margin-left: 0.625rem; /* 10px / 16 = 0.625rem */
  }
  .section-title {
      font-size: 2.1875rem; /* 35px / 16 = 2.1875rem */
  }
  .section-title2 {
      margin-top: 1.875rem; /* 30px / 16 = 1.875rem */
      font-size: 2.1875rem; /* 35px / 16 = 2.1875rem */
  }
  .hero h1 {
      font-size: 3rem;
      margin-bottom: 0.625rem; /* 10px / 16 = 0.625rem */
  }
  .hero p {
      margin-top: 0;
  }
}

@media (max-width: 495px) {
  .section-title {
      font-size: 1.875rem; /* 30px / 16 = 1.875rem */
  }
  .section-title2 {
      margin-top: 1.875rem; /* 30px / 16 = 1.875rem */
      font-size: 1.875rem; /* 30px / 16 = 1.875rem */
  }
  .left-text h1 {
      font-size: 1.875rem; /* 30px / 16 = 1.875rem */
  }
  .left-text h2 {
      font-size: 1.25rem; /* 20px / 16 = 1.25rem */
  }
  .left-text h3 {
      font-size: 0.875rem; /* 14px / 16 = 0.875rem */
      text-align: left;
      margin-left: 0.625rem; /* 10px / 16 = 0.625rem */
  }
  .hero h1 {
      font-size: 2.5rem;
  }
}

@media (max-width: 370px) {
  .section-title,
  .section-title2 {
      font-size: 1.5625rem; /* 25px / 16 = 1.5625rem */
  }
  .left-text h1 {
      font-size: 1.4375rem; /* 23px / 16 = 1.4375rem */
  }
  .left-text h2 {
      font-size: 0.9375rem; /* 15px / 16 = 0.9375rem */
  }
  .left-text h3 {
      font-size: 0.625rem; /* 10px / 16 = 0.625rem */
  }
  .hero h1 {
      font-size: 2rem;
  }
}

/* Media query para 200% de zoom */
@media (max-width: 960px) and (min-resolution: 2dppx) {
  .left-text {
      top: 62%;
      padding-bottom: 2rem; /* 32px / 16 = 2rem */
  }
  .hero h1 {
      font-size: 3rem;
      margin-bottom: 0.625rem; /* 10px / 16 = 0.625rem */
  }
}

/* Nueva media query para 250%-300% de zoom */
@media (max-width: 768px) and (min-resolution: 2.5dppx) and (max-resolution: 3dppx) {
  .left-text {
      top: 68%; /* Bajamos más para 250%-300% de zoom */
      padding-bottom: 2.5rem; /* 40px / 16 = 2.5rem - Más espacio inferior */
  }
  .left-text h1 {
      font-size: 2.25rem; /* 36px / 16 = 2.25rem - Ligeramente más pequeño */
  }
  .left-text h2 {
      font-size: 1.375rem; /* 22px / 16 = 1.375rem */
  }
  .left-text h3 {
      font-size: 0.8125rem; /* 13px / 16 = 0.8125rem */
  }
  .hero h1 {
      font-size: 2.75rem; /* 44px / 16 = 2.75rem - Ajustado para zoom */
      margin-bottom: 0.75rem; /* 12px / 16 = 0.75rem */
  }
}