.earth-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.earth-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/tierrahome.png-huyPWKbN34UfWWpXfbDfMq9XpO5IgT.jpeg");
  background-size: cover;
  background-position: center;
  animation: earthGlow 20s infinite;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes earthGlow {
  0% {
    filter: brightness(1) hue-rotate(0deg);
  }
  50% {
    filter: brightness(1.1) hue-rotate(10deg);
  }
  100% {
    filter: brightness(1) hue-rotate(0deg);
  }
}

/* Contenedor principal */
.content-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Estilos de texto y secciones */
.text-content1 {
  position: absolute;
  font-weight: 500;
  top: 50%;
  transform: translateY(-50%);
  left: 10%;
  font-size: 40px;
  color: white;
  z-index: 2;
  transition: opacity 0.8s ease;
}

.text-line {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.2;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.highlight-tech {
  color: #c8ff00;
}

/* Sección 2 */
.section-2 {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 1.2s ease, transform 1.2s ease, visibility 0s 1.2s;
}

.section-2.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity 1.2s ease, transform 1.2s ease, visibility 0s;
}

.section-2 .title {
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1rem, 5vw, 4rem);
  line-height: 1.2;
  color: #c8ff00;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.section-2 .description {
  font-size: clamp(0.9rem, 1.8vw, 2rem);
  line-height: 1.2;
  color: white;
  padding-right: 10rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.section-2.visible .title,
.section-2.visible .description {
  opacity: 1;
  transform: translateY(0);
}

/* Sección 3 - Cards */
.section-3 {
  opacity: 0;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s ease;
}

.section-3.visible {
  opacity: 1;
  visibility: visible;
}

/* Card styles */
.card {
  width: 600px;
  height: 450px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  color: white;
  font-size: 100rem;
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.card-services {
  background-image: url("../assets/fondo/fondo3.png");
}

.card-geo {
  background-image: url("../assets/fondo/fondo4.png");
}

.card-title {
  padding-right: 100px;
  padding-top: 30%;
  font-size: 3rem;
  font-family: "roboto";
  font-weight: 700;
  text-align: left;
  text-align: center;
  width: 100%;
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-3.expanded .card {
  height: 580px;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 2rem;
  transform: scale(1);
}

.section-3.expanded .card-title {
  font-size: 50px;
  font-family: "roboto";
  font-weight: 700;
  text-align: left;
  letter-spacing: 2px;
  padding-top: 20px;
  padding-left: 50px;
  margin-bottom: 1rem;
}

.card-content1 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.section-3.expanded .card-content1 {
  opacity: 1;
  padding-left: 50px;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 20px;
  font-size: 1.8rem;
  position: relative;
  z-index: 2;
}

.service-item-g {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 12px;
  font-size: 1.8rem;
  position: relative;
  z-index: 2;
}

.service-icon {
  margin-bottom: 10px;
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

#geo {
  gap: 0;
}

#geoico {
  width: 80px;
  height: 80px;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .section-3 {
    padding: 1rem;
    overflow-x: visible;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 100vh;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%);
    width: 100%;
  }

  .card {
    width: 45%;
    height: 200px;
    padding: 1rem;
    transform: scale(1);
  }

  .section-3.expanded .card {
    height: 340px;
    padding: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .card-title {
    padding-top: 40px;
    font-size: 2rem;
    padding-right: 0;
  }

  .section-3.expanded .card-title {
    font-size: 1.7rem;
    padding-top: 1rem;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
  }

  .section-3.expanded .card-content1 {
    padding-left: 1rem;
    gap: 0.5rem;
  }

  .service-item {
    margin-top: 10px;
    font-size: 1rem;
  }

  .service-item-g {
    margin-top: 8px;
    font-size: 1rem;
  }

  .service-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
  }

  #geoico {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .section-3 {
    padding: 0.5rem;
    overflow-x: visible;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    height: 100vh;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%);
    width: 100%;
  }

  .card {
    width: 50%;
    height: 150px;
    padding: 0.8rem;
    transform: scale(1);
  }

  .section-3.expanded .card {
    height: 270px;
    padding: 0.8rem;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .card-title {
    padding-top: 40px;
    padding-right: 0;
    font-size: 1.5rem;
  }

  .section-3.expanded .card-title {
    font-size: 1.3rem;
    padding-top: 0.8rem;
    padding-left: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .section-3.expanded .card-content1 {
    padding-left: 0.8rem;
    gap: 0.4rem;
  }

  .service-item {
    margin-top: 8px;
    font-size: 0.9rem;
  }

  .service-item-g {
    margin-top: 6px;
    font-size: 0.9rem;
  }

  .service-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
  }

  #geoico {
    width: 40px;
    height: 40px;
  }
  .text-content1{
    
    left: 20px;
  }

  #section3{
    left:0
    }


.text-line {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.section-2 .title {
  color: white;
  font-weight: 500;
  font-size: 2.4rem;
}

.section-2 .description {
  font-size: 1.15rem;
  padding-right: 0.5rem;
  white-space: normal;
}

.text-content1.section-1 {
  left: 5%;
  padding-right: 80px;
  width: 90%;
  text-align: left;
}


.text-content1.section-1 .text-line {
  display: inline;

  font-size: 2.5rem;
  line-height: 1.3;
}

.text-content1.section-1 .text-line:after {
  content: ".";
}

.text-content1.section-1 .text-line:nth-child(1):after,
.text-content1.section-1 .text-line:nth-child(2):after {
  content: "";
}


}
