/* Hero section */
.hero {
  padding: clamp(40px, 8vw, 120px) 0;
  background: linear-gradient(180deg, rgba(17, 19, 26, 0.8), rgba(11, 11, 15, 1));
  /* Centrado moderno y responsivo en toda la pantalla */
  min-height: 100vh;       /* Fallback */
  min-height: 100svh;      /* Unidades de viewport seguras en móviles */
  display: grid;
  place-items: center;     /* Centra el contenido del hero en ambos ejes */
  position: relative;      /* para overlay y stacking */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.45));
  pointer-events: none;
  z-index: 0; /* debajo del contenido */
}

.hero-content {
  display: grid;
  gap: 16px;
  max-width: 1200px; /* antes 1000px */
  margin: 0 auto;
  justify-items: center;
  text-align: center;
  position: relative; /* por encima del overlay */
  z-index: 1;
}

/* Tipografía y jerarquía del hero */
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: .2px;
  text-align: center;
  font-size: clamp(28px, 4vw + 12px, 64px);
  text-wrap: balance;
  color: #ffffff; /* texto más claro para contraste */
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 0 6px rgba(255, 212, 0, .08);
}

.hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,212,0,.85), rgba(255,212,0,.25));
}

.hero .subtitle {
  color: #d9deea; /* sobrescribe var(--muted) para mejor legibilidad */
  font-size: clamp(16px, 1.1vw + 12px, 22px);
  line-height: 1.6;
  letter-spacing: .2px;
  max-width: 60ch;
  margin: 6px auto 0;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

.subtitle {
  color: #e8ecf5; /* mejorar contraste */
}

/* Animaciones del hero */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .subtitle, .brand-tabs, .hero-ctas {
    opacity: 0;
    animation: fadeUp .6s ease-out forwards;
  }
  .hero h1 { animation-delay: .05s; }
  .hero .subtitle { animation-delay: .15s; }
  .brand-tabs { animation-delay: .25s; }
  .hero-ctas { animation-delay: .35s; }
}

.hero-ctas {
  display: flex;
  gap: 32px;
  margin-top: 22px;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-ctas { margin-top: 32px; }
}

/* Hero CTA buttons: mayor tamaño, visibilidad y efectos */
.hero-ctas .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(15px, calc(1.1vw + 10px), 18px);
  letter-spacing: .3px;
  text-decoration: none;
  overflow: hidden; /* para ripple */
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .15s ease, box-shadow .25s ease;
  will-change: transform;
}

.hero-ctas .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.hero-ctas .btn:active {
  transform: translateY(0) scale(.985);
  box-shadow: 0 6px 18px rgba(0,0,0,.24);
}

.hero-ctas .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255,212,0,.35);
}

.hero-ctas .btn-accent {
  background: linear-gradient(180deg, #ffd400 0%, #e6c122 100%);
  color: #0b0b0f;
  border: 1px solid transparent;
  box-shadow: 0 10px 26px rgba(255, 212, 0, .28);
}

.hero-ctas .btn-accent:hover {
  box-shadow: 0 14px 34px rgba(255, 212, 0, .36);
}

.hero-ctas .btn-outline {
  border: 2px solid var(--accent);
  background: rgba(255, 212, 0, 0.10);
  color: var(--fg);
}

.hero-ctas .btn-outline:hover {
  background: rgba(255, 212, 0, 0.16);
  box-shadow: 0 10px 26px rgba(255, 212, 0, .22);
}

/* Ripple para CTAs del hero */
.hero-ctas .btn .ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  pointer-events: none;
  opacity: .28;
  background: currentColor;
  animation: cta-ripple .6s ease-out;
}

.hero-ctas .btn.btn-accent .ripple { background: rgba(255,212,0,.35); }
.hero-ctas .btn.btn-outline .ripple { background: rgba(255,212,0,.28); }

@keyframes cta-ripple {
  from { transform: translate(-50%, -50%) scale(.15); opacity: .35; }
  to   { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ctas .btn { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
  .hero-ctas .btn:hover,
  .hero-ctas .btn:active { transform: none; box-shadow: none; }
}