/* =====================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ===================================================== */
:root {
  /* Colores principales */
  --primary: #002f7a;
  --primary-dark: #001f52;
  --primary-light: #003d99;
  --secondary: #002f7a;
  --accent: #002f7a;

  /* Colores de texto */
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Colores de fondo */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-muted: #f1f5f9;

  /* Bordes */
  --border-color: #e2e8f0;
  --border-light: rgba(255, 255, 255, 0.1);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Espaciado */
  --container-width: 1200px;
  --section-padding: 6rem;
}

/* =====================================================
   RESET Y BASE
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* =====================================================
   UTILIDADES
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================================================
   ANIMACIONES KEYFRAMES
   ===================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateCircle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseCircle {
  0%,
  100% {
    opacity: 0.3;
    transform: rotate(var(--rotation, 0deg)) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: rotate(var(--rotation, 0deg)) scale(1.02);
  }
}

@keyframes pulseCenter {
  0%,
  100% {
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.4);
  }
}

@keyframes pulseNode {
  0%,
  100% {
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 35px 18px rgba(255, 255, 255, 0.95);
  }
}

@keyframes rotateOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Clases de animación */
.animate-fade-down {
  animation: fadeInDown 0.7s ease forwards;
}

.animate-fade-up {
  animation: fadeInUp 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 2.5rem;
  transition: var(--transition-normal);
}

.navbar.scrolled .nav-logo img {
  height: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-white);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar.scrolled .nav-link {
  color: var(--text-primary);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  transition: var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  transition: var(--transition-normal);
}

.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
  background: var(--text-primary);
}

.mobile-menu-btn.active .hamburger {
  background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
}

.mobile-menu.active .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.active .mobile-link:nth-child(2) {
  transition-delay: 0.15s;
}
.mobile-menu.active .mobile-link:nth-child(3) {
  transition-delay: 0.2s;
}
.mobile-menu.active .mobile-link:nth-child(4) {
  transition-delay: 0.25s;
}
.mobile-menu.active .mobile-link:nth-child(5) {
  transition-delay: 0.3s;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  animation-delay: 0s;
}

.circle-2 {
  bottom: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: rgba(0, 47, 122, 0.15);
  animation-delay: 1s;
}

.circle-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(0, 47, 122, 0.08);
  animation-delay: 2s;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 30%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  height: 200px;
  margin: 0 auto;
  animation: pulse 3s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.gradient-text {
  background: linear-gradient(90deg, #fff, #93c5fd, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 3s linear infinite;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: var(--transition-normal);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}

.stat-icon {
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  transition: var(--transition-normal);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   SECTIONS COMMON STYLES
   ===================================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 47, 122, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title.light {
  color: var(--text-white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-subtitle.light {
  color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--bg-white);
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-gradient.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to bottom, rgba(0, 47, 122, 0.05), transparent);
}

.bg-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
}

.bg-blob.right {
  top: -160px;
  right: -160px;
  background: rgba(0, 47, 122, 0.05);
}

.bg-blob.left {
  bottom: -160px;
  left: -160px;
  background: rgba(0, 47, 122, 0.05);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 47, 122, 0.05),
    transparent,
    rgba(0, 47, 122, 0.05)
  );
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  border-color: rgba(0, 47, 122, 0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(0, 47, 122, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition-normal);
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.service-card:hover .service-icon svg {
  color: var(--text-white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-title {
  color: var(--primary);
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================================================
   PROCESS SECTION
   ===================================================== */
.process {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--primary);
  overflow: hidden;
}

.process-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.process-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 4s ease-in-out infinite;
}

.blob-1 {
  top: 0;
  left: 25%;
  background: rgba(255, 255, 255, 0.05);
}

.blob-2 {
  bottom: 0;
  right: 25%;
  background: rgba(0, 47, 122, 0.1);
  animation-delay: 1s;
}

.process-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateX(-30px);
}

.process-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.process-step.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.process-step:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-normal);
}

.process-step.active .step-number {
  background: var(--text-white);
  color: var(--primary);
}

.step-info {
  flex: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  transition: var(--transition-normal);
}

