/*  Inicio de Estilos generales */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;     /* para todo el body  */
    color: #ffffff;
    background-color: #0D1B2A;
    scroll-behavior: smooth;     /* para todo el body hace una transicion suave hacia la otra seccion */
  }

  /*  final de Estilos generales */

  /* inicio clases titulo subtitulo */

  .titles-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    min-height: 50vh; 
    /* controla el alto de visualizacion del container  */
    text-align: center; 
  }
  

    /* final clases titulo subtitulo */

  /*  Inicio de Estilos hero 1 */

  .hero-container {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    max-height: 20%;
  }
  
  .hero-parallax {
    background-image: url('./images/image.png'); 
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .hero-content {
    padding: 20px;
  }
  
  .hero-title {
    font-size: 2rem; 
    font-weight: bold;
    color: #FFD700; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
  }
  
  .hero-subtitle {
    font-size: 1rem; 
    margin: 20px 0;
    color: #ffffff; 
    animation: fadeIn 2s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
  }
  
  .hero-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem; 
    color: #0D1B2A;
    background: #FFD700;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    animation: fadeIn 2.5s ease-in-out;
  }
  
  .hero-button:hover {
    background: #F4A261; 
  }
  
  /* Animaciones */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive Design */
  @media screen and (min-width: 600px) {
    .hero-title {
      font-size: 2.5rem; /* Aumenta el tamaño en tablets */
    }
    .hero-subtitle {
      font-size: 1.2rem;
    }
    .hero-button {
      font-size: 1rem;
      padding: 12px 25px; /* Botón más grande */
    }
  }
  
  @media screen and (min-width: 1024px) {
    .hero-title {
      font-size: 3rem; /* Tamaño grande para desktops */
    }
    .hero-subtitle {
      font-size: 1.5rem;
    }
    .hero-button {
      font-size: 1.2rem;
      padding: 15px 30px;
    }
  }

/*  final de Estilos hero 1 */

/*  Inicio de Estilos hero 2*/

