/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: var(--header-h);
  height: 60vh;
  min-height: 420px;
  background: linear-gradient(135deg, var(--alpha-navy-deep), var(--alpha-navy));
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
}
@media (min-width: 768px) {
  .hero { height: 80vh; min-height: 560px; grid-template-columns: 280px 1fr; }
}

/* Variante con banner real de fondo */
.hero--banner {
  display: block;
  height: 70vh;
  min-height: 460px;
}
@media (min-width: 768px) {
  .hero--banner { height: 88vh; min-height: 620px; }
}
.hero__picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  animation: hero-bg-zoom 18s ease-in-out infinite alternate;
  will-change: transform;
}
@media (max-width: 767px) {
  .hero__bg { object-position: center center; }
}
@keyframes hero-bg-zoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,31,58,0.35) 0%, rgba(11,31,58,0.10) 30%, rgba(11,31,58,0.10) 70%, rgba(6,19,40,0.75) 100%),
    radial-gradient(ellipse at 18% 50%, rgba(11,31,58,0.85) 0%, rgba(11,31,58,0.30) 40%, transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: var(--sp-lg) var(--sp-md);
}
@media (min-width: 768px) {
  .hero__content { padding: var(--sp-2xl); }
}

.hero__brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-lg);
  background: linear-gradient(180deg, rgba(11,31,58,0.85), rgba(6,19,40,0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  border-radius: var(--r-xl);
  border-left: 4px solid var(--alpha-gold);
  max-width: 460px;
  box-shadow: var(--sh-xl);
  transition: transform var(--dur-slow) var(--ease-default),
              box-shadow var(--dur-slow) var(--ease-default),
              border-left-width var(--dur-base) var(--ease-default),
              background var(--dur-slow) var(--ease-default);
}
.hero__brand-panel:hover {
  transform: translateY(-6px);
  border-left-width: 6px;
  background: linear-gradient(180deg, rgba(11,31,58,0.92), rgba(6,19,40,0.96));
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(245, 197, 24, 0.18),
              -8px 0 32px rgba(245, 197, 24, 0.25);
}
@media (min-width: 768px) {
  .hero__brand-panel { padding: var(--sp-2xl); }
}
.hero--banner .hero__title { text-align: left; }
.hero--banner .hero__slogan::after { left: 0; transform: none; }

.hero__kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--alpha-navy);
  background: var(--alpha-gold);
  padding: 6px var(--sp-md);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-md);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-title-in var(--dur-hero) var(--ease-out) 0.3s forwards;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
  cursor: default;
  transition: transform var(--dur-base) var(--ease-bounce),
              box-shadow var(--dur-base) var(--ease-default),
              background var(--dur-base) var(--ease-default),
              letter-spacing var(--dur-base) var(--ease-default);
}
.hero__kicker:hover {
  transform: translateY(-5px) scale(1.06);
  background: var(--alpha-gold-bright);
  letter-spacing: 0.22em;
  box-shadow: 0 12px 28px rgba(245, 197, 24, 0.65);
}

.hero__tagline {
  margin-top: var(--sp-md);
  color: var(--alpha-white);
  font-size: var(--text-base);
  line-height: 1.5;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-title-in var(--dur-hero) var(--ease-out) 1.1s forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.hero__tagline strong {
  color: var(--alpha-gold);
  font-weight: 700;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-lg);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: none;
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-title-in var(--dur-hero) var(--ease-out) 1.3s forwards;
  transition: transform var(--dur-base) var(--ease-bounce),
              background var(--dur-base) var(--ease-default),
              box-shadow var(--dur-base) var(--ease-default),
              color var(--dur-base) var(--ease-default),
              border-color var(--dur-base) var(--ease-default),
              letter-spacing var(--dur-base) var(--ease-default);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.45) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-default);
  z-index: -1;
}
.hero__cta:hover::before { transform: translateX(120%); }

