/* =========================
   contactos.css - Versión actualizada con menú igual a services.html
   ========================= */

/* 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 con paleta de servicios */
: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);
  --primary-glow: #6BAAF9;
  --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);
}

* { 
  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-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================
   HEADER/MENÚ - IDÉNTICO AL DE SERVICES
   ========================= */
.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 - IDÉNTICO A SERVICES */
.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;
}

/* LÍNEA ANIMADA QUE CRUZA DEBAJO DEL BOTÓN - IGUAL QUE SERVICES */
.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 - ESTILO IDÉNTICO A SERVICES */
.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 - IDÉNTICO A SERVICES */
.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 para Contactos - ESPACIO AJUSTADO
   ========================= */
.services-hero {
  min-height: 60vh;
  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: 4rem 2rem 3rem;
  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: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.services-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  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: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
}

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

.services-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  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: 2rem;
  justify-content: center;
}

.services-btn-primary {
  background: white;
  color: var(--primary-dark);
  padding: 14px 28px;
  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.05rem;
  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: 14px 28px;
  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.05rem;
  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);
}

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

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

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

.hero-stat-label {
  font-size: 0.85rem;
  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: 20px;
  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.3rem;
}

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

/* =========================
   Cards de contacto
   ========================= */
.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
}

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

.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);
}

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

.contact-info-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-info-card .w-16 {
  background: var(--primary-light);
  transition: all var(--transition);
}

.contact-info-card:hover .w-16 {
  background: var(--primary);
  transform: scale(1.1);
}

.contact-info-card .w-16 i {
  transition: all var(--transition);
}

.contact-info-card:hover .w-16 i {
  color: white;
}

/* =========================
   Sección de contacto - Títulos de sección
   ========================= */
.section-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

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

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

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

/* =========================
   Formulario de contacto
   ========================= */
.contact-form-section {
  position: relative;
}

.contact-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-features {
  background: var(--primary-lightest);
  padding: 2.5rem;
}

.contact-feature {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.contact-feature:hover {
  transform: translateX(5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-light);
}

.contact-form {
  padding: 2.5rem;
  background: white;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: all var(--transition);
  background: var(--bg-gray);
  font-family: 'Poppins', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: white;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* =========================
   Sección de FAQ
   ========================= */
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-light);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
  font-family: 'Poppins', sans-serif;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question.active {
  color: var(--primary);
}

.faq-question i {
  transition: transform var(--transition);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-light);
  line-height: 1.6;
  animation: slideDown 0.3s ease-out;
  font-family: 'Poppins', sans-serif;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* =========================
   CTA Section
   ========================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.cta-section::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;
}

.cta-section .section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.cta-section .section-title {
  color: white;
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
}

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

/* =========================
   Footer - IDÉNTICO AL DE SERVICES
   ========================= */
.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 - ¡CORREGIDO! */
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.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;
}

/* =========================
   Animaciones mejoradas
   ========================= */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

/* =========================
   RESPONSIVE - MENÚ MÓVIL IDÉNTICO A SERVICES
   ========================= */
