/* Paleta de colores personalizada para Atlas Servicios Web */
:root {
  --primary-color: #8e44ad;      /* Púrpura - innovación digital */
  --secondary-color: #9b59b6;    /* Púrpura claro - tecnología */
  --accent-color: #1abc9c;       /* Turquesa - moderno y fresco */
  --dark-color: #2c3e50;         /* Azul oscuro - profesionalismo */
  --light-color: #f5f6fa;        /* Gris muy claro - fondo digital */
  --code-color: #e74c3c;         /* Rojo - programación/código */
  --data-color: #3498db;         /* Azul - datos/análisis */
  --ai-color: #f39c12;           /* Naranja - inteligencia artificial */
  --text-color: #34495e;         /* Color de texto principal */
  --gray-color: #7f8c8d;         /* Gris para textos secundarios */
  --border-color: #dcdde1;       /* Color para bordes */
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Fondos y secciones */
body.web-services-theme {
  background-color: var(--light-color);
}

body.web-services-theme .hero {
  background: linear-gradient(rgba(142, 68, 173, 0.8), rgba(155, 89, 182, 0.8)), 
              url('asset/image/imagen_jumbotron.jpg') no-repeat center center/cover;
}

/* Logos y navegación */
body.web-services-theme .logo-svg path:first-child {
  fill: var(--dark-color);
}

body.web-services-theme .logo-svg path:last-child {
  fill: var(--primary-color);
}

body.web-services-theme .logo h1,
body.web-services-theme .nav-menu a:hover,
body.web-services-theme .nav-menu a.active {
  color: var(--primary-color);
}

body.web-services-theme .nav-menu a::after,
body.web-services-theme .nav-menu a.active::after {
  background-color: var(--accent-color);
}

/* Encabezados de sección */
body.web-services-theme .section-header h2 {
  color: var(--primary-color);
}

body.web-services-theme .section-header h2::after {
  background-color: var(--accent-color);
}

/* Botones */
body.web-services-theme .btn-primary {
  background-color: var(--primary-color);
}

body.web-services-theme .btn-primary:hover {
  background-color: var(--accent-color);
}

body.web-services-theme .btn-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

body.web-services-theme .btn-secondary:hover {
  background-color: var(--primary-color);
}

/* Estilos para la sección de servicios - Basado en consulting.html */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.services {
  padding: 100px 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

/* Elemento decorativo de fondo */
.services::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(142, 68, 173, 0.1), rgba(26, 188, 156, 0.1));
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 3px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 40px 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  transition: height 0.5s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 25px;
  background-color: rgba(142, 68, 173, 0.1);
  color: var(--primary-color);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover h3 {
  transform: translateX(10px);
}

.service-card p {
  color: var(--gray-color);
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

/* Estilos específicos para cada tarjeta */
.service-card:nth-child(1) .service-icon {
  background-color: rgba(142, 68, 173, 0.1);
  color: var(--primary-color);
}

.service-card:nth-child(1):hover .service-icon {
  background-color: var(--primary-color);
  color: white;
}

.service-card:nth-child(2) .service-icon {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.service-card:nth-child(2):hover .service-icon {
  background-color: #e74c3c;
  color: white;
}

.service-card:nth-child(3) .service-icon {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.service-card:nth-child(3):hover .service-icon {
  background-color: #2ecc71;
  color: white;
}

.service-card:nth-child(4) .service-icon {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.service-card:nth-child(4):hover .service-icon {
  background-color: #3498db;
  color: white;
}

.service-card:nth-child(5) .service-icon {
  background-color: rgba(241, 196, 15, 0.1);
  color: #f1c40f;
}

.service-card:nth-child(5):hover .service-icon {
  background-color: #f1c40f;
  color: white;
}

.service-card:nth-child(6) .service-icon {
  background-color: rgba(26, 188, 156, 0.1);
  color: #1abc9c;
}

.service-card:nth-child(6):hover .service-icon {
  background-color: #1abc9c;
  color: white;
}

/* Estilos neón para elementos tecnológicos */
/* Mejoras visuales para la sección de tecnologías */
.tech-category {
  background: linear-gradient(to bottom right, rgba(22, 21, 29, 0.9), rgba(12, 11, 19, 0.95));
  border: 1px solid rgba(142, 68, 173, 0.3);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tech-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8e44ad, #1abc9c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.tech-category:hover::before {
  transform: scaleX(1);
}

.tech-category h3 {
  color: #ecf0f1;
  text-shadow: 0 0 5px #8e44ad;
  font-size: 1.3rem;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.tech-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: #1abc9c;
  box-shadow: 0 0 8px #1abc9c;
}

/* Estilo neón para elementos de tecnología */
.tech-item {
  background-color: rgba(26, 188, 156, 0.1);
  color: #ecf0f1;
  border: 1px solid rgba(26, 188, 156, 0.2);
  box-shadow: 0 0 8px rgba(26, 188, 156, 0.1);
  padding: 10px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: default;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.tech-item:hover {
  background-color: rgba(26, 188, 156, 0.2);
  box-shadow: 0 0 12px rgba(26, 188, 156, 0.3);
  transform: translateY(-3px);
}

.tech-item:hover::before {
  transform: translateX(100%);
}

/* Estilos específicos para diferentes categorías de tecnología */
.tech-category:nth-child(1) .tech-item {
  border-color: rgba(142, 68, 173, 0.3);
  box-shadow: 0 0 8px rgba(142, 68, 173, 0.2);
}

.tech-category:nth-child(1) .tech-item:hover {
  background-color: rgba(142, 68, 173, 0.2);
  box-shadow: 0 0 12px rgba(142, 68, 173, 0.4);
}

.tech-category:nth-child(2) .tech-item {
  border-color: rgba(52, 152, 219, 0.3);
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

.tech-category:nth-child(2) .tech-item:hover {
  background-color: rgba(52, 152, 219, 0.2);
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.4);
}

.tech-category:nth-child(3) .tech-item {
  border-color: rgba(46, 204, 113, 0.3);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.2);
}

.tech-category:nth-child(3) .tech-item:hover {
  background-color: rgba(46, 204, 113, 0.2);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.4);
}

.tech-category:nth-child(4) .tech-item {
  border-color: rgba(243, 156, 18, 0.3);
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.2);
}

.tech-category:nth-child(4) .tech-item:hover {
  background-color: rgba(243, 156, 18, 0.2);
  box-shadow: 0 0 12px rgba(243, 156, 18, 0.4);
}

/* Animación de pulsación para seleccionar elementos aleatorios */
@keyframes neonPulse {
  0% {
      transform: scale(1);
      box-shadow: 0 0 8px currentColor;
  }
  50% {
      transform: scale(1.05);
      box-shadow: 0 0 15px currentColor;
  }
  100% {
      transform: scale(1);
      box-shadow: 0 0 8px currentColor;
  }
}

.pulse-neon {
  animation: neonPulse 2s infinite;
}

/* Ajuste de la sección de tecnologías */
.technologies {
  background-color: rgba(22, 21, 29, 0.05);
  position: relative;
  overflow: hidden;
}

.technologies::before {
  content: '{ }';
  position: absolute;
  opacity: 0.03;
  font-size: 15rem;
  font-family: 'Courier New', monospace;
  bottom: 5%;
  right: 5%;
  color: #8e44ad;
}

/* Estilos para la sección con video de YouTube */
.description-video {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Proporción 16:9 para videos */
  margin-bottom: 20px; /* Para versión móvil */
}

.description-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Estilos específicos para el hero de web-services con la nueva imagen */
#web-services-hero {
  background: url('asset/image/web-services-hero.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

#web-services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.2) 100%);
}

#web-services-hero .hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Media queries */
@media (min-width: 992px) {
  .description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }

  .description-video {
    margin-bottom: 0; /* Eliminar margen en pantallas grandes */
  }
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .service-card {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 70px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
  }
  
  body.web-services-theme .hero {
    background-attachment: scroll !important; /* Desactivar parallax en móviles */
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .service-card {
    text-align: center;
  }
  
  .service-icon {
    margin: 0 auto 20px;
  }
}