/* ===================================================================================== */
/* HERO / HEADER                                                                          */
/* ===================================================================================== */

#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Fondo con imagen y overlay oscuro */
.hero-bg {
  background:
    linear-gradient(160deg, rgba(10,14,18,0.92) 0%, rgba(10,14,18,0.75) 50%, rgba(10,14,18,0.88) 100%),
    url('../../img/hombre-tecnico.jpg') center center/cover no-repeat;
  z-index: -2;
}

/* Grid sutil decorativo */
.hero-grid {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -1;
  pointer-events: none;
}

/* Badge superior */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-pill);
  color: var(--rse-cyan);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rse-cyan);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 212, 255, 0); }
}

/* Título principal */
.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero-title-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.25));
}

/* Divider animado */
.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-brand-45);
  border-radius: 2px;
  position: relative;
}

.hero-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: dividerSlide 3s ease-in-out infinite;
}

@keyframes dividerSlide {
  0%, 100% { left: 0; }
  50% { left: 50px; }
}

/* Typewriter */
.hero-typewriter {
  letter-spacing: 0.5px;
  color: var(--rse-text-secondary);
  min-height: 40px;
}

.typewriter-cursor {
  animation: blink 1s infinite;
  color: var(--rse-cyan);
  font-weight: normal;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Descripción */
.hero-description {
  max-width: 600px;
  line-height: 1.7;
  color: var(--rse-text-secondary);
  font-size: var(--fs-body);
}

.hero-accent {
  color: var(--rse-teal);
}

/* Stats en el hero */
.hero-stats {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--rse-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  align-self: center;
}

/* Indicador de scroll vertical */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
}

.hero-scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--rse-text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition-base);
}

.hero-scroll-indicator a:hover {
  color: var(--rse-cyan);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--rse-cyan), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* ===================================================================================== */
/* ELEMENTO VISUAL - Circuito orbital                                                      */
/* ===================================================================================== */

.hero-visual {
  position: relative;
  width: 340px;
  height: 340px;
}

/* Anillos */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-ring-outer {
  width: 320px;
  height: 320px;
  border-color: rgba(0, 212, 255, 0.1);
  border-style: dashed;
  animation: ringRotate 30s linear infinite;
}

.hero-ring-mid {
  width: 220px;
  height: 220px;
  border-color: rgba(0, 212, 255, 0.15);
  animation: ringRotate 20s linear infinite reverse;
}

/* Núcleo central */
.hero-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
  border: 2px solid rgba(0, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.15),
    inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.hero-core i {
  font-size: 2.5rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
}

/* Iconos orbitando */
.hero-orbit-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rse-cyan);
  font-size: 1.1rem;
  transition: all var(--transition-base);
}

.hero-orbit-icon:hover {
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transform: scale(1.15);
}

/* Posiciones en la órbita exterior */
.hero-orbit-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: orbitFloat 4s ease-in-out infinite;
}

.hero-orbit-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation: orbitFloat 4s ease-in-out infinite 1s;
}

.hero-orbit-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: orbitFloat 4s ease-in-out infinite 2s;
}

.hero-orbit-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: orbitFloat 4s ease-in-out infinite 3s;
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitFloat {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); }
}

/* ===================================================================================== */
/* RESPONSIVE                                                                              */
/* ===================================================================================== */

/* Desktop grande: visual al lado derecho con fade-left */
@media (min-width: 992px) {
  .hero-visual-col {
    order: 0;
  }
}

/* Desktop mediano */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-visual {
    width: 280px;
    height: 280px;
  }

  .hero-ring-outer {
    width: 260px;
    height: 260px;
  }

  .hero-ring-mid {
    width: 180px;
    height: 180px;
  }

  .hero-core {
    width: 80px;
    height: 80px;
  }

  .hero-core i {
    font-size: 2rem;
  }

  .hero-orbit-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* Tablet: visual compacto centrado debajo del contenido */
@media (max-width: 991px) {
  .hero-visual-col {
    order: 1;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .hero-visual {
    width: 200px;
    height: 200px;
  }

  .hero-ring-outer {
    width: 190px;
    height: 190px;
  }

  .hero-ring-mid {
    width: 130px;
    height: 130px;
  }

  .hero-core {
    width: 60px;
    height: 60px;
  }

  .hero-core i {
    font-size: 1.5rem;
  }

  .hero-orbit-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .hero-scroll-indicator {
    right: 1rem;
    bottom: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #inicio {
    padding: 6rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-visual-col {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-visual {
    width: 160px;
    height: 160px;
  }

  .hero-ring-outer {
    width: 150px;
    height: 150px;
  }

  .hero-ring-mid {
    width: 105px;
    height: 105px;
  }

  .hero-core {
    width: 50px;
    height: 50px;
  }

  .hero-core i {
    font-size: 1.3rem;
  }

  .hero-orbit-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .hero-stats {
    gap: 1.5rem !important;
  }

  .hero-stat-number {
    font-size: 1.25rem;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-stat-divider {
    display: none;
  }
}
