@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Paleta de colores premium */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1829;
  --bg-tertiary: #1a2235;
  --accent-primary: #3b82f6;
  --accent-secondary: #60a5fa;
  --accent-glow: #2563eb;
  --accent-cyan: #06b6d4;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(59, 130, 246, 0.1);
  --border-medium: rgba(59, 130, 246, 0.2);
  --border-strong: rgba(59, 130, 246, 0.4);
  --card-bg: rgba(15, 24, 41, 0.6);
  --card-hover: rgba(26, 34, 53, 0.8);
  --glow-soft: rgba(59, 130, 246, 0.15);
  --glow-medium: rgba(59, 130, 246, 0.25);
}

/* Reset y Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: #060a12;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background: transparent;
}

/* Capa 1: Imagen de Fondo Global (fondo2.png) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: #000;
  /* Capa de oscurecimiento central: laterales transparentes, centro negro puro */
  background-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 22%, rgba(0, 0, 0, 1) 68%, transparent 100%),
    url('/Assets/body_pattern.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center bottom;
  z-index: -10;
  pointer-events: none;
}

/* Capa 2: Gradiente de profundidad y legibilidad central (Oscurecimiento PRO) */
/* Capa 2: Columna de legibilidad central (Equilibrio PRO) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  /* Glassmorph Pro: Desenfoque mayor y más definido */
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);

  z-index: -8;
  pointer-events: none;

  /* Sombra interna y borde de cristal premium */

}

/* Navbar Premium */
@keyframes navScanner {
  0% {
    background-position: -100% center;
  }

  100% {
    background-position: 200% center;
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  backdrop-filter: blur(14px) saturate(200%) hue-rotate(8deg);
  -webkit-backdrop-filter: blur(14px) saturate(200%) hue-rotate(8deg);
  background:
    linear-gradient(180deg,
      rgba(4, 6, 20, 0.82) 0%,
      rgba(8, 6, 28, 0.68) 100%),
    url('/Assets/fondoHeader.png') center/cover no-repeat;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(120, 80, 255, 0.12),
    inset 0 -1px 0 rgba(80, 180, 255, 0.08);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 40px;
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navPsycho {
  0% {
    background-position: 0% 50%;
    opacity: 0.18;
  }

  25% {
    background-position: 50% 0%;
    opacity: 0.22;
  }

  50% {
    background-position: 100% 50%;
    opacity: 0.16;
  }

  75% {
    background-position: 50% 100%;
    opacity: 0.20;
  }

  100% {
    background-position: 0% 50%;
    opacity: 0.18;
  }
}

@keyframes navChroma {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Capa psicodélica: gradiente nebulosa animada */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 20% 50%,
      rgba(99, 30, 255, 0.22) 0%,
      rgba(30, 100, 255, 0.12) 35%,
      transparent 65%),
    radial-gradient(ellipse 60% 100% at 80% 50%,
      rgba(236, 72, 153, 0.16) 0%,
      rgba(99, 30, 255, 0.10) 40%,
      transparent 65%);
  background-size: 200% 200%;
  animation: navPsycho 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Línea inferior: base fija + scanner animado encima */
.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      transparent 30%,
      rgba(139, 92, 246, 0.35) 50%,
      transparent 70%,
      transparent 100%);
  background-size: 50% 100%;
  animation: navScanner 9s ease-in-out infinite;
  box-shadow: none;
}


@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.brand-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  justify-content: center;
  gap: 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  line-height: 1;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-text {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -1.2px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--glow-soft);
  line-height: 1.2;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-secondary);
  }
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px var(--glow-soft));
  transition: filter 0.3s ease;
}

