/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--wiar-darker) 0%, #0a0f1c 100%);
}

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--wiar-cyan);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(100px, -100px);
  }
  50% {
    transform: translate(-50px, -200px);
  }
  75% {
    transform: translate(150px, -50px);
  }
}

.neural-network {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.network-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--wiar-cyan),
    transparent
  );
  animation: pulse 3s infinite;
  opacity: 0.2;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 4rem 0;
}

.badge-global {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wiar-cyan);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--wiar-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 800px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  animation: fadeInUp 1s ease 0.6s backwards;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--wiar-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
  transform: translateY(-5px);
}

.stat-value {
  font-family: "Orbitron", monospace;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s backwards;
}

.btn-wiar-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-wiar-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-wiar-primary:hover::before {
  left: 100%;
}

.btn-wiar-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(6, 182, 212, 0.5);
  color: #fff;
}

.btn-wiar-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-wiar-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--wiar-cyan);
  color: var(--wiar-cyan);
  transform: translateY(-3px);
}

/* ============================================
   SECCIÓN PAÍSES
   ============================================ */
.country-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, #0a0f1c 0%, var(--wiar-dark) 100%);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wiar-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--wiar-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

/* Detección Banner */
.detection-banner {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(7, 71, 166, 0.05) 100%
  );
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 24px;
  padding: 2.5rem;
  margin: 3rem auto 4rem;
  max-width: 700px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.detection-banner.detected {
  border-color: #22c55e;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08) 0%,
    rgba(6, 182, 212, 0.05) 100%
  );
}

.detection-banner.searching {
  animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
  0%,
  100% {
    border-color: rgba(6, 182, 212, 0.25);
  }
  50% {
    border-color: rgba(6, 182, 212, 0.6);
  }
}

.detection-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.detection-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.detection-icon {
  font-size: 3rem;
  display: block;
  position: relative;
  z-index: 2;
  animation: bounce 2s infinite;
}

.radar-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  animation: radar 2s infinite;
  z-index: 1;
}

@keyframes radar {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.detection-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.detection-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.detection-progress {
  margin: 2rem 0;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wiar-cyan), var(--wiar-blue));
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-steps .step {
  transition: all 0.3s ease;
  position: relative;
}

.progress-steps .step.active {
  color: var(--wiar-cyan);
  font-weight: 600;
}

.progress-steps .step.completed {
  color: #22c55e;
}

.progress-steps .step::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.progress-steps .step.active::before {
  background: var(--wiar-cyan);
  box-shadow: 0 0 10px var(--wiar-cyan);
}

.progress-steps .step.completed::before {
  background: #22c55e;
}

.detection-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detection-result {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.detection-result strong {
  color: var(--wiar-cyan);
  font-size: 1.3rem;
}

.detection-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.detection-timer {
  margin-top: 1.5rem;
  font-family: "Orbitron", monospace;
  color: var(--wiar-cyan);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Grid de Países */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.4s ease;
}

.country-grid.active {
  opacity: 1;
  pointer-events: all;
}

.country-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--wiar-cyan);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.country-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--wiar-cyan);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.25);
}

.country-card.selected {
  border-color: #22c55e;
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.country-card.selected::after {
  content: "✓";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* BADGE PRINCIPAL (azul cyan) */
.country-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--wiar-cyan), var(--wiar-blue));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* BADGE RECOMENDADO (verde) - CORREGIDO */
.country-badge.recommended {
  background: #22c55e !important;
  position: absolute;
  top: auto !important;
  bottom: 1rem !important;
  right: 1rem !important;
  left: auto !important;
  z-index: 2;
}

/* Ajuste para tarjeta recomendada */
.country-card[data-country] .country-badge:not(.recommended) {
  top: 1rem;
  right: 1rem;
}

.country-card-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.country-flag {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.country-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}

.country-city {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.country-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.country-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #22c55e;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
  box-shadow: 0 0 8px #22c55e;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.country-latency {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--wiar-cyan);
  font-weight: 700;
  font-family: "Orbitron", monospace;
  font-size: 0.9rem;
}

.country-latency i {
  font-size: 0.8rem;
}

.country-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-bottom: 2.5rem; /* Espacio para el badge recomendado */
}

.feature-tag {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.country-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(6, 182, 212, 0.9), transparent);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.country-card:hover .country-hover-overlay {
  transform: translateY(0);
}

.country-hover-overlay span {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   CARACTERÍSTICAS
   ============================================ */
.features-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--wiar-dark) 0%, #0a0f1c 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--wiar-cyan);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.2);
}

