@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Sistema de colores refinado */
  --primary-color: #3a36e0;
  --primary-light: #5855e8;
  --primary-dark: #2a27a0;
  --secondary-color: #ff6b2b; /* Color naranja ajustado para mejor contraste */
  --secondary-light: #ff8f5e;
  --secondary-dark: #e54e0e;
  --dark-bg: #121620;
  --light-bg: #f8f9fa;
  --lighter-bg: #ffffff;
  --text-light: #ffffff;
  --text-dark: #191c24;
  --text-muted: #6c757d;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 10px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* CSS específico para iOS - evitar el blanco en la parte superior */
@supports (-webkit-touch-callout: none) {
  /* Solo para dispositivos iOS */
  html, body {
    background: linear-gradient(to right, var(--dark-bg), var(--primary-color)) !important;
    background-attachment: fixed !important;
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
  }
  
  @media (max-width: 768px) {
    html {
      background: linear-gradient(to right, var(--dark-bg), var(--primary-color)) !important;
      background-attachment: fixed !important;
    }
    
    body {
      background: linear-gradient(to right, var(--dark-bg), var(--primary-color)) !important;
      background-attachment: fixed !important;
    }
    
    /* Asegurar que el header no interfiera */
    header {
      background: transparent !important;
    }
    
    header.scrolled {
      background: rgba(18, 22, 32, 0.95) !important;
    }
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Ajustado a la nueva altura del header */
}

/* Fix específico para iOS - aplicar gradiente también al HTML */
@media (max-width: 768px) {
  html {
    background: linear-gradient(to right, var(--dark-bg), var(--primary-color)) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Fix para iOS */
  }
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  transition: var(--transition);
  font-size: 15px; /* Base font size reducido */
}

/* Mejoras para móviles - Fondo con gradiente como el hero */
@media (max-width: 768px) {
  body {
    background: linear-gradient(to right, var(--dark-bg), var(--primary-color)) !important;
    background-attachment: fixed !important; /* Mantiene el gradiente fijo durante el scroll */
    color: var(--text-light); /* Cambiar texto a blanco en móviles */
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Fix específico para iOS */
    margin: 0;
    padding: 0;
  }
  
  /* Secciones blancas ocupan todo el ancho pero con bordes redondeados solo en las puntas */
  .services {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    margin: 0; /* Sin márgenes laterales */
    border-radius: 15px 15px 0 0; /* Solo esquinas superiores redondeadas */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none; /* Sin borde inferior para continuidad */
  }
  
  .about {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    margin: 0; /* Sin márgenes laterales */
    border-radius: 0 0 15px 15px; /* Solo esquinas inferiores redondeadas */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none; /* Sin borde superior para continuidad */
  }
  
  /* Secciones oscuras ocupan todo el ancho SIN márgenes ni bordes */
  .hero, .contact {
    margin: 0 !important; /* Sin margin para que ocupen todo el ancho */
    border-radius: 0 !important; /* Sin border-radius para continuidad */
    background: transparent !important; /* Usar el fondo del body */
  }
  
  /* Sección de proceso sin márgenes ni bordes redondeados */
  .process-guarantees {
    margin: 0 !important;
    border-radius: 0 !important;
    background: rgba(248, 250, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none !important; /* Sin sombra para mejor integración */
    border: none !important;
  }
  
  /* Footer sin márgenes superiores */
  footer {
    margin-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Mejorar contraste en cards de servicios */
  .service-card {
    background-color: rgba(255, 255, 255, 0.98); /* Más opaco para mejor legibilidad */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  /* Optimizar animaciones para móviles */
  .animate-on-scroll {
    transform: translateY(20px); /* Menos movimiento para móviles */
  }
  
  .animate-on-scroll.animated {
    animation: fadeInUpMobile 0.6s ease forwards;
  }
}

/* Animación optimizada para móviles */
@keyframes fadeInUpMobile {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  /* Reducir aún más el tamaño del título */
  font-size: clamp(2.5em, 2.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1.3rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.projects h2::after, .contact h2::after, .testimonials h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

section {
  padding: clamp(70px, 9vh, 110px) 8%;
  position: relative;
}

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

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.6s ease forwards;
}

/* Accesibilidad */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-color);
  color: white;
  padding: 8px 16px;
  z-index: 2000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* Estilos de enfoque para accesibilidad */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Navbar - Transparente arriba, con fondo al hacer scroll */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  height: 70px; /* Altura reducida */
  background-color: transparent; /* Inicialmente transparente */
}

/* Mejoras para el header en móviles */
@media (max-width: 768px) {
  header {
    background-color: transparent; /* Totalmente transparente en móviles */
    backdrop-filter: none; /* Sin blur inicial para mejor integración */
  }
  
  header.scrolled {
    background-color: rgba(18, 22, 32, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Logo con mejor contraste en móviles */
  .logo {
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 8%;
  transition: var(--transition);
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

header.scrolled {
  background-color: rgba(18, 22, 32, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow);
}

.logo {
  width: 150px; /* Logo más pequeño */
  height: auto;
}

.links {
  display: flex;
  gap: 2.2rem;
}

.links a {
  font-size: 0.95rem; /* Texto reducido */
  font-weight: 600;
  color: var(--text-light);
  position: relative;
}

.links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.links a:hover::after {
  width: 100%;
}

.action_btn {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 0.7rem 1.3rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem; /* Texto reducido */
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
}

.action_btn:hover {
  background-color: transparent;
  transform: translateY(-3px);
  color: var(--secondary-color);
}

.toggle_btn {
  color: var(--text-light);
  font-size: 1.4rem; /* Icono reducido */
  cursor: pointer;
  display: none;
}

/* Dropdown Menu - Con efecto glassmorphism mejorado */
.dropdown_menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 70px;
  width: 100%;
  height: 0;
  background: rgba(18, 22, 32, 0.75); /* Más transparente para mejor efecto glassmorphism */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
  z-index: 99;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil para mejorar el efecto */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Sombra sutil */
}

.dropdown_menu.open {
  height: auto;
  padding: 2rem 0;
}

.dropdown_menu li {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  transition-delay: calc(0.05s * var(--i));
}

.dropdown_menu.open li {
  opacity: 1;
  transform: translateY(0);
}

/* Nuevos estilos para los enlaces del menú desplegable */
.dropdown_menu li a {
  color: white; /* Texto en color blanco */
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

/* Efecto hover con color naranja */
.dropdown_menu li a:hover {
  color: var(--secondary-color); /* Color naranja al pasar el cursor */
}

/* Efecto adicional al hover (opcional) */
.dropdown_menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.dropdown_menu li a:hover::after {
  width: 100%;
}

.dropdown_menu .action_btn {
  width: 80%;
  margin: 0.8rem auto;
  display: flex;
  justify-content: center;
}

/* Hero Section - Completamente rediseñada */
.hero {
  min-height: 100vh;
  background: linear-gradient(to right, var(--dark-bg), var(--primary-color));
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  width: 100%;
  align-items: center;
}

.hero-content {
  text-align: left;
  position: relative;
  z-index: 2;
}

/* Título con typewriter optimizado */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-fixed {
  display: block;
  color: var(--text-light);
}

.typewriter-container {
  display: block;
  height: 1.2em; /* Altura fija para evitar saltos */
  overflow: hidden;
  position: relative;
}

.typewriter {
  color: var(--secondary-color);
  font-weight: 800;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.typewriter::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Frase inspiradora */
.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 90%;
  line-height: 1.4;
}

.highlight {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Botón CTA mejorado */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(255, 107, 43, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-cta:hover::before {
  opacity: 1;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 107, 43, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-cta i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.hero-cta:hover i {
  transform: rotate(10deg) scale(1.1);
}

/* Decoración de código mejorada */
.hero-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.code-container {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.6s ease;
}

.code-container:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.code-container::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #FF5F56;
  border-radius: 50%;
  box-shadow: 20px 0 0 #FFBD2E, 40px 0 0 #27C93F;
}

.code-container pre {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: #e1e7ef;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 10px;
  overflow: hidden;
}

.code-highlight {
  color: var(--secondary-color);
  font-weight: 600;
}

.code-string {
  color: #a8e6cf;
}

.code-property {
  color: #ffd3a5;
}

/* Elementos flotantes decorativos */
.floating-element {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  color: var(--text-light);
}

.floating-element.element-1 {
  top: 10%;
  left: 10%;
  font-size: 2rem;
  animation-delay: 0s;
}

.floating-element.element-2 {
  top: 20%;
  right: 15%;
  font-size: 1.5rem;
  animation-delay: 2s;
}

.floating-element.element-3 {
  bottom: 20%;
  left: 5%;
  font-size: 1.8rem;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-15px) rotate(3deg); }
}

/* Animación de entrada */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }

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

/* Hero Responsive Design MODIFICADO */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    text-align: center;
    order: 1;
    padding-top: 4rem;
  }

  .hero-decoration {
    order: 2;
  }

  .code-container {
    transform: none;
    max-width: 450px;
  }
}

/* MODIFICADO - Responsive del inicio: Título más arriba y separado del texto secundario */
@media (max-width: 768px) {
  .hero {
    padding: 1rem 4%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    background: transparent;
    padding-top: 100px; /* MÁS ARRIBA - Aumentado de 100px a 120px */
  }

  .hero-container {
    gap: 3rem; /* MÁS SEPARACIÓN - Aumentado de 2rem a 3rem */
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 3rem; /* MÁS SEPARACIÓN - Aumentado de 1rem a 2rem */
    margin-top: -5rem;
  }

  .typewriter-container {
    height: 1em;
    margin-bottom: 3dvh; /* NUEVA SEPARACIÓN - Espacio extra entre título y descripción */
  }

  .hero-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem; /* MÁS SEPARACIÓN - Aumentado de 2rem a 2.5rem */
    max-width: 100%;
    margin-top: 1rem; /* NUEVA SEPARACIÓN - Espacio arriba de la descripción */
  }

  .hero-cta {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }

  .code-container {
    padding: 1.5rem;
    max-width: 100%;

  }

  .code-container pre {
    font-size: 0.8rem;
  }

  .floating-element {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px; /* AÚN MÁS ARRIBA para pantallas muy pequeñas */
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 2.5rem; /* MÁS SEPARACIÓN en pantallas muy pequeñas */
  }

  .hero-description {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    margin-bottom: 3rem; /* MÁS SEPARACIÓN */
    margin-top: 1.5rem; /* MÁS SEPARACIÓN arriba */
  }

  .hero-cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    margin-top: -1rem; /* MÁS SEPARACIÓN */
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem; /* Reducido */
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.9rem; /* Texto reducido */
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn.primary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.btn.primary:hover {
  background-color: transparent;
  transform: translateY(-3px);
  color: var(--secondary-color);
}

.btn.secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn.secondary:hover {
  background-color: var(--text-light);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

.project-card .btn.small {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem; /* Reducido */
  display: inline-block;
  margin-top: 0.5rem;
  border: 2px solid var(--secondary-color);
}

.project-card .btn.small:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Services Section */
.services {
  background-color: var(--lighter-bg);
  text-align: center;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--lighter-bg);
  padding: 2.2rem 1.6rem; /* Reducido */
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

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

.service-card:hover {
  transform: translateY(-15px);
  color: var(--text-light);
  border-top-color: var(--secondary-color);
}

.service-card i {
  font-size: 2.7rem; /* Reducido */
  color: var(--primary-color);
  margin-bottom: 1.3rem;
  transition: var(--transition);
}

.service-card:hover i, 
.service-card:hover h3 {
  color: var(--text-light);
}

/* Projects Section */
.projects {
  background: linear-gradient(to right, var(--dark-bg), var(--primary-color));
  color: var(--text-light);
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Ajustado */
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-info {
  padding: 1.4rem; /* Reducido */
  text-align: left;
}

.project-card h3 {
  color: var(--text-light);
  margin-bottom: 0.7rem;
  transition: var(--transition);
}

.project-card:hover h3 {
  color: var(--secondary-color);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.project-tags span {
  background-color: rgba(236, 113, 46, 0.2);
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem; /* Reducido */
  font-weight: 600;
  transition: var(--transition);
}

.project-card:hover .project-tags span {
  background-color: rgba(236, 113, 46, 0.4);
}

.project-image {
  height: 320px; /* Reducido */
  overflow: hidden;
  position: relative;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0));
  z-index: 1;
  transition: var(--transition);
}

.project-card:hover .project-image::before {
  opacity: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: brightness(0.9);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
  filter: brightness(1);
}

.cta-container {
  margin-top: 2.5rem;
}

.cta-container .btn.primary {
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.cta-container .btn.primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

/* About Section - Mejorada con foto circular estilo social media */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem; /* Reducido */
  align-items: center;
  background-color: var(--light-bg);
}

.highlight-text {
  font-size: 1.1rem; /* Reducido */
  font-weight: 600;
  color: var(--primary-color);
}

.skills {
  margin-top: 1.8rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.skill-tags span {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem; /* Reducido */
  transition: var(--transition);
}

.skill-tags span:hover {
  transform: translateY(-3px);
  background-color: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(58, 54, 224, 0.3);
}

/* Nueva sección de la imagen circular */
.about-image {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
}

.about-image img {
  width: 320px; /* Tamaño ajustado para la imagen circular */
  height: 320px; /* Proporción 1:1 para imagen circular perfecta */
  border-radius: 50%; /* Esto hace la imagen circular */
  object-fit: cover; /* Mantiene las proporciones correctas sin distorsión */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  border: 8px solid white; /* Borde blanco como en redes sociales */
}

.about-image:hover img {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
  border-color: #f8f8f8;
}

/* Efectos decorativos para la imagen de perfil */
.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: calc(50% - 160px - 15px);
  width: 70px;
  height: 70px;
  border-top: 4px solid var(--secondary-color);
  border-left: 4px solid var(--secondary-color);
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: calc(50% - 160px - 15px);
  width: 70px;
  height: 70px;
  border-bottom: 4px solid var(--secondary-color);
  border-right: 4px solid var(--secondary-color);
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image:hover::before, 
.about-image:hover::after {
  width: 80px;
  height: 80px;
}

/* Efecto de reflejo elegante para la imagen de perfil */
.profile-shine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

/* Reflejo principal */
.profile-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine-sweep 2.5s ease-in-out infinite;
}

/* Mostrar reflejo cuando la sección esté en viewport */
.about-image.animated .profile-shine {
  opacity: 1;
}

/* Mostrar reflejo al hacer hover en la imagen */
.about-image:hover .profile-shine {
  opacity: 1;
}

/* Efecto sutil en la imagen cuando está activa */
.about-image.animated img,
.about-image:hover img {
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(255, 255, 255, 0.1);
}

/* Animación del reflejo */
@keyframes shine-sweep {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Reducido */
  gap: 1.8rem;
  margin-top: 2.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.7rem; /* Reducido */
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
}

.stat-number::after {
  content: '+';
  font-size: 1.3rem; /* Reducido */
  position: absolute;
  top: 0;
  right: -15px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem; /* Reducido */
}

/* Testimonials Section */
.testimonials {
  background-color: var(--lighter-bg);
  text-align: center;
}

.testimonials-container {
  position: relative;
  max-width: 850px; /* Reducido */
  margin: 0 auto;
}

.testimonial-slider {
  overflow: hidden;
  position: relative;
  padding: 1rem 0 2rem;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 2.2rem; /* Reducido */
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  user-select: none;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.prev-btn, .next-btn {
  background-color: var(--primary-light);
  color: white;
  border: none;
  width: 38px; /* Reducido */
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  margin: 0 1rem;
}

.dot {
  width: 8px; /* Reducido */
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--secondary-color);
  transform: scale(1.3);
}

.quote {
  font-size: 1.8rem; /* Reducido */
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
}

.client-info {
  margin-top: 1.3rem;
}

.client-name {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.client-position {
  color: var(--secondary-color);
  font-size: 0.85rem; /* Reducido */
  font-weight: 500;
}

/* Botón flotante mejorado */
.floating-cta {
  position: fixed;
  bottom: 25px; /* Reducido */
  right: 25px;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.8rem 1.4rem; /* Reducido */
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
  border: 2px solid var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem; /* Reducido */
  overflow: hidden;
  pointer-events: auto; /* Asegurar que sea clickeable */
}

.floating-cta:hover {
  background-color: transparent;
  color: var(--secondary-color);
  animation: none;
}

.floating-cta i {
  font-size: 1.1rem; /* Reducido */
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Animación especial para móviles - Botón elegante y alargado con mejor aislamiento */
@media (max-width: 768px) {
  .floating-cta {
    animation: none; /* Desactivar animación normal */
    opacity: 0;
    visibility: hidden; /* Mejor control de visibilidad */
    transform: translateX(-50%) translateY(150px) scale(0);
    left: 50%; /* Centrado horizontalmente */
    right: auto; /* Remover posicionamiento derecho */
    bottom: 20px; /* Menos espacio desde abajo */
    padding: 0.9rem 1.8rem; /* Más compacto */
    font-size: 0.9rem; /* Texto más pequeño */
    border-radius: 40px; /* Inicialmente más circular */
    min-width: 50px; /* Empezar más pequeño */
    width: 50px;
    height: 50px;
    justify-content: center; /* Centrar contenido */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    max-width: 90%; /* No ocupar toda la pantalla */
    z-index: 1000; /* Z-index más alto para móviles */
    pointer-events: none; /* Inicialmente no clickeable */
    will-change: transform, opacity; /* Optimización de rendimiento */
  }
  
  .floating-cta i {
    font-size: 1.1rem; /* Icono más moderado */
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 0.3s ease 0.8s; /* Aparece después de la animación */
  }
  
  .floating-cta span {
    opacity: 0; /* Texto inicialmente invisible */
    transition: opacity 0.3s ease 0.8s; /* Aparece después de la animación */
  }
  
  .floating-cta.mobile-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Hacer clickeable cuando está visible */
    transform: translateX(-50%) translateY(0) scale(1);
    animation: circle-rise-and-expand 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 240px; /* Más compacto que antes */
    max-width: 280px; /* Límite máximo */
    width: auto;
    height: auto;
    border-radius: 50px; /* Más alargado que circular */
    padding: 0.9rem 1.8rem; /* Más elegante */
  }
  
  .floating-cta.mobile-pop i,
  .floating-cta.mobile-pop span {
    opacity: 1; /* Hacer visible el contenido */
  }
  
  .floating-cta.mobile-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* No clickeable cuando se oculta */
    transform: translateX(-50%) translateY(150px) scale(0);
    animation: circle-sink-and-shrink 0.6s ease-in;
  }
  
  .floating-cta.mobile-hide i,
  .floating-cta.mobile-hide span {
    opacity: 0;
    transition: opacity 0.2s ease;
  }
}

/* Animación de subida como círculo y expansión - versión elegante y aislada */
@keyframes circle-rise-and-expand {
  0% {
    transform: translateX(-50%) translateY(150px) scale(0);
    opacity: 0;
    border-radius: 40px;
    min-width: 50px;
    width: 50px;
    height: 50px;
    padding: 0.8rem;
  }
  40% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    border-radius: 40px;
    min-width: 50px;
    width: 50px;
    height: 50px;
    padding: 0.8rem;
  }
  70% {
    transform: translateX(-50%) translateY(0) scale(1.02);
    border-radius: 45px;
    min-width: 180px;
    padding: 0.85rem 1.5rem;
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    border-radius: 50px;
    min-width: 240px;
    padding: 0.9rem 1.8rem;
  }
}

/* Animación de bajada y encogimiento - versión elegante y aislada */
@keyframes circle-sink-and-shrink {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    border-radius: 50px;
    min-width: 240px;
  }
  30% {
    transform: translateX(-50%) translateY(0) scale(0.9);
    border-radius: 40px;
    min-width: 50px;
  }
  100% {
    transform: translateX(-50%) translateY(150px) scale(0);
    opacity: 0;
    border-radius: 40px;
    min-width: 50px;
  }
}

/* Efecto de pulso más sutil para móvil - aislado */
@media (max-width: 768px) {
  .floating-cta.mobile-pop {
    animation: circle-rise-and-expand 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), mobile-pulse-subtle 3s ease-in-out 1.2s infinite;
  }
}

@keyframes mobile-pulse-subtle {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 107, 43, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 107, 43, 0);
  }
}

