@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════════════
   HERO — sección principal
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: #0A0A0F;
  color: #F0F0F5;
  font-family: 'Barlow', sans-serif;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(10,10,15,0.97) 0%,
      rgba(10,10,15,0.90) 35%,
      rgba(10,10,15,0.55) 58%,
      rgba(10,10,15,0.10) 75%,
      transparent 100%
    ),
    radial-gradient(ellipse at 80% 50%, #1a2a1a 0%, #0d1a2a 40%, #0A0A0F 80%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── HERO CONTENT ── */
.hero-content {
  position: relative; z-index: 10;
  padding: 144px 2rem 60px 4rem;
  max-width: 600px;
  display: flex; flex-direction: column; gap: 0;
  animation: fadeUp 0.8s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* AUTH DESKTOP — position absolute, esquina superior derecha */
.hero-auth-desktop {
  position: absolute;
  top: 8px; right: 20px;
  flex-shrink: 0; z-index: 20;
}
/* AUTH MÓVIL — fila separada encima del badge */
.hero-auth-mobile {
  display: none;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .hero-auth-desktop { display: none; }
  .hero-auth-mobile  { display: block; }
}

/* ── BADGE EYEBROW ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,0.10);
  border: 1px solid rgba(245,197,24,0.30);
  color: #F5C518;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  width: fit-content; margin-bottom: 24px;
}
.badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #F5C518;
  animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── TÍTULO ── */
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title .line-accent {
  color: #F5C518;
  display: block;
  text-shadow: 0 0 40px rgba(245,197,24,0.30);
}
.hero-title .line-normal {
  display: block;
  color: #F0F0F5;
}

/* ── SUBTÍTULO ── */
.hero-sub {
  font-size: 1rem; font-weight: 300;
  color: #9AA0B2;
  line-height: 1.6; max-width: 460px;
  margin-bottom: 36px;
  border-left: 2px solid #E8832A;
  padding-left: 16px;
}

/* ── CTAs ── */
.hero-actions {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 48px;
}
.btn-primary {
  background: #F5C518;
  color: #000; font-weight: 800;
  padding: 14px 28px; border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; border: none; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(245,197,24,0.30);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,197,24,0.40);
}
.btn-secondary {
  background: transparent;
  color: #F0F0F5; font-weight: 600;
  padding: 14px 28px; border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; border: 1px solid #252535; transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: #F5C518;
  color: #F5C518;
}

/* ── STATS ── */
.hero-stats {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.8rem;
  color: #F5C518; line-height: 1;
}
.stat-label {
  font-size: 0.72rem; font-weight: 400;
  color: #9AA0B2; letter-spacing: 0.05em;
}
.stat-divider { width: 1px; height: 32px; background: #252535; }

/* ── CARRUSEL DE MÓDULOS ── */
.carousel-section {
  position: relative; z-index: 10;
  padding: 0 4rem 80px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.carousel-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: #9AA0B2;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.carousel-label::after {
  content: ''; flex: 1; height: 1px; background: #252535; max-width: 200px;
}
.cards-track {
  display: flex; gap: 16px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 4px;
}
.cards-track::-webkit-scrollbar { display: none; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.card {
  flex-shrink: 0; width: 300px; border-radius: 18px; padding: 0;
  display: flex; flex-direction: column;
  transition: all 0.35s cubic-bezier(0.34,1.4,0.64,1);
  cursor: pointer; position: relative; overflow: hidden;
  animation: cardIn 0.6s cubic-bezier(0.34,1.2,0.64,1) both;
  border: 1px solid transparent;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.13s; }
.card:nth-child(3) { animation-delay: 0.21s; }
.card:nth-child(4) { animation-delay: 0.29s; }
.card:nth-child(5) { animation-delay: 0.37s; }

.card[data-color="yellow"] { background: linear-gradient(145deg, #2A2200, #1A1500, #0F0E00); border-color: rgba(245,197,24,0.4); box-shadow: 0 4px 24px rgba(245,197,24,0.12), inset 0 1px 0 rgba(245,197,24,0.15); }
.card[data-color="orange"] { background: linear-gradient(145deg, #2A1200, #1A0C00, #100800); border-color: rgba(232,131,42,0.4); box-shadow: 0 4px 24px rgba(232,131,42,0.12), inset 0 1px 0 rgba(232,131,42,0.15); }
.card[data-color="blue"]   { background: linear-gradient(145deg, #001A2A, #000F1A, #000810); border-color: rgba(60,130,220,0.4); box-shadow: 0 4px 24px rgba(60,130,220,0.12), inset 0 1px 0 rgba(60,130,220,0.15); }
.card[data-color="green"]  { background: linear-gradient(145deg, #001A0A, #000F06, #000804); border-color: rgba(60,180,100,0.4); box-shadow: 0 4px 24px rgba(60,180,100,0.12), inset 0 1px 0 rgba(60,180,100,0.15); }
.card[data-color="purple"] { background: linear-gradient(145deg, #1A002A, #0F001A, #080010); border-color: rgba(150,80,220,0.4); box-shadow: 0 4px 24px rgba(150,80,220,0.12), inset 0 1px 0 rgba(150,80,220,0.15); }

.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2; }
.card[data-color="yellow"]::before { background: linear-gradient(90deg, #F5C518, #FFE566, #E8832A); }
.card[data-color="orange"]::before { background: linear-gradient(90deg, #E8832A, #FF6B35, #FF3D00); }
.card[data-color="blue"]::before   { background: linear-gradient(90deg, #3C82DC, #00C6FF, #5BBFFF); }
.card[data-color="green"]::before  { background: linear-gradient(90deg, #3CB464, #00FF87, #7FFFB0); }
.card[data-color="purple"]::before { background: linear-gradient(90deg, #9650DC, #C840FF, #D580FF); }

.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%); transform: translateX(-100%) skewX(-15deg); pointer-events: none; z-index: 3; }
.card:hover::after { animation: shimmer 0.7s ease; }

.card[data-color="yellow"]:hover { transform: translateY(-8px) scale(1.03); border-color: rgba(245,197,24,0.7); box-shadow: 0 20px 60px rgba(245,197,24,0.25), 0 0 0 1px rgba(245,197,24,0.3); }
.card[data-color="orange"]:hover { transform: translateY(-8px) scale(1.03); border-color: rgba(232,131,42,0.7); box-shadow: 0 20px 60px rgba(232,131,42,0.25), 0 0 0 1px rgba(232,131,42,0.3); }
.card[data-color="blue"]:hover   { transform: translateY(-8px) scale(1.03); border-color: rgba(60,130,220,0.7); box-shadow: 0 20px 60px rgba(60,130,220,0.25), 0 0 0 1px rgba(60,130,220,0.3); }
.card[data-color="green"]:hover  { transform: translateY(-8px) scale(1.03); border-color: rgba(60,180,100,0.7); box-shadow: 0 20px 60px rgba(60,180,100,0.25), 0 0 0 1px rgba(60,180,100,0.3); }
.card[data-color="purple"]:hover { transform: translateY(-8px) scale(1.03); border-color: rgba(150,80,220,0.7); box-shadow: 0 20px 60px rgba(150,80,220,0.25), 0 0 0 1px rgba(150,80,220,0.3); }

.card.active { transform: translateY(-5px) scale(1.02); }
.card[data-color="yellow"].active { border-color: rgba(245,197,24,0.8); box-shadow: 0 16px 50px rgba(245,197,24,0.3), 0 0 30px rgba(245,197,24,0.15); }
.card[data-color="orange"].active { border-color: rgba(232,131,42,0.8); box-shadow: 0 16px 50px rgba(232,131,42,0.3), 0 0 30px rgba(232,131,42,0.15); }
.card[data-color="blue"].active   { border-color: rgba(60,130,220,0.8); box-shadow: 0 16px 50px rgba(60,130,220,0.3), 0 0 30px rgba(60,130,220,0.15); }
.card[data-color="green"].active  { border-color: rgba(60,180,100,0.8); box-shadow: 0 16px 50px rgba(60,180,100,0.3), 0 0 30px rgba(60,180,100,0.15); }
.card[data-color="purple"].active { border-color: rgba(150,80,220,0.8); box-shadow: 0 16px 50px rgba(150,80,220,0.3), 0 0 30px rgba(150,80,220,0.15); }

.card-icon-wrap { padding: 20px 20px 16px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.card[data-color="yellow"] .card-icon-wrap { background: rgba(245,197,24,0.07); }
.card[data-color="orange"] .card-icon-wrap { background: rgba(232,131,42,0.07); }
.card[data-color="blue"]   .card-icon-wrap { background: rgba(60,130,220,0.07); }
.card[data-color="green"]  .card-icon-wrap { background: rgba(60,180,100,0.07); }
.card[data-color="purple"] .card-icon-wrap { background: rgba(150,80,220,0.07); }

.card-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); position: relative; z-index: 1; }
.card:hover .card-icon { transform: scale(1.2) rotate(-8deg); animation: float 2s ease infinite; }
.card.active .card-icon { animation: float 2s ease infinite; }

.card[data-color="yellow"] .card-icon { background: rgba(245,197,24,0.2); box-shadow: 0 0 20px rgba(245,197,24,0.3), inset 0 1px 0 rgba(245,197,24,0.3); }
.card[data-color="orange"] .card-icon { background: rgba(232,131,42,0.2); box-shadow: 0 0 20px rgba(232,131,42,0.3), inset 0 1px 0 rgba(232,131,42,0.3); }
.card[data-color="blue"]   .card-icon { background: rgba(60,130,220,0.2); box-shadow: 0 0 20px rgba(60,130,220,0.3), inset 0 1px 0 rgba(60,130,220,0.3); }
.card[data-color="green"]  .card-icon { background: rgba(60,180,100,0.2); box-shadow: 0 0 20px rgba(60,180,100,0.3), inset 0 1px 0 rgba(60,180,100,0.3); }
.card[data-color="purple"] .card-icon { background: rgba(150,80,220,0.2); box-shadow: 0 0 20px rgba(150,80,220,0.3), inset 0 1px 0 rgba(150,80,220,0.3); }

.card-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; font-weight: 900; opacity: 0.08; line-height: 1; letter-spacing: -0.02em; user-select: none; }
.card[data-color="yellow"] .card-num { color: #F5C518; }
.card[data-color="orange"] .card-num { color: #E8832A; }
.card[data-color="blue"]   .card-num { color: #5BBFFF; }
.card[data-color="green"]  .card-num { color: #4DC87A; }
.card[data-color="purple"] .card-num { color: #D580FF; }
.card:hover .card-num, .card.active .card-num { opacity: 0.15; }

.card-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; transition: color 0.2s; }
.card[data-color="yellow"] .card-title { color: #FFE566; }
.card[data-color="orange"] .card-title { color: #FFAB6B; }
.card[data-color="blue"]   .card-title { color: #80D4FF; }
.card[data-color="green"]  .card-title { color: #80FFB8; }
.card[data-color="purple"] .card-title { color: #E0A0FF; }

.card-desc { font-size: 0.78rem; color: #6A7090; line-height: 1.5; transition: color 0.2s; flex: 1; }
.card:hover .card-desc, .card.active .card-desc { color: #9AA0B2; }

.card-sep { height: 1px; margin: 0 20px; transition: opacity 0.2s; }
.card[data-color="yellow"] .card-sep { background: rgba(245,197,24,0.15); }
.card[data-color="orange"] .card-sep { background: rgba(232,131,42,0.15); }
.card[data-color="blue"]   .card-sep { background: rgba(60,130,220,0.15); }
.card[data-color="green"]  .card-sep { background: rgba(60,180,100,0.15); }
.card[data-color="purple"] .card-sep { background: rgba(150,80,220,0.15); }

.card-meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 16px; }
.card-tag { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; border: 1px solid transparent; }
.tag-yellow { background: rgba(245,197,24,0.15); color: #F5C518; border-color: rgba(245,197,24,0.35); box-shadow: 0 0 10px rgba(245,197,24,0.2); }
.tag-green  { background: rgba(60,180,100,0.15); color: #4DC87A; border-color: rgba(60,180,100,0.35); box-shadow: 0 0 10px rgba(60,180,100,0.2); }
.tag-orange { background: rgba(232,131,42,0.15); color: #E8832A; border-color: rgba(232,131,42,0.35); box-shadow: 0 0 10px rgba(232,131,42,0.2); }
.tag-blue   { background: rgba(60,130,220,0.15); color: #5BBFFF; border-color: rgba(60,130,220,0.35); box-shadow: 0 0 10px rgba(60,130,220,0.2); }
.tag-purple { background: rgba(150,80,220,0.15); color: #D580FF; border-color: rgba(150,80,220,0.35); box-shadow: 0 0 10px rgba(150,80,220,0.2); }

.card-arrow { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); flex-shrink: 0; }
.card[data-color="yellow"] .card-arrow { background: rgba(245,197,24,0.15); color: #F5C518; }
.card[data-color="orange"] .card-arrow { background: rgba(232,131,42,0.15); color: #E8832A; }
.card[data-color="blue"]   .card-arrow { background: rgba(60,130,220,0.15); color: #5BBFFF; }
.card[data-color="green"]  .card-arrow { background: rgba(60,180,100,0.15); color: #4DC87A; }
.card[data-color="purple"] .card-arrow { background: rgba(150,80,220,0.15); color: #D580FF; }
.card:hover .card-arrow { transform: translateX(4px) scale(1.2); }
.card[data-color="yellow"]:hover .card-arrow { background: rgba(245,197,24,0.3); box-shadow: 0 0 12px rgba(245,197,24,0.4); }
.card[data-color="orange"]:hover .card-arrow { background: rgba(232,131,42,0.3); box-shadow: 0 0 12px rgba(232,131,42,0.4); }
.card[data-color="blue"]:hover   .card-arrow { background: rgba(60,130,220,0.3); box-shadow: 0 0 12px rgba(60,130,220,0.4); }
.card[data-color="green"]:hover  .card-arrow { background: rgba(60,180,100,0.3); box-shadow: 0 0 12px rgba(60,180,100,0.4); }
.card[data-color="purple"]:hover .card-arrow { background: rgba(150,80,220,0.3); box-shadow: 0 0 12px rgba(150,80,220,0.4); }

.carousel-controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.dots { display: flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #252535; transition: all 0.2s; cursor: pointer; }
.dot.active { background: #F5C518; width: 20px; border-radius: 3px; }
.progress-bar { flex: 1; height: 2px; background: #252535; border-radius: 2px; overflow: hidden; max-width: 200px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #F5C518, #E8832A); border-radius: 2px; animation: carousel-progress 4s linear infinite; }
@keyframes carousel-progress { from { width: 0%; } to { width: 100%; } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-content { padding: 100px 1.5rem 40px; }
  .carousel-section { padding: 0 1.5rem 60px; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 520px;
    padding: 144px 2rem 60px 5rem;
  }
  .hero-technician {
    width: 58%;
    right: 0;
  }
}

@media (min-width: 1600px) {
  .hero-content {
    max-width: 560px;
    padding: 160px 2rem 60px 6rem;
  }
  .hero-technician {
    width: 62%;
  }
}

/* ══════════════════════════════════════════════
   TÉCNICO + HUD OVERLAY
══════════════════════════════════════════════ */

.hero-technician {
  position: absolute;
  right: 0;
  left: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,0.3) 15%,
    rgba(0,0,0,0.8) 30%,
    black 50%
  );
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,0.3) 15%,
    rgba(0,0,0,0.8) 30%,
    black 50%
  );
}
.hero-technician img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  filter:
    grayscale(55%)
    sepia(40%)
    hue-rotate(5deg)
    saturate(1.4)
    brightness(0.82)
    contrast(1.12);
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  transition: filter 0.6s ease;
}
.hero-technician::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(245,197,24,0.06) 0%,
      rgba(232,131,42,0.04) 50%,
      rgba(10,10,15,0.30) 100%
    );
  mix-blend-mode: color-dodge;
  pointer-events: none;
}

/* ── HERO SLIDE BADGE ── */
.hero-slide-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(10,10,15,0.75);
  border: 1px solid rgba(245,197,24,0.3);
  border-left: 3px solid #F5C518;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  z-index: 20;
  transition: opacity 0.4s ease;
}
.slide-badge-label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  color: #9090A8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.slide-badge-name {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #F5C518;
}
#hero-slide-img {
  transition: opacity 0.6s ease;
}

/* ── HUD OVERLAY ── */
.hud-layer {
  position: absolute;
  right: 0; bottom: 0;
  width: 54%; height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hud-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
}
.hud-scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.6), transparent);
  animation: hud-scan-v 4s linear infinite;
  box-shadow: 0 0 12px rgba(245,197,24,0.4);
}
@keyframes hud-scan-v {
  0%   { top: -2px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.hud-corner { position: absolute; width: 28px; height: 28px; }
.hud-corner::before, .hud-corner::after {
  content: ''; position: absolute;
  background: #F5C518;
  box-shadow: 0 0 6px rgba(245,197,24,0.6);
}
.hud-corner.tl { top: 14%; left: 18%; }
.hud-corner.tl::before { top: 0; left: 0; width: 100%; height: 2px; }
.hud-corner.tl::after  { top: 0; left: 0; width: 2px; height: 100%; }
.hud-corner.tr { top: 14%; right: 4%; }
.hud-corner.tr::before { top: 0; right: 0; width: 100%; height: 2px; }
.hud-corner.tr::after  { top: 0; right: 0; width: 2px; height: 100%; }
.hud-corner.bl { bottom: 28%; left: 18%; }
.hud-corner.bl::before { bottom: 0; left: 0; width: 100%; height: 2px; }
.hud-corner.bl::after  { bottom: 0; left: 0; width: 2px; height: 100%; }
.hud-corner.br { bottom: 28%; right: 4%; }
.hud-corner.br::before { bottom: 0; right: 0; width: 100%; height: 2px; }
.hud-corner.br::after  { bottom: 0; right: 0; width: 2px; height: 100%; }
.hud-crosshair {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  width: 60px; height: 60px;
  animation: hud-cross-pulse 3s ease-in-out infinite;
}
.hud-crosshair::before, .hud-crosshair::after {
  content: ''; position: absolute;
  background: #F5C518; opacity: 0.55;
}
.hud-crosshair::before { top: 50%; left: 0; width: 100%; height: 1px; }
.hud-crosshair::after  { left: 50%; top: 0; width: 1px; height: 100%; }
@keyframes hud-cross-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -54%) scale(1); }
  50%       { opacity: 0.8; transform: translate(-50%, -54%) scale(1.08); }
}
.hud-circle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  width: 110px; height: 110px;
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: 50%;
  animation: hud-circle-spin 12s linear infinite;
}
.hud-circle::before {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: #F5C518;
  box-shadow: 0 0 8px #F5C518;
  transform: translateX(-50%);
}
@keyframes hud-circle-spin {
  from { transform: translate(-50%, -54%) rotate(0deg); }
  to   { transform: translate(-50%, -54%) rotate(360deg); }
}
.hud-data {
  position: absolute;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem; color: #F5C518;
  letter-spacing: 0.08em; line-height: 1.7;
  opacity: 0.75; animation: hud-data-blink 3s ease-in-out infinite;
}
@keyframes hud-data-blink {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1; }
}
.hud-data.d1 { top: 16%; right: 6%; text-align: right; }
.hud-data.d2 { bottom: 30%; left: 20%; }
.hud-data.d3 { top: 38%; right: 6%; text-align: right; animation-delay: 1s; }
.hud-data span { display: block; }
.hud-data .lbl { color: rgba(245,197,24,0.45); font-size: 0.55rem; letter-spacing: 0.15em; }
.hud-data .val { color: #F5C518; font-size: 0.68rem; font-weight: 600; }
.hud-vbar {
  position: absolute; right: 6%; top: 20%; bottom: 30%;
  width: 3px; background: rgba(245,197,24,0.08); border-radius: 2px; overflow: hidden;
}
.hud-vbar-fill {
  position: absolute; bottom: 0; left: 0; right: 0; height: 72%;
  background: linear-gradient(to top, #F5C518, rgba(245,197,24,0.2));
  border-radius: 2px;
  animation: hud-vbar-anim 3s ease-in-out infinite alternate;
  box-shadow: 0 0 8px rgba(245,197,24,0.4);
}
@keyframes hud-vbar-anim { 0% { height: 68%; } 100% { height: 78%; } }
.hud-line {
  position: absolute; top: 40%; left: 28%;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.4), rgba(245,197,24,0.6));
  transform: rotate(-35deg); transform-origin: left center;
}
.hud-line::after {
  content: ''; position: absolute; right: -4px; top: -3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #F5C518; box-shadow: 0 0 10px #F5C518;
}
.electric-glow {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
  top: 20%; right: 20%; z-index: 1;
  animation: electric-glow-pulse 4s ease-in-out infinite;
}
@keyframes electric-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.15); opacity: 1; }
}

/* ══════════════════════════════════════════════
   ELECTRON WIDGET — CONSTRUCTOR
══════════════════════════════════════════════ */
:root { --color-estado: #F5C518; }

#electron-widget {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 12px;
  animation: widget-entrada 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.5s both;
}
@keyframes widget-entrada {
  from { opacity: 0; transform: translateY(40px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
#electron-burbuja {
  background: #1A1A26;
  border: 1px solid #252535; border-radius: 14px 14px 4px 14px;
  padding: 18px 20px; max-width: 300px; min-width: 240px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(245,197,24,0.06), 0 8px 32px rgba(0,0,0,0.6), 0 0 60px rgba(245,197,24,0.04);
  transform-origin: bottom right; display: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
#electron-burbuja.visible { display: block; }
#electron-burbuja::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-estado), transparent);
  border-radius: 2px; transition: background 0.4s;
}
.burbuja-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.burbuja-nombre {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.9rem;
  color: #F5C518; letter-spacing: 0.12em; text-transform: uppercase;
}
.burbuja-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.1em; color: #9AA0B2;
  background: rgba(255,255,255,0.04); border: 1px solid #252535;
  padding: 2px 8px; border-radius: 20px; text-transform: uppercase; font-weight: 600;
}
.burbuja-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none;
  color: #9AA0B2; font-size: 0.9rem; cursor: pointer; padding: 2px 4px;
  transition: color 0.2s;
}
.burbuja-close:hover { color: #F0F0F5; }
.resultado-seccion {
  display: none; margin-bottom: 14px; padding: 10px 12px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.25); transition: all 0.4s;
}
.resultado-seccion.visible { display: block; }
.resultado-score { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.resultado-pct {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.7rem;
  color: var(--color-estado); transition: color 0.4s;
}
.resultado-estado-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--color-estado); color: var(--color-estado);
  background: rgba(0,0,0,0.3); transition: all 0.4s;
}
.resultado-barra { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.resultado-barra-fill {
  height: 100%; background: var(--color-estado); border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1), background 0.4s;
  box-shadow: 0 0 6px var(--color-estado); width: 0%;
}
#electron-texto {
  font-size: 0.86rem; line-height: 1.65;
  color: #F0F0F5; min-height: 1.4em;
}
#electron-texto .highlight { color: #F5C518; font-weight: 600; }
#electron-texto .hl-estado {
  font-weight: 700; color: var(--color-estado);
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.05em; transition: color 0.4s;
}
.frase-seccion {
  display: none; margin-top: 12px; padding: 10px 14px;
  border-radius: 6px; border-left: 2px solid var(--color-estado);
  background: rgba(0,0,0,0.2); transition: border-color 0.4s;
}
.frase-seccion.visible { display: block; }
.frase-texto { font-size: 0.76rem; line-height: 1.55; color: rgba(240,240,245,0.65); font-style: italic; font-weight: 300; }
.frase-autor {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 700; color: var(--color-estado);
  margin-top: 5px; transition: color 0.4s;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cursor {
  display: inline-block; width: 2px; height: 1em;
  background: #F5C518; margin-left: 2px; vertical-align: middle;
  animation: cursor-parpadeo 0.7s infinite;
}
@keyframes cursor-parpadeo { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.feature-list { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; opacity: 0; transition: opacity 0.4s; }
.feature-list.visible { opacity: 1; }
.feature-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(245,197,24,0.04); border: 1px solid rgba(245,197,24,0.1);
  border-radius: 7px; font-size: 0.8rem;
  transform: translateX(20px); opacity: 0; transition: all 0.35s ease;
}
.feature-item.show { transform: translateX(0); opacity: 1; }
.feat-pronto {
  margin-left: auto; font-size: 0.68rem; font-weight: 700;
  color: #F5C518; background: rgba(245,197,24,0.12);
  padding: 2px 7px; border-radius: 4px; border: 1px solid rgba(245,197,24,0.25);
  pointer-events: none; white-space: nowrap;
}
.feature-icon {
  width: 26px; height: 26px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
  background: rgba(245,197,24,0.1); border: 1px solid rgba(245,197,24,0.2);
}
.fi-orange { background: rgba(232,131,42,0.12); border: 1px solid rgba(232,131,42,0.25); }
.fi-green  { background: rgba(0,229,160,0.10);  border: 1px solid rgba(0,229,160,0.20); }
.feature-text strong { display: block; font-weight: 600; color: #F0F0F5; font-size: 0.78rem; }
.feature-text span   { color: #9AA0B2; font-size: 0.72rem; }

/* ── Robot constructor ── */
#electron-robot {
  width: 72px; height: 72px; position: relative; cursor: pointer;
  filter: drop-shadow(0 0 14px rgba(245,197,24,0.5));
  transition: filter 0.3s, transform 0.2s;
}
#electron-robot:hover { filter: drop-shadow(0 0 26px rgba(245,197,24,0.8)); transform: scale(1.05); }
.robot-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(245,197,24,0.22);
  animation: robot-rotar-lento 7s linear infinite; transition: border-color 0.5s;
}
.robot-ring::after {
  content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-estado); box-shadow: 0 0 8px var(--color-estado);
  transition: background 0.4s, box-shadow 0.4s;
}
@keyframes robot-rotar-lento { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.robot-body { width: 72px; height: 72px; position: relative; z-index: 2; }
svg.robot-svg { width: 100%; height: 100%; overflow: visible; }

.antena-luz { animation: robot-pulso-antena 2s ease-in-out infinite; }
@keyframes robot-pulso-antena { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ojo-izq, .ojo-der { animation: robot-ojo-idle 5s ease-in-out infinite; }
.ojo-der { animation-delay: 0.15s; }
@keyframes robot-ojo-idle { 0%, 88%, 100% { transform: scaleY(1); } 92%, 96% { transform: scaleY(0.1); } }
.pecho-led { animation: robot-led-pulso 1.8s ease-in-out infinite; }
@keyframes robot-led-pulso { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.casco-luz { animation: robot-casco-blink 2.5s ease-in-out infinite; }
@keyframes robot-casco-blink { 0%, 100% { opacity: 1; } 45%, 55% { opacity: 0.2; } }
.herramienta { animation: robot-tool-idle 4s ease-in-out infinite; }
@keyframes robot-tool-idle { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg) translateY(-2px); } }

.robot-aura {
  position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.14) 0%, transparent 70%);
  animation: robot-aura-pulso 3s ease-in-out infinite; z-index: 1; transition: background 0.5s;
}
@keyframes robot-aura-pulso { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes burbuja-in { from { opacity: 0; transform: scale(0.7) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  width: 13px; height: 13px;
  background: #F5C518; border-radius: 50%;
  border: 2px solid #0A0A0F; z-index: 10; display: none;
}
@keyframes robot-particula {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx),var(--dy)) scale(0); opacity: 0; }
}
.particula {
  position: fixed; width: 4px; height: 4px; border-radius: 50%;
  background: #F5C518;
  animation: robot-particula 0.8s ease-out forwards;
  z-index: 10000; pointer-events: none;
}
@keyframes robot-vibrar { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
#electron-robot.estado-falla { animation: robot-vibrar 0.4s ease-in-out; }
@keyframes robot-cabeza-baja { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-8deg) translateY(3px); } }
#electron-robot.estado-reprobado .robot-body { animation: robot-cabeza-baja 3s ease-in-out infinite; }
@keyframes robot-balanceo { 0%, 100% { transform: rotate(0deg); } 33% { transform: rotate(4deg); } 66% { transform: rotate(-4deg); } }
#electron-robot.estado-limite .robot-body { animation: robot-balanceo 2.5s ease-in-out infinite; }
@keyframes robot-salto { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
#electron-robot.estado-excelente .robot-body { animation: robot-salto 0.9s ease-in-out infinite; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-technician { width: 100%; opacity: 0.3; }
  .hud-layer { width: 100%; }
}
