/* Cortes page specific styles */

.cortes-section {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: var(--header-height) 0 0;
}

.cortes-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.cortes-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9);
  transition: opacity 0.8s ease;
}

.cortes-video.is-active {
  opacity: 1;
}

.cortes-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.cortes-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4rem;
  max-width: min(95vw, 1600px);
  margin: 0 auto;
  justify-items: center;
  align-items: center;
  padding: 2rem 4vw 5rem;
  text-align: center;
}

.corte-block {
  width: 100%;
  max-width: min(95vw, 1600px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 1.35rem;
  text-align: center;
  padding: 1.5rem 0 3.5rem;
}

.corte-block:first-child {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(2.5rem, 10vh, 4.5rem) 4vw 3.5rem;
  align-items: center;
  justify-items: center;
  transform: translateY(-120px);
}

.cortes-page .corte-block.is-active:first-child {
  transform: translateY(-120px);
}

.cortes-page main {
  padding-top: 0;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-height, 96px);
  scroll-behavior: smooth;
}

.cortes-page .corte-block {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.corte-block h2,
.corte-block h3 {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  margin: 0 auto;
}

.corte-block p {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.7;
}

.corte-block .eyebrow {
  font-family: "Playfair Display", serif;
  font-style: italic;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0;
}

.corte-block.is-active h2,
.corte-block.is-active h3,
.corte-block.is-active p {
  color: #fff;
}

.corte-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.corte-block.corte-decor {
  align-items: center;
  text-align: center;
}

.decor-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 1100px;
}

.decor-container.decor-right {
  grid-template-columns: 1fr auto;
  justify-items: end;
  text-align: right;
}

.decor-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.decor-word {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  letter-spacing: 0.12em;
  color: #f4f2ee;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.decor-vertical-right .decor-word {
  writing-mode: vertical-lr;
  transform: none;
}

.decor-copy {
  display: grid;
  gap: 0.75rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.decor-copy.decor-copy-right {
  justify-items: end;
  text-align: right;
}

.decor-eyebrow {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0;
  position: relative;
  width: fit-content;
  align-self: start;
  justify-self: start;
  text-align: left;
  transform: translateX(-18%);
}

.decor-eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: var(--accent, #e8923c);
}

.decor-body {
  max-width: 860px;
  text-align: left;
}

.corte-gallery {
  width: 100%;
  max-width: min(95vw, 1600px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 1.2rem;
  align-items: start;
  justify-items: center;
  justify-content: center;
}

.corte-gallery figure {
  margin: 0;
  text-align: center;
}

.corte-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
}

.corte-gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted, #d4d0c8);
}

@media (max-width: 960px) {
  .cortes-section {
    padding: 4rem 5vw;
  }

  .corte-block {
    min-height: 80vh;
    padding: 1.2rem 0 3rem;
  }

  .corte-gallery {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .corte-block {
    min-height: 75vh;
    padding: 1rem 0 2.5rem;
  }

  .cortes-stack {
    gap: 3rem;
  }
}

@keyframes cortesStageDrift {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes corteActivePulse {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(232, 146, 60, 0.12));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(232, 146, 60, 0.3));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cortes-page .cortes-stage {
    animation: cortesStageDrift 18s ease-in-out infinite;
  }

  .cortes-page .corte-block.is-active {
    animation: corteActivePulse 10s ease-in-out infinite;
  }
}