/* Últimos cupos banner */
.limited-spots {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.9rem 1.8rem; /* Reducido */
  border-radius: var(--border-radius);
  font-weight: 700;
  text-align: center;
  position: relative;
  margin: 1.8rem 0;
  box-shadow: 0 5px 15px rgba(236, 113, 46, 0.4);
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  overflow: hidden;
  font-size: 0.9rem; /* Reducido */
}

.limited-spots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  z-index: -1;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.limited-spots:hover::before {
  transform: translateY(100%);
}

.limited-spots:hover {
  color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(236, 113, 46, 0.5);
}

.limited-spots.urgent {
  animation: shake 0.5s ease-in-out;
}

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

/* Contact Section */
.contact {
  background: linear-gradient(to right, var(--dark-bg), var(--primary-color));
  color: var(--text-light);
  text-align: center;
}

.contact-subtitle {
  font-size: 1.1rem; /* Reducido */
  margin-bottom: 2.5rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  text-align: left;
}

.form-group {
  margin-bottom: 1.3rem; /* Reducido */
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.9rem; /* Reducido */
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem; /* Reducido */
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  font-size: 0.9rem; /* Reducido */
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(236, 113, 46, 0.2);
}

.contact-form button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  color: white;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 0.9rem; /* Reducido */
  font-size: 1rem; /* Reducido */
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(236, 113, 46, 0.4);
  position: relative;
  overflow: hidden;
}