.logo-img:hover {
  filter: drop-shadow(0 0 20px var(--glow-medium));
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu a {
  margin: 0 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.menu a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.menu a:hover::before {
  opacity: 0.1;
}

@media (min-width: 993px) {
  .menu {
    margin-left: auto;
    margin-right: 30px;
    /* Space between menu and header-right */
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 0;
  order: 3;
  position: relative;
  z-index: 2;
  /* Ensure it's last */
}

.lang-selector-header {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
}

.lang-selector-header a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.lang-selector-header a.active {
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.lang-selector-header .sep {
  color: var(--text-muted);
  opacity: 0.2;
  font-weight: 300;
  margin: 0 2px;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 10001;
  gap: 6px;
  transition: all 0.3s ease;
}

.menu-toggle .bar {
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Typography & Better Layout */
.hero-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(24px, 5vw, 34px) !important;
  line-height: 1.2;
  margin-top: 26px;
  /* Más aire arriba */
  font-weight: 800;
  letter-spacing: -2px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
  /* Más pegado */

  /* Un poco más de desahogo */
}

.hero-subtitle-new {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(18px, 2.5vw, 20px);
  font-weight: 600;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0;
  margin-bottom: 20px;
  /* Reducido de 30px */
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: clamp(14px, 1.6vw, 16px) !important;
  max-width: 800px;
  margin: 0px auto !important;
  /* Ajustado para que se note pero no sea excesivo, y centrado */
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.5px;
  display: block;
  text-align: center;
}

.hero-description strong {
  color: rgba(255, 255, 255, 0.7);
  /* Rebajado un poco más el blanco */
  font-weight: 700;
  padding-bottom: 4px;
  position: relative;
  display: inline-block;
}

/* Efecto elegante: un brillo que recorre la línea plateada */
.hero-description strong::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg,
      rgba(113, 113, 122, 0.2) 0%,
      rgba(228, 228, 231, 0.9) 50%,
      rgba(113, 113, 122, 0.2) 100%);
  background-size: 200% 100%;
  animation: shimmerLine 6s infinite ease-in-out;
}

@keyframes shimmerLine {
  0% {
    background-position: 200% 0;
  }

  30% {
    background-position: -200% 0;
  }

  /* El brillo pasa en el primer 30% del tiempo */
  100% {
    background-position: -200% 0;
  }

  /* El resto del tiempo se queda quieto (pausa) */
}

.hero-sectors {
  font-size: 0.85em;
  /* Un 15% más pequeño que la línea de arriba */
  opacity: 0.6;
  /* Un poco más discreto */
  letter-spacing: 0.5px;
  display: inline-block;
  margin-top: 5px;
}

.hero-description strong:hover {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.hero-meta {
  margin-top: 20px;
  /* Reducido de 40px */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 11px;
  color: #64748b;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.green {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.dot.purple {
  background: #8b5cf6;
  box-shadow: 0 0 10px #8b5cf6;
}

.dot.blue {
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
}

.cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  opacity: 1;
}

/* Specific button logo adjustments */
.btn-logo-img {
  height: 24px !important;
  /* Larger logo */
  margin-bottom: 4px;
}

.btn-subtext {
  display: block;
  font-size: 9px;
  opacity: 0.8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
}

.btn-back-content {
  text-align: center;
}

.btn-back-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
}

.btn-back-desc {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  font-weight: 400;
}

@media (min-width: 768px) {
  .btn-back-title {
    font-size: 15px;
  }

  .btn-back-desc {
    font-size: 11px;
  }
}

/* Hero Section Premium - Ultra Modern */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 55px 20px 20px;
  background: transparent;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    url('code-editor.svg'),
    url('network.svg');
  background-size:
    25% auto,
    30% auto;
  background-position:
    left 20px top 90px,
    right 20px top 90px;
  background-repeat: no-repeat;
  opacity: 0.25;
  filter: blur(0.5px);
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
}

/* Ajuste de SVGs para móvil */
@media (max-width: 576px) {
  .hero-overlay {
    background-size:
      60% auto,
      55% auto;
    background-position:
      left 10px top 60px,
      right 10px top 120px;
    opacity: 0.2;
  }
}

/* Decoración de fondo */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: none;
}

/* Efectos de luz animados */
.hero::before {
  display: none;
}

@keyframes heroGlow {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(30px, -30px) rotate(5deg);
  }
}

.hero::after {
  display: none;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  margin-top: -9px;
}

.hero-main {
  max-width: 900px;
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseIcon {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.anim-float {
  animation: floatIcon 3s ease-in-out infinite;
}

.anim-pulse {
  animation: pulseIcon 2s ease-in-out infinite;
}

.anim-spin {
  animation: spinSlow 8s linear infinite;
}

.pill {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 30px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-medium);
  color: var(--accent-secondary);
  font-family: 'JetBrains Mono', monospace;
  /* Added as requested */
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
  animation: float 3s ease-in-out infinite;
  margin-bottom: 15px;
  /* Reducido de 30px */
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes titleGlow {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2);
  }
}

@keyframes shine {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.tag {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
  margin: 16px 0;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

/* ============================================
   BOTONERA â€” Contenedor
   ============================================ */
.cta-lab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  max-width: 1300px;
  padding: 0;
}

/* Label "Demo Lab" con lÃ­neas decorativas */
.lab-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  letter-spacing: -0.5px;
  text-transform: none;
  font-weight: 800;
  color: #fff;
}

.lab-title::before,
.lab-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1e293b);
}

