/* ===== CSS COMPLETO PARA INDEX ===== */

/* ===== IMPORTACIONES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  /* Colores principales */
  --primary-900: #0f172a;
  --primary-800: #1e293b;
  --primary-700: #334155;
  --primary-600: #475569;
  --primary-500: #64748b;
  --primary-400: #94a3b8;
  --primary-300: #cbd5e1;
  --primary-200: #e2e8f0;
  --primary-100: #f1f5f9;
  --primary-50: #f8fafc;
  
  /* Azules modernos */
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  --gradient-bg: linear-gradient(-45deg, #f8fafc, #e2e8f0, #dbeafe, #bfdbfe);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  
  /* Otros colores */
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px -3px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 24px -5px rgba(0, 0, 0, 0.15);
  --shadow-colored: 0 8px 16px -3px rgba(37, 99, 235, 0.25);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
  
  /* Tipografía */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  
  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.25rem;
  --space-2xl: 1.5rem;
  --space-3xl: 2rem;
  
  /* Border radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* Transiciones */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--gradient-bg);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
  color: var(--primary-900);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.04) 0%, transparent 50%);
  animation: floatingOrbs 25s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* ===== ANIMACIONES ===== */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatingOrbs {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% { 
    transform: translateY(-15px) translateX(10px) scale(1.02);
  }
  66% { 
    transform: translateY(10px) translateX(-10px) scale(0.98);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ===== HEADER ===== */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--primary-200);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin: 0 var(--space-md);
}

.logo {
  width: 90px;
  height: 55px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 2px solid var(--blue-300);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.logo:hover {
  transform: scale(1.05);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-glow);
}

header h1 {
  color: var(--primary-900);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.5);
  padding: var(--space-sm);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

nav a {
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  z-index: -1;
}

nav a:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

nav a:hover::before {
  left: 0;
}

nav a.activo {
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-colored);
}

/* ===== MAIN CONTENT INDEX ===== */
.main-index {
  padding: var(--space-2xl);
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.contenido-principal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1400px;
  width: 100%;
  padding: 0 var(--space-xl);
}

/* ===== CARRUSEL ===== */
.carrusel-contenedor {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255, 255, 255, 0.8);
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
}

.carrusel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.activo {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

.indicadores {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.indicador {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicador:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.indicador.activo {
  background: var(--white);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  border-color: var(--blue-500);
}

/* ===== SECCIÓN DE SERVICIOS ===== */
.servicios-botones {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  align-items: center;
  width: 100%;
}

.servicios-botones h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-900);
  text-align: center;
  margin-bottom: var(--space-xl);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.boton-servicio {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  max-width: 450px;
  min-height: 65px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  border: 2px solid transparent;
}

.boton-servicio::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: left 0.6s;
}

.boton-servicio:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.boton-servicio:hover::before {
  left: 100%;
}

.boton-servicio .icono {
  font-size: 1.5rem;
  margin-right: var(--space-sm);
  flex-shrink: 0;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transition: all var(--transition-normal);
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-900);
  color: var(--primary-300);
  text-align: center;
  padding: var(--space-lg);
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

footer p {
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .contenido-principal {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .carrusel-contenedor {
    height: 400px;
  }
  
  .servicios-botones h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  header h1 {
    font-size: 1.25rem;
  }

  .logo {
    width: 75px;
    height: 45px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
  }

  nav a {
    font-size: 0.8rem;
    padding: var(--space-sm);
  }

  .main-index {
    padding: var(--space-md);
  }

  .contenido-principal {
    padding: 0 var(--space-md);
    gap: var(--space-xl);
  }
  
  .carrusel-contenedor {
    height: 350px;
  }
  
  .servicios-botones h2 {
    font-size: 1.8rem;
  }
  
  .boton-servicio {
    font-size: 0.9rem;
    padding: var(--space-md) var(--space-lg);
    min-height: 60px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  header {
    padding: var(--space-sm);
    margin: 0 var(--space-sm);
  }

  header h1 {
    font-size: 1.1rem;
    text-align: center;
  }

  .logo {
    width: 70px;
    height: 40px;
  }

  nav a {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    padding: var(--space-sm);
  }

  .main-index {
    padding: var(--space-sm);
  }

  .contenido-principal {
    padding: 0;
    gap: var(--space-lg);
  }
  
  .carrusel-contenedor {
    height: 300px;
  }
  
  .servicios-botones {
    padding: var(--space-lg);
  }
  
  .servicios-botones h2 {
    font-size: 1.5rem;
  }
  
  .boton-servicio {
    font-size: 0.8rem;
    padding: var(--space-md);
    min-height: 55px;
    max-width: none;
  }
  
  .boton-servicio .icono {
    font-size: 1.2rem;
  }
}