/* ==========================================================================
   DESIGNEL - SISTEMA DE DISEÑO VISUAL & ESTILOS PRINCIPALES
   Estudio Creativo & Comunicación Visual
   Identidad Oficial: Amarillo Solar, Magenta Eléctrico, Cian & Azul Profundo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap');

:root {
  /* Paleta Cromática Institucional & Marca Designel */
  --color-bg: #060911;
  --color-bg-secondary: #0b1120;
  --color-surface: #0f172a;
  --color-surface-hover: #17233d;
  --color-surface-card: rgba(15, 23, 42, 0.85);
  
  /* Colores Oficiales del Logotipo Designel */
  --color-brand-yellow: #ffe600;
  --color-brand-yellow-glow: rgba(255, 230, 0, 0.35);
  --color-brand-magenta: #c026d3;
  --color-brand-magenta-glow: rgba(192, 38, 211, 0.35);
  --color-brand-coral: #f97316;
  
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-glow: rgba(37, 99, 235, 0.3);
  
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.3);
  
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #20bd5a;
  
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-card: rgba(37, 99, 235, 0.35);
  --color-border-hover: rgba(6, 182, 212, 0.7);
  
  /* Gradientes Oficiales */
  --grad-brand-banner: linear-gradient(135deg, #ffe600 0%, #f97316 45%, #c026d3 100%);
  --grad-brand-text: linear-gradient(135deg, #ffe600 0%, #f43f5e 50%, #c026d3 100%);
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-hero: radial-gradient(circle at 50% 0%, rgba(255, 230, 0, 0.12) 0%, rgba(192, 38, 211, 0.08) 40%, rgba(6, 9, 17, 0) 70%);
  --grad-card-glow: linear-gradient(180deg, rgba(6, 182, 212, 0.15) 0%, rgba(192, 38, 211, 0.05) 100%);
  
  /* Tipografía Unificada Oficial (Plus Jakarta Sans) */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-card-glow: 0 15px 40px -10px rgba(6, 182, 212, 0.35), 0 0 30px rgba(192, 38, 211, 0.2);
  
  /* Bordes & Transiciones */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(255, 230, 0, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(192, 38, 211, 0.08), transparent),
    radial-gradient(ellipse 70% 50% at 15% 70%, rgba(6, 182, 212, 0.06), transparent);
  background-attachment: fixed;
  font-family: var(--font-family);
}

button, input, select, textarea {
  font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Estilo Tipográfico Especial de Marca DeSiGNeL Unificado */
.font-brand-serif {
  font-family: var(--font-family) !important;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.text-brand-gradient {
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-yellow {
  color: var(--color-brand-yellow);
}

.text-magenta {
  color: var(--color-brand-magenta);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  z-index: 10000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 15px;
}

/* Links & Media */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenedores */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Espaciado Entre Módulos (Secciones Amplias & Respirables) */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 6.5rem 0;
}

/* ==========================================================================
   CABECERA & NAVEGACIÓN (Sticky Glassmorphism)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 9, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-logo:hover img {
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(192, 38, 211, 0.22);
  border: 1px solid rgba(192, 38, 211, 0.5);
  box-shadow: 0 0 15px rgba(192, 38, 211, 0.35);
}

.nav-link.active {
  color: var(--color-brand-yellow);
  border-color: rgba(255, 230, 0, 0.5);
  font-weight: 700;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--color-surface);
  border: 1px solid rgba(192, 38, 211, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(192, 38, 211, 0.2);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item.active {
  color: #fff;
  background: rgba(192, 38, 211, 0.25);
  border-left-color: var(--color-brand-magenta);
  box-shadow: 0 0 12px rgba(192, 38, 211, 0.25);
  transform: translateX(4px);
}

.dropdown-item.active {
  color: #fff;
  background: rgba(192, 38, 211, 0.38);
  border-left-color: var(--color-brand-yellow);
  font-weight: 600;
}

/* Header CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.12);
  color: var(--color-whatsapp);
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-whatsapp-header:hover {
  background: var(--color-whatsapp);
  color: #000;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   BOTONES & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #ffe600 0%, #f97316 45%, #c026d3 100%);
  color: #000;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 22px rgba(255, 230, 0, 0.4), 0 0 18px rgba(192, 38, 211, 0.3);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ffe600 45%, #f97316 100%);
  color: #000;
  box-shadow: 0 6px 30px rgba(255, 230, 0, 0.65), 0 0 25px rgba(192, 38, 211, 0.45);
  transform: translateY(-2px);
}

.btn-brand-banner {
  background: linear-gradient(135deg, #ffe600 0%, #f97316 45%, #c026d3 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 25px rgba(255, 230, 0, 0.4), 0 0 20px rgba(192, 38, 211, 0.3);
}

.btn-brand-banner:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ffe600 45%, #c026d3 100%);
  box-shadow: 0 6px 32px rgba(255, 230, 0, 0.65), 0 0 30px rgba(192, 38, 211, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(192, 38, 211, 0.12);
  color: #fff;
  border: 1.5px solid rgba(192, 38, 211, 0.5);
  font-weight: 700;
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(192, 38, 211, 0.35) 0%, rgba(255, 230, 0, 0.25) 100%);
  border-color: var(--color-brand-yellow);
  color: #fff;
  box-shadow: 0 0 25px rgba(192, 38, 211, 0.45), 0 0 15px rgba(255, 230, 0, 0.35);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #ffe600 0%, #f97316 45%, #c026d3 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--color-brand-yellow-glow), 0 0 15px rgba(192, 38, 211, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ffe600 45%, #c026d3 100%);
  box-shadow: 0 6px 28px rgba(255, 230, 0, 0.6), 0 0 25px rgba(192, 38, 211, 0.4);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(192, 38, 211, 0.15);
  color: var(--color-brand-yellow);
  border: 1px solid rgba(192, 38, 211, 0.4);
  margin-bottom: 1rem;
}

.badge-brand {
  background: rgba(255, 230, 0, 0.12);
  color: var(--color-brand-yellow);
  border-color: rgba(255, 230, 0, 0.45);
}

/* ==========================================================================
   BANNER PRINCIPAL CENTRALIZADO DE ALTA RESOLUCIÓN (Home)
   Efecto Latido de Corazón (Heartbeat Fluido & Profesional)
   ========================================================================== */
.hero-banner-section {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hero-banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Aura atmosférica viva que late suavemente al ritmo del corazón */
.hero-banner-wrapper::before {
  content: '';
  position: absolute;
  inset: -14px -16px;
  border-radius: calc(var(--radius-lg) + 12px);
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 230, 0, 0.42) 0%,
    rgba(217, 70, 239, 0.35) 45%,
    rgba(225, 29, 72, 0.18) 65%,
    transparent 80%
  );
  filter: blur(32px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  animation: bannerAuraHeartbeat 3.4s cubic-bezier(0.25, 1, 0.35, 1) infinite;
}

/* Onda expansiva lumínica (pulso sutil de choque cardíaco) */
.hero-banner-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px -8px;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1.5px solid rgba(255, 230, 0, 0.5);
  box-shadow: 0 0 25px rgba(255, 230, 0, 0.35), inset 0 0 15px rgba(217, 70, 239, 0.25);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  animation: bannerWavePulse 3.4s cubic-bezier(0.12, 0.8, 0.32, 1) infinite;
}

.hero-banner-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  max-height: 440px;
  aspect-ratio: 16 / 6.2;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 230, 0, 0.55);
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.85), 
    0 0 35px rgba(255, 230, 0, 0.24), 
    0 0 45px rgba(192, 38, 211, 0.22);
  background: #060911;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  will-change: transform, box-shadow, border-color;
  animation: bannerCardHeartbeat 3.4s cubic-bezier(0.25, 1, 0.35, 1) infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  transition: filter 0.4s ease, transform 0.4s ease;
  animation: bannerImgBreathe 3.4s cubic-bezier(0.25, 1, 0.35, 1) infinite;
}

