/* Estilos del título en el header */
.title-nakz {
  font-family: 'Segoe Print', sans-serif;
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  margin-right: 5px;
}

.title-corp {
  font-family: 'Mistral', cursive;
  color: #15232d;
  font-size: 25px;
}

@media (max-width: 768px) {
  .title-nakz,
  .title-corp {
    display: none;
  }
}

/* Estilos de la sección de servicios */
.services {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(71, 178, 228, 0.05) 0%, rgba(55, 81, 126, 0.05) 100%);
  animation: gradientAnimation 15s ease infinite;
  z-index: 0;
}

/* Estilos de la tarjeta de título de servicios */
.services-title-card {
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  z-index: 1;
}

.services-title-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(71, 178, 228, 0.92) 0%, 
    rgba(71, 178, 228, 0.85) 25%,
    rgba(55, 81, 126, 0.85) 75%,
    rgba(55, 81, 126, 0.92) 100%
  );
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.services-title-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.25) 25%,
    rgba(255,255,255,0.15) 50%,
    transparent 75%
  );
  opacity: 0;
  transform: scale(0.5) rotate(0deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.services-title-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.services-title-card:hover::before {
  opacity: 1;
}

.services-title-card:hover::after {
  opacity: 1;
  transform: scale(1) rotate(360deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    opacity: 0.4;
    transform: scale(0.9) rotate(0deg);
  }
  25% {
    opacity: 0.8;
    transform: scale(1.1) rotate(90deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
  75% {
    opacity: 0.8;
    transform: scale(1.1) rotate(270deg);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.9) rotate(360deg);
  }
}

.services-title-card .icon-wrapper {
  width: 90px;
  height: 90px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.services-title-card .icon-wrapper i {
  font-size: 2.8rem;
  color: #47b2e4;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-title-card:hover .icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.services-title-card:hover .icon-wrapper i {
  color: #fff;
  transform: scale(1.1);
}

.services-title-card .title-content {
  position: relative;
  z-index: 2;
}

.services-title-card .subtitle {
  display: inline-block;
  color: #47b2e4;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  position: relative;
  padding: 0 15px;
}

.services-title-card .subtitle::before,
.services-title-card .subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: #47b2e4;
  transform: translateY(-50%);
  transition: all 0.4s ease;
}

.services-title-card .subtitle::before {
  left: -40px;
}

.services-title-card .subtitle::after {
  right: -40px;
}

.services-title-card:hover .subtitle {
  color: #fff;
  transform: scale(1.05);
}

.services-title-card:hover .subtitle::before,
.services-title-card:hover .subtitle::after {
  background: #fff;
  width: 40px;
}

.services-title-card .main-title {
  color: #37517e;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 20px 0;
  transition: all 0.4s ease;
}

.services-title-card:hover .main-title {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.9) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
}

.services-title-card .title-decoration {
  width: 50px;
  height: 3px;
  background: #47b2e4;
  margin: 25px auto;
  position: relative;
  transition: all 0.4s ease;
}

.services-title-card .title-decoration::before,
.services-title-card .title-decoration::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47b2e4;
  top: -2px;
  transition: all 0.4s ease;
}

.services-title-card .title-decoration::before {
  left: -10px;
}

.services-title-card .title-decoration::after {
  right: -10px;
}

.services-title-card:hover .title-decoration {
  background: #fff;
  width: 70px;
}

.services-title-card:hover .title-decoration::before,
.services-title-card:hover .title-decoration::after {
  background: #fff;
}

.services-title-card .lead {
  color: #6c757d;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
  transition: all 0.4s ease;
}

.services-title-card:hover .lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Estilos del contador de estadísticas */
.stats-counter-wrapper {
  padding: 40px 0;
  margin-bottom: 60px;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.stats-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #47b2e4 0%, #37517e 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.stats-card:hover {
  transform: translateY(-10px);
}

.stats-card:hover::before {
  opacity: 1;
}

.stats-card .icon-wrapper {
  width: 80px;
  height: 80px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.stats-card .icon-wrapper i {
  font-size: 2.5rem;
  color: #47b2e4;
  transition: all 0.4s ease;
}

.stats-card:hover .icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  transform: rotateY(360deg);
}

.stats-card:hover .icon-wrapper i {
  color: #fff;
}

.stats-content {
  position: relative;
  z-index: 1;
}

.counter-wrapper {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: #37517e;
  transition: all 0.4s ease;
  display: inline-block;
}

.plus {
  font-size: 2rem;
  font-weight: 700;
  color: #47b2e4;
  transition: all 0.4s ease;
}

.stats-card:hover .counter,
.stats-card:hover .plus {
  color: #fff;
}

.stats-content h4 {
  color: #6c757d;
  font-size: 1.2rem;
  margin: 0;
  transition: all 0.4s ease;
}

.stats-card:hover .stats-content h4 {
  color: #fff;
}

.stats-decoration {
  width: 50px;
  height: 3px;
  background: #47b2e4;
  margin: 15px auto 0;
  position: relative;
  transition: all 0.4s ease;
}

.stats-decoration::before,
.stats-decoration::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47b2e4;
  top: -2px;
  transition: all 0.4s ease;
}

.stats-decoration::before {
  left: -10px;
}

.stats-decoration::after {
  right: -10px;
}

.stats-card:hover .stats-decoration {
  background: #fff;
  width: 70px;
}

.stats-card:hover .stats-decoration::before,
.stats-card:hover .stats-decoration::after {
  background: #fff;
}

/* Estilos de la sección de servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  position: relative;
  min-height: 250px;
  padding: 40px;
  gap: 30px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(71, 178, 228, 0.92) 0%, 
    rgba(71, 178, 228, 0.85) 25%,
    rgba(55, 81, 126, 0.85) 75%,
    rgba(55, 81, 126, 0.92) 100%
  );
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-features span {
  color: #fff;
}

.service-card:hover .service-features i {
  color: rgba(255, 255, 255, 0.9);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  padding: 0;
}

.service-icon i {
  font-size: 2rem;
  color: #47b2e4;
  transition: all 0.4s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.service-card h3,
.service-card p,
.service-features span,
.service-features i,
.service-link {
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.service-card h3 {
  color: #37517e;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.service-card p {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-features span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c757d;
  font-size: 0.95rem;
}

.service-features i {
  color: #47b2e4;
  font-size: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  background: #f8f9fa;
  border-radius: 25px;
  color: #47b2e4;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.service-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon {
  background: #47b2e4;
}

.service-card:hover .service-icon i {
  color: #fff;
  transform: rotate(10deg);
}

.service-card:hover .service-link {
  background: #47b2e4;
  color: #fff;
}

.service-card:hover .service-link i {
  transform: translateX(8px);
}

/* Estilos del grid de características */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-card .icon-box {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.feature-card .icon-box i {
  font-size: 2rem;
  color: #47b2e4;
  transition: all 0.4s ease;
}

.feature-card h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.feature-card:hover .icon-box {
  background: #47b2e4;
}

.feature-card:hover .icon-box i {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-grid {
    gap: 20px;
    padding: 15px;
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-card {
    padding: 30px 20px;
  }

  .counter {
    font-size: 2.5rem;
  }

  .plus {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .service-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
    min-height: auto;
  }

  .service-icon {
    margin: 0 auto 20px;
  }

  .service-content {
    padding: 0;
  }

  .service-features span {
    justify-content: center;
  }

  .service-link {
    align-self: center;
  }
}
