/* ==========================================================================
   KEEYCODE - MODERN FUTURISTIC LANDING PAGE STYLES
   Visual Identity: Dark Blue (#0D1026), Electric Blue (#2563EB), Purple (#7C3AED), Cyan (#06B6D4)
   Fonts: Poppins (Headings/Buttons/Badges), Inter (Body/Forms/Text)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #0D1026;
  --bg-dark-surface: #131738;
  --bg-dark-card: rgba(19, 23, 56, 0.7);
  --bg-dark-card-hover: rgba(25, 30, 70, 0.85);
  
  --bg-light: #F3F4F6;
  --bg-light-surface: #FFFFFF;
  --bg-light-card: #FFFFFF;
  --bg-light-card-alt: #EDF0F5;

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --purple: #7C3AED;
  --cyan: #06B6D4;
  
  --text-dark: #111827;
  --text-muted-dark: #4B5563;
  --text-light: #F9FAFB;
  --text-muted-light: #9CA3AF;
  --text-subtle-light: #6B7280;

  --border-dark: rgba(255, 255, 255, 0.08);
  --border-dark-hover: rgba(37, 99, 235, 0.4);
  --border-light: #E5E7EB;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #06B6D4 100%);
  --grad-primary-hover: linear-gradient(135deg, #1D4ED8 0%, #6D28D9 50%, #0891B2 100%);
  --grad-accent-text: linear-gradient(135deg, #60A5FA 0%, #C084FC 50%, #22D3EE 100%);
  --grad-heading-light: linear-gradient(135deg, #FFFFFF 30%, #9CA3AF 100%);
  --grad-heading-dark: linear-gradient(135deg, #111827 0%, #374151 100%);
  --grad-glow: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.08) 50%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 16, 38, 0.08);
  --shadow-lg: 0 16px 40px rgba(13, 16, 38, 0.12);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);

  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 50px;
}

/* --------------------------------------------------------------------------
   2. GLOBAL BASE STYLES
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-heading,
.navbar-brand,
.nav-link,
.btn,
.badge,
.section-tag {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

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

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

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & UTILITIES
   -------------------------------------------------------------------------- */
.text-gradient {
  background: var(--grad-accent-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-top: 0.15em;
  padding-bottom: 0.15em;
  margin-top: -0.15em;
  margin-bottom: -0.15em;
  line-height: 1.25;
}

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

.text-cyan {
  color: var(--cyan) !important;
}

.text-purple {
  color: var(--purple) !important;
}

.text-electric {
  color: var(--primary) !important;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #60A5FA;
  margin-bottom: 1rem;
}

.section-tag.light-mode {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--primary);
}

.badge-star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--primary);
  letter-spacing: 0.02em;
}

.badge-star i {
  color: #F59E0B;
  font-size: 0.82rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted-light);
  max-width: 720px;
  margin: 0 auto;
}

/* Background Section Variations */
.bg-dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

/* Animated Cyber Dot Matrix Background for Dark Sections */
.bg-dark-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(37, 99, 235, 0.16) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.65;
  z-index: 0;
  animation: darkGridDrift 40s linear infinite;
}

@keyframes darkGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: -56px -56px; }
}

.bg-dark-section .container {
  position: relative;
  z-index: 1;
}

/* Decorative Hexagonal & Cybernetic SVG Overlay for Dark Sections */
.tech-decor-dark {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  transition: transform 0.5s ease;
}

.tech-decor-dark-left {
  top: 10%;
  left: -25px;
  width: 240px;
  animation: floatSlow 9s ease-in-out infinite;
}

.tech-decor-dark-right {
  bottom: 8%;
  right: -25px;
  width: 260px;
  animation: floatSlow 11s ease-in-out infinite reverse;
}

.bg-light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

/* Animated Tech Dot Matrix Background for Light Sections */
.bg-light-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(100, 116, 139, 0.22) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
  animation: gridDrift 35s linear infinite;
}

@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 52px 52px; }
}

/* Ambient Subtle Grey Glow Blob for Light Sections */
.bg-light-section::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(203, 213, 225, 0.45) 0%, rgba(226, 232, 240, 0.1) 60%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: pulseLightBlob 10s ease-in-out infinite alternate;
}