/* Interacción Hover: pausa el latido y eleva con elegancia */
.hero-banner-wrapper:hover .hero-banner-card,
.hero-banner-card:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale3d(1.018, 1.018, 1);
  border-color: var(--color-brand-yellow);
  box-shadow: 
    0 35px 85px rgba(0, 0, 0, 0.95), 
    0 0 70px rgba(255, 230, 0, 0.48), 
    0 0 60px rgba(192, 38, 211, 0.38);
}

.hero-banner-wrapper:hover::before {
  animation-play-state: paused;
  opacity: 0.85;
  transform: scale(1.03);
}

.hero-banner-wrapper:hover::after {
  animation-play-state: paused;
  opacity: 0;
}

/* ==========================================================================
   ANIMACIONES DE LATIDO DE CORAZÓN (Ritmo Sístole Doble "Lub-Dub" + Diástole Fluida)
   ========================================================================== */

/* 1. Movimiento principal del Banner Card */
@keyframes bannerCardHeartbeat {
  0% {
    transform: scale3d(1, 1, 1);
    box-shadow: 
      0 25px 65px rgba(0, 0, 0, 0.85), 
      0 0 35px rgba(255, 230, 0, 0.24), 
      0 0 45px rgba(192, 38, 211, 0.22);
    border-color: rgba(255, 230, 0, 0.5);
  }
  /* Primer latido (Sístole 1 - rápido y fluido) */
  12% {
    transform: scale3d(1.024, 1.024, 1);
    box-shadow: 
      0 32px 75px rgba(0, 0, 0, 0.88), 
      0 0 55px rgba(255, 230, 0, 0.48), 
      0 0 58px rgba(217, 70, 239, 0.4);
    border-color: rgba(255, 230, 0, 0.85);
  }
  /* Retroceso suave intermedio */
  22% {
    transform: scale3d(1.008, 1.008, 1);
    box-shadow: 
      0 26px 68px rgba(0, 0, 0, 0.86), 
      0 0 40px rgba(255, 230, 0, 0.32), 
      0 0 46px rgba(217, 70, 239, 0.28);
    border-color: rgba(255, 230, 0, 0.6);
  }
  /* Segundo latido (Sístole 2 - más amplio y enérgico) */
  34% {
    transform: scale3d(1.035, 1.035, 1);
    box-shadow: 
      0 36px 88px rgba(0, 0, 0, 0.92), 
      0 0 75px rgba(255, 230, 0, 0.6), 
      0 0 70px rgba(217, 70, 239, 0.5);
    border-color: #FFE600;
  }
  /* Relajación diastólica progresiva */
  56% {
    transform: scale3d(1.003, 1.003, 1);
    box-shadow: 
      0 27px 68px rgba(0, 0, 0, 0.86), 
      0 0 38px rgba(255, 230, 0, 0.28), 
      0 0 46px rgba(192, 38, 211, 0.24);
    border-color: rgba(255, 230, 0, 0.52);
  }
  70% {
    transform: scale3d(1, 1, 1);
    box-shadow: 
      0 25px 65px rgba(0, 0, 0, 0.85), 
      0 0 35px rgba(255, 230, 0, 0.24), 
      0 0 45px rgba(192, 38, 211, 0.22);
    border-color: rgba(255, 230, 0, 0.5);
  }
  /* Reposo calmo antes del siguiente ciclo */
  100% {
    transform: scale3d(1, 1, 1);
    box-shadow: 
      0 25px 65px rgba(0, 0, 0, 0.85), 
      0 0 35px rgba(255, 230, 0, 0.24), 
      0 0 45px rgba(192, 38, 211, 0.22);
    border-color: rgba(255, 230, 0, 0.5);
  }
}