/* Hero 2 - Slideshow */
.hero-container-unique {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #2D2A32; 
  }
  
  .slideshow-unique {
    background-image: url('./images/fondo.png'); 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-position: center; 
    position: absolute;
    display: flex;
    justify-content: center; /* garantiza que los sliders esten a la misma altura del contenedor flex */
    max-height: 180px;
  }
  
  .slide-unique {
    flex: 1 0 100%;
    /* revisar linea de arriba */
    height: 70%;
    transition: transform 1s ease-in-out;
    filter: brightness(70%); /* bajar un poco el brillo de la imagen  */
  }
  
  .slide-unique video {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
  }
  
  
  .slideshow-overlay-unique {
    position: absolute;
    z-index: 2;
    text-align: center;
    padding: 10px;
  }
  
  .slideshow-overlay-unique h1 {
    font-size: 1.5rem;
    color: #E9C46A;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  }
  
  .slideshow-overlay-unique p {
    font-size: 0.9rem;
    color: white;
    margin: 10px 0;
  }
  
  .slideshow-overlay-unique .hero-button-unique {
    padding: 8px 15px;
    background-color: #264653;
    color: #E9C46A;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: background 0.3s ease;
  }
  
  .slideshow-overlay-unique .hero-button-unique:hover {
    background-color: #2A9D8F;
  }
  
  /* Animacion para los sliders */
  .slide-unique .active {
    transform: translateX(0);
  }
  
  .slide-unique:not(.active) {
    transform: translateX(100%);
  }
  
  /* Responsive Design */
  
  /* Pantallas pequeñas (320px - 374px) */
  @media screen and (max-width: 374px) {
    .hero-container-unique {
      height: 80vh;
    }
    
    .slideshow-overlay-unique h1 {
      font-size: 1.2rem;
    }
    
    .slideshow-overlay-unique p {
      font-size: 0.8rem;
    }
    
    .slideshow-overlay-unique .hero-button-unique {
      font-size: 0.7rem;
      padding: 6px 12px;
    }
  }
  
  /* Pantallas móviles (375px - 599px) */
  @media screen and (min-width: 375px) and (max-width: 599px) {
    .hero-container-unique {
      height: 90vh;
    }

    .slideshow-unique{
      max-height: 210.94px;
    }
  
    .slideshow-overlay-unique h1 {
      font-size: 1.5rem;
    }
  
    .slideshow-overlay-unique p {
      font-size: 0.9rem;
    }
  
    .slideshow-overlay-unique .hero-button-unique {
      font-size: 0.8rem;
      padding: 8px 15px;
    }
  }
  
  /* Pantallas medianas (600px - 1023px) */
  @media screen and (min-width: 600px) and (max-width: 1023px) {
    .hero-container-unique {
      height: 100vh;
    }

    .slideshow-unique{
      max-height:432px ;
    }
  
    .slideshow-overlay-unique h1 {
      font-size: 2rem;
    }
  
    .slideshow-overlay-unique p {
      font-size: 1rem;
    }
  
    .slideshow-overlay-unique .hero-button-unique {
      font-size: 0.9rem;
      padding: 10px 20px;
    }


  }
  
  /* Pantallas grandes (1024px - 1439px) */
  @media screen and (min-width: 1024px) and (max-width: 1439px) {
    .hero-container-unique {
      height: 100vh;
    }

    .slideshow-unique{
      max-height: 576px;
    }
  
    .slideshow-overlay-unique h1 {
      font-size: 2.5rem;
    }
  
    .slideshow-overlay-unique p {
      font-size: 1.2rem;
    }
  
    .slideshow-overlay-unique .hero-button-unique {
      font-size: 1rem;
      padding: 12px 25px;
    }
  }


  @media screen and (min-width: 1280px) and (max-width: 1440px){
    .slide-unique video  {
      margin-left: 2.5%;
      max-width: 125%;
    }
    .slideshow-overlay-unique p {
      font-size: 1.5rem;
      text-shadow:4px 4px 0.5 #0D1B2A;
      color: #ffffff;
    }
    .slideshow-unique{
      max-width: 100%;
      max-height: 633px;
      margin-top: 1%;
    }
  }
  
  /* Pantallas extra grandes (1440px y superiores) */
  @media screen and (min-width: 1440px) {
    .slideshow-overlay-unique h1 {
      font-size: 3rem;
    }

    .slideshow-unique{
      max-width: 100%;
      max-height: 633px;
      margin-top: 1%;
    }

    .hero-container-unique{
      max-height: 633px;
      max-width: 100%;
    }


    .slide-unique video  {
      margin-left: 5%;
      max-width: 125%;
    }
  
    .slideshow-overlay-unique p {
      font-size: 1.5rem;
      text-shadow:4px 4px 0.5 #0D1B2A;
      color: #ffffff;
    }
  
    .slideshow-overlay-unique .hero-button-unique {
      font-size: 1.2rem;
      padding: 15px 30px;
    }
  }
  

/*  final de Estilos hero 2*/

/* Inicio estilos para Hero  3 */
  
/* Hero Section Reveal */
.hero-section-reveal {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle, #1e293b, #0f172a); /* Fondo base usando gradientes */
  z-index: 0;
}

/* Inicio clases para el particles ajustado con id */
#hero-section-reveal canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* Asegura que quede detrás del contenido */
  opacity: 0.5; /* Ajusta la transparencia de las partículas */
}
/* Final clases para el particles con id */

/* Fondo animado */
.background-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 70%);
  animation: moveBackground 10s linear infinite;
  z-index: -1;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Contenedor principal */
.hero-container-reveal {
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 2s ease-out, transform 2s ease-out;
  z-index: 1;
}

.hero-container-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto Máquina de Escribir */
.hero-title-reveal {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden; 
  white-space: wrap; /* Mantener texto en dos línea */
  border-right: 2px solid rgba(255, 255, 255, 0.75); /* Cursor */
  width: 0; /* Inicialmente no visible */
}