.lab-title::after {
  background: linear-gradient(90deg, #1e293b, transparent);
}

/* Subtítulo debajo pegado y modesto */
.lab-header {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.lab-subtitle {
  font-size: 14px;
  line-height: 1;
  color: #475569;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  margin-top: -6px;
}

/* ============================================
   BOTONERA â€” Grid
   ============================================ */
.btns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

/* ---- AnimaciÃ³n de entrada ---- */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Barrido de luz (sweep shine) individual por botÃ³n ---- */
@keyframes sweepShine {
  0% {
    left: -80%;
  }

  18%,
  100% {
    left: 160%;
  }
}

.banner-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
  z-index: 3;
  pointer-events: none;
  animation: sweepShine 18s ease-in-out infinite;
}

.banner-btn:nth-child(1)::after {
  animation-delay: 0s;
}

.banner-btn:nth-child(2)::after {
  animation-delay: 2.75s;
}

.banner-btn:nth-child(3)::after {
  animation-delay: 4.5s;
}

.banner-btn:nth-child(4)::after {
  animation-delay: 8.25s;
}

/* ---- BotÃ³n base ---- */
.banner-btn {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  height: 115px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  background: #060c1a;
  cursor: pointer;
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.banner-btn:nth-child(1) {
  animation-delay: 0.05s;
}

.banner-btn:nth-child(2) {
  animation-delay: 0.15s;
}

.banner-btn:nth-child(3) {
  animation-delay: 0.25s;
}

.banner-btn:nth-child(4) {
  animation-delay: 0.35s;
}

/* ---- Imagen de fondo ---- */
.banner-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: brightness(0.45) saturate(0.85);
}

/* ---- Overlay degradado ---- */
.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(160deg,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 35%,
      rgba(2, 6, 23, 0.88) 100%);
  z-index: 2;
}

/* ---- Fila superior: nÃºmero + badge ---- */
.btn-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.btn-num {
  font-size: 10px;
  font-weight: 800;
  color: rgba(97, 99, 109, 0.5);
  letter-spacing: 2px;
}

.btn-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