/* 2. Aura atmosférica de fondo sincronizada */
@keyframes bannerAuraHeartbeat {
  0% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  12% {
    opacity: 0.75;
    transform: scale(1.02);
  }
  22% {
    opacity: 0.58;
    transform: scale(1.00);
  }
  34% {
    opacity: 0.88;
    transform: scale(1.045);
  }
  56% {
    opacity: 0.55;
    transform: scale(1.01);
  }
  70% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  100% {
    opacity: 0.5;
    transform: scale(0.98);
  }
}

/* 3. Onda expansiva lumínica (pulso estelar) */
@keyframes bannerWavePulse {
  0%, 28% {
    transform: scale(0.98);
    opacity: 0;
  }
  34% {
    transform: scale(1.015);
    opacity: 0.75;
    border-color: rgba(255, 230, 0, 0.7);
  }
  62% {
    transform: scale(1.06);
    opacity: 0;
    border-color: rgba(217, 70, 239, 0.15);
  }
  100% {
    transform: scale(1.06);
    opacity: 0;
  }
}

/* 4. Sutil brillo y vitalidad en la imagen */
@keyframes bannerImgBreathe {
  0%, 100% {
    filter: brightness(1);
  }
  12% {
    filter: brightness(1.03) contrast(1.02);
  }
  22% {
    filter: brightness(1.01);
  }
  34% {
    filter: brightness(1.05) contrast(1.03);
  }
  56% {
    filter: brightness(1.01);
  }
  70% {
    filter: brightness(1);
  }
}