.hero__cta--primary {
  background: var(--alpha-gold);
  color: var(--alpha-navy);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.45);
}
.hero__cta--primary:hover {
  background: var(--alpha-gold-bright);
  transform: translateY(-7px) scale(1.04);
  letter-spacing: 0.10em;
  box-shadow: 0 18px 42px rgba(245, 197, 24, 0.7),
              0 4px 12px rgba(245, 197, 24, 0.4);
}

.hero__cta--ghost {
  background: transparent;
  color: var(--alpha-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation-delay: 1.5s;
}
.hero__cta--ghost:hover {
  background: rgba(245, 197, 24, 0.12);
  border-color: var(--alpha-gold);
  color: var(--alpha-gold);
  transform: translateY(-7px) scale(1.04);
  letter-spacing: 0.10em;
  box-shadow: 0 16px 36px rgba(245, 197, 24, 0.35),
              0 0 0 4px rgba(245, 197, 24, 0.12);
}

.hero__cta:active {
  transform: translateY(-2px) scale(0.98);
}

/* Fallback: si JS bloquea o reduced-motion, asegurar visibilidad */
@media (prefers-reduced-motion: reduce) {
  .hero__kicker, .hero__tagline, .hero__cta {
    opacity: 1 !important;
    transform: none !important;
  }
}
.hero__logo-wrap {
  width: 100px; height: 100px;
  margin-bottom: var(--sp-md);
  opacity: 0;
  transform: scale(0.7) rotate(-12deg);
  animation: hero-logo-in var(--dur-hero) var(--ease-bounce) 0.2s forwards;
}
@media (min-width: 768px) {
  .hero__logo-wrap { width: 140px; height: 140px; }
}
.hero__logo { width: 100%; height: 100%; filter: drop-shadow(0 8px 24px rgba(245,197,24,0.4)); }
.hero__logo--img {
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--alpha-gold);
  box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.15), 0 12px 40px rgba(0, 0, 0, 0.4);
  background: var(--alpha-gold);
}
.hero__logo--official {
  object-fit: contain;
  object-position: center;
  padding: var(--sp-sm);
  border-radius: var(--r-md);
  border: 4px solid var(--alpha-gold);
  box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.15), 0 12px 40px rgba(0, 0, 0, 0.4);
  background: var(--alpha-white);
}
@keyframes hero-logo-in {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 0.95;
  text-align: center;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) { .hero__title { font-size: var(--text-5xl); } }
.hero__title-line {
  display: block;
  color: var(--alpha-white);
  opacity: 0;
  transform: translateY(30px);
  animation: hero-title-in var(--dur-hero) var(--ease-out) 0.5s forwards;
}
.hero__title-line--accent {
  color: var(--alpha-gold);
  font-size: 0.76em;
  line-height: 1;
  animation-delay: 0.7s;
}
@keyframes hero-title-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero__slogan {
  margin-top: var(--sp-md);
  color: var(--alpha-white);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-title-in var(--dur-hero) var(--ease-out) 1s forwards;
  position: relative;
  padding-bottom: var(--sp-sm);
}
.hero__slogan::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: var(--alpha-gold);
}

