/* --- Estilos Generales de la Sección de Servicios --- */

.services-hero, .services-intro, .services-grid-section {
  position: relative;
  width: 100%;
  background-color: #050505;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Resplandores de Fondo --- */

.glow-orb-hero {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.glow-orb-intro {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(120, 150, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================
   SECCIÓN 1: HERO
   ========================================== */

.services-hero {
  padding: 140px 0 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.pre-title {
  display: inline-block;
  color: #4a90e2;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-title {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

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

/* Botones (Reutilizados del CTA) */

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, #b0d552 0%, #1f6d0a 100%);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(148,235,37,0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(159,203,45,0.45), 0 0 20px rgba(148,235,37,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-primary-cta:hover::before {
  left: 100%;
}

.btn-primary-cta:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary-cta:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================
   SECCIÓN 2: INTRODUCCIÓN
   ========================================== */

.services-intro {
  padding: 80px 0;
}

.intro-container {
  position: relative;
  z-index: 1;
}

.section-title {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 30px;
}

.intro-text {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.intro-text strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Panel de Datos */

.data-glass-panel {
  background: rgba(20, 25, 35, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.data-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: 16px;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.data-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(159,203,45,0.45);
  transform: translateX(5px);
}

.data-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 144, 226, 0.1);
  border: 1px dashed rgba(74, 144, 226, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.data-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.data-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.data-text strong {
  color: #7ca317;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 5px;
}

/* ==========================================
   SECCIÓN 3: GRID DE CATEGORÍAS
   ========================================== */

.services-grid-section {
  padding: 80px 0 120px 0;
}

.grid-container {
  position: relative;
  z-index: 1;
}

.service-card {
  height: 100%;
  padding: 35px 25px;
  background: rgba(20, 25, 35, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(30, 40, 55, 0.5);
  border-color: rgba(159,203,45,0.45);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(74, 144, 226, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.service-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon-box {
  border-color: rgba(74, 144, 226, 0.6);
  background: rgba(74, 144, 226, 0.1);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
}

.service-card:hover .service-icon-box img {
  transform: scale(1.1);
}

/* Placeholder temporal para iconos */

.icon-placeholder {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.service-card h3 {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Animaciones de Scroll --- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 991px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  .data-glass-panel {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 100px 0 60px 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .btn-primary-cta, .btn-secondary-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .service-card {
    padding: 25px 20px;
  }
}