.contact-form button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.5s;
}

.contact-form button[type="submit"]:hover::before {
  left: 100%;
}

.contact-form button[type="submit"]:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(236, 113, 46, 0.5);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.3rem; /* Reducido */
}

/* MODIFICADO - Contacto: Iconos perfectamente alineados */
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem; /* Aumentado para mejor espaciado */
  transition: var(--transition);
}

.info-item:hover {
  transform: translateX(5px);
}

.info-item i {
  font-size: 1.2rem; /* Ligeramente más grande para mejor visibilidad */
  color: var(--secondary-color);
  transition: var(--transition);
  width: 20px; /* NUEVO - Ancho fijo para alineación perfecta */
  text-align: center; /* NUEVO - Centrar iconos en su espacio */
  flex-shrink: 0; /* NUEVO - Evitar que se compriman */
}

.info-item:hover i {
  transform: scale(1.2);
}

.info-item p {
  margin: 0; /* NUEVO - Eliminar margin por defecto del párrafo */
  line-height: 1.4; /* NUEVO - Mejorar espaciado de línea */
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; /* Reducido */
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(236, 113, 46, 0.3);
}

/* Cuadro de Emergencia WhatsApp */
.emergency-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  box-shadow: 0 10px 30px rgba(58, 54, 224, 0.3);
  transition: all 0.3s ease;
}

