/* =========================
   services.css - Versión final con mejoras móviles
   ========================= */

/* Importar fuente Poppins de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variables actualizadas solo con paleta azul */
:root {
  --primary: #434c88;
  --primary-light: rgba(67, 76, 136, 0.1);
  --primary-dark: #363d6c;
  --primary-lighter: #6c8cff;
  --primary-lightest: rgba(67, 76, 136, 0.05);
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #888888;
  --bg-light: #ffffff;
  --bg-gray: #f8f9fa;
  --bg-dark: #1a1a1a;
  --border: #eaeaea;
  --transition: 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 5px 15px rgba(67, 76, 136, 0.2);
}

/* Clases para colores de la paleta */
.text-primary-lightest {
  color: var(--primary-lightest);
}

/* =========================
   ESTILOS GENERALES CON POPPINS
   ========================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================
   HEADER/MENÚ
   ========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 70px;
}

/* Logo */
.site-logo img {
  height: 50px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 12px rgba(67, 76, 136, 0.15));
}

.site-logo img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 8px 25px rgba(67, 76, 136, 0.3));
}

/* NAVEGACIÓN PRINCIPAL */
.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
  font-family: 'Poppins', sans-serif;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  transform: translateY(-1px);
}

/* BOTÓN DE LLAMADA/CTA */
.cta-button {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  border: 2px solid var(--primary);
  font-family: 'Poppins', sans-serif;
}

.cta-button:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* BOTÓN MENÚ MÓVIL */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 3px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   HERO SECTION
   ========================= */

.services-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background: 
    linear-gradient(135deg, rgba(67, 76, 136, 0.95) 0%, rgba(54, 61, 108, 0.98) 100%),
    url('../imagenes/imagen3.jpg') center/cover no-repeat;
  padding: 8rem 2rem 6rem;
  margin-top: 70px;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 70% 30%, rgba(108, 140, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(67, 76, 136, 0.3) 0%, transparent 50%);
  z-index: 0;
}

.services-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 2;
}

.services-hero-content {
  max-width: 700px;
  color: white;
}

.services-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Poppins', sans-serif;
}

.services-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
}

.services-hero-title strong {
  color: #e0e7ff;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.services-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 300;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
}

.services-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.services-btn-primary {
  background: white;
  color: var(--primary-dark);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
  font-family: 'Poppins', sans-serif;
}

.services-btn-primary:hover {
  background: var(--primary-lighter);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 76, 136, 0.3);
}

.services-btn-secondary {
  background: transparent;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
}

.services-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

.services-hero-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
  width: 600px;
}

.services-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(67, 76, 136, 0.3) 100%);
  z-index: 1;
}

/* Estadísticas en el hero */
.hero-stats-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stat-item {
  text-align: center;
  min-width: 100px;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e0e7ff;
  line-height: 1;
  display: block;
  font-family: 'Poppins', sans-serif;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  display: block;
  font-family: 'Poppins', sans-serif;
}

/* Flecha indicadora */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
  z-index: 2;
}

.hero-scroll-indicator i {
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* =========================
   SECCIÓN DE PRESENTACIÓN MEJORADA
   ========================= */

.services-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.services-intro-content {
  max-width: 750px;
}

.services-intro-text {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding: 2px;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
}

.services-stats-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-highlight-card {
  background: var(--primary-light);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.stat-highlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-light);
}

.stat-highlight-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.stat-highlight-card p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   MEJORAS PARA SECCIÓN DE SERVICIOS ESPECIALIZADOS
   ========================= */

#servicios-grid {
  padding: 0 2rem;
}

#servicios-grid .section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 0 1rem;
}

#servicios-grid .section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

#servicios-grid .section-title strong {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

#servicios-grid .section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
  font-family: 'Poppins', sans-serif;
}