/* Accesibilidad para usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .hero-banner-card,
  .hero-banner-wrapper::before,
  .hero-banner-wrapper::after,
  .hero-banner-img {
    animation: none !important;
  }
}

.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-xl);
  text-align: center;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 760px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
}

.breadcrumbs a:hover {
  color: var(--color-cyan);
}

.breadcrumbs span {
  color: var(--color-text-muted);
}

/* ==========================================================================
   CARRUSEL DINÁMICO DE CLIENTES (Infinito de derecha a izquierda)
   ========================================================================== */
.clients-marquee-section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.7) 0%, rgba(6, 9, 17, 0.9) 100%);
  overflow: hidden;
  position: relative;
}

.clients-marquee-section::before,
.clients-marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
}

.clients-marquee-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg) 0%, transparent 100%);
}

.marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  padding: 3.2rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: marqueeScroll 32s linear infinite;
  white-space: nowrap;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo-card-marquee {
  flex-shrink: 0;
  min-width: 200px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.client-logo-card-marquee img {
  max-height: 80px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-logo-card-marquee:hover {
  transform: scale(1.22);
  z-index: 10;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--color-brand-yellow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 230, 0, 0.4);
}

.client-logo-card-marquee:hover img {
  opacity: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}

/* ==========================================================================
   ENCABEZADOS DE SECCIÓN & SUBTÍTULOS (Espaciado Elegante y Jerarquía)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.75rem auto;
}

.section-header .badge {
  margin-bottom: 1.25rem;
}

.section-header .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}

.section-header .section-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ==========================================================================
   TARJETAS DE SERVICIOS REDISEÑADAS (Inspiradas en el diseño adjunto)
   ========================================================================== */
.services-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 1.5rem;
}

.service-card-modern {
  background: #090e1a;
  border: 1.5px solid rgba(37, 99, 235, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

.service-card-modern:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-card-glow), 0 20px 45px rgba(0, 0, 0, 0.8);
}

.service-card-image-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  position: relative;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card-modern:hover .service-card-image-wrap img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 0.5rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.service-card-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-card-cta {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.service-card-modern:hover .service-card-cta {
  color: #fff;
  transform: translateX(6px);
}

/* ==========================================================================
   EFECTO DE APARICIÓN DE IMPACTO: VISUALIZACIÓN & TRABAJOS DESTACADOS
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Imagen de Visualización (Celulares) con Flotación y Halo de Gran Impacto */
.impact-image-visualizacion {
  position: relative;
  perspective: 1000px;
}

.impact-image-visualizacion img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(6, 182, 212, 0.35)) drop-shadow(0 0 35px rgba(192, 38, 211, 0.25));
  animation: floatCelulares 6s ease-in-out infinite;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.impact-image-visualizacion:hover img {
  transform: scale(1.04) rotate(-1deg);
  filter: drop-shadow(0 30px 65px rgba(6, 182, 212, 0.55)) drop-shadow(0 0 45px rgba(255, 230, 0, 0.3));
}

@keyframes floatCelulares {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

/* Imagen de Trabajos Destacados (Notebook) con Flotación y Halo de Gran Impacto */
.impact-image-portfolio {
  position: relative;
  perspective: 1000px;
}

.impact-image-portfolio img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(37, 99, 235, 0.45)) drop-shadow(0 0 40px rgba(6, 182, 212, 0.3));
  animation: floatNotebook 7s ease-in-out infinite;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.impact-image-portfolio:hover img {
  transform: scale(1.04) rotate(1deg);
  filter: drop-shadow(0 32px 70px rgba(37, 99, 235, 0.6)) drop-shadow(0 0 50px rgba(192, 38, 211, 0.35));
}