/* Collage */
.hero__collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
  z-index: 1;
}
@media (max-width: 767px) {
  .hero__collage { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
  .hero__tile--3, .hero__tile--4 { display: none; }
}
.hero__tile {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: hero-tile-in 1s var(--ease-out) forwards;
  will-change: transform;
}
.hero__tile--1 { animation-delay: 0.3s; }
.hero__tile--2 { animation-delay: 0.45s; }
.hero__tile--3 { animation-delay: 0.6s; }
.hero__tile--4 { animation-delay: 0.75s; }
@keyframes hero-tile-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero__tile-bg {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  transition: transform var(--dur-slow) var(--ease-default);
}
.hero__tile:hover .hero__tile-bg { transform: scale(1.05); }

/* Visuales de prendas con CSS */
.hero__tile-mock {
  width: 60%;
  aspect-ratio: 3/4;
  position: relative;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.3));
}
.hero__tile-mock::before {
  content: "AV";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 4rem;
  letter-spacing: 0.05em;
}
.hero__tile-mock--bra {
  background:
    radial-gradient(ellipse at center top, transparent 30%, var(--alpha-navy) 31%, var(--alpha-navy) 35%, transparent 36%),
    linear-gradient(180deg, var(--alpha-navy) 0%, var(--alpha-navy-deep) 100%);
  clip-path: polygon(0 30%, 50% 30%, 100% 30%, 100% 100%, 0 100%);
  border-radius: 12px 12px 50% 50% / 12px 12px 30% 30%;
}
.hero__tile-mock--bra::before { color: var(--alpha-gold); top: 15%; }
.hero__tile-mock--tee {
  background: var(--alpha-white);
  clip-path: polygon(20% 0, 35% 5%, 50% 15%, 65% 5%, 80% 0, 100% 15%, 90% 25%, 90% 100%, 10% 100%, 10% 25%, 0 15%);
}
.hero__tile-mock--tee::before { color: var(--alpha-navy); top: 20%; }
.hero__tile-mock--bra-blue {
  background: linear-gradient(180deg, #1B5BBF 0%, #0B1F3A 100%);
  clip-path: polygon(0 30%, 50% 30%, 100% 30%, 100% 100%, 0 100%);
  border-radius: 12px 12px 50% 50% / 12px 12px 30% 30%;
}
.hero__tile-mock--bra-blue::before { color: var(--alpha-gold); top: 15%; }
.hero__tile-mock--tee-white {
  background: var(--alpha-white);
  clip-path: polygon(20% 0, 35% 5%, 50% 15%, 65% 5%, 80% 0, 100% 15%, 90% 25%, 90% 100%, 10% 100%, 10% 25%, 0 15%);
}
.hero__tile-mock--tee-white::before { color: var(--alpha-navy); top: 20%; }

/* Cursor glow */
.hero__cursor-glow {
  position: absolute;
  pointer-events: none;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--dur-base);
  z-index: 3;
  mix-blend-mode: screen;
}
.hero:hover .hero__cursor-glow { opacity: 1; }
@media (max-width: 767px) {
  .hero__cursor-glow { display: none; }
}
/* HERO BALANCE 20260804: ajuste tipográfico sin cambiar asset, copy ni WhatsApp. */
@property --hero-ball-x {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: -10vw;
}

@property --hero-ball-y {
  syntax: "<length>";
  inherits: false;
  initial-value: -640px;
}

@property --hero-ball-rotation {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.hero--banner {
  --hero-ball-drop: clamp(560px, 72vh, 760px);
  --hero-ball-rebound-high: clamp(260px, 37vh, 360px);
  --hero-ball-rebound-low: clamp(120px, 22vh, 220px);
  min-height: 540px;
}

.hero--banner::before {
  content: "";
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  z-index: 4;
  width: clamp(68px, 7.2vw, 112px);
  height: clamp(68px, 7.2vw, 112px);
  border-radius: var(--r-full);
  background: url("../img/hero/volleyball-panel-mikasa.avif") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.03) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35));
  --hero-ball-x: -10vw;
  --hero-ball-y: calc(-1 * var(--hero-ball-drop));
  --hero-ball-rotation: 0deg;
  transform: translate3d(var(--hero-ball-x), var(--hero-ball-y), 0) rotate(var(--hero-ball-rotation)) scale(0.96);
  animation:
    hero-court-ball-x 6200ms linear 320ms both,
    hero-court-ball-y 6200ms linear 320ms both,
    hero-court-ball-spin 6200ms linear 320ms both,
    hero-court-ball-visibility 6200ms linear 320ms both;
  will-change: transform, opacity;
}

@media (min-width: 768px) {
  .hero--banner {
    height: 78vh;
    min-height: 560px;
  }
}

.hero__content {
  align-items: center;
  padding: var(--sp-md);
}

.hero--banner .hero__content {
  z-index: 3;
}

@media (min-width: 768px) {
  .hero__content {
    padding: var(--sp-xl) clamp(32px, 7vw, 96px);
  }
}

