/* Blinkstudio - Modern Design System */

/* Variables CSS Modernas - Paleta Unificada Blinkstudio */
:root {
  /* Paleta principal - Azul destacado */
  --primary: #3587be;
  --primary-hover: #2d6fa0;
  --primary-light: #e3f0f7;
  --primary-lighter: #f0f7fb;
  --secondary: #7a8b9d;
  --accent: #3587be;
  --accent-light: #e3f0f7;
  
  /* Paleta de grises armonizada con el fondo */
  --white: #f5f5f5;
  --gray-50: #e4e2de;
  --gray-100: #d8d6d2;
  --gray-200: #c8c6c2;
  --gray-300: #b8b6b2;
  --gray-400: #a5a3a0;
  --gray-500: #9a9895;
  --gray-600: #7a7875;
  --gray-700: #5a5855;
  --gray-800: #3a3835;
  --gray-900: #010101;
  --black: #010101;
  
  /* Fondo principal unificado */
  --bg-primary: #e4e2de;
  --bg-secondary: #e4e2de;
  --bg-card: #f5f5f5;
  --bg-section: #f5f5f5;
  
  /* Gradientes coherentes y sutiles */
  --gradient-primary: linear-gradient(135deg, #3587be 0%, #2d6fa0 100%);
  --gradient-secondary: linear-gradient(135deg, #7a8b9d 0%, #5a6b7d 100%);
  --gradient-hero: linear-gradient(135deg, #e4e2de 0%, #f5f5f5 100%);
  --gradient-cta: linear-gradient(135deg, #3587be 0%, #2d6fa0 100%);
  --gradient-subtle: linear-gradient(135deg, #f5f5f5 0%, #e4e2de 100%);
  --gradient-card: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  --gradient-section: linear-gradient(135deg, #f5f5f5 0%, #e4e2de 100%);
  
  /* Sombras modernas y suaves */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 20px rgb(53 135 190 / 0.3);
  --shadow-card: 0 4px 20px -4px rgb(0 0 0 / 0.08);
  
  /* Bordes y radios modernos */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-2xl: 2rem;
  --border-radius-full: 9999px;
  
  /* Tipografía moderna */
  --font-sans: 'TT Commons Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Monument', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Espaciado elegante y moderno */
  --spacing-xs: 0.375rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 2rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 3.5rem;
  --spacing-3xl: 4.5rem;
  --spacing-4xl: 7rem;
  --spacing-section: 5rem;
  
  /* Transiciones suaves */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Contenedor */
  --container-max-width: 1200px;
}

/* Reset y base moderno */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Permitir selección de texto e interacción */
body, .card-premium, .form-input, .form-textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  pointer-events: auto;
}

/* Asegurar que los inputs sean completamente interactivos */
.form-input, .form-textarea, select, button, a {
  pointer-events: auto !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Título principal con Monument */
h1 {
  font-family: var(--font-title);
  font-weight: bold;
}

/* Subtítulos y texto secundario con TT Commons Pro */
h2, h3, h4, h5, h6, p, span, a, li, .section-description, .hero-description, .card-description {
  font-family: var(--font-sans);
}

/* Color de texto principal para la página de inicio */
body.text-gray-900,
body .text-gray-900 {
  color: var(--gray-900) !important;
}

body.no-scroll {
  overflow: hidden;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

/* Utilidades de color modernas */
.text-primary { color: var(--primary); }
.text-primary-hover { color: var(--primary-hover); }
.text-primary-light { color: var(--primary-light); }
.bg-primary { background-color: var(--primary); }
.bg-primary-hover { background-color: var(--primary-hover); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-primary-lighter { background-color: var(--primary-lighter); }

/* Botones modernos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Tarjetas modernas */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-2xl);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

/* Gradientes modernos */
.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-cta {
  background: var(--gradient-cta);
}

.gradient-subtle {
  background: var(--gradient-subtle);
}

/* Animaciones modernas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Accesibilidad moderna */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* Transiciones suaves */
.smooth-transition {
  transition: all var(--transition-normal);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
}

/* Debug Panel */
.debug-panel {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-2xl);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  z-index: 9999;
  min-width: 190px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

body.debug-active .debug-panel {
  opacity: 0.95;
  pointer-events: auto;
  transform: translateY(0);
}

.debug-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.debug-panel__row strong {
  font-weight: 600;
  font-size: 0.95rem;
}

.debug-panel__row span:last-child {
  font-family: var(--font-mono);
  font-weight: 500;
}

.debug-panel__hint {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 0.5rem;
  display: block;
}

/* Espaciado elegante */
.section-padding {
  padding: var(--spacing-section) 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: calc(var(--spacing-section) + 1.5rem) 0;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: calc(var(--spacing-section) + 2.5rem) 0;
  }
}

/* Container moderno y limpio */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1320px;
  }
}

/* Grid responsive moderno */
.grid-responsive {
  display: grid;
  gap: var(--spacing-3xl);
}

.grid-responsive-2 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-responsive-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }
}

.grid-responsive-3 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-responsive-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  .grid-responsive-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }
}