@media (max-width: 768px) {
  .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 {
    min-height: 55vh;
    padding: 4rem 1rem 3rem;
    margin-top: 70px;
  }
  
  .services-hero-title {
    font-size: 2.2rem;
  }
  
  .services-hero-subtitle {
    font-size: 1.05rem;
    max-width: 100%;
  }
  
  .services-hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .services-btn-primary,
  .services-btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .footer-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-card {
    padding: 1.25rem;
  }
  
  .about-card .footer-logo img {
    height: 35px;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .services-hero {
    min-height: 50vh;
    padding: 3rem 1rem 2rem;
  }
  
  .services-hero-title {
    font-size: 1.8rem;
  }
  
  .services-hero-badge {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  .hero-stat-number {
    font-size: 1.8rem;
  }
  
  .hero-stats-grid {
    gap: 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .services-footer {
    padding: 1.5rem 1rem 1rem;
  }
  
  .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;
  }
  
  .cta-section .section-title {
    font-size: 1.8rem;
  }
}

/* =========================
   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;
  }
  
  .fade-in {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Focus para accesibilidad */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================
   Mejoras adicionales para el banner y CTA
   ========================= */

/* Banner Hero mejorado */
.services-hero .bg-gradient-to-br {
  background-size: cover;
  background-position: center;
}

/* Animación para gradiente de texto */
.animate-gradient-text {
  background-size: 200% auto;
  animation: gradient-text-animation 8s ease infinite;
}

@keyframes gradient-text-animation {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* Animación de ping mejorada */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Efectos de hover para cards de contacto */
.contact-info-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(67, 76, 136, 0.1);
}

.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(67, 76, 136, 0.12);
  border-color: rgba(67, 76, 136, 0.2);
}

/* Efecto de borde animado en cards */
.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: 3px 3px 0 0;
}

.contact-info-card:hover::before {
  transform: scaleX(1);
}

/* Mejoras para formulario */
.contact-form-section {
  background: linear-gradient(135deg, 
    rgba(67, 76, 136, 0.03) 0%,
    rgba(67, 76, 136, 0.01) 100%);
}

.contact-container {
  border: 1px solid rgba(67, 76, 136, 0.1);
  background: white;
}

/* Efecto de elevación al hacer hover en FAQ */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(67, 76, 136, 0.2);
}

/* Animación para expandir línea */
@keyframes expand-line {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 8rem;
    opacity: 1;
  }
}

.animate-expand {
  animation: expand-line 1.2s ease-out 0.3s both;
}

/* Animación para fade in */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out both;
}

/* Mejoras para botones del banner */
.services-btn-primary, 
.services-btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.services-btn-primary::before,
.services-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s ease;
}

.services-btn-primary:hover::before,
.services-btn-secondary:hover::before {
  left: 100%;
}

/* Mejoras para stats en hero */
.hero-stat-item {
  position: relative;
  padding: 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* Mejoras para la sección CTA */
.bg-gradient-to-br {
  position: relative;
  overflow: hidden;
}

.bg-gradient-to-br::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;
}

/* Efectos de blur para elementos de fondo */
.blur-3xl {
  filter: blur(64px);
}

/* Ajustes para el banner en móvil */
@media (max-width: 768px) {
  .hero-stats-grid {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-stat-item {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .services-hero-title {
    font-size: 1.8rem;
  }
  
  .services-hero-subtitle {
    font-size: 0.95rem;
  }
  
  .services-hero-buttons {
    flex-direction: column;
  }
  
  .services-btn-primary,
  .services-btn-secondary {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
}

/* Ajustes para espacios vacíos */
section {
  scroll-margin-top: 80px;
}

.py-16 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.md\:py-20 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Mejoras para la sección de mapa */
#mapa .grid {
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  #mapa .grid {
    gap: 2rem;
  }
}

/* Ajustes para las cards de información de contacto */
.contact-info-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Mejoras para el formulario */
.contact-form {
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
}

/* Estilos específicos para el CTA en contactos.html */
.py-20\.md\:py-28 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

@media (min-width: 768px) {
  .py-20\.md\:py-28 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

/* Eliminar espacios extra entre CTA y Footer */
.cta-section + .services-footer {
  margin-top: 0;
  padding-top: 2rem;
}

/* =========================
   RESPONSIVE ADICIONAL
   ========================= */
@media (max-width: 1200px) {
  .footer-cards-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .services-hero-container {
    gap: 2.5rem;
  }
}

@media (max-width: 992px) {
  .services-hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .services-hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .services-hero-buttons {
    justify-content: center;
  }
  
  .hero-stats-grid {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-features,
  .contact-form {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid var(--border);
  }
  
  .cta-section .section-title {
    font-size: 2rem;
  }
}