/* ============================================ */
/* ESTILOS BASE */
/* ============================================ */

.contenedorPrincipal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-x: hidden;
  box-sizing: border-box;
}

.contenedor-flex-inicio {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-x: hidden;
  box-sizing: border-box;
  background-image: url(img/fondo/fondo.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.6;
  filter: blur(0px);
  transition: filter 0.1s ease;
  gap: 2rem;
  padding: 4vh 4vw;
}

.contenedorPresentacionImagen {
  width: 50%;
  height: 80%;
}

.contenedorPresentacionImagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.contenedorInformacion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4vh;
  align-items: center;
  overflow-x: hidden;
  margin: 5rem 0 8rem 0;
  padding: 0 2vw;
  box-sizing: border-box;
}

.contenedorInformacion h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 1px;
  text-align: center;
}

.contenedorOrganizacion {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide {
  width: min(1100px, 95vw);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  background: #eee;
  position: relative;
}

.item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.item.active {
  opacity: 1;
  position: relative;
}

.contenedorBotones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

button {
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid #b89973;
  background: transparent;
  color: #b89973;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #b89973;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
}

/* ============================================ */
/* RESPONSIVE - TABLETS (900px) */
/* ============================================ */

@media (max-width: 900px) {
  .contenedor-flex-inicio {
    flex-direction: column;
    gap: 2rem;
    min-height: auto;
    padding: 4vh 6vw;
  }

  .contenedorPresentacionImagen {
    width: 80%;
    height: auto;
    max-width: 400px;
  }

  .contenedorInformacion {
    margin: 3rem 0 5rem 0;
    padding: 0 6vw;
  }

  .contenedorInformacion h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
  }

  .slide {
    width: min(90vw, 800px);
    aspect-ratio: 4 / 3;
  }

  button {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

/* ============================================ */
/* RESPONSIVE - MÓVILES MEDIANOS (768px) */
/* ============================================ */

@media (max-width: 768px) {
  .contenedorPrincipal {
    padding-top: 10vh;
  }

  .contenedor-flex-inicio {
    flex-direction: column;
    gap: 1.5rem;
    min-height: auto;
    padding: 3vh 4vw;
  }

  .contenedorPresentacionImagen {
    width: 90%;
    max-width: 350px;
    height: auto;
  }

  .contenedorInformacion {
    margin: 2rem 0 4rem 0;
    padding: 0 4vw;
  }

  .contenedorInformacion h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .slide {
    width: 90vw;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  button {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

/* ============================================ */
/* RESPONSIVE - MÓVILES PEQUEÑOS (600px) */
/* ============================================ */

@media (max-width: 600px) {
  .contenedorPrincipal {
    padding-top: 10vh;
    gap: 1.5rem;
  }

  .contenedor-flex-inicio {
    flex-direction: column;
    gap: 1.5rem;
    min-height: auto;
    padding: 2vh 3vw;
  }

  .contenedorPresentacionImagen {
    width: 95%;
    max-width: 280px;
    height: auto;
  }

  .contenedorPresentacionImagen img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .contenedorInformacion {
    margin: 1.5rem 0 3rem 0;
    padding: 0 3vw;
  }

  .contenedorInformacion h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .slide {
    width: 85vw;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
  }

  .contenedorBotones {
    gap: 0.8rem;
  }

  button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

/* ============================================ */
/* RESPONSIVE - MÓVILES MUY PEQUEÑOS (480px) */
/* ============================================ */

@media (max-width: 480px) {
  .contenedorPrincipal {
    padding-top: 10vh;
  }

  .contenedor-flex-inicio {
    flex-direction: column;
    gap: 1rem;
    padding: 2vh 2vw;
  }

  .contenedorPresentacionImagen {
    width: 100%;
    max-width: 250px;
  }

  .contenedorInformacion {
    margin: 1rem 0 2rem 0;
    padding: 0 2vw;
  }

  .contenedorInformacion h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  .slide {
    width: 96vw;
    aspect-ratio: 5 / 3;
  }

  button {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* ============================================ */
/* RESPONSIVE - MÓVILES MINI (380px) */
/* ============================================ */

@media (max-width: 380px) {
  .contenedorPrincipal {
    padding-top: 10vh;
  }

  .contenedor-flex-inicio {
    padding: 2vh 1.5vw;
    gap: 1rem;
  }

  .contenedorPresentacionImagen {
    max-width: 220px;
  }

  .contenedorInformacion {
    margin: 0.8rem 0 1.5rem 0;
    padding: 0 1.5vw;
  }

  .contenedorInformacion h1 {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  }

  .slide {
    aspect-ratio: 4 / 2.5;
    border-radius: 10px;
  }

  button {
    padding: 7px 10px;
    font-size: 0.75rem;
  }
}