/* Colores individuales por botÃ³n */
.banner-btn:nth-child(1) .btn-tag {
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.banner-btn:nth-child(2) .btn-tag {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.banner-btn:nth-child(3) .btn-tag {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.banner-btn:nth-child(4) .btn-tag {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ---- Fila inferior: texto + flecha ---- */
.btn-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.btn-text {
  flex: 1;
  min-width: 0;
}

.btn-title {
  font-size: 15px;
  font-weight: 800;
  color: #e2e8f0;
  display: block;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  transition: color 0.3s ease;
}

.btn-subtitle {
  font-size: 11px;
  color: #cbd5e1;
  display: block;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Flecha (aparece en hover) ---- */
.btn-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(-10px);
  opacity: 0;
}

/* ============================================
   HOVER
   ============================================ */
.banner-btn:hover {
  transform: translateY(-6px);
  z-index: 10;
}

.banner-btn:nth-child(1):hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 20px 40px -12px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.banner-btn:nth-child(2):hover {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 20px 40px -12px rgba(34, 197, 94, 0.25), 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.banner-btn:nth-child(3):hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 20px 40px -12px rgba(6, 182, 212, 0.25), 0 0 0 1px rgba(6, 182, 212, 0.08);
}

.banner-btn:nth-child(4):hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 40px -12px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.banner-btn:hover img {
  transform: scale(1.08);
  filter: brightness(0.65) saturate(1.25);
}

.banner-btn:hover .btn-title {
  color: #ffffff;
}

.banner-btn:hover .btn-subtitle {
  color: #e2e8f0;
}

.banner-btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

.banner-btn:nth-child(1):hover .btn-arrow {
  color: #a78bfa;
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.1);
}

.banner-btn:nth-child(2):hover .btn-arrow {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.banner-btn:nth-child(3):hover .btn-arrow {
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.08);
}

.banner-btn:nth-child(4):hover .btn-arrow {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.banner-btn:active {
  transform: translateY(-2px) scale(0.98);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {}

@media (max-width: 600px) {






  .btns-grid {
    grid-template-columns: 1fr;
  }

  .banner-btn {
    height: 95px;
  }

  .section-lab {
    padding: 48px 16px;
  }
}

/* Botones Premium */
.btn {
  padding: 10px 22px;
  text-align: center;
  border-radius: 14px;
  /* Glassmorph Pro Button */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.btn:hover::before {
  opacity: 1;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
  border: none;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
}

.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn.primary:hover::after {
  opacity: 1;
}

.meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Secciones y Cards Premium */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }
}

.features {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  /* Glassmorph Pro Card */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInScale 0.8s ease-out backwards;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-soft), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(59, 130, 246, 0.15);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.muted {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Sección de Contacto */
/* Contact Minimal & Pro */
.contact-minimal {
  padding: 30px 20px 10px;
  display: flex;
  justify-content: center;
}

.contact-compact-card {
  width: 100%;
  max-width: 950px;
  background: rgba(15, 24, 41, 0.4);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  overflow: hidden;
  position: relative;
}

.contact-visual {
  flex: 1;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* El símbolo '@' gigante que desborda */
.contact-visual .big-at {
  font-size: 360px;
  /* Reducido un 20% de 450px */
  font-weight: 900;
  color: #fff;
  opacity: 0.12;
  /* Un pelín más sutil al ser tan grande */
  font-family: 'Inter', sans-serif;
  user-select: none;
  position: absolute;
  left: -10%;
  /* Ajustado ante el nuevo tamaño */
  filter: drop-shadow(15px 15px 30px rgba(0, 0, 0, 0.5));
  transform: rotate(-15deg);
  animation: floatAt 8s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes floatAt {

  0%,
  100% {
    transform: rotate(-15deg) translateY(0) translateX(0);
  }

  50% {
    transform: rotate(-10deg) translateY(-20px) translateX(10px);
  }
}

.contact-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, rgba(15, 24, 41, 0.7) 100%);
  z-index: 1;
}

.contact-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.1) 0%, transparent 40%);
  animation: rotateMesh 20s infinite linear;
}

@keyframes rotateMesh {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.visual-content-mini {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-form-side {
  flex: 2.33;
  /* Ahora ocupa aproximadamente el 70% (7/3) */
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.01);
}

@media (max-width: 850px) {
  .contact-compact-card {
    flex-direction: column;
    max-width: 600px;
  }

  .contact-visual {
    height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .contact-visual .big-at {
    font-size: 150px;
  }

  .contact-form-side {
    padding: 30px;
  }
}

.contact-header-mini {
  text-align: left;
  /* Alineado a la izquierda en el split */
  margin-bottom: 35px;
}

@media (max-width: 768px) {
  .contact-header-mini {
    text-align: center;
  }
}

.pill-sm {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  display: inline-block;
}

.contact-header-mini h3 {
  font-size: 24px;
  margin: 15px 0 10px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.email-link-mini {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.email-link-mini:hover {
  color: var(--accent-secondary);
}

.form-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .grid-mini {
    grid-template-columns: 1fr;
  }
}

.form-compact input,
.form-compact textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
}

.form-compact input:focus,
.form-compact textarea:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.form-compact textarea {
  min-height: 100px;
  resize: none;
}

.btn-sm-glow {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  padding: 12px 32px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 0 0 rgba(59, 130, 246, 0);
}

/* Efecto de barrido de luz al pasar el ratón */
.btn-sm-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

.btn-sm-glow:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4),
    inset 0 0 10px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.btn-sm-glow:hover::before {
  left: 100%;
}

.btn-sm-glow:active {
  transform: translateY(0) scale(0.98);
}

/* Footer Premium */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
}

.footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.footer-slogan {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  margin-bottom: 8px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

/* Logos */
.logo-loterreno {
  filter: brightness(2.2) contrast(1.2);
  transition: all 0.3s ease;
}

.logo-loterreno:hover {
  filter: brightness(2.5) contrast(1.3);
  transform: scale(1.05);
}

.logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logos a {
  transition: transform 0.3s ease;
  position: relative;
}

.logos a:hover {
  transform: scale(1.05);
}

/* Tooltips Premium para Logos */
.logos a[data-tooltip] {
  position: relative;
}

.logos a[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  z-index: 1001;
  letter-spacing: 0.3px;
}

.logos a[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--accent-primary);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.logos a[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.logos a[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Links */
a {
  color: var(--accent-secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-primary);
}

/* Responsive ajustes Premium */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none !important;
  }

  .menu a {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
  }

  .menu .logos {
    display: none;
  }

  .hero {
    padding-top: 90px;
  }
}

@media (max-width: 1100px) {
  .brand-text {
    font-size: 22px;
  }

  .hero-title {
    font-size: clamp(22px, 7vw, 32px) !important;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
  }

  .hero-subtitle-new {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 24px;
    display: block;
    width: 100%;
    text-align: center;
  }

  .cta {
    padding: 0;
    gap: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    margin: 20px auto 0;
  }

  .btn {
    width: auto;
    flex: 1 1 calc(50% - 15px);
    /* 2 per row */
    min-width: 160px;
    padding: 8px 10px;
    font-size: 14px;
    justify-content: center;
  }

  .btn-rotate {
    width: auto;
    flex: 1 1 calc(50% - 15px);
    /* 2 per row */
    min-width: 160px;
    height: 50px;
  }
}

@media (max-width: 640px) {

  .btn,
  .btn-rotate {
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
    padding: 10px 6px;
    font-size: 13px;
  }

  .cta {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-meta {
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    margin-top: 16px;
  }

  .hero-description {
    display: none;
  }

  .hero {
    padding-top: 80px;
    /* Even less on XS */
  }

  .slider-tech {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .slider-track {
    gap: 20px;
  }

  .slide-item {
    min-width: 180px;
    height: 140px;
  }
}

/* Mensajes de formulario */
.msg {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
  animation: fadeIn 0.4s ease-out;
  backdrop-filter: blur(10px);
}

.msg.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.msg.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slider Infinito (Tech Carousel) */
/* Slider Infinito Premium (Cards Style) */
.slider-tech {
  margin-top: 10px;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  /* Espacio extra para sombras y hover */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.slider-track {
  display: flex;
  gap: 40px;
  /* Separación más generosa */
  width: max-content;
  animation: scroll 40s linear infinite;
}

/* Card Style */
.slide-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 240px;
  height: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  overflow: hidden;
}

/* Animación Inversa para el 2º Carrusel */
.slider-reverse .slider-track {
  animation-direction: reverse;
}

/* Efecto Hover */
.slide-item:hover {
  opacity: 1;
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow:
    0 15px 30px -5px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(139, 92, 246, 0.15);
  z-index: 10;
}

/* Glow interno */
.slide-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide-item:hover::before {
  opacity: 1;
}

.slide-item svg {
  width: 70px;
  /* SVG más pequeño */
  height: 70px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
  transition: transform 0.5s ease;
  z-index: 2;
  opacity: 0.9;
}

.slide-item:hover svg {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.6));
  opacity: 1;
}

.slide-item span {
  font-size: 14px;
  /* Texto más pequeño */
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 2;
}

/* Glow interno decorativo */
.slide-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide-item:hover::before {
  opacity: 1;
}

.slide-item svg {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.05));
  transition: transform 0.5s ease, filter 0.3s ease;
  z-index: 2;
}

.slide-item:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.5));
}

