* {
  margin: 0;
  padding: 0;
}

#index-container {
  overflow: hidden;
  transition: top 100ms cubic-bezier(0.5, 0.33, 0.3, 0.9) 1ms;
  height: auto;
  width: 100%;
}

.line-content {
  height: 0;
  transition: 2s all ease-in-out;
}

/* Hero section */
.hero-wrap {
  position: relative;
  height: auto;
  width: 100%;
  overflow: hidden;
  height: 100%;
}

.text-hero .title span {
  font-weight: 600;
}

.typewriter {
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(1rem, 2.5vw, 2rem);
  /* Tamaño de fuente responsivo */
}

.line1,
.line2 {
  display: inline-block;
  overflow: hidden;
  /* Ocultar el texto excedente */
  white-space: nowrap;
  /* Mantener el texto en una sola línea */
}

/* Animación de máquina de escribir */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Parpadeo del cursor */
@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: black;
  }
}

.line1 {
  animation: typing 2s steps(40, end), blink-caret .75s step-end infinite;
}

.line2 {
  visibility: hidden;
  /* Ocultar inicialmente */
  animation: typing2 2s steps(40, end) 2s forwards, blink-caret .75s step-end infinite 2s;
  animation-fill-mode: forwards;
  /* Mantener el estado final de la animación */
  white-space: nowrap;
  /* Mantener el texto en una sola línea */
}

@keyframes typing2 {
  0% {
    width: 0;
    visibility: visible;
    /* Mostrar cuando empiece la animación */
  }

  99.9% {
    width: 100%;
    visibility: visible;
    /* Asegurar visibilidad antes de finalizar */
  }

  100% {
    width: 100%;
    visibility: visible;
    /* Asegurar visibilidad después de finalizar */
  }
}

/* Subrayado de fondo */
.background-pink-text {
  display: inline;
  position: relative;
  z-index: 1;
}

.background-pink-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: #D40861;
  z-index: -1;
  animation: underline 1s forwards;
  animation-delay: 4s;
  width: 0;
}

/* Animación del subrayado de fondo */
@keyframes underline {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}


/* Sección de Cards */
.offset-section.cards-section .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.09), rgba(0, 0, 0, 0.09)),
                linear-gradient(180deg, rgba(0, 0, 0, 0) 51.81%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Services section */
.services-section .card-title span {
  color: white;
  float: left
}

/* Banner */
.banner-section {
  height: 313px;
  background: url('/files/site/banner-image.webp') no-repeat center center/cover;
  color: white;
}

/* Testimonials */
.testimonials {
  padding: 70px 5% 120px;
}


/*--------------------- RESPONSIVE ----------------------*/


/* Mobile */
@media screen and (max-width: 768px) {

  /* Hero section */
  .hero-wrap {
    height: auto;
  }

  .hero-wrap .hero-background img {
    width: 100%;
    height: auto;
    aspect-ratio: 390/792;
    object-fit: cover;
  }

  /* First Section Offset */
  .hero-dashboard .offset-section {
    margin-top: -160px;
  }


  /* Banner */
  .banner-section {
    height: auto;
    background: url('/files/site/banner-image-mobile.png');
    aspect-ratio: 349/313;
    background-size: cover;
  }

  .banner-section .banner-text, .banner-section .extrabold {
    font-size: 30px;
    line-height: 35px;
  }

  /* Highlight */
  .highlight-left {
    height: 544px;
    aspect-ratio: 391/544;
  }
}


@media screen and (max-width: 480px) {

  /* Banner */
  .banner-section .banner-text, .banner-section .extrabold {
    max-width: 90%;
    font-size: 25px;
    line-height: 30px;
    padding-top: 10px;
  }
}