.hero__brand-panel {
  max-width: min(430px, calc(100vw - 32px));
  padding: var(--sp-md);
  border-radius: var(--r-lg);
  gap: 0;
  overflow: hidden;
}
.hero__brand-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero__brand-panel::after {
  top: 0;
  left: 0;
  width: 82px;
  height: 82px;
  border-radius: 0 0 var(--r-full) 0;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.22), transparent 68%);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .hero__brand-panel {
    max-width: min(440px, 38vw);
    padding: clamp(22px, 3vw, 38px);
  }
}

@keyframes hero-court-ball-x {
  0% {
    --hero-ball-x: -8vw;
  }
  100% {
    --hero-ball-x: 112vw;
  }
}

@keyframes hero-court-ball-y {
  0% {
    --hero-ball-y: calc(-1 * var(--hero-ball-drop));
    animation-timing-function: cubic-bezier(0.58, 0.02, 0.92, 0.72);
  }
  31% {
    --hero-ball-y: 0px;
    animation-timing-function: cubic-bezier(0.12, 0.68, 0.3, 1);
  }
  48% {
    --hero-ball-y: calc(-1 * var(--hero-ball-rebound-high));
    animation-timing-function: cubic-bezier(0.58, 0.02, 0.92, 0.72);
  }
  64% {
    --hero-ball-y: 0px;
    animation-timing-function: cubic-bezier(0.12, 0.68, 0.3, 1);
  }
  78% {
    --hero-ball-y: calc(-1 * var(--hero-ball-rebound-low));
    animation-timing-function: cubic-bezier(0.58, 0.02, 0.92, 0.72);
  }
  89% {
    --hero-ball-y: 0px;
    animation-timing-function: cubic-bezier(0.2, 0.72, 0.22, 1);
  }
  100% {
    --hero-ball-y: -130px;
  }
}

@keyframes hero-court-ball-spin {
  0% {
    --hero-ball-rotation: 0deg;
  }
  100% {
    --hero-ball-rotation: 4320deg;
  }
}

@keyframes hero-court-ball-visibility {
  0%,
  2% {
    opacity: 0;
  }
  4%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--banner::before {
    animation: none;
    opacity: 0;
  }
}

.hero__brand-panel > * {
  position: relative;
  z-index: 1;
}

.hero__logo-wrap {
  width: 72px;
  height: 72px;
  margin-bottom: var(--sp-sm);
}

@media (min-width: 768px) {
  .hero__logo-wrap {
    width: 94px;
    height: 94px;
  }
}

.hero__kicker {
  margin-bottom: var(--sp-sm);
  padding: 5px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.hero__title {
  max-width: 12ch;
  font-size: clamp(2rem, 8.8vw, 3.05rem);
  line-height: 0.98;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: clamp(2.7rem, 4.6vw, 4.35rem);
  }
}

.hero__title-line--accent {
  font-size: 0.78em;
  line-height: 1.02;
}

.hero__slogan {
  margin-top: var(--sp-sm);
  padding-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.hero__tagline {
  max-width: 36ch;
  margin-top: var(--sp-sm);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.46;
}

.hero__ctas {
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.hero__cta {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.74rem;
  letter-spacing: 0.055em;
}

@media (max-width: 520px) {
  .hero--banner {
    height: auto;
    min-height: 560px;
  }

  .hero__content {
    align-items: flex-end;
    padding: var(--sp-md);
    padding-bottom: calc(var(--sp-lg) + env(safe-area-inset-bottom));
  }

  .hero__brand-panel {
    width: 100%;
    max-width: 360px;
    padding: var(--sp-md);
  }

  .hero__title {
    max-width: 12.5ch;
    font-size: clamp(2rem, 10.8vw, 2.8rem);
    line-height: 1;
  }

  .hero__tagline {
    max-width: 32ch;
    font-size: 0.88rem;
  }

  .hero__ctas {
    width: 100%;
  }

  .hero__cta {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 136px;
  }
}