.emergency-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.emergency-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(58, 54, 224, 0.4);
}

.emergency-content {
  position: relative;
  z-index: 2;
}

.emergency-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: white;
}

.emergency-content p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.4;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.whatsapp-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Responsive para el cuadro de emergencia */
@media (max-width: 768px) {
  .emergency-card {
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 15px;
  }
  
  .emergency-content h3 {
    font-size: 1.1rem;
  }
  
  .emergency-content p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  
  .whatsapp-btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .emergency-card {
    padding: 1.2rem;
  }
  
  .emergency-content h3 {
    font-size: 1rem;
  }
  
  .emergency-content p {
    font-size: 0.85rem;
  }
  
  .whatsapp-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
  }
}

/* Mensajes de error de formulario */
.error-message {
  color: #e74c3c;
  font-size: 0.8rem; /* Reducido */
  margin-top: 5px;
}

input.invalid, textarea.invalid, select.invalid {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

/* Modal de éxito - FIX PARA RESPONSIVE */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.success-modal.show {
  opacity: 1;
  visibility: visible;
}

.success-content {
  background-color: white;
  padding: 2.5rem; /* Reducido */
  border-radius: var(--border-radius);
  text-align: center;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 90%;
  width: 380px; /* Reducido */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  /* NUEVO - Forzar colores para el contenido del modal */
  color: var(--text-dark) !important;
}

.success-modal.show .success-content {
  transform: translateY(0);
}

.success-icon {
  font-size: 3.5rem; /* Reducido */
  color: var(--secondary-color);
  margin-bottom: 1.3rem;
}

.success-content h3 {
  font-size: 1.6rem; /* Reducido */
  margin-bottom: 0.8rem;
  color: var(--text-dark) !important; /* NUEVO - Forzar color negro */
}

.success-content p {
  color: var(--text-dark) !important; /* NUEVO - Forzar color negro */
  margin-bottom: 1.5rem;
}

.close-modal {
  margin-top: 1.8rem;
  background-color: var(--secondary-color);
  color: white !important; /* NUEVO - Forzar color blanco para el botón */
  border: none;
  padding: 0.7rem 1.8rem; /* Reducido */
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem; /* Reducido */
}

.close-modal:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  color: white !important; /* NUEVO - Mantener blanco en hover */
}

