/* ==========================================================================
   Hero de la landing (design.md §4.1)
   ========================================================================== */

.px-hero {
  position: relative;
  min-height: 100vh;
  min-height: max(100svh, 56.25vw);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #06122E;
}

/* --- Montaje cinematográfico (desktop) ----------------------------------- */
.px-hero__photos { position: absolute; inset: 0; z-index: 0; background: #040E26; }
.px-hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  opacity: 0; transition: opacity 1.1s ease;
}
.px-hero__photo.is-active { opacity: 1; }

/* --- Fondo de marca (móvil) ---------------------------------------------- */
.px-hero__mobile-bg {
  position: absolute; inset: 0; z-index: 0; display: none;
  background: linear-gradient(165deg, #04102B 0%, #071A3F 46%, #0A2463 100%);
}
.px-hero__orb {
  position: absolute; left: -18%; top: 14%; width: 96%; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 154, 219, .28), transparent 68%);
}

/* --- Overlays de legibilidad --------------------------------------------- */
.px-hero__scrim { position: absolute; inset: 0; z-index: 2; }
.px-hero__scrim--side { background: linear-gradient(100deg, rgba(4, 14, 38, .72) 0%, rgba(5, 16, 42, .34) 34%, transparent 58%); }
.px-hero__scrim--vert { background: linear-gradient(180deg, rgba(6, 18, 46, .34) 0%, transparent 34%, rgba(6, 18, 46, .40) 100%); }

/* --- Contenido ------------------------------------------------------------ */
.px-hero__inner {
  position: relative; z-index: 3;
  width: var(--px-container); margin-inline: auto;
  padding: clamp(88px, 10vh, 132px) var(--px-gutter) clamp(36px, 4.5vh, 80px);
}
.px-hero__col { max-width: min(640px, 54%); }

.px-hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--px-r-pill); background: rgba(255, 255, 255, .08);
  margin-bottom: clamp(16px, 2.4vh, 30px); backdrop-filter: blur(6px);
}
.px-hero__badge span {
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: #E4F0FA;
}

.px-hero__h1 {
  font-size: var(--px-fs-hero-h1); line-height: .98; letter-spacing: -.035em;
  font-weight: 700; color: #fff; margin-bottom: clamp(14px, 2.2vh, 26px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.px-hero__lead {
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55;
  color: rgba(255, 255, 255, .82); max-width: 560px;
  margin: 0 0 clamp(20px, 3vh, 38px);
}
.px-hero__ctas { margin-bottom: clamp(22px, 4vh, 56px); }
.px-hero__btn-ghost {
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .34); padding: 16px 26px;
}
.px-hero__btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .6); }

.px-hero__stats { display: flex; align-items: center; gap: clamp(20px, 3.6vw, 48px); flex-wrap: wrap; }
.px-hero__stat-value { font-size: var(--px-fs-stat); font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1; }
.px-hero__stat-label {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62); margin-top: 7px; white-space: nowrap;
}
.px-hero__stat-div { width: 1px; height: 42px; background: rgba(255, 255, 255, .22); }

/* --- Packshot en flujo (móvil) ------------------------------------------- */
.px-hero__packs { display: none; position: relative; height: clamp(210px, 30vh, 290px); margin: 0 0 clamp(22px, 3vh, 32px); }
.px-hero__pack-shadow {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 62%; height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(2, 8, 24, .66), transparent 70%);
}
.px-hero__pack {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 100%; width: auto; object-fit: contain;
  opacity: 0; transition: opacity .9s ease;
  filter: drop-shadow(0 20px 32px rgba(2, 10, 32, .55));
}
.px-hero__pack.is-active { opacity: 1; }

/* --- Caption y controles -------------------------------------------------- */
.px-hero__controls {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: clamp(26px, 4.5vh, 58px);
  padding-top: clamp(14px, 2vh, 22px);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.px-hero__caption { display: flex; align-items: center; gap: 14px; min-width: 0; }
.px-hero__caption-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: background .5s ease;
}
.px-hero__caption-text { min-width: 0; }
.px-hero__caption-brand {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255, 255, 255, .58);
}
.px-hero__caption-name {
  display: block; font-size: clamp(19px, 2.1vw, 26px); font-weight: 700;
  letter-spacing: -.02em; color: #fff; line-height: 1.15;
}
.px-hero__caption-meta { display: block; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .72); margin-top: 3px; }

.px-hero__nav { display: flex; align-items: center; gap: 16px; }
.px-hero__dots { display: flex; align-items: center; gap: 9px; }
.px-hero__dot {
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; padding: 0; background: none; cursor: pointer;
}
.px-hero__dot-pill {
  display: block; width: 7px; height: 7px; border-radius: var(--px-r-pill);
  background: var(--px-dot-accent, rgba(255, 255, 255, .34));
  transition: width .45s ease, background .45s ease;
}
.px-hero__dot.is-active .px-hero__dot-pill { width: 30px; }

.px-hero__arrows { display: flex; gap: 8px; }
.px-hero__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .07); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, border-color .25s ease;
}
.px-hero__arrow:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); }

/* --- Único breakpoint: < 800 px ------------------------------------------ */
@media (max-width: 799.98px) {
  .px-hero__photos { display: none; }
  .px-hero__mobile-bg { display: block; }
  .px-hero__packs { display: block; }
  .px-hero__col { max-width: 100%; }
  .px-hero__stat-div { display: none; }
}