.typing-active {
  width: 100%; /* Asegura que el texto permanezca visible después de la animación */
  animation: typing 4s steps(20, end), blinkCursor 0.7s step-end infinite alternate;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkCursor {
  from {
    border-color: rgba(255, 255, 255, 0.75);
  }
  to {
    border-color: transparent;
  }
}

/* Fades para subtítulos y botones */
.hero-subtitle-reveal {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  opacity: 0; /* Inicialmente invisible */
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-button-reveal {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #00c4cc;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  opacity: 0; /* Inicialmente invisible */
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* inicio de clases para hero 3 en tamaño de 425 en adelante */

@media screen and (min-width: 425px) {
  .hero-title-reveal {
    white-space: normal; /* Permitir que el texto se divida en dos líneas */
  }
}


/* inicio de clases para hero 3 en tamaño de 425 en adelante */


/* inicio de clases de 1440px en adelante, para el hero 3 */

@media screen and (min-width: 1440px) {
  .hero-title-reveal {
    font-size: 4rem; 
  }

  .hero-subtitle-reveal {
    font-size: 2rem; 
  }

  .hero-button-reveal {
    font-size: 1.2rem; 
    padding: 1rem 2rem; 
  }
}


/* inicio de clases de 1440px en adelante, para el hero 3 */


/* final estilos para Hero  3 total */

  
  
 /* inicio de clases para hero 4 */

  /* Hero 4 Container */
.hero-4-container-unique {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  padding: 0 5%;
  background-color: #00c4cc;
}

/* Izquierda */
.hero-4-left-unique {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80%;
}

.hero-4-img-unique {
  width: 100%;
  height: 48%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 1s ease-out, opacity 1s ease-out;
}

.hero-4-img-unique.top {
  animation-delay: 0.5s;
}

.hero-4-img-unique.bottom {
  animation-delay: 1s;
}

/* Derecha */
.hero-4-right-unique {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

.hero-4-title-unique {
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-4-subtitle-unique {
  font-size: 1.5rem;
  margin: 20px 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-4-button-unique {
  padding: 10px 20px;
  background-color: #FFD700;
  color: #0D1B2A;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.hero-4-button-unique:hover {
  background-color: #F4A261;
}

/* Visible State (JS adds this class) */
.visible-unique {
  transform: translateX(0);
  opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero-4-container-unique {
      flex-direction: column;
      padding: 2%;
  }

  .hero-4-left-unique, .hero-4-right-unique {
      width: 100%;
      height: auto;
  }

  .hero-4-img-unique {
      height: 40%;
  }

  .hero-4-title-unique {
      font-size: 2rem;
  }

  .hero-4-subtitle-unique {
      font-size: 1.2rem;
  }

  .hero-4-button-unique {
      font-size: 1rem;
  }
}


/* inicio de end point para reducir espacio entre videos de hero 4 de 320 a 678px */

@media (max-width: 768px) {
  .hero-4-left-unique {
    height: 100%; 
    max-height: 75%;
    justify-content: flex-start; 
    gap: 10px; 
  }

  .hero-4-container-unique {
    overflow: auto; 
  }
}

/* final de end point para reducir espacio entre videos de hero 4 de 320 a 678px */

/* inicio tamaños por encima de 2560px para hero 4 */

@media (min-width: 2560px) {
  .hero-4-title {
    font-size: 7rem; 
  }

  .hero-4-subtitle {
    font-size: 4rem; 
  }

  .hero-4-button {
    font-size: 3rem; 
    padding: 30px 60px; 
  }
}

/* final tamaños por encima de 2560px para hero 4 */

 /* final de clases para hero 4 */


/* inicio de clases para el hero 5 Estilos 3D */

.hero-container-3d {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  overflow: hidden;
}

/* Laptop 3D */
.laptop-3d {
  position: relative;
  width: 400px;
  height: 250px;
  background: transparent;
  transform: perspective(800px) rotateX(25deg) rotateY(0deg);
  transform-origin: bottom center;
  transition: transform 3s ease-in-out; 
}

/* Pantalla de la laptop */
.screen {
  position: absolute;
  top: 0;
  left: 50%; 
  width: 70%; 
  height: 70%;
  background-image: url('./images/laptop-screen.png'); 
  background-size: contain; 
  background-repeat: no-repeat; 
  background-position: center; 
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  transform: translateX(-50%); 
}

/* Teclado de la laptop */
.keyboard {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; 
  height: 30%; 
  background-image: url('./images/keyboard.png'); 
  background-size: contain; 
  background-repeat: no-repeat; 
  background-position: center; 
  border-radius: 0 0 10px 10px;
}

/* Contenido del Hero */
.hero-content-3d {
  position: absolute;
  bottom: 10%;
  text-align: center;
}

.hero-title-3d {
  font-size: 2rem;
  color: #facc15;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-subtitle-3d {
  font-size: 1rem;
  color: #ffffff;
  margin: 10px 0;
}

.hero-button-3d {
  display: block;
  margin: 5% 5% 5% 5%;
  padding: 10px 20px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease;
}

.hero-button-3d:hover {
  background: #1d4ed8;
}

/* Animaciones al hacer scroll */
.hero-container-3d.scrolled .laptop-3d {
  transform: perspective(800px) rotateX(0deg) rotateY(0deg); 
}

/* final de clases para el hero 5 */



  /* final de clases para el hero 5 estilos 3d*/