/* Oculta visualmente pero mantiene el texto para SEO y lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a0a0f;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  animation: heroBgZoom 22s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.75) 0%,
    rgba(10, 10, 15, 0.55) 45%,
    rgba(10, 10, 15, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 48px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* Bloque superior centrado */
.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hero-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(0, 212, 255, 0.55));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(0, 212, 255, 0.45)); }
  50%      { filter: drop-shadow(0 0 42px rgba(0, 212, 255, 0.8)); }
}

.hero-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #c0c8d8 0%, #00d4ff 50%, #c0c8d8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: taglineShine 5s linear infinite;
}

@keyframes taglineShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-flags {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.hero-flags span {
  font-size: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
  cursor: default;
}

.hero-flags span:hover {
  transform: translateY(-4px) scale(1.15);
}

/* Carrusel horizontal, un solo sentido */
.hero-carousel-wrap {
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  position: relative;
}

.hero-carousel-wrap::before,
.hero-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.hero-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, #0a0a0f 0%, transparent 100%);
}

.hero-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, #0a0a0f 0%, transparent 100%);
}

.hero-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollLeft 26s linear infinite;
}

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-carousel-wrap:hover .hero-carousel-track {
  animation-play-state: paused;
}

.hero-card {
  position: relative;
  width: 220px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover { transform: translateY(-5px) scale(1.04); }

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(255,255,255,0.04) 0%, rgba(10,10,15,0.25) 100%);
  transition: background 0.3s ease;
}

.hero-card:hover .hero-card-overlay {
  background: linear-gradient(170deg, rgba(0,212,255,0.06) 0%, rgba(10,10,15,0.15) 100%);
}

.hero-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  font-size: 30px;
  z-index: 1;
  transition: transform 0.3s ease;
}

.hero-card:hover .hero-card-icon {
  transform: translate(-50%, -65%) scale(1.18);
}

.hero-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0,0,0,0.8);
  text-align: center;
  padding: 0 8px;
  z-index: 1;
}

.hero-card:nth-child(6n+1) {
  border: 1px solid rgba(0,212,255,0.5);
  box-shadow: 0 0 12px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.05);
}
.hero-card:nth-child(6n+1) .hero-card-icon { color: #00d4ff; text-shadow: 0 0 14px rgba(0,212,255,0.7); }

.hero-card:nth-child(6n+2) {
  border: 1px solid rgba(123,47,255,0.5);
  box-shadow: 0 0 12px rgba(123,47,255,0.15), inset 0 0 12px rgba(123,47,255,0.05);
}
.hero-card:nth-child(6n+2) .hero-card-icon { color: #a066ff; text-shadow: 0 0 14px rgba(123,47,255,0.7); }

.hero-card:nth-child(6n+3) {
  border: 1px solid rgba(0,255,180,0.45);
  box-shadow: 0 0 12px rgba(0,255,180,0.12), inset 0 0 12px rgba(0,255,180,0.04);
}
.hero-card:nth-child(6n+3) .hero-card-icon { color: #00ffb4; text-shadow: 0 0 14px rgba(0,255,180,0.7); }

.hero-card:nth-child(6n+4) {
  border: 1px solid rgba(255,60,120,0.5);
  box-shadow: 0 0 12px rgba(255,60,120,0.15), inset 0 0 12px rgba(255,60,120,0.05);
}
.hero-card:nth-child(6n+4) .hero-card-icon { color: #ff3c78; text-shadow: 0 0 14px rgba(255,60,120,0.7); }

.hero-card:nth-child(6n+5) {
  border: 1px solid rgba(255,180,0,0.45);
  box-shadow: 0 0 12px rgba(255,180,0,0.12), inset 0 0 12px rgba(255,180,0,0.04);
}
.hero-card:nth-child(6n+5) .hero-card-icon { color: #ffb400; text-shadow: 0 0 14px rgba(255,180,0,0.7); }

.hero-card:nth-child(6n+6) {
  border: 1px solid rgba(0,212,255,0.5);
  box-shadow: 0 0 12px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.05);
}
.hero-card:nth-child(6n+6) .hero-card-icon { color: #00dcff; text-shadow: 0 0 14px rgba(0,220,255,0.7); }

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track { animation: none; }
  .hero-bg-image, .hero-logo { animation: none; }
}

/* 1440px+ */
@media (min-width: 1440px) {
  .hero-content {
    max-width: 1320px;
    padding: 112px 64px 0;
  }
  .hero-logo { max-width: 400px; }
}

/* Laptop */
@media (max-width: 1280px) {
  .hero-content { padding: 104px 40px 0; }
  .hero-logo { max-width: 340px; }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-content { padding: 96px 32px 0; gap: 32px; }
  .hero-logo { max-width: 300px; }
  .hero-tagline { font-size: 17px; }
  .hero-card { width: 190px; height: 130px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .hero-content {
    padding: 92px 24px 32px;
    gap: 28px;
  }
  .hero-logo { max-width: 260px; }
  .hero-card { width: 160px; height: 110px; }
  .hero-card-name { font-size: 10px; }
}

/* Móvil */
@media (max-width: 480px) {
  .hero-content { padding: 80px 16px 24px; gap: 22px; }
  .hero-logo { max-width: 200px; }
  .hero-tagline { font-size: 13px; letter-spacing: 0.12em; }
  .hero-flags span { font-size: 22px; }
  .hero-card { width: 130px; height: 90px; }
  .hero-card-name { font-size: 9px; }
}