.slide-item span {
  font-size: 18px;
  font-family: 'JetBrains Mono', monospace;
  color: #e2e8f0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% / 2));
  }
}

/* Ajustes Responsive */
@media (max-width: 768px) {
  .slide-item {
    min-width: 200px;
    height: 240px;
  }

  .slide-item svg {
    width: 70px;
    height: 70px;
  }
}

/* Animaciones SVG Dinámicas */
.anim-pulse {
  animation: svgPulse 3s infinite ease-in-out;
  transform-origin: center;
}

.anim-spin {
  animation: svgSpin 10s linear infinite;
  transform-origin: center;
}

.anim-float {
  animation: svgFloat 4s ease-in-out infinite;
}

.anim-path {
  stroke-dasharray: 20;
  animation: svgDash 2s linear infinite;
}

@keyframes svgPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes svgSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes svgFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes svgDash {
  to {
    stroke-dashoffset: -40;
  }
}

/* Hero Title Boost - Elegant Shimmer */


@keyframes shine {
  from {
    background-position: 200% center;
  }

  to {
    background-position: -200% center;
  }
}

/* ESTILO GHOST (Segundo Carrusel - Solo SVGs) */
.slider-ghost .slide-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  min-width: 180px;
  height: 180px;
  opacity: 0.4;
}

.slider-ghost .slide-item:hover {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.8));
  background: transparent !important;
  box-shadow: none !important;
}

.slider-ghost .slide-item svg {
  width: 80px;
  height: 80px;
}


@keyframes reveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

  100% {
    opacity: 0.7;
    transform: translateY(0) scale(1);
  }
}


@keyframes brain-grow {
  0% {
    transform: scale(0.5);
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.8));
  }
}