/* Secciones Premium - Estilo Agencia Moderna */
.section-premium {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-4xl) 0;
  width: 100%;
  left: 0;
  right: 0;
}

.section-premium-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
  color: #ffffff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
}

.section-premium-light {
  background: linear-gradient(135deg, #e4e2de 0%, #f5f5f5 25%, #e4e2de 50%, #f5f5f5 75%, #e4e2de 100%);
  color: var(--gray-900);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
}

.section-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(53, 135, 190, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(53, 135, 190, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.section-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.section-container {
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-4xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(53, 135, 190, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(53, 135, 190, 0.2);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  animation: pulse-glow 3s ease-in-out infinite;
}

.section-premium-light .section-badge {
  background: rgba(53, 135, 190, 0.1);
  color: var(--primary);
  border-color: rgba(53, 135, 190, 0.2);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: var(--spacing-xl);
  letter-spacing: -0.02em;
}

.section-premium-dark .section-title {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(53, 135, 190, 0.2);
}

.section-premium-light .section-title {
  color: var(--gray-900);
}

.section-title .gradient-text {
  background: linear-gradient(135deg, #3587be 0%, #2d6fa0 50%, #3587be 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradient-shift 8s ease-in-out infinite;
}

.section-description {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

.section-premium-dark .section-description {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-premium-light .section-description {
  color: var(--gray-600);
}

/* Tarjetas Premium */
.card-premium {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-2xl);
  padding: var(--spacing-2xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card-premium:hover::before {
  opacity: 1;
}

.card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

body.debug-active .card-premium {
  outline: 1px dashed rgba(53, 135, 190, 0.4);
}

.section-premium-light .card-premium {
  background: var(--bg-card);
  border-color: rgba(1, 1, 1, 0.1);
}

.section-premium-light .card-premium:hover {
  border-color: rgba(53, 135, 190, 0.3);
  box-shadow: 0 25px 50px rgba(53, 135, 190, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3587be 0%, #2d6fa0 100%);
  border-radius: var(--border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(53, 135, 190, 0.3);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
}

.section-premium-dark .card-title {
  color: #ffffff;
}

.section-premium-light .card-title {
  color: var(--gray-900);
}

.card-description {
  font-size: 1rem;
  line-height: 1.6;
}

.section-premium-dark .card-description {
  color: rgba(255, 255, 255, 0.8);
}

.section-premium-light .card-description {
  color: var(--gray-600);
}

/* Grid Premium */
.grid-premium-2 {
  display: grid;
  gap: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .grid-premium-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3xl);
  }
}

.grid-premium-3 {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .grid-premium-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  .grid-premium-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-3xl);
  }
}

.grid-premium-4 {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .grid-premium-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  .grid-premium-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
  }
}

/* Sección Visión / Misión (mantener diseño de Sobre Nosotros) */
.about-pilares {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #334155 70%, #1f2b42 100%);
  color: #f8fafc;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pillars-grid .card-premium {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.4);
}

.pillars-grid .card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #3587be 0%, #2d6fa0 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  margin-bottom: 1.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35);
}

.pillars-grid h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.pillars-grid p {
  color: rgba(226, 232, 240, 0.9);
}
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  padding: var(--spacing-section) 0;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(53, 135, 190, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(53, 135, 190, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(53, 135, 190, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float-up 20s infinite linear;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) scale(1);
    opacity: 0;
  }
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  gap: var(--spacing-3xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-4xl);
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(53, 135, 190, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(53, 135, 190, 0.5);
  }
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: bold;
  line-height: 1.05;
  margin-bottom: var(--spacing-xl);
  color: #ffffff;
  text-shadow: 0 0 40px rgba(53, 135, 190, 0.3);
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #3587be 0%, #2d6fa0 50%, #3587be 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-3xl);
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-btn-primary {
  background: linear-gradient(135deg, #3587be 0%, #2d6fa0 50%, #3587be 100%);
  color: white;
  padding: var(--spacing-md) var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(53, 135, 190, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-btn-primary::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.5s;
}

.hero-btn-primary:hover::before {
  left: 100%;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(53, 135, 190, 0.4);
}

.hero-btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: var(--spacing-md) var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}

@media (min-width: 640px) {
  .hero-stats {
    gap: var(--spacing-2xl);
  }
}

.hero-stat {
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-stat:hover::before {
  opacity: 1;
}

.hero-stat:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #3587be 0%, #2d6fa0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.hero-stat-label {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-content: flex-end;
  }
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
}

.hero-globe {
  width: 100%;
  height: 100%;
  position: relative;
  animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-code-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red {
  background: #ef4444;
}

.code-dot.yellow {
  background: #f59e0b;
}

.code-dot.green {
  background: #10b981;
}

.code-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.code-line {
  margin-bottom: var(--spacing-xs);
  opacity: 0;
  animation: fade-in-up 0.5s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }
.code-line:nth-child(4) { animation-delay: 2s; }

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.code-keyword {
  color: #c084fc;
}

.code-string {
  color: #86efac;
}

.code-function {
  color: #60a5fa;
}

.code-comment {
  color: #64748b;
  font-style: italic;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  animation: float-random 15s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 6s;
}

@keyframes float-random {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(20px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-15px, 20px) rotate(240deg);
  }
}
.header,
.header-premium {
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  box-shadow: none;
}

.header-scrolled,
.header-premium.scrolled,
.header.scrolled {
  background: rgba(228, 226, 222, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Logo y navegación en header unificado */
.header .text-gray-900 {
  color: var(--gray-900) !important;
}

.header .text-gray-600 {
  color: var(--gray-600) !important;
}

.header .hover\:text-gray-900:hover {
  color: var(--primary) !important;
}

/* Enlaces de navegación */
.header-link {
  color: var(--gray-900);
  transition: color var(--transition-normal);
  font-weight: 500;
}

.header-link:hover {
  color: var(--primary);
}

/* Botón CTA en header */
.header-cta {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  transition: all var(--transition-normal);
}

.header-cta:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* CTA Servicios (reutilizado en Inicio) */
.cta-servicios {
  background: var(--section-light-bg, #f8fafc);
  padding: 5rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.cta-badge {
  background: rgba(53, 135, 190, 0.1);
  border: 1px solid rgba(53, 135, 190, 0.2);
  color: var(--primary);
  font-weight: 600;
}

.cta-title {
  color: #f8fafc;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
}

.cta-description {
  color: rgba(226, 232, 240, 0.85);
}

.cta-lite {
  display: grid;
  gap: 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #15253c 100%);
  border-radius: var(--border-radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem;
  box-shadow: 0 45px 90px rgba(15, 23, 42, 0.4);
  color: #e2e8f0;
  transition: transform var(--transition-normal, 250ms ease), box-shadow var(--transition-normal, 250ms ease);
}

.cta-lite:hover {
  transform: translateY(-10px);
  box-shadow: 0 55px 110px rgba(15, 23, 42, 0.5);
}

@media (min-width: 1024px) {
  .cta-lite {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.cta-lite-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #f8fafc;
}

.cta-lite-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cta-lite-metric {
  padding: 1.25rem;
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  color: #f8fafc;
  transition: transform var(--transition-normal, 250ms ease), box-shadow var(--transition-normal, 250ms ease), border-color var(--transition-normal, 250ms ease);
}

.cta-lite-metric-number {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.cta-lite-metric:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.35);
}

.cta-lite-panel p {
  margin: 0;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.95rem;
}

.cta-actions .cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 2.2rem;
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  font-weight: 600;
  background: transparent;
}

.cta-actions .cta-secondary-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}


/* Navegación móvil */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: #f0f2f6;
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility 0s linear var(--transition-normal);
  z-index: 40;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-menu {
  background-color: #f0f2f6 !important;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  padding-bottom: 3rem;
}

.mobile-menu {
  background-color: #f0f2f6 !important;
  border-left: none;
  color: #0f172a;
}

.mobile-menu .p-6 {
  background-color: transparent;
}

.mobile-menu .flex.flex-col a:not(.btn) {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  transition: color var(--transition-normal), padding-left var(--transition-normal);
}

.mobile-menu .flex.flex-col a:not(.btn)::after {
  content: '';
}

.mobile-menu .flex.flex-col a:not(.btn):hover,
.mobile-menu .flex.flex-col a:not(.btn):focus-visible {
  color: var(--primary);
  padding-left: 0.25rem;
}

.mobile-menu .btn {
  background: linear-gradient(135deg, #3587be 0%, #2d6fa0 100%);
  box-shadow: 0 15px 30px rgba(53, 135, 190, 0.25);
}

.mobile-menu .btn:hover {
  box-shadow: 0 25px 45px rgba(53, 135, 190, 0.35);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Formularios modernos */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-900);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--gray-900);
  transition: all var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: var(--bg-card);
}

.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* Carousel moderno */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-normal);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.carousel-controls button {
  background: var(--bg-card);
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius-full);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--gray-700);
}

.carousel-controls button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.carousel-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--border-radius-full);
  background: var(--gray-300);
  transition: all var(--transition-normal);
}

.carousel-indicator.active {
  background: var(--primary);
  width: 1.5rem;
}

/* Portfolio moderno */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-lg);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Testimonios modernos */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  font-size: 4rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Footer Blinkstudio - Unificado */
.footer {
  background: var(--bg-secondary);
  color: var(--gray-900);
}

.footer .text-gray-900 {
  color: var(--gray-900) !important;
}

.footer .text-gray-400 {
  color: var(--gray-600) !important;
}

.footer a {
  color: var(--primary);
}

.footer a:hover {
  color: var(--primary-hover);
}

/* Utilidades de display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Layout moderno y alineación suave */
.layout-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layout-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.layout-column {
  display: flex;
  flex-direction: column;
}

.layout-column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Espaciado de contenido */
.content-spacing-sm > * + * {
  margin-top: var(--spacing-md);
}

.content-spacing-md > * + * {
  margin-top: var(--spacing-lg);
}

.content-spacing-lg > * + * {
  margin-top: var(--spacing-xl);
}

/* Alineación de texto responsiva */
.text-responsive-center {
  text-align: center;
}

@media (min-width: 768px) {
  .text-responsive-center {
    text-align: left;
  }
}

/* Distribución de contenido */
.distribute-evenly {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.distribute-around {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* Hover utilities */
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Responsive utilities mejoradas */
@media (max-width: 639px) {
  .sm-hidden { display: none; }
  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
  .section-padding {
    padding: calc(var(--spacing-section) - 1rem) 0;
  }
}

@media (min-width: 640px) {
  .sm-block { display: block; }
  .sm-flex { display: flex; }
}

@media (min-width: 768px) {
  .md-hidden { display: none; }
  .md-block { display: block; }
  .md-flex { display: flex; }
  .grid-responsive {
    gap: var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  .lg-hidden { display: none; }
  .lg-block { display: block; }
  .lg-flex { display: flex; }
  .grid-responsive {
    gap: var(--spacing-xl);
  }
}

@media (min-width: 1280px) {
  .xl-hidden { display: none; }
  .xl-block { display: block; }
  .xl-flex { display: flex; }
}

/* Fluid layout para pantallas grandes */
@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }
}

/* Optimizaciones móviles */
@media (max-width: 767px) {
  .card {
    padding: var(--spacing-lg);
  }
  .testimonial-card {
    padding: var(--spacing-lg);
  }
  .section-padding {
    padding: var(--spacing-2xl) 0;
  }
}
