/* ==========================================================================
   Héroe profundidad — copia fiel de 32-Efecto Profundidad/ejemplo/src/styles.css
   ========================================================================== */

.scroll-pin {
  position: relative;
  height: 280vh;
}

.scroll-pin .hero {
  --veil-opacity: 1;
  --sharp-mask: radial-gradient(
    ellipse 36% 36% at 50% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.88) 50%,
    transparent 90%
  );
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  cursor: default;
  background: var(--bg, #f5ebe3);
}

.hero-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg, #f5ebe3);
  opacity: var(--veil-opacity);
}

.hero-title-stage {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  overflow: visible;
}

.hero-video-frame {
  position: relative;
  width: 22vmin;
  height: 22vmin;
  overflow: hidden;
  border-radius: 10px;
  will-change: width, height, border-radius;
  background: var(--hero-frame-bg, #16384a);
  z-index: 1;
}

.hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.hero-video--mobile {
  display: none;
}

@media (max-width: 767px) and (orientation: portrait) {
  .hero-video-frame--has-mobile .hero-video--desktop {
    display: none;
  }
  .hero-video-frame--has-mobile .hero-video--mobile {
    display: block;
  }
}

.hero-title-wrap {
  position: relative;
  will-change: transform;
  overflow: visible;
  padding: 28vh 22vw;
  margin: -28vh -22vw;
}

.hero-title {
  font-family: var(--font-display, "EB Garamond", Garamond, ui-serif, Georgia, serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(3.5rem, 15.5vw, 12.2rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink, #c44a2a);
  white-space: nowrap;
  user-select: none;
  text-align: center;
  padding: 0.35em 0.5em;
  margin: 0;
}

.hero-title--multiline {
  white-space: normal;
}

.hero-title-soft {
  filter: url(#grainy-blur);
}

.hero-title-sharp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-mask-image: var(--sharp-mask);
  mask-image: var(--sharp-mask);
}

.hero-hint {
  position: relative;
  z-index: 4;
  margin-top: auto;
  padding: 0 1.5rem 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0.5;
  pointer-events: none;
  text-align: center;
  max-width: 36rem;
  color: var(--ink, #c44a2a);
}

/* Chrome editable (extra del tema, no interfiere con el efecto) */
.hero-chrome {
  position: absolute;
  inset-inline: 0;
  pointer-events: none;
  z-index: 5;
  color: var(--ink, #c44a2a);
}
.hero-chrome--top { top: 0; padding: 112px 24px 0; }
.hero-chrome--bottom { bottom: 0; padding: 0 24px 40px; }
@media (min-width: 768px) {
  .hero-chrome--top { padding: 128px 40px 0; }
  .hero-chrome--bottom { padding: 0 40px 40px; }
}
.hero-chrome-inner {
  max-width: var(--max, 1200px);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