@keyframes pulseLightBlob {
  0% { transform: scale(1) translateY(0); opacity: 0.4; }
  100% { transform: scale(1.15) translateY(-25px); opacity: 0.75; }
}

/* Ensure container content remains above background graphics */
.bg-light-section .container {
  position: relative;
  z-index: 1;
}

/* Decorative Tech Geometric Overlay (Isometric Cubes & Grid Nodes) */
.tech-decor-light {
  position: absolute;
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
  transition: transform 0.5s ease;
}

.tech-decor-light-left {
  top: 8%;
  left: -20px;
  width: 220px;
  animation: floatSlow 8s ease-in-out infinite;
}

.tech-decor-light-right {
  bottom: 6%;
  right: -20px;
  width: 260px;
  animation: floatSlow 10s ease-in-out infinite reverse;
}

.bg-light-section .section-title {
  color: var(--text-dark);
}

.bg-light-section .section-subtitle {
  color: var(--text-muted-dark);
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-dark-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-dark-hover);
  box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--grad-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
  color: #ffffff !important;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.2);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus-visible {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  background: rgba(13, 16, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 0;
  transition: all 0.3s ease;
  z-index: 1050;
}

.navbar.scrolled {
  padding: 0.7rem 0;
  background: rgba(13, 16, 38, 0.94);
  border-bottom-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 38px;
  width: auto;
  transition: transform 0.3s ease;
}

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

.nav-link {
  color: #D1D5DB !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF !important;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 70%;
}

/* Mobile Toggler */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none !important;
  box-shadow: none !important;
  transition: var(--transition-fast);
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 16, 38, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }

  .nav-link {
    padding: 0.8rem 1rem !important;
    font-size: 1.05rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .btn {
    width: 100%;
    margin-top: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--bg-dark);
  padding: 170px 0 110px;
  position: relative;
  overflow: hidden;
}

/* Ambient Glow Blobs */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 450px;
  height: 450px;
  background: var(--primary);
  opacity: 0.12;
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: var(--purple);
  opacity: 0.14;
  filter: blur(130px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #9CA3AF;
  line-height: 1.65;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: #E5E7EB;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.trust-badge:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.trust-badge i {
  color: var(--cyan);
}

/* Hero Code Visual Card */
.code-mock-card {
  background: #090B1B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  transition: var(--transition-normal);
  position: relative;
}