/* Grid mejorado para servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-light);
  margin: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-lighter));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(67, 76, 136, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all var(--transition);
  text-align: center;
  width: 100%;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-dark);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary-dark);
  line-height: 1.3;
  text-align: center;
  padding: 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  text-align: center;
  padding: 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.service-card-footer {
  margin-top: auto;
  text-align: center;
}

.service-card-footer .btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

.service-card-footer .btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 76, 136, 0.2);
}

/* Badge para servicios (opcional) */
.service-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   MEJORAS PARA SECCIÓN DE PROCESO DE TRABAJO
   ========================= */

.process-section {
  background: linear-gradient(135deg, 
    rgba(67, 76, 136, 0.03) 0%,
    rgba(67, 76, 136, 0.01) 100%);
  padding: 6rem 0;
}

.process-section .section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 0 2rem;
}

.process-section .section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

.process-section .section-title strong {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.process-section .section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

/* Grid mejorado para proceso */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.process-step {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
  border-radius: 12px 12px 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.process-step:hover::before {
  opacity: 1;
}

.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(67, 76, 136, 0.2);
  position: relative;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
}

.process-number::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(67, 76, 136, 0.1);
  z-index: -1;
  opacity: 0;
  transition: all var(--transition);
}

.process-step:hover .process-number::after {
  opacity: 1;
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  line-height: 1.3;
  min-height: 3.5rem;
  padding: 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.process-step p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 0;
  flex-grow: 1;
  padding: 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

/* Línea conectora entre pasos */
.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.25rem;
  width: 2.5rem;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

/* =========================
   SECCIÓN DE SECTORES MEJORADA
   ========================= */

.sectors-section {
  padding: 6rem 0;
}

.sectors-section .section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 0 2rem;
}

.sectors-section .section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

.sectors-section .section-title strong {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.sectors-section .section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.sector-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-light);
}

.sector-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.sector-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform var(--transition);
  text-align: center;
}

.sector-card:hover .sector-icon {
  transform: scale(1.1);
}

.sector-content {
  flex-grow: 1;
}

.sector-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  text-align: center;
  padding: 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.sector-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
  text-align: center;
  padding: 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   CTA SECTION MEJORADA
   ========================= */

.services-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(108, 140, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(67, 76, 136, 0.3) 0%, transparent 50%);
  z-index: 0;
}