@keyframes floatNotebook {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(-1deg);
  }
}

/* ==========================================================================
   CONTENIDO EDITORIAL & BLOQUES SPLIT (Espaciado de Textos y Botones CTA)
   ========================================================================== */
.feature-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.feature-content .badge {
  margin-bottom: 1.25rem;
}

.feature-content h2 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.feature-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 1.35rem;
}

.feature-content p:last-of-type {
  margin-bottom: 0;
}

.feature-content .check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feature-content .check-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: #e2e8f0;
}

.feature-content .check-icon {
  color: var(--color-brand-yellow);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

/* Separación lógica, amplia y distinguida para los botones CTA (EMPEZAR, VER PROYECTOS) */
.feature-content .btn {
  margin-top: 2.75rem !important;
  padding: 0.95rem 2.25rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   CONOCENOS & FILOSOFÍA
   ========================================================================== */
.about-card {
  background: var(--color-surface-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--grad-brand-banner);
}

.about-lead {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text-main);
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   MÓDULOS DE SERVICIOS: LEAD & "¿CÓMO LO HACEMOS?" (Sistema Unificado)
   ========================================================================== */
.service-lead-section {
  padding: 2.25rem 0 0.75rem;
  position: relative;
}

.how-we-do-section {
  padding: 0.75rem 0 2.25rem;
  position: relative;
}

.how-we-do-section .section-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Feature Items Grid Base (3 columnas estándar para 6 o más ítems) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Grilla de 4 columnas (ej. Redes Sociales) */
.features-grid-4,
.features-grid.grid-4-cols {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.15rem;
}

/* Grilla de 3 columnas (ej. Diseño Gráfico, Branding, Web Hosting, E-commerce) */
.features-grid-3,
.features-grid.grid-3-cols {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .features-grid,
  .features-grid-3,
  .features-grid.grid-3-cols {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.15rem;
  }
}

@media (max-width: 820px) {
  .features-grid-4,
  .features-grid.grid-4-cols {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .features-grid,
  .features-grid-3,
  .features-grid-4,
  .features-grid.grid-3-cols,
  .features-grid.grid-4-cols {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
}

/* Feature Box: Tarjeta estandarizada en todos los servicios */
.feature-box {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
  transition: var(--transition);
  width: 100%;
  min-height: 82px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.feature-box:hover {
  border-color: var(--color-brand-magenta);
  background: rgba(192, 38, 211, 0.12);
  box-shadow: 0 8px 25px rgba(192, 38, 211, 0.28);
  transform: translateY(-3px);
}

/* Contenedor del ícono blindado a 48x48px siempre */
.feature-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box img,
.feature-box > img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 8px rgba(192, 38, 211, 0.35));
}

.feature-box h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.32;
  word-break: normal;
}

/* ==========================================================================
   TESTIMONIOS ("Casos de Éxito!")
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-quote-icon {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-brand-yellow);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.author-info p {
  font-size: 0.88rem;
  color: var(--color-cyan);
}

.author-logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   PORTFOLIO & CASOS DE ESTUDIO
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-card-glow);
}

.portfolio-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.06);
}

.portfolio-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 9, 17, 0.9);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-yellow);
  border: 1px solid rgba(255, 230, 0, 0.4);
}

.portfolio-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.portfolio-snippet {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* Ficha de Proyecto Individual */
.project-hero-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.project-hero-banner img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.project-narrative {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.project-narrative p {
  margin-bottom: 1.25rem;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: var(--transition);
}

.gallery-item:hover {
  border-color: var(--color-brand-yellow);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  pointer-events: none;
}

/* Behance Callout Card */
.behance-card {
  background: linear-gradient(135deg, rgba(5, 42, 110, 0.4) 0%, rgba(20, 23, 38, 0.8) 100%);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.behance-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.behance-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.btn-behance {
  background: #0057ff;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-behance:hover {
  background: #1e6fff;
  box-shadow: 0 4px 20px rgba(0, 87, 255, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONTACTO & FORMULARIO
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: var(--transition);
}

.contact-box:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.contact-details h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-details a:hover {
  color: var(--color-cyan);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  background: rgba(13, 19, 34, 0.9);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Subscription Bar (10% OFF) */
.promo-bar {
  background: radial-gradient(circle at 50% 50%, rgba(255, 230, 0, 0.12) 0%, rgba(192, 38, 211, 0.08) 50%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(255, 230, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 230, 0, 0.15);
  margin: var(--space-2xl) auto;
  max-width: 960px;
}

.promo-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.promo-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.promo-title .highlight-gold {
  color: var(--color-brand-yellow);
  text-shadow: 0 0 20px rgba(255, 230, 0, 0.4);
}

.promo-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 0.75rem;
  align-items: center;
}

/* ==========================================================================
   PIE DE PÁGINA (Footer Institucional & Origen Religioso)
   ========================================================================== */
.site-footer {
  background: #04060b;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3xl);
  margin-top: auto;
}

.footer-cta-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(192, 38, 211, 0.1) 50%, rgba(6, 182, 212, 0.08) 100%);
  border: 1.5px solid rgba(255, 230, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-3xl);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 230, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-cta-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand-origin {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 2.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.bible-verse {
  font-family: var(--font-family);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-brand-yellow);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.bible-reference {
  font-size: 0.88rem;
  text-transform: uppercase;
  color: var(--color-text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.brand-meaning {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.brand-meaning strong {
  color: #fff;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-brand-magenta);
  color: #fff;
  border-color: var(--color-brand-magenta);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(192, 38, 211, 0.4);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.8rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-dim);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-credits a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.footer-credits a:hover {
  color: var(--color-cyan);
}

/* ==========================================================================
   PÁGINAS DE ERROR (410 GONE & 404 NOT FOUND)
   ========================================================================== */
.error-page-container {
  padding: var(--space-3xl) 0;
  text-align: center;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-brand-banner);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.error-message {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ==========================================================================
   LIGHTBOX MODAL & NAVEGACIÓN GALERÍA DE PORTFOLIO
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 15, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), 0 0 40px rgba(192, 38, 211, 0.2);
  opacity: 1;
  transform: scale(1) translateZ(0);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#lightbox-image.fade-out {
  opacity: 0;
  transform: scale(0.97) translateZ(0);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.lightbox-counter {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-brand-yellow);
  background: rgba(255, 230, 0, 0.12);
  border: 1px solid rgba(255, 230, 0, 0.35);
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 100001;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* Flechitas Navegadoras del Lightbox */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.25s ease;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-nav:hover {
  background: rgba(255, 230, 0, 0.2);
  border-color: var(--color-brand-yellow);
  box-shadow: 0 0 30px rgba(255, 230, 0, 0.5), 0 10px 35px rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.12);
}

.lightbox-nav:hover svg {
  stroke: var(--color-brand-yellow);
}

.lightbox-prev:hover svg {
  transform: translateX(-3px);
}

.lightbox-next:hover svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev {
    left: 0.75rem;
  }
  .lightbox-next {
    right: 0.75rem;
  }
  .lightbox-nav svg {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   RESPONSIVIDAD & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background: var(--color-bg);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s;
    border-top: 1px solid var(--color-border);
    z-index: 9999;
  }
  
  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-left: 1rem;
  }
  
  .services-grid-new,
  .portfolio-grid,
  .testimonials-grid,
  .feature-split,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .promo-form {
    grid-template-columns: 1fr;
  }
  
  .btn-whatsapp-header {
    display: none;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .client-logo-card-marquee {
    min-width: 160px;
    height: 90px;
  }
  
  .client-logo-card-marquee img {
    max-height: 60px;
    max-width: 130px;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   WIDGET FLOTANTE MULTI-CANAL WHATSAPP PREMIUM
   Efecto hover suave con puente invisible, animaciones físicas y estado activo
   ========================================================================== */

.wa-floating-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  user-select: none;
}

/* Puente invisible entre el botón y la ventana flotante para evitar pérdida de hover */
.wa-popup-window::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 24px;
  pointer-events: auto;
}

/* Ventana emergente (Popup Card) */
.wa-popup-window {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 36px);
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.5),
    0 8px 24px -4px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.92);
  transition: 
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Despliegue al pasar el mouse por el widget O al activarse con click */
.wa-floating-widget:hover .wa-popup-window,
.wa-floating-widget.is-open .wa-popup-window {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header Verde WhatsApp */
.wa-popup-header {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  padding: 20px 22px 18px 22px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.wa-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.wa-header-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wa-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a7f3d0;
  box-shadow: 0 0 8px #a7f3d0;
  animation: wa-status-pulse 1.8s infinite ease-in-out;
}

@keyframes wa-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.wa-popup-close-btn {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wa-popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(90deg);
}

.wa-popup-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  font-family: var(--font-family);
}

.wa-popup-subtitle {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.wa-popup-subtitle strong {
  color: #ffffff;
  font-weight: 700;
}

/* Cuerpo del popup */
.wa-popup-body {
  background: #f8fafc;
  padding: 16px 18px 14px 18px;
}

.wa-response-time {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.3;
}

/* Lista de canales */
.wa-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card individual de canal */
.wa-channel-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 12px 14px 12px 18px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: 
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.26s ease,
    background-color 0.26s ease;
}

/* Barra vertical verde a la izquierda */
.wa-card-accent-bar {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: #25D366;
  border-radius: 0 4px 4px 0;
  transition: all 0.25s ease;
}

.wa-card-avatar {
  flex-shrink: 0;
}

.wa-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.15);
  transition: transform 0.25s ease;
}

.wa-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wa-card-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.wa-card-role {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff9e00 0%, #ff3366 50%, #c026d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  width: fit-content;
  line-height: 1.3;
  margin-top: 1px;
}

.wa-card-phone {
  font-size: 0.77rem;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
  font-family: var(--font-family);
  font-weight: 500;
}

.wa-card-action-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover de cada canal */
.wa-channel-card:hover {
  transform: translateY(-2px);
  background-color: #f0fdf4;
  border-color: #86efac;
  box-shadow: 
    0 10px 22px -6px rgba(37, 211, 102, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.05);
}

.wa-channel-card:hover .wa-card-accent-bar {
  width: 6px;
  background: #16a34a;
}

.wa-channel-card:hover .wa-avatar-circle {
  transform: scale(1.08);
}

.wa-channel-card:hover .wa-card-action-icon {
  transform: scale(1.18);
}

/* Barra inferior del popup */
.wa-popup-footer-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-footer-text {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   BOTÓN DISPARADOR PRINCIPAL FLOTANTE
   ========================================================================== */

.wa-trigger-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 12px 28px -4px rgba(37, 211, 102, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.25);
  transition: 
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.wa-floating-widget:hover .wa-trigger-btn,
.wa-floating-widget.is-open .wa-trigger-btn {
  transform: scale(1.06);
  box-shadow: 
    0 16px 36px -4px rgba(37, 211, 102, 0.6),
    0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Ondas concéntricas de pulso cuando está cerrado */
.wa-pulse-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  pointer-events: none;
  animation: wa-wave-expand 2.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wa-pulse-wave.wa-wave-delayed {
  animation-delay: 1.2s;
}

.wa-floating-widget:hover .wa-pulse-wave,
.wa-floating-widget.is-open .wa-pulse-wave {
  animation: none;
  opacity: 0;
}

@keyframes wa-wave-expand {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Iconos de estado: alternancia entre WhatsApp y Cerrar 'X' */
.wa-icon-state {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  transition: 
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease;
}

.wa-icon-chat {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.wa-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Al estar abierto el popup */
.wa-floating-widget:hover .wa-icon-chat,
.wa-floating-widget.is-open .wa-icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.wa-floating-widget:hover .wa-icon-close,
.wa-floating-widget.is-open .wa-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Badge con número de canales */
.wa-badge-online {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.wa-floating-widget:hover .wa-badge-online,
.wa-floating-widget.is-open .wa-badge-online {
  transform: scale(0);
  opacity: 0;
}

/* Adaptación responsive en pantallas móviles */
@media (max-width: 640px) {
  .hero-banner-section {
    padding-top: 1.75rem;
    padding-bottom: 1rem;
  }
  .hero-banner-card {
    aspect-ratio: 16 / 8;
  }
  .wa-floating-widget {
    bottom: 20px;
    right: 20px;
  }
  .wa-popup-window {
    width: calc(100vw - 40px);
    right: 0;
  }
  .wa-trigger-btn {
    width: 58px;
    height: 58px;
  }
}


