/* ==========================================================================
   Sección Postales Cinematográficas (#postales)
   Refs: 02-postal-paramo-roca.png, 03-postal-frailejones.png
   ========================================================================== */

.postales-stack {
  position: relative;
  background: var(--bosque);
  color: var(--blanco);
  width: 100%;
}

.postal {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  will-change: transform;
}

.postal[data-postal="1"] {
  z-index: 1;
}

.postal[data-postal="2"] {
  z-index: 2;
}

.postal[data-postal="3"] {
  z-index: 3;
}

.postal__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bosque);
  overflow: hidden;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
}

.postal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.postal__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.25) 0%,
    transparent 30%,
    rgba(10, 10, 10, 0.15) 60%,
    rgba(10, 10, 10, 0.78) 100%
  );
  pointer-events: none;
}

.postal__dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.postal__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  box-sizing: border-box;
}

.postal__pie {
  margin: 0;
  max-width: 480px;
  font-family: var(--f-texto);
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.postal__pie strong {
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.09em;
}

.postal__rotulo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.35rem;
  margin-right: clamp(0.5rem, 3.5vw, 4rem);
  font-family: var(--f-texto);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.postal__rotulo-top,
.postal__rotulo-bot {
  display: block;
}

.postal__rotulo strong {
  font-weight: 800;
  color: #fff;
}

@media (max-width: 899px) {
  .postal__count {
    top: calc(56px + 0.85rem) !important;
    right: var(--pad-x) !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: rgba(10, 10, 10, 0.5);
    padding: 4px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .postal__veil {
    background: linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.35) 0%,
      transparent 25%,
      rgba(10, 10, 10, 0.2) 50%,
      rgba(10, 10, 10, 0.9) 100%
    );
  }
  .postal__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem var(--pad-x) 2.2rem var(--pad-x);
  }
  .postal__pie {
    max-width: 100%;
    font-size: clamp(0.96rem, 4vw, 1.08rem);
    line-height: 1.45;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
  }
  .postal__rotulo {
    margin-right: 0;
    align-items: flex-start;
    text-align: left;
    font-size: clamp(0.85rem, 3.2vw, 0.92rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  }
}

@media (max-width: 640px) {
  .postal__pie {
    max-width: 100%;
  }
  .postal__rotulo {
    margin-right: 0;
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .postal {
    position: relative !important;
    top: auto !important;
    height: 80vh !important;
  }
  .postal__media {
    transform: none !important;
  }
  .postal__dim {
    opacity: 0 !important;
  }
}

.postal__media .bg-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s}.postal__media .bg-video.is-playing{opacity:1}.postal__media{border-radius:0}.postal__count{position:absolute;z-index:3;right:clamp(1.5rem,4vw,3.5rem);top:clamp(1.5rem,4vw,3.5rem);color:#fff;font:500 .8rem var(--f-texto);letter-spacing:.1em;text-shadow:0 1px 4px #000}.postal__pie{clip-path:inset(0)}
.postal__count{top:calc(80px + 1.5rem)}