.services-cta .section-header {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.services-cta .section-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.services-cta .section-title strong {
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.services-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
  padding: 0 1rem;
  font-family: 'Poppins', sans-serif;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.services-cta-primary {
  background: white;
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
  font-family: 'Poppins', sans-serif;
}

.services-cta-primary:hover {
  background: var(--primary-lighter);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 76, 136, 0.3);
}

.services-cta-secondary {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
}

.services-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

/* =========================
   ANIMACIONES MEJORADAS
   ========================= */

[data-service-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

[data-service-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto de pulso para elementos destacados */
@keyframes pulse-primary {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(67, 76, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(67, 76, 136, 0);
  }
}

.pulse-effect {
  animation: pulse-primary 2s infinite;
}

/* Animaciones adicionales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.process-step,
.service-card,
.sector-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.sector-card:nth-child(1) { animation-delay: 0.1s; }
.sector-card:nth-child(2) { animation-delay: 0.2s; }
.sector-card:nth-child(3) { animation-delay: 0.3s; }

/* =========================
   MEJORAS DE ACCESIBILIDAD
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-scroll-indicator {
    animation: none;
  }
  
  .process-step,
  .service-card,
  .sector-card {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Alto contraste */
@media (prefers-contrast: high) {
  .service-card,
  .process-step,
  .sector-card {
    border: 2px solid var(--text);
  }
  
  .service-card:hover,
  .process-step:hover,
  .sector-card:hover {
    border-color: var(--primary);
  }
  
  .services-hero-title,
  .services-hero-subtitle {
    text-shadow: 0 2px 0 black;
  }
  
  .service-card h3,
  .process-step h3,
  .sector-card h3 {
    color: #000000;
  }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  .service-card,
  .process-step,
  .sector-card {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
  }
  
  .service-card h3,
  .process-step h3,
  .sector-card h3 {
    color: #e0e0e0;
  }
  
  .service-card p,
  .process-step p,
  .sector-card p {
    color: #b0b0b0;
  }
  
  .stat-highlight-card {
    background: rgba(67, 76, 136, 0.2);
  }
}

/* =========================
   CLASES DE UTILIDAD ADICIONALES
   ========================= */

.service-highlight {
  background: linear-gradient(135deg, var(--primary-light), transparent);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  margin: 2rem 0;
}

.service-feature-list {
  list-style: none;
  padding: 0;
}

.service-feature-list li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
  font-family: 'Poppins', sans-serif;
}

.service-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Badges para servicios */
.service-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.service-badge.primary {
  background: var(--primary);
  color: white;
}

/* =========================
   FOOTER - AJUSTADO AL MISMO TAMAÑO QUE PROYECTOS.CSS
   ========================= */
.services-footer {
  background: #1a1a1a; /* Fondo oscuro general del footer */
  color: white;
  padding: 2rem 2rem 2rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-card {
  background: white; /* Fondo blanco */
  border: 1px solid #e0e0e0; /* Borde gris claro */
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Sombra suave */
}

.footer-card:hover {
  background: #f8f9fa; /* Fondo gris muy claro al hover */
  border-color: #bdbdbd;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333; /* Texto negro */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eee; /* Borde inferior gris claro */
  font-family: 'Poppins', sans-serif;
}

.footer-card-title i {
  color: var(--primary); /* Iconos en azul */
}

/* Card para redes sociales - TEXTO CAMBIADO A NEGRO */
.social-card .social-description {
  color: #666; /* Texto gris */
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

/* Clase social-links para el footer de servicios */
.social-card .social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-card .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0; /* Fondo gris claro */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555; /* Color de icono gris */
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.social-card .social-icon:hover {
  background: var(--primary); /* Fondo azul al hover */
  color: white; /* Icono blanco al hover */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 76, 136, 0.4);
}

/* Card para enlaces */
.links-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.links-card a {
  color: #555; /* Texto gris oscuro */
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-family: 'Poppins', sans-serif;
}

.links-card a:hover {
  color: var(--primary); /* Texto azul al hover */
  padding-left: 0.5rem;
}

.links-card a i {
  color: var(--primary); /* Iconos en azul */
  font-size: 0.8rem;
}

/* Card para contacto */
.contact-card .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-card .contact-item i {
  color: var(--primary); /* Iconos en azul */
  margin-top: 0.25rem;
  font-size: 1rem;
}

.contact-card .contact-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #333; /* Texto negro */
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.contact-card .contact-info p {
  color: #666; /* Texto gris */
  font-size: 0.85rem;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
}

/* Card para descripción */
.about-card p {
  color: #666; /* Texto gris */
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.about-card .footer-logo {
  margin-bottom: 1rem;
}

.about-card .footer-logo img {
  height: 45px;
  width: auto;
  margin-bottom: 0.8rem;
  /* Quitamos el filtro para mostrar el logo en su color original */
  filter: none;
}

/* Footer bottom - Esta parte se mantiene con fondo oscuro y texto claro */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Poppins', sans-serif;
}

.footer-brand {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.footer-brand:hover {
  color: var(--primary-lighter);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.footer-legal a:hover {
  color: white;
}

/* =========================
   RESPONSIVE MEJORADO - INCLUYE OPTIMIZACIONES MÓVILES
   ========================= */

@media (max-width: 1200px) {
  .services-hero-container {
    gap: 3rem;
  }
  
  .services-intro-grid {
    gap: 2rem;
  }
  
  /* Process y Services Grid */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Footer Cards */
  .footer-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .services-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .services-hero-buttons {
    justify-content: center;
  }
  
  .hero-stats-grid {
    justify-content: center;
  }
  
  .services-intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .services-stats-highlights {
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Títulos de secciones */
  #servicios-grid,
  .process-section,
  .sectors-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  #servicios-grid .section-title,
  .process-section .section-title,
  .sectors-section .section-title,
  .services-cta .section-title {
    font-size: 2.2rem;
    padding: 0 0.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .service-icon {
    font-size: 3rem;
  }
  
  /* Footer responsive */
  .footer-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Header */
  .header-container {
    padding: 0 1rem;
  }
  
  .nav-main {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
  }
  
  .nav-main.active {
    display: flex;
  }
  
  .nav-main a {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-family: 'Poppins', sans-serif;
  }
  
  .nav-main a:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .services-hero {
    padding: 6rem 1rem 4rem;
    min-height: 60vh;
    margin-top: 60px;
  }
  
  .services-hero-title {
    font-size: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .services-hero-subtitle {
    font-size: 1.125rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .services-hero-buttons {
    flex-direction: column;
    align-items: stretch; /* Ocupan todo el ancho */
    gap: 0.75rem;
  }
  
  .services-btn-primary,
  .services-btn-secondary {
    width: 100%;
    max-width: none; /* Quita el límite de 300px */
    justify-content: center;
  }
  
  .services-hero-image {
    height: 300px;
    order: -1;
    max-width: 100%; /* Evita desbordes */
    width: 100%;
  }

  .services-hero-image img {
    aspect-ratio: 16/9;
    object-fit: cover;
  }
  
  /* Ajustes para evitar solapamiento en secciones */
  #servicios-grid,
  .process-section,
  .sectors-section,
  .services-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Process Grid */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
    padding: 0 1rem;
  }
  
  .process-step {
    padding: 2rem 1.5rem;
  }
  
  .process-step h3,
  .process-step p {
    padding: 0 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .process-step h3 {
    font-size: 1.25rem;
    min-height: auto;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .service-card h3 {
    font-size: 1.4rem;
    padding: 0 0.5rem;
  }
  
  .service-card p {
    padding: 0 0.5rem;
  }
  
  .service-icon {
    font-size: 2.8rem;
  }
  
  /* Sectors Grid */
  .sectors-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .sector-card {
    padding: 2rem 1.5rem;
  }
  
  .sector-card h3,
  .sector-card p {
    padding: 0 0.5rem;
  }
  
  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .services-cta-primary,
  .services-cta-secondary {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
  
  /* Footer */
  .services-footer {
    padding: 2rem 1rem 2rem;
  }
  
  .footer-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.25rem;
  }
  
  .footer-card {
    padding: 1.5rem;
  }
  
  .about-card .footer-logo img {
    height: 45px;
  }
  
  .footer-bottom {
    text-align: center;
    padding: 0 0.5rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .services-hero-title {
    font-size: 2rem;
    padding: 0 0.5rem;
  }
  
  .services-hero-badge {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .hero-stat-number {
    font-size: 2rem;
  }
  
  .hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales */
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
  }
  
  .hero-stat-item {
    min-width: auto;
  }
  
  .services-stats-highlights {
    grid-template-columns: 1fr;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  /* Títulos de secciones */
  #servicios-grid .section-title,
  .process-section .section-title,
  .sectors-section .section-title,
  .services-cta .section-title {
    font-size: 1.8rem;
    padding: 0 0.5rem;
  }
  
  .services-cta .section-title {
    font-size: 2rem;
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }
  
  /* Footer */
  .services-footer {
    padding: 2rem 1rem 2rem;
  }
  
  .social-card .social-icons {
    justify-content: center;
  }
  
  .contact-card .contact-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .contact-card .contact-item i {
    margin: 0 auto;
  }
}

/* NUEVO: Breakpoint para pantallas muy pequeñas (≤ 400px) */
@media (max-width: 400px) {
  .services-hero {
    padding: 5rem 0.75rem 3rem;
    min-height: auto; /* Altura determinada por contenido */
  }

  .services-hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .services-hero-subtitle {
    font-size: 1rem;
  }

  .services-hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .services-hero-image {
    height: 200px; /* Reduce altura */
    margin-top: 1rem;
  }

  .hero-stats-grid {
    gap: 0.25rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }

  /* Oculta el indicador de scroll si estorba */
  .hero-scroll-indicator {
    display: none;
  }

  /* Ajustes adicionales para el header */
  .site-logo img {
    height: 40px;
  }
}