.feature-icon-box {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.feature-icon-box::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fff;
}

.feature-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #060d1a;
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  padding: 60px 0 30px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo img {
  height: 40px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--wiar-cyan);
}

.cert-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

/* ============================================
   SWEETALERT2 CUSTOM STYLES
   ============================================ */
.swal-wiar-popup {
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  border-radius: 24px !important;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(6, 182, 212, 0.15) !important;
}

.swal-wiar-confirm {
  background: linear-gradient(135deg, #06b6d4 0%, #0747a6 100%) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  font-size: 0.95rem !important;
}

.swal-wiar-cancel {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  font-size: 0.95rem !important;
}

.swal-wiar-cancel:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}

/* Fix para SweetAlert2 */
.swal2-container {
  z-index: 99999 !important;
}

.swal2-popup {
  background: linear-gradient(135deg, #0b1120 0%, #050812 100%) !important;
}

.swal2-title {
  color: #fff !important;
}

.swal2-html-container {
  color: rgba(255, 255, 255, 0.8) !important;
}

.swal2-backdrop-show {
  background: rgba(5, 8, 18, 0.9) !important;
  backdrop-filter: blur(20px) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .country-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detection-banner {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }

  .detection-buttons {
    flex-direction: column;
  }

  .country-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .country-features {
    padding-bottom: 3rem; /* Más espacio en móvil */
  }
}

@media (max-width: 480px) {
  .country-badge.recommended {
    bottom: 0.5rem !important;
    right: 0.5rem !important;
    font-size: 0.6rem !important;
    padding: 0.2rem 0.5rem !important;
  }
}

.diferenciacion-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--wiar-dark) 0%, #0a0f1c 100%);
}

.diferenciacion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.diff-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.diff-card:hover {
  border-color: var(--wiar-cyan);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15);
}

.diff-card i {
  font-size: 2.5rem;
  color: var(--wiar-cyan);
  margin-bottom: 1rem;
  display: block;
}

.diff-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.diff-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
         NUEVA SECCIÓN INFRAESTRUCTURA PRO
      ============================================ */
.infrastructure-section {
  padding: 8rem 0;
  background: linear-gradient(
    180deg,
    #0a0f1c 0%,
    var(--wiar-dark) 50%,
    #0a0f1c 100%
  );
  position: relative;
  overflow: hidden;
}

.infrastructure-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(6, 182, 212, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(7, 71, 166, 0.05) 0%,
      transparent 40%
    );
  pointer-events: none;
}

/* Grid Stats en tiempo real */
.infra-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.infra-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.infra-stat-card:hover {
  border-color: var(--wiar-cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
}

.infra-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.infra-stat-card:hover::before {
  left: 100%;
}

.infra-stat-icon {
  font-size: 2rem;
  color: var(--wiar-cyan);
  margin-bottom: 0.5rem;
  display: block;
}

.infra-stat-value {
  font-family: "Orbitron", monospace;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--wiar-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.25rem;
}

.infra-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.infra-stat-change {
  font-size: 0.75rem;
  color: #22c55e;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

/* Mapa de Red */
.network-map-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.network-map {
  position: relative;
  height: 400px;
  width: 100%;
}

.map-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--wiar-cyan), var(--wiar-blue));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.map-node:hover {
  transform: scale(1.2);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.8);
}

.map-node.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
}

.map-node .node-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: nodePulse 2s infinite;
}

@keyframes nodePulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.map-node .node-label {
  position: absolute;
  bottom: -25px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.map-connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--wiar-cyan),
    transparent
  );
  opacity: 0.3;
  animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.1;
  }
}

.map-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

/* Tabs de Arquitectura */
.architecture-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.arch-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 1rem 2rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.arch-tab:hover {
  border-color: var(--wiar-cyan);
  color: #fff;
}

.arch-tab.active {
  background: linear-gradient(135deg, var(--wiar-cyan), var(--wiar-blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.arch-tab i {
  font-size: 1.25rem;
}

/* Contenido de Tabs */
.arch-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.arch-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.arch-diagram {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
}

.diagram-layer {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(6, 182, 212, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--wiar-cyan);
  transition: all 0.3s ease;
}

.diagram-layer:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateX(10px);
}

.layer-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--wiar-cyan), var(--wiar-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  flex-shrink: 0;
}

.layer-info h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.layer-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

.layer-specs {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.spec-badge {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--wiar-cyan);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .infra-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .network-map {
    height: 300px;
  }

  .map-node {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .architecture-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .diagram-layer {
    flex-direction: column;
    text-align: center;
  }
}