/* NUEVO - Responsive específico para el modal */
@media (max-width: 768px) {
  .success-content {
    padding: 2rem;
    width: 350px;
    max-width: 95%;
    /* REFORZAR - Asegurar texto negro en móviles */
    color: var(--text-dark) !important;
  }
  
  .success-content h3,
  .success-content p {
    color: var(--text-dark) !important; /* NUEVO - Forzar negro en móviles */
  }
  
  .success-content h3 {
    font-size: 1.4rem;
  }
  
  .success-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .success-icon {
    font-size: 3rem;
  }
  
  .close-modal {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .success-content {
    padding: 1.5rem;
    width: 320px;
    max-width: 90%;
  }
  
  .success-content h3 {
    font-size: 1.2rem;
  }
  
  .success-content p {
    font-size: 0.9rem;
  }
  
  .success-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .close-modal {
    padding: 0.7rem 1.3rem;
    font-size: 0.85rem;
  }
}
/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 3.5rem 8% 1rem; /* Reducido */
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo img {
  width: 130px; /* Reducido */
  margin-bottom: 0.8rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-size: 1.1rem; /* Reducido */
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 25px; /* Reducido */
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.85rem; /* Reducido */
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-column a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background-color: var(--secondary-color);
  transition: var(--transition);
  opacity: 0;
}

.footer-column a:hover {
  color: var(--text-light);
  padding-left: 10px;
}

.footer-column a:hover::before {
  width: 5px;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem; /* Reducido */
  color: var(--text-muted);
}

/* ===== SECCIÓN DE PROCESO Y GARANTÍAS - COMPLETAMENTE NUEVA Y MEJORADA ===== */

/* Process and Guarantees Section */
.process-guarantees {
  background: linear-gradient(135deg, #f8faff 0%, #e8f4fd 100%);
  padding: clamp(80px, 10vh, 120px) 8%;
  position: relative;
  overflow: hidden;
}

.process-guarantees::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(58, 54, 224, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Process Section Mejorada */
.process-section {
  margin-bottom: 6rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-section h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
}

.process-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline Container - COMPLETAMENTE REDISEÑADO */
.process-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Línea principal con efectos brillantes */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    #e0e7ff 10%, 
    #c7d2fe 50%, 
    #e0e7ff 90%, 
    transparent 100%
  );
  transform: translateX(-50%);
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 0 20px rgba(58, 54, 224, 0.2);
}

/* Barra de progreso animada con brillos */
.process-timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 0%;
  background: linear-gradient(to bottom,
    var(--primary-color) 0%,
    var(--primary-light) 30%,
    var(--secondary-color) 70%,
    var(--secondary-light) 100%
  );
  transform: translateX(-50%);
  border-radius: 4px;
  transition: height 2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  box-shadow: 
    0 0 20px rgba(58, 54, 224, 0.4),
    0 0 40px rgba(58, 54, 224, 0.2);
  animation: progressShine 3s ease-in-out infinite;
}