.code-mock-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.code-mock-header {
  background: #0E122B;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.window-title {
  font-family: monospace;
  font-size: 0.82rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-mock-body {
  padding: 24px;
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #E2E8F0;
  background: rgba(9, 11, 27, 0.95);
}

.token-keyword { color: #C084FC; font-weight: 600; }
.token-property { color: #60A5FA; }
.token-string { color: #34D399; }
.token-number { color: #FBBF24; }
.token-comment { color: #6B7280; font-style: italic; }
.token-punct { color: #94A3B8; }

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ADE80;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 10px #22C55E;
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --------------------------------------------------------------------------
   7. SOLUCIONES SECTION (LIGHT BG)
   -------------------------------------------------------------------------- */
#soluciones {
  padding: 100px 0;
}

.solution-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 42px 32px;
  height: 100%;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

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

.solution-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.8rem;
  transition: var(--transition-normal);
}

.solution-card:hover .solution-icon-wrap {
  background: var(--grad-primary);
  color: #FFFFFF;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.solution-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.solution-text {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. NOSOTROS SECTION (DARK BG)
   -------------------------------------------------------------------------- */
#nosotros {
  padding: 100px 0;
}

.ceo-card {
  background: var(--bg-dark-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  height: 100%;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ceo-card:hover {
  border-color: var(--border-dark-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-dark-card-hover);
}

.ceo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.ceo-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ceo-role {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;

}

.ceo-bio {
  color: var(--text-muted-light);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   9. PROYECTOS / TRANSFORMACIÓN DIGITAL SECTION (LIGHT BG)
   -------------------------------------------------------------------------- */
#proyectos {
  padding: 100px 0;
}

.transform-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 42px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.transform-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.transform-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F5FF 100%);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.18);
  padding-top: 54px;
}

.featured-badge {
  position: absolute;
  top: 18px;
  right: 24px;
  background: var(--grad-primary);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  z-index: 2;
}

.transform-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.transform-card-desc {
  color: var(--text-muted-dark);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
  min-height: 48px;
}

.transform-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.transform-list li {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.transform-list li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. CONFIANZA / POR QUÉ TRABAJAR CON KEEYCODE (DARK BG)
   -------------------------------------------------------------------------- */
.why-us-card {
  background: var(--bg-dark-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.why-us-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: var(--bg-dark-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

.why-us-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.why-us-card:hover .why-us-icon {
  background: var(--cyan);
  color: #0D1026;
  transform: scale(1.05);
}

.why-us-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.why-us-desc {
  color: var(--text-muted-light);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. CONTACT SECTION
   -------------------------------------------------------------------------- */
#contacto {
  padding: 100px 0 140px;
}

.contact-card-wrapper {
  background: linear-gradient(135deg, #131738 0%, #0D1026 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.contact-card-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: var(--purple);
  opacity: 0.15;
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

.form-label-custom {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 500;
  color: #D1D5DB;
  margin-bottom: 8px;
  display: block;
}

.form-control, .form-select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25) !important;
  outline: none;
}

.form-control::placeholder {
  color: rgba(156, 163, 175, 0.6) !important;
}

.form-control.input-error,
.form-select.input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

.form-control.input-success,
.form-select.input-success {
  border-color: #22C55E !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2) !important;
}

/* Custom Select Dropdown Styling */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2360A5FA' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.2rem center !important;
  background-size: 16px 12px !important;
  padding-right: 3rem;
}

.form-select option {
  background-color: #131738;
  color: #FFFFFF;
  padding: 10px;
}

/* --------------------------------------------------------------------------
   12. CUSTOM ALERT MODAL
   -------------------------------------------------------------------------- */
.custom-alert {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: min(440px, calc(100% - 36px));
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: #131738;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
}

.custom-alert.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-alert-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #FFFFFF;
}

.custom-alert-content h6 {
  font-family: var(--font-heading);
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.custom-alert-content p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #9CA3AF;
}

.custom-alert-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #9CA3AF;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.custom-alert-close:hover {
  color: #FFFFFF;
}

.custom-alert.success { border-left-color: #22C55E; }
.custom-alert.success .custom-alert-icon { background: #22C55E; }
.custom-alert.error { border-left-color: #EF4444; }
.custom-alert.error .custom-alert-icon { background: #EF4444; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background: #07091A;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0 40px;
  color: var(--text-muted-light);
}

footer h5 {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}

footer a {
  color: #9CA3AF;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

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

.footer-social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   14. ANIMATIONS & REVEAL SYSTEM
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-55px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(55px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-flip {
  opacity: 0;
  transform: perspective(1000px) rotateX(25deg) translateY(50px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-blur {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(30px);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.reveal-bounce {
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active,
.reveal-flip.active,
.reveal-blur.active,
.reveal-bounce.active {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) translateX(0) scale(1) rotateX(0deg);
}

/* Stagger Delays for Grid Children */
.stagger-delay-1 { transition-delay: 0.08s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.32s; }
.stagger-delay-4 { transition-delay: 0.44s; }
.stagger-delay-5 { transition-delay: 0.56s; }

/* Interactive Hover Sheen on Cards */
.solution-card,
.transform-card,
.why-us-card,
.ceo-card,
.contact-card-wrapper {
  position: relative;
  overflow: hidden;
}

.solution-card::after,
.transform-card::after,
.why-us-card::after,
.ceo-card::after,
.contact-card-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.solution-card:hover::after,
.transform-card:hover::after,
.why-us-card:hover::after,
.ceo-card:hover::after,
.contact-card-wrapper:hover::after {
  left: 140%;
}

/* Ambient Floating & Pulse Keyframes */
@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
  0% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.24; transform: scale(1.1); }
  100% { opacity: 0.12; transform: scale(1); }
}

.hero::before {
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero::after {
  animation: pulseGlow 10s ease-in-out infinite reverse;
}

.code-mock-card {
  animation: floatSlow 6s ease-in-out infinite;
}

/* Reduced Motion Override */
@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;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-flip, .reveal-blur, .reveal-bounce {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