/* Botón Volver Arriba - Tech Tactical Edition */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 70px;
  height: 70px;
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent-secondary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.8);
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.7),
    inset 0 0 15px rgba(59, 130, 246, 0.1);
  padding: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btt-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btt-progress {
  position: absolute;
  top: 5px;
  left: 5px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.btt-progress-bg {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 3.5;
}

.btt-progress-bar {
  stroke: var(--accent-secondary);
  stroke-width: 3.5;
  stroke-dasharray: 175.9;
  stroke-dashoffset: 175.9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.btt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.btt-icon svg {
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.back-to-top:hover {
  background: #0a0e1a;
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(59, 130, 246, 0.4);
  transform: translateY(-8px) scale(1.1);
}

.back-to-top:hover .btt-progress-bar {
  stroke: #fff;
}

.back-to-top:hover .btt-icon svg {
  transform: translateY(-5px);
  color: #fff;
  filter: drop-shadow(0 0 15px var(--accent-glow));
}

.back-to-top:active {
  transform: scale(0.95) translateY(-4px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Hangar IA Section Styles */
.hangar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.hangar-content {
  flex: 1;
  min-width: 300px;
}

.hangar-logo {
  height: 50px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
  max-width: 100%;
  object-fit: contain;
}

.hangar-cta {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 20px;
}

.hangar-visual {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.visual-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
}

.visual-item {
  background: rgba(139, 92, 246, 0.1);
  padding: 15px;
  border-radius: 8px;
  color: #d8b4fe;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visual-item strong {
  color: #fff;
  font-size: 14px;
}

/* Hangar IA Responsive */
@media (max-width: 768px) {
  .hangar-grid {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .hangar-card {
    padding: 24px !important;
    text-align: center !important;
  }

  .hangar-grid {
    flex-direction: column;
    gap: 24px;
  }

  .hangar-content,
  .hangar-visual {
    width: 100%;
    min-width: 100%;
  }

  .hangar-logo {
    height: 48px;
    margin: 0 auto 20px;
    display: block;
  }

  .hangar-cta {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hangar-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .visual-container {
    padding: 16px;
  }

  .visual-grid {
    gap: 8px;
  }
}

/* Brand Group Container handled above around line 115 */

/* SinergiData Slogan Styles */
.brand-slogan {
  margin-left: 0;
  margin-top: 2px;
  /* Un poco mas de aire */
  padding-left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  /* Un poco mas pequeño para el contraste */
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(148, 163, 184, 0.8);
  /* Rebajado para destacar el nombre principal */
  white-space: nowrap;
  padding-top: 4px;
  /* Slight visual alignment */

  /* Typewriter Effect */
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid var(--accent-secondary);
  width: 0;
  animation:
    typing 2.2s steps(28, end) forwards,
    blink-caret 0.75s step-end infinite;
  animation-delay: 1.2s, 0.2s;
  /* Typing waits 1.2s, Cursor starts blinking at 0.2s */
}

/* Cursor blinking animation */
@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-secondary)
  }
}

/* Typing animation */
@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 29ch;
  }
}

@media (max-width: 640px) {
  .brand-slogan {
    font-size: 11px;
    margin-left: 8px;
    padding-left: 8px;
    letter-spacing: 0px;
  }
}

/* === AJUSTES PANTALLAS XS (Móviles pequeños) === */
@media (max-width: 480px) {
  .hero {
    padding-top: 88px !important;
    /* Menguamos un pelín más */
  }

  .pill {
    font-size: 10px !important;
    padding: 6px 12px !important;
    margin-bottom: 18px !important;
    /* Desahogo extra */
  }

  .hero-title {
    margin-top: 15px !important;
    /* Desahogo respecto arriba */
    font-size: 24px !important;
    letter-spacing: -1.2px !important;
    line-height: 1.1 !important;
    margin-bottom: 10px !important;
    /* Más pegado al subtítulo */
  }

  .hero-subtitle-new {
    font-size: 15px !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    /* Espacio para la pill que viene luego */
  }

  .hero-description {
    font-size: 13px !important;
    padding: 0 !important;
    margin-top: 25px !important;
    /* Aire arriba */
    margin-bottom: 15px !important;
    /* Más pegado abajo */
    display: block !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
  }

  .cta-lab {
    margin-top: 10px !important;
    padding: 12px 15px !important;
    gap: 10px !important;
    border-radius: 16px !important;
  }

  .lab-title {
    margin-bottom: 12px !important;
    letter-spacing: 2px !important;
    font-size: 9px !important;
  }

  .btn-rotate {
    height: 44px !important;
    min-width: 100% !important;
  }

  .btn-rotate-face {
    padding: 5px 10px !important;
  }

  .btn-logo-img {
    height: 30px !important;
    width: auto !important;
    max-width: 80% !important;
  }

  .btn-subtext {
    display: none;
  }

  .slider-tech {
    margin-top: 15px !important;
    padding: 5px 0 !important;
  }

  .slide-item {
    min-width: 120px !important;
    height: 100px !important;
    padding: 12px !important;
    gap: 6px !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
  }

  .slide-item svg {
    width: 44px !important;
    height: 44px !important;
  }

  .slide-item span {
    font-size: 10px !important;
    white-space: nowrap;
  }

  .back-to-top {
    width: 60px !important;
    height: 60px !important;
    bottom: 20px !important;
    right: 15px !important;
  }

  .btt-progress {
    top: 0 !important;
    left: 0 !important;
    width: 60px !important;
    height: 60px !important;
  }

  .btt-progress-bg {
    display: none !important;
    /* Eliminamos el fondo gris para que no haga doble círculo */
  }

  .btt-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
}

/* === COMPACT HEADER FOR XS === */
@media (max-width: 480px) {
  .brand-text {
    font-size: 26px !important;
    letter-spacing: -1px !important;
  }

  .brand-slogan {
    font-size: 12px !important;
    margin-top: 1px !important;
    letter-spacing: -0.2px !important;
    border-right-width: 1.5px !important;
  }

  .header-right {
    gap: 12px !important;
  }

  .lang-selector-header a {
    padding: 4px 6px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
  }

  .lang-selector-header .sep {
    margin: 0 !important;
    opacity: 0.1 !important;
  }

  .menu-toggle {
    width: 36px !important;
    height: 36px !important;
    gap: 4px !important;
  }

  .menu-toggle .bar {
    width: 24px !important;
    height: 2px !important;
  }
}

/* Contact Section Minimal Styles */
.contact-minimal {
  padding: 40px 20px 40px;
}

.contact-compact-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 24, 41, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-visual {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 15px;
}

.big-at {
  font-size: 320px;
  font-weight: 900;
  color: rgba(59, 130, 246, 0.12);
  line-height: 1;
  user-select: none;
  font-family: 'Inter', sans-serif;
  transform: translateY(0);
}

.contact-form-side {
  padding: 50px 40px;
}

.contact-header-mini {
  margin-bottom: 30px;
}

.pill-sm {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-header-mini h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.email-link-mini {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.email-link-mini:hover {
  color: var(--accent-secondary);
}

.form-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-compact input,
.form-compact textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

/* Fix for Chrome/Edge Autofill "White/Blue" background */
.form-compact input:-webkit-autofill,
.form-compact input:-webkit-autofill:hover,
.form-compact input:-webkit-autofill:focus,
.form-compact input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0a0e1a inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-compact input:focus,
.form-compact textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-compact textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-sm-glow {
  padding: 12px 32px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.btn-sm-glow::before {
  content: '[';
  color: var(--accent-primary);
  margin-right: 2px;
}

.btn-sm-glow::after {
  content: ']';
  color: var(--accent-primary);
  margin-left: 2px;
}

/* Scanner line effect */
.btn-sm-glow .scanner {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(59, 130, 246, 0.2),
      transparent);
  transition: none;
}

.btn-sm-glow:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow:
    0 0 25px rgba(59, 130, 246, 0.3),
    inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.btn-sm-glow:hover .scanner {
  animation: scan 1.5s infinite linear;
}

@keyframes scan {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@media (max-width: 768px) {
  .contact-compact-card {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    min-height: 180px;
    padding: 20px;
  }

  .big-at {
    font-size: 300px;
  }
}

@media (max-width: 640px) {
  .grid-mini {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    min-height: 120px;
    padding: 15px;
  }

  .big-at {
    font-size: 220px;
  }
}

@media (max-width: 480px) {
  .contact-visual {
    display: flex !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding: 10px !important;
  }

  .big-at {
    font-size: 150px !important;
  }

  .contact-form-side {
    padding: 24px 20px !important;
  }

  .contact-header-mini {
    margin-bottom: 20px !important;
  }

  .contact-header-mini h3 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 0 !important;
  }

  .email-link-mini {
    font-size: 11px !important;
    opacity: 0.8;
  }
}

/* Hero Experience Block - Technical Edition */
.hero-experience-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 15px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  /* Animación de entrada */
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Technical Contact Button - Developer Style */
.btn-contact-tech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  color: var(--accent-secondary);
  text-decoration: none;
  border: 1.5px solid var(--accent-primary);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.2),
    inset 0 0 10px rgba(59, 130, 246, 0.05);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.btn-tech-bracket {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 14px;
}

.btn-tech-text {
  text-transform: uppercase;
}

.btn-tech-cursor {
  color: var(--accent-secondary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.btn-contact-tech svg {
  transition: transform 0.3s ease;
}

.btn-contact-tech:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--accent-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 25px rgba(59, 130, 246, 0.5),
    0 0 50px rgba(59, 130, 246, 0.1),
    inset 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn-contact-tech:hover .btn-tech-bracket {
  color: #fff;
}

.btn-contact-tech:hover svg {
  transform: scale(1.1);
}

.hero-experience-block .hero-description {
  flex: 1;
  text-align: center;
}

/* Chart SVG - Growth Animation */
.hero-chart-svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.chart-dot {
  animation: chartPulse 2s ease-in-out infinite;
}

.chart-dot:nth-child(1) {
  animation-delay: 0s;
}

.chart-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chart-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.chart-dot:nth-child(4) {
  animation-delay: 0.6s;
}

.chart-dot:nth-child(5) {
  animation-delay: 0.8s;
}

.chart-dot-pulse {
  animation: chartPulseBig 1.5s ease-in-out infinite;
}

@keyframes chartPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes chartPulseBig {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

@media (max-width: 768px) {
  .hero-experience-block {
    flex-direction: column;
    gap: 5px;
  }

  .hero-chart-svg {
    width: 80px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .hero-experience-block {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 30px;
    padding: 0 10px;
  }

  .btn-contact-tech {
    order: 1;
    font-size: 9px;
    padding: 6px 12px;
  }

  .hero-chart-svg {
    order: 2 !important;
    display: block !important;
    width: 60px !important;
    height: auto !important;
  }

  .hero-experience-block .hero-description {
    order: 3;
    flex: 0 0 100% !important;
    /* Forzamos que ocupe toda la fila de abajo */
    width: 100% !important;
    margin: 5px 0 0 !important;
    text-align: center;
  }
}

@media (min-width: 1200px) {
  .hero-overlay {
    background-size:
      40% auto,
      35% auto;
    background-position:
      left 0 top 10%,
      right 20px top 90px;
  }
}

/* =========================================
   CONTACTO MINIMAL (Moderno y Compacto)
   ========================================= */
.contact-minimal {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.contact-compact-card {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 24px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

/* Lado Visual (Izquierda) */
.contact-visual {
  width: 35%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.big-at {
  font-size: 180px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  font-family: 'JetBrains Mono', monospace;
  user-select: none;
}

/* Lado Formulario (Derecha) */
.contact-form-side {
  width: 65%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-header-mini h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.email-link-mini {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link-mini:hover {
  color: var(--accent-primary);
}

.form-compact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-compact input,
.form-compact textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-compact input:focus,
.form-compact textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
}

.form-compact textarea {
  min-height: 100px;
  resize: vertical;
}

/* Botón con efecto Scanner */
.btn-sm-glow {
  position: relative;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.btn-sm-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.scanner {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s;
}

.btn-sm-glow:hover .scanner {
  animation: scan 1s infinite linear;
}

@keyframes scan {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Responsive Mobile & Tablets (iPad) */
@media (max-width: 1024px) {
  .contact-compact-card {
    flex-direction: column;
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
  }

  .contact-visual {
    width: 100%;
    height: 80px;
    /* Reducir altura visual */
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .big-at {
    font-size: 60px;
    /* Reducir tamaño @ */
    line-height: 1;
  }

  .contact-form-side {
    width: 100%;
    padding: 20px;
  }

  .grid-mini {
    grid-template-columns: 1fr;
    /* Stack inputs */
    gap: 12px;
  }

  .contact-header-mini {
    text-align: center;
  }

  .contact-header-mini>div {
    justify-content: center !important;
  }

  /* Footer Fix */
  .sep-desktop {
    display: none;
  }

  .sep-mobile {
    display: inline !important;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 9px 16px;
  }

  .wrap {
    padding: 0 10px;
  }

  .hero {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* =============================================
   SECTION INTRO BLOCKS (replaces inline styles)
   ============================================= */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 20px 0;
  font-weight: 800;
  letter-spacing: -1px;
}

.section-desc {
  max-width: 800px;
  margin: 0 auto;
}

/* IA Tags */
.ia-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  #ia .card.wide {
    padding: 40px 24px;
  }

  #ia .card.wide>div:first-child {
    display: none;
  }
}

/* Why section grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  text-align: left;
  margin-top: 40px;
}

.why-grid h3 {
  margin-bottom: 12px;
}

/* Footer bottom */
.footer-bottom {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom-bar {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  margin-bottom: 6px;
}

.footer-bottom-bar p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.footer-bottom-bar .accent {
  color: var(--accent-primary);
  font-weight: 800;
}

.footer-bottom-copy {
  opacity: 0.7;
  font-size: 10px;
  margin: 0;
}

/* ============================================
   MOBILE OVERLAY MENU
   ============================================ */
#mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(4, 6, 20, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 99999;
}

#mobile-overlay.active {
  display: flex;
}

#mobile-overlay a {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 40px;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.3px;
}

#mobile-overlay a:last-child {
  border-bottom: none;
}

#mobile-overlay a:active {
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 993px) {
  #mobile-overlay {
    display: none !important;
  }
}