@keyframes progressShine {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(58, 54, 224, 0.4),
      0 0 40px rgba(58, 54, 224, 0.2);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(58, 54, 224, 0.6),
      0 0 60px rgba(58, 54, 224, 0.3),
      0 0 80px rgba(255, 107, 43, 0.2);
  }
}

/* Efectos de partículas flotantes */
.timeline-particles {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: particleFlow 4s linear infinite;
}

.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: 1s; }
.particle:nth-child(3) { animation-delay: 2s; }
.particle:nth-child(4) { animation-delay: 3s; }

@keyframes particleFlow {
  0% {
    top: -10px;
    opacity: 0;
    transform: translateX(-50%) scale(0);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: translateX(-50%) scale(0);
  }
}

/* Process Step MODIFICADO - números dentro de cuadros */
.process-step {
  display: flex;
  align-items: center;
  margin-bottom: 6rem;
  position: relative;
  min-height: 300px;
  opacity: 0;
  transform: translateY(50px);
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-step.animated {
  animation: stepFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes stepFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Número del paso REPOSICIONADO - Ahora dentro del cuadro CORREGIDO */
.step-number {
  position: absolute;
  top: 20px;
  left: 20px; /* Por defecto en la esquina izquierda para pasos impares */
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  z-index: 50;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 8px 32px rgba(58, 54, 224, 0.3),
    0 4px 16px rgba(255, 107, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Para pasos pares, el número va en la esquina derecha */
.process-step:nth-child(even) .step-number {
  left: auto;
  right: 20px;
}

.step-number::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary-color) 0deg,
    var(--secondary-color) 90deg,
    var(--primary-light) 180deg,
    var(--secondary-light) 270deg,
    var(--primary-color) 360deg
  );
  opacity: 0;
  transition: all 0.8s ease;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.step-number.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scale(1.1);
  box-shadow: 
    0 12px 40px rgba(58, 54, 224, 0.4),
    0 4px 16px rgba(255, 107, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step-number.active::before {
  opacity: 1;
  animation: rotate 3s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Contenido del paso AJUSTADO */
.step-content {
  flex: 1;
  max-width: 45%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  padding-top: 4rem; /* Espacio extra arriba para el número */
  border-radius: 24px;
  margin: 0 4rem;
  position: relative;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.15),
    0 2px 8px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.step-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 24px 24px 0 0;
}

.step-content:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 16px 48px rgba(31, 38, 135, 0.2),
    0 4px 16px rgba(31, 38, 135, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Icono del paso con animaciones ESPECTACULARES */
.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(255, 107, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.step-icon::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: all 0.6s ease;
}

.step-content:hover .step-icon::before {
  left: 100%;
}

.step-icon i {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-content:hover .step-icon {
  transform: scale(1.05) rotate(5deg);
}

/* Texto del contenido MEJORADO */
.step-content h3 {
  color: var(--text-dark);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Detalles del paso COMPLETAMENTE NUEVOS */
.step-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.8s;
}

.process-step.animated .step-details {
  opacity: 1;
  transform: translateY(0);
}

.detail-item {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(58, 54, 224, 0.3);
  transition: all 0.3s ease;
}

.detail-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.detail-item:hover::before {
  left: 100%;
}

.detail-item:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(58, 54, 224, 0.4);
}

.detail-item i {
  font-size: 1rem;
  opacity: 0.9;
}

.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-light), var(--secondary-light));
  border-radius: inherit;
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
  opacity: 0.7;
}

/* Efecto hover mejorado para el número dentro del cuadro */
.step-content:hover .step-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 
    0 15px 45px rgba(58, 54, 224, 0.5),
    0 6px 20px rgba(255, 107, 43, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Animación adicional cuando el step se activa */
.process-step.animated .step-number {
  animation: numberPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s both;
}

@keyframes numberPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Guarantees - REDISEÑADAS */
.guarantees-section {
  text-align: center;
  margin-bottom: 4rem;
}

/* MODIFICADO - Garantías: "Mis" aparece en negro en responsive */
.guarantees-section h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
}

/* Asegurar que "Mis" sea negro en todas las resoluciones */
@media (max-width: 768px) {
  .guarantees-section h2 {
    color: var(--text-dark) !important; /* NUEVO - Forzar color negro en responsive */
  }
  
  /* También asegurar que el texto completo sea legible */
  .process-guarantees {
    color: var(--text-dark) !important; /* NUEVO - Asegurar legibilidad en móviles */
  }
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0 4rem;
}

.guarantee-card {
  background: white;
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.guarantee-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.guarantee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.guarantee-icon {
  width: clamp(70px, 12vw, 80px);
  height: clamp(70px, 12vw, 80px);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2rem);
  color: white;
  box-shadow: 0 10px 30px rgba(58, 54, 224, 0.3);
}

.guarantee-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.guarantee-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.guarantee-badge {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 600;
  display: inline-block;
}

/* Trust Indicators MEJORADOS con contadores especiales */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-top: 4rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 25px;
  color: white;
  position: relative;
  overflow: hidden;
}

