body {
  background-color: #67428B;
  font-family: 'Poppins', sans-serif;
  margin: 0px;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Estilo de Cristal/Arcoiris para 'Convergen' */
.animated-word-4 {
  background: linear-gradient(90deg, rgba(255, 0, 0, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(208, 222, 33, 1) 20%, rgba(79, 220, 74, 1) 30%, rgba(63, 218, 216, 1) 40%, rgba(47, 201, 226, 1) 50%, rgba(28, 127, 238, 1) 60%, rgba(95, 21, 242, 1) 70%, rgba(186, 12, 248, 1) 80%, rgba(251, 7, 217, 1) 90%, rgba(255, 0, 0, 1) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
  font-weight: bold;
  font-size: 1.5em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.42), 0 0 16px rgba(231, 231, 231, 0.14);
}

/* Efecto de Brillo */
@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Efecto de Brillo */
@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.slogan h1 {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.slogan p {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #7C4FC5;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
  background-color: #5A2C8D;
  transform: scale(1.1);
}

/* Servicios */
.services {
  padding: 50px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.services h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.section-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #555;
}

/* Responsividad */
@media (max-width: 768px) {

  .services .service-card,
  .portfolio-container {
    width: 90%;
    margin: 0 auto;
  }

  .cta-button {
    font-size: 0.9em;
  }
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0.75;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.overlay.active {
  opacity: 1;
}

.green-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(136, 255, 186, 0.5);
  opacity: 0.75;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.green-overlay.active {
  opacity: 1;
}

#green-video {
  top: 50%;
  /* Alinea verticalmente el video al centro */
  left: 0;
  width: 100%;
  height: auto;
  /* Permitir que la altura se ajuste automáticamente */
  object-fit: cover;
  object-position: center;
  /* Centra el video horizontalmente */
  transform: translateY(-50%);
  /* Corrige la posición vertical */
  z-index: -1;
}

.green-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  /* Oculta cualquier parte del video que se salga del contenedor */
}


.logo img {
  max-width: 100px;
  height: auto;
  margin-left: 20px;
}

.slogan {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  box-sizing: border-box;
}

.section-divider {
  position: relative;
  width: 100%;
  height: 100px;
  background-color: #6a5acd;
  /* Color de fondo del divisor */
  overflow: hidden;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(135deg, #00f5ff, #0025ff);
  animation: wave 6s infinite linear;
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* Contador animado */
.stats-section {
  background: linear-gradient(135deg, #42265C 0%, #7C4FC5 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-60px);
  }
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  margin: 20px;
  color: white;
  min-width: 200px;
}

.stat-number {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #fff, #E8D5F2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.stat-label {
  font-size: 1.2em;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sección de metodología */
.methodology-section {
  padding: 100px 20px;
  background: #f8f9fa;
  position: relative;
}

.methodology-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.methodology-title {
  font-size: 2.8em;
  color: #42265C;
  margin-bottom: 20px;
  font-weight: bold;
}

.methodology-subtitle {
  font-size: 1.3em;
  color: #666;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.process-timeline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
}

.process-step {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(66, 38, 92, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(66, 38, 92, 0.15);
  border-color: #7C4FC5;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #7C4FC5, #B857D0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
}

.process-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #EAE8F2, #D4C7E8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
}

.process-title {
  font-size: 1.4em;
  color: #42265C;
  margin-bottom: 15px;
  font-weight: bold;
}

.process-description {
  color: #666;
  line-height: 1.6;
}

/* Sección de testimonio destacado */
.featured-testimonial {
  background: linear-gradient(135deg, #42265C 0%, #2D1B3D 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.featured-testimonial::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: testimonial-bg 30s linear infinite;
}

@keyframes testimonial-bg {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.testimonial-quote {
  font-size: 1.8em;
  color: white;
  line-height: 1.6;
  margin-bottom: 40px;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before,
.testimonial-quote::after {
  content: '"';
  font-size: 4em;
  color: #7C4FC5;
  position: absolute;
  opacity: 0.3;
}

.testimonial-quote::before {
  top: -20px;
  left: -40px;
}

.testimonial-quote::after {
  bottom: -60px;
  right: -40px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C4FC5, #B857D0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
}

.author-info h4 {
  color: white;
  margin: 0;
  font-size: 1.3em;
}

.author-info p {
  color: #B857D0;
  margin: 5px 0 0 0;
}

/* Call to Action mejorado */
.enhanced-cta {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5em;
  color: #42265C;
  margin-bottom: 20px;
  font-weight: bold;
}

.cta-description {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.enhanced-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.enhanced-cta-button.primary {
  background: linear-gradient(135deg, #7C4FC5, #B857D0);
  color: white;
  box-shadow: 0 10px 30px rgba(124, 79, 197, 0.3);
}

.enhanced-cta-button.secondary {
  background: transparent;
  color: #7C4FC5;
  border: 2px solid #7C4FC5;
}

.enhanced-cta-button:hover {
  transform: translateY(-3px);
}

.enhanced-cta-button.primary:hover {
  box-shadow: 0 15px 40px rgba(124, 79, 197, 0.4);
}

.enhanced-cta-button.secondary:hover {
  background: #7C4FC5;
  color: white;
}

/* Mejoras al portafolio */
.portfolio-enhanced {
  background: #ffffff;
  padding: 100px 20px;
}

.portfolio-header-enhanced {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-title-enhanced {
  font-size: 2.8em;
  color: #42265C;
  margin-bottom: 20px;
  font-weight: bold;
}

.portfolio-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card-enhanced {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  group: hover;
}

.project-card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image-enhanced {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.project-image-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card-enhanced:hover .project-image-enhanced img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 79, 197, 0.8), rgba(184, 87, 208, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-enhanced:hover .project-overlay {
  opacity: 1;
}

.project-view-button {
  background: white;
  color: #42265C;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.project-card-enhanced:hover .project-view-button {
  transform: translateY(0);
}

.project-details-enhanced {
  padding: 25px;
}

.project-name-enhanced {
  font-size: 1.5em;
  color: #42265C;
  margin-bottom: 15px;
  font-weight: bold;
}

.project-tags-enhanced {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

/* Animaciones de entrada */
.fade-in-up {
  opacity: 0.5;
  transform: translateY(0px);
  transition: all 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
    align-items: center;
  }

  .process-timeline {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-quote {
    font-size: 1.4em;
  }

  .testimonial-quote::before,
  .testimonial-quote::after {
    font-size: 3em;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .portfolio-grid-enhanced {
    grid-template-columns: 1fr;
  }
}