.hero {
  position: relative;
  margin-top: var(--header-height);
  margin-bottom: -2px;
  width: 100%;
  height: calc(100vh - var(--header-height) + 2px);
  overflow: hidden;
  background: var(--color-bg);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-out),
    visibility 0s linear var(--dur-slow);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: scale(1.06);
  transition: transform 6s var(--ease-out);
}

.hero-slide-media--natural img {
  object-fit: cover;
  object-position: center 0%;
}

.hero-slide.is-active .hero-slide-media img {
  transform: scale(1);
}

.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(250, 247, 243, 0.5) 0%,
      rgba(250, 247, 243, 0.32) 28%,
      rgba(250, 247, 243, 0.1) 48%,
      rgba(250, 247, 243, 0) 65%),
    linear-gradient(180deg,
      rgba(250, 247, 243, 0.4) 0%,
      rgba(250, 247, 243, 0) 16%);
}

.hero-slide:has(.hero-slide-text--right) .hero-slide-scrim {
  background:
    linear-gradient(260deg,
      rgba(250, 247, 243, 0.5) 0%,
      rgba(250, 247, 243, 0.32) 28%,
      rgba(250, 247, 243, 0.1) 48%,
      rgba(250, 247, 243, 0) 65%),
    linear-gradient(180deg,
      rgba(250, 247, 243, 0.4) 0%,
      rgba(250, 247, 243, 0) 16%);
}

.hero-slide-scrim--grid-center {
  background:
    radial-gradient(ellipse 420px 360px at 71% 52%,
      rgba(250, 247, 243, 0.82) 0%,
      rgba(250, 247, 243, 0.55) 45%,
      rgba(250, 247, 243, 0.15) 75%,
      rgba(250, 247, 243, 0) 100%),
    linear-gradient(180deg,
      rgba(250, 247, 243, 0.4) 0%,
      rgba(250, 247, 243, 0) 16%);
}

.hero-name-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--space-xl) - 1rem);
  pointer-events: none;
  text-align: center;
}

.hero-slide-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.hero-slide-text--center {
  text-align: center;
  align-items: center;
}

.hero-slide-text--right {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  align-items: flex-end;
}

/* Centrado sobre el punto donde se cruzan las 4 imágenes del editor (slide 2) */
.hero-slide-text--grid-center {
  margin-left: 63%;
  max-width: 380px;
  text-align: center;
  align-items: center;
}

.hero-slide-text > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.hero-slide.is-active .hero-slide-text > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .hero-slide-text > *:nth-child(1) { transition-delay: 0.15s; }
.hero-slide.is-active .hero-slide-text > *:nth-child(2) { transition-delay: 0.3s; }
.hero-slide.is-active .hero-slide-text > *:nth-child(3) { transition-delay: 0.45s; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(250, 247, 243, 0.85), 0 14px 34px rgba(41, 39, 37, 0.2);
}

.hero-title-accent {
  display: block;
  color: var(--color-text-secondary);
  font-style: italic;
  font-weight: 450;
  text-shadow: 0 2px 6px rgba(250, 247, 243, 0.85), 0 14px 30px rgba(41, 125, 115, 0.25);
}

.hero-desc {
  margin-top: var(--space-md);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  color: rgba(41, 39, 37, 0.88);
  max-width: 46ch;
  text-shadow: 0 0 4px rgba(250, 247, 243, 1), 0 0 14px rgba(250, 247, 243, 1), 0 2px 10px rgba(250, 247, 243, 0.95);
}

.hero-slide-text--signature {
  justify-content: flex-end;
  max-width: 460px;
  padding-bottom: calc(var(--space-lg) + 1.5rem);
}

.hero-name-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(7.2rem, 12.6vw, 10.2rem);
  line-height: 1;
  color: var(--color-surface);
  text-shadow: 0 2px 4px rgba(41, 39, 37, 0.35), 0 8px 24px rgba(41, 39, 37, 0.3);
  margin-bottom: 2.5rem;
}

.hero-name-initial {
  font-size: 1.25em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-signature-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--color-text-secondary);
  text-shadow: 0 0 4px rgba(250, 247, 243, 1), 0 0 14px rgba(250, 247, 243, 1), 0 2px 6px rgba(250, 247, 243, 0.9);
  margin-bottom: 0.6rem;
}

.hero-slide-scrim--minimal {
  background:
    linear-gradient(0deg,
      rgba(250, 247, 243, 0.55) 0%,
      rgba(250, 247, 243, 0) 30%),
    linear-gradient(180deg,
      rgba(250, 247, 243, 0.4) 0%,
      rgba(250, 247, 243, 0) 16%);
}

.hero-controls {
  position: absolute;
  z-index: 10;
  bottom: var(--space-lg);
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft);
}

.hero-arrow--prev {
  left: var(--space-md);
}

.hero-arrow--next {
  right: var(--space-md);
}

.hero-arrow:hover {
  background: var(--color-text-primary);
  color: var(--color-surface);
  border-color: var(--color-text-primary);
}

.hero-dots {
  display: flex;
  gap: 0.6rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background-color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}

.hero-dots button.is-active {
  background: var(--color-text-secondary);
  transform: scale(1.4);
}

.hero-scroll {
  position: absolute;
  z-index: 10;
  right: var(--space-md);
  bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 46px;
  background: var(--color-text-muted);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-text-secondary);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
