@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: #060a12;
  background-image:
    linear-gradient(rgba(6, 10, 18, 0.4), rgba(6, 10, 18, 0.4)),
    url('fondo1.png');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  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;
  background: linear-gradient(to right,
      rgba(6, 10, 18, 0.4) 0%,
      rgba(6, 10, 18, 0.85) 35%,
      rgba(6, 10, 18, 0.85) 65%,
      rgba(6, 10, 18, 0.4) 100%);
  z-index: -9;
  pointer-events: none;
}

/* Navbar Premium */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 14, 26, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px 20px 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.6s ease-out;
}

@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;
  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;
  /* Narrower */
  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;
}

.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;
  /* 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: 18px !important;
  margin-bottom: 2px;
}

.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;
}

/* Hero Section Premium - Ultra Modern */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 60px;
  background: transparent;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

/* Decoración de fondo */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, transparent 20%, black 100%);
}

/* Efectos de luz animados */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 800px 600px at 60% 40%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(ellipse 600px 400px at 30% 60%, rgba(6, 182, 212, 0.1), transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes heroGlow {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(30px, -30px) rotate(5deg);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 70% 30%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(800px 400px at 30% 70%, rgba(99, 102, 241, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
  animation: pulseGlow 8s ease-in-out infinite;
}

@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;
}

.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;
}

.cta-lab {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 30px;
  background: rgba(59, 130, 246, 0.05);
  /* Sutil tinte azul */
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.1),
    inset 0 0 15px rgba(59, 130, 246, 0.05);
  position: relative;
  overflow: hidden;
}

.cta-lab::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseNeon 4s ease-in-out infinite;
}

@keyframes pulseNeon {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.lab-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  font-weight: 800;
  margin-top: 7px;
  margin-bottom: 14px;
  opacity: 0.8;
  width: 100%;
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rotating Button Effect */
.btn-rotate {
  perspective: 1000px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  height: 54px;
  min-width: 240px;
  cursor: pointer;
}

.btn-rotate-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  animation: rotateButton 10s infinite ease-in-out;
}

.btn-rotate:hover .btn-rotate-inner {
  animation-play-state: paused;
}

.btn-rotate-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px) saturate(150%);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-rotate:hover .btn-rotate-face {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Variantes de color */
.face-loterreno-front {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.face-loterreno-front .btn-logo-img {
  filter: brightness(3) contrast(1.2);
}

.face-loterreno-back {
  background: rgba(21, 128, 61, 0.2);
  border-color: rgba(34, 197, 94, 0.3) !important;
  transform: rotateX(180deg);
}

.face-hangar-front {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3) !important;
}

.face-hangar-back {
  background: rgba(109, 40, 217, 0.2);
  border-color: rgba(139, 92, 246, 0.3) !important;
  transform: rotateX(180deg);
}

.face-tetris-front {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.face-tetris-back {
  background: rgba(180, 83, 9, 0.2);
  border-color: rgba(245, 158, 11, 0.3) !important;
  transform: rotateX(180deg);
}

@keyframes rotateButton {

  0%,
  40% {
    transform: rotateX(0);
  }

  50%,
  90% {
    transform: rotateX(180deg);
  }

  100% {
    transform: rotateX(360deg);
  }
}

/* Botones Premium */
.btn {
  padding: 8px 16px;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-medium);
  background: var(--card-bg);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.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: 80px auto;
  padding: 0 32px;
}

.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 {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  overflow: hidden;
  animation: fadeInScale 0.6s ease-out backwards;
}

.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 {
  margin-top: 10px !important;
  padding: 5px 0 5px !important;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 26, 0.7) !important;
  /* Slightly darker */
  backdrop-filter: blur(10px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 20px;
  margin-bottom: 25px;
}

@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: 12px;
}

.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: 15px;
  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: 20px;
  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) {
  .nav {
    padding: 12px 24px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(6, 10, 18, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 80px 40px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
  }

  .menu.active {
    right: 0;
  }

  .menu a {
    font-size: 20px;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .menu .logos {
    display: none;
  }

  .nav {
    padding: 12px 20px;
  }

  .hero {
    padding-top: 180px;
  }
}

@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) {
  .nav {
    padding: 12px 16px;
  }

  .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 */
.hero h1 {
  background: linear-gradient(to right,
      #3b82f6 0%,
      #a78bfa 40%,
      #ffffff 50%,
      #a78bfa 60%,
      #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 8s linear infinite;
  /* Un poco más lento para elegancia */
  text-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
}

@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 */
  overflow: hidden;
  border-right: 2px solid var(--accent-secondary);
  width: 0;
  animation:
    typing 2.5s steps(32, end) forwards,
    blink-caret 0.75s step-end 9 forwards;
  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: 32ch;
  }
}

@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: 100px !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;
  }

  .nav {
    padding: 12px 16px !important;
  }

  .header-right {
    gap: 12px !important;
  }

  .lang-selector-header {
    gap: 0 !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: 80px 20px;
}

.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.3);
  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;
}

.form-compact input:focus,
.form-compact textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.4);
  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 28px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-sm-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
  filter: brightness(1.1);
}

@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;
  }
}

/* Hero Experience Block - Technical Edition */
.hero-experience-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  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;
  }
}