.trust-indicators::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-20px) translateY(-20px); opacity: 0.5; }
  50% { transform: translateX(20px) translateY(20px); opacity: 0.8; }
}

.trust-item {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.trust-icon {
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  color: white;
}

/* MODIFICADO - Trust Number con soporte para prefijos y sufijos */
.trust-number {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
}

/* ELIMINADO el ::after por defecto para permitir contadores personalizados */
.trust-number.special-counter::after {
  display: none; /* Ocultar el '+' por defecto para contadores especiales */
}

/* Mantener el ::after solo para contadores normales */
.trust-number:not(.special-counter)::after {
  content: '+';
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  position: absolute;
  top: 0;
  right: -15px;
  opacity: 0.8;
  color: white;
}

.trust-label {
  font-size: clamp(0.85rem, 2vw, 1rem);
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.3;
}

/* Process CTA */
.process-cta {
  text-align: center;
  background: white;
  padding: clamp(3rem, 6vw, 4rem);
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.process-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-content h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.process-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: white;
  padding: clamp(1rem, 2.5vw, 1.2rem) clamp(2rem, 4vw, 2.5rem);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 107, 43, 0.4);
  margin-bottom: 1.5rem;
}

.process-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 43, 0.6);
}

.process-cta-btn i {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
}

.cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.cta-guarantee i {
  color: var(--secondary-color);
}

