/* --- CONFIGURACIÓN GENERAL DEL HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 85px;
  position: relative;
}

.hero-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* --- COLUMNA IZQUIERDA: TEXTOS --- */
.hero-text {
  position: relative;
  z-index: 10;
}

/* NÚCLEO DEL TÍTULO CON PARPADEO NEÓN */
.hero-title .static-core {
  font-weight: 700;
  color: var(--accent-neon, #00ff66);
  text-shadow: 0 0 20px rgba(0, 255, 102, 0.25);
  opacity: 1 !important;
  transform: none !important;
  display: inline-block;
  
  /* Animación de parpadeo estilo encendido electrónico */
  animation: neonFlicker 3s linear infinite;
}
/* --- MOTOR DEL PARPADEO ELÉCTRICO --- */
@keyframes neonFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.6), 0 0 30px rgba(0, 255, 102, 0.3);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.7; /* Baja la intensidad simulando un sutil falso contacto tecnológico */
  }
}

/* --- ENTRADAS ESCALONADAS ANIMADAS --- */

/* 1. El Badge superior aparece primero */
.tech-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-neon, #00ff66);
  background: rgba(0, 255, 102, 0.05);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0, 255, 102, 0.12);
  margin-bottom: 25px;
  opacity: 0;
  animation: visualFadeIn 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-main, #ffffff);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

/* 2. El texto complementario del título aparece después */
.hero-title .fade-text-1 {
  display: inline-block;
  opacity: 0;
  animation: visualFadeIn 0.6s ease-out forwards;
  animation-delay: 0.5s;
}

/* 3. El cuerpo general del subtítulo */
.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted, #a0a5b5);
  line-height: 1.65;
  margin-bottom: 40px;
  opacity: 0;
  animation: visualFadeIn 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

/* 4. Las palabras en NEGRITAS dentro del subtítulo (Aparecen al final) */
.hero-subtitle strong {
  display: inline-block;
  opacity: 0;
  color: var(--text-main, #ffffff);
  animation: visualFadeIn 0.5s ease-out forwards;
  animation-delay: 1.2s;
}

/* 5. BOTONES: Incorporación de abajo hacia arriba */
.hero-actions {
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: buttonRevealUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
  animation-delay: 1.5s;
}

.btn-primary {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b0c10;
  background-color: var(--accent-neon, #00ff66);
  padding: 16px 32px;
  border-radius: 6px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow, rgba(0, 255, 102, 0.35));
}

.btn-secondary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main, #ffffff);
  background-color: transparent;
  padding: 16px 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  border-color: var(--accent-neon, #00ff66);
  color: var(--accent-neon, #00ff66);
  transform: translateY(-3px);
}

/* --- COLUMNA DERECHA: ESCENARIO DE TARJETAS SAAS --- */
.hero-graphics {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 600px;
  perspective: 1000px; 
}

.dashboard-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 450px;
  transform: rotateY(-12px) rotateX(10px); 
}

.ui-card {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.card-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.card-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.card-body { padding: 20px; }

/* 1. Tarjeta de Gráfico (Superior) */
.card-top {
  width: 380px;
  top: 0;
  left: 0;
  z-index: 3;
  animation: floatTop 5s ease-in-out infinite;
  overflow: visible !important; /* TRUCO CLAVE: Permite que el radar escape del recuadro */
}

/* INDICADOR EN VIVO (Efecto Luz Neón Parpadeante) */
.card-dot-wrapper {
  position: relative;
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-neon, #00ff66);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon);
  z-index: 2;
}
/* --- MOTOR DEL RADAR AMPLIFICADO --- */
.card-dot-wrapper::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(0, 255, 102, 0.4); /* Línea más fina y sutil */
  border-radius: 50%;
  z-index: 1;
  pointer-events: none; /* Evita que interfiera con los clicks */
  animation: radarPulseExpansivo 3s cubic-bezier(0.1, 0.4, 0.2, 1) infinite;
}

.card-dot-wrapper::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: radarPulseExpansivo 3s cubic-bezier(0.1, 0.4, 0.2, 1) infinite;
  animation-delay: 1.5s; /* Alternado perfecto */
}

/* Animación con escala masiva para inundar el Hero */
@keyframes radarPulseExpansivo {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  30% {
    opacity: 0.7; /* Mantiene buena visibilidad al cruzar el borde */
  }
  100% {
    transform: scale(3); /* Subimos de 7 a 35 para que el pulso sea gigante */
    opacity: 0;           /* Se desvanece elegantemente en la distancia */
  }
}
.card-badge {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--accent-neon);
  background: rgba(0, 255, 102, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.crypto-chart {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. Tarjeta JSON Code (En medio) */
.card-middle {
  width: 360px;
  top: 150px;
  right: 0;
  z-index: 2;
  background: #0d0f14; 
  animation: floatMiddle 6s ease-in-out infinite;
}

.window-controls { display: flex; gap: 6px; }
.window-controls span {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.code-block {
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.5px;
}
.j-key { color: #5ccfe6; }   
.j-val { color: #bae67e; }   
.j-bool { color: #ffd580; }  

/* 3. Tarjeta de Estatus (Fondo) */
.card-bottom {
  width: 340px;
  bottom: 20px;
  left: 40px;
  z-index: 1;
  padding: 16px 20px;
  animation: floatBottom 5.5s ease-in-out infinite;
}

.status-flex { display: flex; align-items: center; gap: 15px; }
.status-icon-wrapper {
  width: 36px;
  height: 36px;
  background: rgba(0, 255, 102, 0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.icon-check { width: 16px; height: 16px; }
.status-info h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px;}
.status-info p { font-size: 0.7rem; color: var(--text-muted); }

/* ==========================================================================
   KEYFRAMES DE ANIMACIONES
   ========================================================================== */
@keyframes visualFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes buttonRevealUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatTop {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes floatMiddle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

@keyframes floatBottom {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes neonPulse {
  0% {
    background: #00ff66;
    box-shadow: 0 0 4px #00ff66, 0 0 8px #00ff66;
    opacity: 0.6;
  }
  50% { opacity: 0.9; }
  100% {
    background: #1aff75;
    box-shadow: 0 0 10px #00ff66, 0 0 22px #00ff66, 0 0 35px rgba(0, 255, 102, 0.5);
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVO INTELIGENTE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.4rem; }
  .dashboard-wrapper { transform: scale(0.85); }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-actions { flex-direction: column; }
  .tech-badge { margin: 0 auto 25px auto; }
  .hero-graphics { height: auto; margin-top: 40px; }
  .dashboard-wrapper {
    position: relative;
    transform: none;
    height: 480px;
    width: 100%;
    max-width: 380px;
  }
  .ui-card {
    position: relative;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-bottom: 15px;
    animation: none !important; /* Ahorra CPU en celular */
  }
}