.process-step.active .step-title {
  color: var(--text-white);
}

.step-description {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  transition: var(--transition-normal);
}

.process-step.active .step-description {
  color: rgba(255, 255, 255, 0.8);
}

/* Process visual */
.process-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(30px);
  transition: all var(--transition-slow) 0.3s;
}

.process-visual.visible {
  opacity: 1;
  transform: translateX(0);
}

.visual-circles {
  position: relative;
  width: 400px;
  height: 400px;
}

.visual-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.circle-outer {
  width: 400px;
  height: 400px;
  margin-left: -200px;
  margin-top: -200px;
  animation: rotateCircle 28s linear infinite;
}

.circle-middle-outer {
  width: 310px;
  height: 310px;
  margin-left: -155px;
  margin-top: -155px;
  border-color: rgba(255, 255, 255, 0.12);
  animation: rotateCircle 22s linear infinite reverse;
}

.circle-middle-inner {
  width: 220px;
  height: 220px;
  margin-left: -110px;
  margin-top: -110px;
  border-color: rgba(255, 255, 255, 0.15);
  animation: rotateCircle 16s linear infinite;
}

.circle-inner {
  width: 130px;
  height: 130px;
  margin-left: -65px;
  margin-top: -65px;
  border-color: rgba(255, 255, 255, 0.2);
  animation: rotateCircle 10s linear infinite reverse;
}

/* 4 Órbitas de los nodos */
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
}

.track-outer {
  width: 400px;
  height: 400px;
  margin-left: -200px;
  margin-top: -200px;
  animation: rotateOrbit 24s linear infinite;
}

.track-middle-outer {
  width: 310px;
  height: 310px;
  margin-left: -155px;
  margin-top: -155px;
  animation: rotateOrbit 18s linear infinite reverse;
}

.track-middle-inner {
  width: 220px;
  height: 220px;
  margin-left: -110px;
  margin-top: -110px;
  animation: rotateOrbit 13s linear infinite;
}

.track-inner {
  width: 130px;
  height: 130px;
  margin-left: -65px;
  margin-top: -65px;
  animation: rotateOrbit 8s linear infinite reverse;
}

/* Nodos orbitales */
.orbit-node {
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: -9px;
  left: 50%;
  margin-left: -9px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.orbit-node.active {
  background: #ffffff;
  box-shadow: 0 0 25px 12px rgba(255, 255, 255, 0.8);
  transform: scale(1.5);
  animation: pulseNode 1.5s ease-in-out infinite;
}

.orbit-node::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.5s ease;
}

.orbit-node.active::before {
  background: rgba(255, 255, 255, 0.9);
}

.visual-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  animation: pulseCenter 3s ease-in-out infinite;
  z-index: 20;
}