/* RESPONSIVE ORIGINAL MANTENIDO */
@media (max-width: 1024px) {
  .process-timeline::before,
  .process-timeline::after {
    left: 40px;
    transform: none;
  }

  .process-timeline {
    padding-left: 80px;
  }

  .process-step {
    flex-direction: column !important;
    align-items: flex-start;
    min-height: auto;
    margin-bottom: 4rem;
  }

  .step-number {
    left: 40px !important;
    top: 3rem;
    transform: none;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step-content {
    max-width: 100%;
    margin: 2rem 0 0 20px !important;
    text-align: left;
  }

  .timeline-particles {
    left: 40px;
    transform: none;
  }
}

@media (max-width: 768px) {
  .process-section {
    padding: 60px 1rem;
  }

  .process-timeline::before,
  .process-timeline::after {
    left: 30px;
  }

  .process-timeline {
    padding-left: 60px;
  }

  .step-number {
    left: 30px !important;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    top: 2rem;
  }

  .step-content {
    margin: 1.5rem 0 0 15px !important;
    padding: 2rem;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step-details {
    gap: 0.5rem;
  }

  .detail-item {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .timeline-particles {
    left: 30px;
  }

  .guarantees-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .trust-item {
    padding: 0.8rem;
  }

  .process-cta {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .process-timeline::before,
  .process-timeline::after {
    left: 15px;
  }

  .process-timeline {
    padding-left: 40px;
  }

  .step-number {
    left: 15px !important;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    top: 1rem;
  }

  .step-content {
    margin: 1rem 0 0 10px !important;
    padding: 1.5rem;
  }

  .process-step {
    margin-bottom: 2.5rem;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .trust-number:not(.special-counter)::after {
    right: -10px;
    font-size: 1rem;
  }

  .detail-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .process-cta-btn {
    padding: 1rem 1.5rem;
  }

  .timeline-particles {
    left: 15px;
  }
}

/* Contenedores internos con padding adecuado para secciones de ancho completo */
@media (max-width: 768px) {
  .hero-container, .contact-container {
    padding: 0 1rem;
  }
  
  .process-section, .guarantees-section, .process-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Padding interno para las secciones blancas que ahora ocupan todo el ancho */
  .services, .about {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 576px) {
  .hero-container, .contact-container {
    padding: 0 0.5rem;
  }
  
  .process-section, .guarantees-section, .process-cta {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Padding interno para las secciones blancas en pantallas muy pequeñas */
  .services, .about {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* Responsive Design - Generales */
@media (max-width: 1280px) {
  .navbar {
    padding: 0.8rem 5%;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image {
    display: flex;
    justify-content: center;
    order: -1;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 0.8rem 5%;
  }
  
  .navbar .links,
  .navbar .action_btn {
    display: none;
  }
  
  .navbar .toggle_btn {
    display: block;
  }
  
  .dropdown_menu {
    display: block;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 5%;
  }
  
  /* Secciones de ancho completo tienen padding lateral reducido */
  .hero, .contact, .process-guarantees {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .limited-spots {
    width: 90%;
    max-width: 300px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }

  /* Ajustes para foto circular en móviles */
  .about-image img {
    width: 250px;
    height: 250px;
  }
  
  .about-image::before,
  .about-image::after {
    width: 50px;
    height: 50px;
  }
  
  .profile-shine {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 4%;
  }
  
  /* Secciones de ancho completo tienen padding lateral aún más reducido */
  .hero, .contact, .process-guarantees {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 1.8rem 1rem;
  }
  
  .navbar {
    padding: 0.8rem 4%;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  /* Ajustes para foto circular en móviles muy pequeños */
  .about-image img {
    width: 200px;
    height: 200px;
    border-width: 5px;
  }
  
  .profile-shine {
    width: 200px;
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-number.active,
  .process-step.animated .step-icon,
  .process-step.animated .detail-item {
    animation: none !important;
  }
  
  .process-timeline::after {
    transition: height 0.5s ease !important;
  }
  
  .step-number.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.1);
    z-index: 50;
    opacity: 1;
  }
  
  .step-number.active::before {
    opacity: 0 !important;
    animation: none !important;
  }
  
  .trust-item,
  .shimmer,
  .floatTrust {
    animation: none !important;
  }
  
  .trust-indicators::before {
    animation: none !important;
  }
  
  .particle {
    animation: none !important;
    display: none !important;
  }
  
  .progressShine {
    animation: none !important;
  }
  
  .process-timeline::after {
    animation: none !important;
  }
  
  .glow-effect::before {
    opacity: 0 !important;
  }
  
  .step-icon::before {
    animation: none !important;
  }
  
  .detail-item::before {
    animation: none !important;
  }
}

/* Mejoras adicionales para la compatibilidad */
.process-step.animated .step-details {
  animation-delay: 0.8s;
}

/* Fix para Safari y navegadores webkit */
@supports (-webkit-appearance: none) {
  .step-content {
    -webkit-backdrop-filter: blur(20px);
  }
  
  .trust-indicators {
    -webkit-backdrop-filter: blur(10px);
  }
  
  .dropdown_menu {
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Mejoras de performance para móviles */
@media (max-width: 768px) {
  .process-step,
  .step-number,
  .step-content,
  .particle {
    will-change: transform, opacity;
  }
  
  .process-timeline::after {
    will-change: height;
  }
}

/* Efectos hover solo en dispositivos que los soportan */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-15px);
  }
  
  .project-card:hover {
    transform: translateY(-10px);
  }
  
  .guarantee-card:hover {
    transform: translateY(-10px);
  }
  
  .step-content:hover {
    transform: translateY(-8px) scale(1.02);
  }
  
  .trust-item:hover {
    transform: translateY(-5px);
  }
}

/* Fallbacks para navegadores sin soporte de backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .step-content {
    background: rgba(255, 255, 255, 0.95);
  }
  
  .dropdown_menu {
    background: rgba(18, 22, 32, 0.95);
  }
  
  .trust-item {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Animaciones de entrada para elementos clave */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }

/* Estilos adicionales para accesibilidad */
/* Nota: Colores fijos - no cambian con modo oscuro/claro del sistema */

/* Print styles */
@media print {
  .floating-cta,
  .dropdown_menu,
  .toggle_btn,
  .floating-element {
    display: none !important;
  }
  
  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .process-step {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Focus visible para mejor accesibilidad */
.process-cta-btn:focus-visible,
.hero-cta:focus-visible,
.btn:focus-visible,
.action_btn:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Mejoras finales de rendimiento */
.process-timeline,
.process-step,
.step-number,
.step-content,
.particle,
.timeline-particles {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimización para dispositivos de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .step-icon,
  .guarantee-icon,
  .trust-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}