/*
 * JR Cinematic Hero 2.0.8
 * Secuencia por scroll: foto completa -> círculo -> tipografía centrada con CTAs.
 */

.jr-shrink-hero,
.jr-shrink-hero * {
  box-sizing: border-box;
}

.jr-shrink-hero {
  position: relative;
  min-height: 320svh;
  overflow: visible;
  background: #07152e;
  color: #fff;
  font-family: "Raleway", Arial, sans-serif;
  isolation: isolate;
}

.jr-shrink-hero__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #f6f7fb;
  isolation: isolate;
}

.jr-shrink-hero__light,
.jr-shrink-hero__dark,
.jr-shrink-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jr-shrink-hero__light {
  z-index: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(22, 100, 214, 0.04), transparent 30%),
    #f6f7fb;
}

.jr-shrink-hero__dark {
  z-index: 1;
  background:
    radial-gradient(circle at 80% 18%, rgba(26, 103, 231, 0.84), transparent 33%),
    linear-gradient(100deg, #0a0d14 0%, #0d1d43 52%, #1147b5 100%);
  opacity: 0;
  visibility: hidden;
}

.jr-shrink-hero__grain {
  z-index: 2;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("../images/jose-ramones-hero-noise-texture-background.png");
  background-repeat: repeat;
  background-size: 700px auto;
  background-position: center center;
}

.jr-shrink-hero__portrait {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0;
  background: #f6f7fb;
  box-shadow: none !important;
  transform: translate(-50%, -50%);
  will-change: width, height, border-radius, opacity, transform, top;
}

.jr-shrink-hero__portrait picture,
.jr-shrink-hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
}

.jr-shrink-hero__portrait img {
  object-fit: cover;
  object-position: 55% 38%;
  filter: grayscale(1) contrast(1.03);
  transform: scale(1);
  will-change: transform, opacity;
}

.jr-shrink-hero__headline {
  position: absolute;
  top: 60.5%;
  left: 50%;
  z-index: 4;
  width: min(82vw, 1040px);
  margin: 0;
  color: #fff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
}

.jr-shrink-hero__headline h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(66px, 8vw, 124px);
  font-weight: 850;
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-wrap: balance;
}

.jr-shrink-hero__headline h1 span {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(80px);
  will-change: transform, opacity;
}

.jr-shrink-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.jr-shrink-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  pointer-events: auto;
}

.jr-shrink-hero__button:hover,
.jr-shrink-hero__button:focus-visible {
  transform: translateY(-2px);
}

.jr-shrink-hero__button--primary {
  background: #ffffff;
  color: #0c1731;
  border: 1px solid #ffffff;
}

.jr-shrink-hero__button--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.jr-shrink-hero__meta {
  position: absolute;
  bottom: clamp(24px, 4vw, 44px);
  left: clamp(26px, 4vw, 42px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(38, 42, 49, 0.72);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.jr-shrink-hero__meta-item {
  display: inline-block;
  letter-spacing: 0.16em;
}

.jr-shrink-hero__meta-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d68df;
}

.jr-shrink-hero__meta::before {
  display: none;
}

.jr-shrink-hero__orb {
  position: absolute;
  z-index: 3;
  width: clamp(170px, 23vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1d68df;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.jr-shrink-hero__orb--left {
  left: 0;
  bottom: 9.5%;
  transform: translate(-46%, 0) scale(0.52);
}

.jr-shrink-hero__orb--right {
  right: 0;
  bottom: 9.5%;
  transform: translate(46%, 0) scale(0.52);
}

.jr-shrink-hero.is-fallback {
  min-height: 100svh;
}

.jr-shrink-hero.is-fallback .jr-shrink-hero__stage {
  position: relative;
  background: #07152e;
}

.jr-shrink-hero.is-fallback .jr-shrink-hero__dark,
.jr-shrink-hero.is-fallback .jr-shrink-hero__headline,
.jr-shrink-hero.is-fallback .jr-shrink-hero__actions,
.jr-shrink-hero.is-fallback .jr-shrink-hero__orb,
.jr-shrink-hero.is-fallback .jr-shrink-hero__headline h1 span,
.jr-shrink-hero.is-fallback .jr-shrink-hero__button {
  opacity: 1;
  visibility: visible;
}

.jr-shrink-hero.is-fallback .jr-shrink-hero__portrait {
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  top: 38%;
  border-radius: 50%;
}

.jr-shrink-hero.is-fallback .jr-shrink-hero__headline {
  top: 60.5%;
}

.jr-shrink-hero.is-fallback .jr-shrink-hero__headline h1 span,
.jr-shrink-hero.is-fallback .jr-shrink-hero__actions {
  transform: none;
}

@media (max-width: 980px) {
  .jr-shrink-hero__grain {
    background-size: 520px auto;
  }

  .jr-shrink-hero__headline {
    width: min(88vw, 680px);
    top: 61.5%;
  }
}