.current-step {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.current-step.changing {
  transform: scale(1.3);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */
.testimonials {
  position: relative;
  padding: var(--section-padding) 0;
  background: #e2e8f0;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.testimonial-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.blob-top {
  top: 5rem;
  left: 5rem;
  width: 160px;
  height: 160px;
  background: rgba(0, 47, 122, 0.05);
}

.blob-bottom {
  bottom: 5rem;
  right: 5rem;
  width: 240px;
  height: 240px;
  background: rgba(0, 47, 122, 0.05);
}

.testimonial-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 420px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  position: absolute;
  width: 600px;
  max-width: 90%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateX(0) scale(0.7);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

/* Card activa - centro */
.testimonial-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 10;
}

/* Card anterior - izquierda */
.testimonial-card.prev {
  opacity: 0.5;
  visibility: visible;
  transform: translateX(-85%) scale(0.85);
  filter: blur(2px);
  z-index: 5;
}

/* Card siguiente - derecha */
.testimonial-card.next {
  opacity: 0.5;
  visibility: visible;
  transform: translateX(85%) scale(0.85);
  filter: blur(2px);
  z-index: 5;
}

.quote-icon {
  margin-bottom: 1.5rem;
}

.quote-icon svg {
  width: 3rem;
  height: 3rem;
  color: #002f7a;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.star {
  color: var(--primary);
  font-size: 1.25rem;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(0, 47, 122, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.author-role {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.carousel-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.carousel-btn:hover svg {
  color: var(--text-white);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--border-color);
  transition: var(--transition-normal);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--primary-light);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--bg-white);
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: rgba(0, 47, 122, 0.03);
  border-radius: 50%;
  filter: blur(80px);
}

.cta-card {
  position: relative;
  background: var(--primary);
  border-radius: 2rem;
  padding: 4rem;
  box-shadow: 0 25px 50px -12px rgba(0, 47, 122, 0.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.cta-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cta-decoration.top-right {
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: rgba(255, 255, 255, 0.05);
  transform: translate(50%, -50%);
}

.cta-decoration.bottom-left {
  bottom: 0;
  left: 0;
  width: 192px;
  height: 192px;
  background: rgba(0, 47, 122, 0.2);
  transform: translate(-50%, 50%);
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

a.contact-item:hover {
  transform: translateY(-3px);
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-value {
  font-weight: 500;
  color: var(--text-white);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--accent);
  color: var(--text-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 4rem;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  max-width: 320px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-white);
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-visual {
    order: -1;
  }

  .visual-circles {
    width: 250px;
    height: 250px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-logo img {
    height: 120px;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem 1.5rem;
  }

  .stat-icon {
    margin-bottom: 0;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-card {
    padding: 1.5rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-subtitle {
    font-size: 0.95rem;
  }

  /* Testimonials responsive */
  .testimonial-carousel {
    height: 420px;
    padding: 0;
  }

  .testimonial-card {
    width: 90%;
    max-width: 100%;
    padding: 1.5rem;
  }

  .testimonial-card.prev,
  .testimonial-card.next {
    display: none;
  }

  .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .quote-icon svg {
    width: 2rem;
    height: 2rem;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .author-name {
    font-size: 0.9rem;
  }

  .author-role {
    font-size: 0.8rem;
  }

  .carousel-controls {
    margin-top: 1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  /* Process section responsive - ocultar visual en móviles */
  .process-visual {
    display: none;
  }

  .process-steps {
    gap: 1rem;
  }

  .process-step {
    padding: 1rem;
    gap: 1rem;
  }

  .step-title {
    font-size: 1rem;
  }

  .step-description {
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-description {
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 3rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .hero-logo img {
    height: 100px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .gradient-text {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .stat-card {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.875rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-description {
    font-size: 0.85rem;
  }

  .process-step {
    padding: 0.875rem;
  }

  .step-number {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8rem;
  }

  .step-title {
    font-size: 0.95rem;
  }

  .step-description {
    font-size: 0.8rem;
    display: none;
  }

  .process-step.active .step-description {
    display: block;
  }

  .testimonial-carousel {
    height: 380px;
  }

  .testimonial-card {
    width: 95%;
    padding: 1.25rem;
  }

  .testimonial-stars {
    margin-bottom: 1rem;
  }

  .star {
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .quote-icon {
    margin-bottom: 1rem;
  }

  .quote-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }

  .testimonial-author {
    gap: 0.75rem;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .author-name {
    font-size: 0.85rem;
  }

  .author-role {
    font-size: 0.75rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .cta-card {
    padding: 1.25rem;
  }

  .cta-title {
    font-size: 1.25rem;
  }

  .cta-subtitle {
    font-size: 0.875rem;
  }

  .contact-item {
    padding: 1rem;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
  }

  .contact-label {
    font-size: 0.75rem;
  }

  .contact-value {
    font-size: 0.9rem;
  }

  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-logo {
    height: 50px;
    display: block;
    margin: 0 auto 1.5rem;
  }

  .footer-description {
    font-size: 0.85rem;
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }
}

/* Extra small phones (360px and below) */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-logo img {
    height: 80px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .gradient-text {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .service-card {
    padding: 1rem;
  }

  .testimonial-carousel {
    height: 360px;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-text {
    font-size: 0.8rem;
  }

  .cta-title {
    font-size: 1.1rem;
  }

  .contact-item {
    padding: 0.875rem;
  }
}
