/* ============================================
   NOSOTROS — pieza editorial · el CRITERIO
   Dirección de arte: tipografía, capas, color, aire.
   Sin fotografía de producto. Foto real: fachada (solo hero).
   Cita: hueco para foto/vídeo de interior o llegada.
   ============================================ */

@view-transition {
  navigation: auto;
}

.pagina-tienda {
  color: var(--blanco-roto);
  background-color: var(--petroleo);
  background-image: var(--fondo-petroleo-imagen);
  background-size: var(--fondo-petroleo-tamano);
  background-repeat: repeat, repeat;
  overflow-x: clip;
}

.cr {
  margin-top: var(--navbar-h);
  --cr-inset: clamp(1.25rem, 5vw, 6rem);
  --cr-max: 1240px;
  --cr-wedge: clamp(2rem, 5.5vw, 5rem);
  /* Un solo azul para interludio + encuentro (sin costura) */
  --cr-oscuro:
    radial-gradient(110% 70% at 85% 0%, rgba(var(--turquesa-rgb), 0.12) 0%, transparent 50%),
    radial-gradient(90% 60% at 10% 100%, rgba(var(--dorado-rgb), 0.06) 0%, transparent 48%),
    var(--petroleo);
}

/* ---- Revelados: fades muy suaves ---- */
.reveal {
  transition:
    opacity 1.15s cubic-bezier(0.22, 0.61, 0.24, 1),
    transform 1.15s cubic-bezier(0.22, 0.61, 0.24, 1);
  transition-delay: var(--d, 0ms);
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Etiqueta índice editorial ---- */
.cr-idx {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(var(--dorado-rgb), 0.85);
}

.cr-idx--dark {
  color: rgba(var(--dorado-rgb), 0.9);
}

.cr-idx--center {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.cr-idx--center::before,
.cr-idx--center::after {
  content: '';
  width: clamp(1.5rem, 4vw, 2.5rem);
  height: 1px;
  background: rgba(var(--dorado-rgb), 0.55);
}

.cr-under {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-bottom: 0.06em;
  background-image: linear-gradient(rgba(var(--dorado-rgb), 0.7), rgba(var(--dorado-rgb), 0.7));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

/* ============================================
   ESCENA 1 · Hero editorial
   ============================================ */
.cr-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(28rem, 82svh, 52rem);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 9vh, 6rem) var(--cr-inset);
  background:
    radial-gradient(88% 70% at 84% 8%, rgba(var(--turquesa-rgb), 0.14) 0%, transparent 52%),
    radial-gradient(60% 60% at 6% 92%, rgba(var(--dorado-rgb), 0.07) 0%, transparent 56%);
}

.cr-hero__marca {
  position: absolute;
  left: -0.04em;
  bottom: 0.02em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(8rem, 34vw, 26rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(var(--texto-claro-rgb), 0.045);
  pointer-events: none;
  white-space: nowrap;
  translate: 0 var(--dy, 0px);
}

.cr-hero__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--cr-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: center;
}

.cr-hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--texto-claro-rgb), 0.62);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.cr-hero__kicker-linea {
  display: block;
  flex: 0 0 auto;
  width: 0.85rem;
  height: 1px;
  background: rgba(var(--dorado-rgb), 0.75);
}

.cr-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 1.2rem + 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--blanco-roto);
  text-wrap: balance;
}

.cr-hero__title em {
  display: block;
  margin-top: 0.12em;
  font-style: italic;
  font-weight: 400;
  color: var(--dorado);
}

.cr-hero__sub {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(var(--texto-claro-rgb), 0.72);
}

/* Foto fachada — duotono editorial (estado anterior) */
.cr-hero__foto {
  margin: 0;
  justify-self: start;
  width: min(100%, 30rem);
}

.cr-hero__foto-duo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  rotate: -1.4deg;
  border: 1px solid rgba(var(--dorado-rgb), 0.32);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(var(--beige-claro-rgb), 0.06);
}

.cr-hero__foto-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.04);
  filter:
    grayscale(1) sepia(1) hue-rotate(150deg) saturate(0.72) brightness(0.92) contrast(1.02)
    blur(0.45px);
}

/* Suaviza el borde superior del recorte (pixelado) */
.cr-hero__foto-duo::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0 0 auto 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    rgba(var(--petroleo-rgb), 0.55) 0%,
    rgba(var(--petroleo-rgb), 0.22) 42%,
    transparent 100%
  );
  pointer-events: none;
}

.cr-hero__foto-duo::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(var(--dorado-rgb), 0.2) 0%, transparent 48%),
    linear-gradient(200deg, rgba(var(--petroleo-rgb), 0.1) 0%, rgba(var(--petroleo-rgb), 0.58) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ============================================
   ESCENA 2 · Manifiesto tipográfico (claro)
   ============================================ */
.cr-manif {
  position: relative;
  z-index: 2;
  overflow: clip;
  color: var(--petroleo);
  background-color: var(--blanco-roto);
  background-image: var(--fondo-beige-imagen);
  background-size: var(--fondo-beige-tamano);
  background-repeat: repeat, repeat;
  margin-top: calc(-1 * var(--cr-wedge));
  padding: calc(clamp(3.35rem, 10vh, 6.25rem) + var(--cr-wedge)) var(--cr-inset) clamp(3.35rem, 10vh, 6.25rem);
  clip-path: polygon(0 var(--cr-wedge), 100% 0, 100% 100%, 0 100%);
}

/* Veladura orgánica — rompe el fondo plano */
.cr-manif::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -12%;
  right: -8%;
  width: min(70vw, 46rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--dorado-rgb), 0.16), rgba(var(--dorado-rgb), 0.04) 55%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.cr-manif::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: -14%;
  bottom: -18%;
  width: min(64vw, 40rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--petroleo-rgb), 0.07), transparent 70%);
  pointer-events: none;
}

.cr-manif__marca {
  position: absolute;
  left: -0.03em;
  bottom: 0.08em;
  z-index: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(6rem, 28vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(var(--petroleo-rgb), 0.04);
  pointer-events: none;
  white-space: nowrap;
  translate: 0 var(--dy, 0px);
}

.cr-manif__lienzo {
  position: relative;
  z-index: 1;
  max-width: min(52rem, var(--cr-max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 3.5vw, 2.35rem);
}

.cr-manif__f {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--petroleo);
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.cr-manif__f em {
  font-style: italic;
  font-weight: 500;
  color: var(--dorado);
}

/*
  Posicionamiento:
             Texto 1
                                          Texto 2
  Texto 3
                          Texto 4
*/
.cr-manif__f--a {
  align-self: flex-start;
  font-size: clamp(1.85rem, 1.25rem + 2.8vw, 3.65rem);
  max-width: min(18ch, 92%);
  margin-left: clamp(-6%, -4vw, 0%);
  text-align: left;
}

.cr-manif__f--b {
  align-self: flex-end;
  font-size: clamp(2.15rem, 1.4rem + 3.4vw, 4.5rem);
  font-style: italic;
  font-weight: 400;
  text-align: right;
  max-width: min(16ch, 92%);
  margin-left: auto;
  margin-right: -15%;
}

.cr-manif__f--b em {
  font-style: italic;
}

.cr-manif__f--c {
  align-self: flex-start;
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(var(--petroleo-rgb), 0.62);
  text-align: left;
  max-width: min(28ch, 92%);
  margin-left: -15%;
  margin-right: auto;
  padding-left: 0;
}

.cr-manif__f--d {
  align-self: center;
  font-size: clamp(1.55rem, 1.15rem + 2vw, 2.85rem);
  text-align: center;
  max-width: min(20ch, 92%);
  margin-left: clamp(23%, 31vw, 37%);
  margin-right: auto;
}

/* Móvil y tablet vertical: el escalonado se apoya en align-self, sin sangrados negativos
   que saquen las líneas del viewport. El desplazamiento de escritorio (>=1024) no cambia. */
@media (max-width: 1023px) {
  .cr-manif__f--a {
    margin-left: 0;
    max-width: 100%;
  }

  .cr-manif__f--b {
    margin-right: 0;
    max-width: 100%;
  }

  .cr-manif__f--c {
    margin-left: 0;
    max-width: 100%;
  }

  .cr-manif__f--d {
    margin-left: auto;
    max-width: 100%;
  }
}

/* ============================================
   Capítulos oscuros 3 + 4 · un solo fondo
   ============================================ */
.cr-oscuro-band {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--cr-wedge));
  background: var(--cr-oscuro);
  clip-path: polygon(0 0, 100% var(--cr-wedge), 100% 100%, 0 100%);
  padding-top: var(--cr-wedge);
  color: var(--blanco-roto);
  overflow: clip;
}

.cr-enc {
  position: relative;
  overflow: visible;
  color: inherit;
  background: transparent;
  padding: clamp(3rem, 10vh, 6rem) var(--cr-inset) clamp(4rem, 13vh, 8rem);
}

/* Hilo vertical que cose la secuencia — rompe el vacío lateral */
.cr-enc::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: clamp(1.25rem, 5vw, 6rem);
  top: 18%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(var(--dorado-rgb), 0.32), rgba(var(--turquesa-rgb), 0.24), transparent);
  pointer-events: none;
}

@media (max-width: 767px) {
  .cr-enc::before { display: none; }

  .cr-hero {
    min-height: 0;
    padding: clamp(2.25rem, 7vh, 4rem) var(--cr-inset);
  }

  .cr-cierre {
    min-height: 0;
  }
}

.cr-enc__marca {
  position: absolute;
  right: 2%;
  top: 0.12em;
  z-index: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4.5rem, 18vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: rgba(var(--texto-claro-rgb), 0.04);
  pointer-events: none;
  white-space: nowrap;
  overflow: visible;
  translate: 0 var(--dy, 0px);
}

.cr-enc__head {
  position: relative;
  z-index: 1;
  max-width: var(--cr-max);
  margin: 0 auto clamp(3rem, 9vw, 5.5rem);
}

.cr-enc__title {
  margin-top: 1rem;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 4vw, 3.4rem);
  line-height: 1.12;
  color: var(--blanco-roto);
}

.cr-enc__seq {
  position: relative;
  z-index: 1;
  max-width: var(--cr-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4.5vw, 2.75rem);
}

.cr-enc__mom {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cr-enc__verbo {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--blanco-roto);
  font-size: clamp(2.1rem, 1.1rem + 5vw, 4rem);
}

.cr-enc__nota {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(var(--texto-claro-rgb), 0.5);
}

/* Ritmo desalineado — 5 momentos */
.cr-enc__mom--2 { padding-left: clamp(1rem, 14vw, 10rem); }
.cr-enc__mom--3 { padding-left: clamp(2rem, 24vw, 17rem); }
.cr-enc__mom--4 { padding-left: clamp(1rem, 12vw, 8rem); }
.cr-enc__mom--5 { padding-left: clamp(0.25rem, 3vw, 2rem); }

/* "Escuchamos" — el corazón de la confianza */
.cr-enc__mom--3 .cr-enc__verbo {
  font-size: clamp(2.75rem, 1.2rem + 7vw, 5.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--dorado);
}

.cr-enc__mom--3 .cr-enc__nota {
  color: rgba(var(--dorado-rgb), 0.72);
}

/* ============================================
   ESCENA 4 · La cita + foto real (recorte distinto)
   ============================================ */
.cr-cita {
  position: relative;
  z-index: 4;
  overflow: hidden;
  color: var(--petroleo);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(var(--dorado-rgb), 0.14) 0%, transparent 42%),
    linear-gradient(158deg, var(--blanco-roto) 0%, var(--beige) 58%, var(--beige-oscuro) 100%);
  margin-top: calc(-1 * var(--cr-wedge));
  padding: calc(clamp(4rem, 12vh, 8rem) + var(--cr-wedge)) var(--cr-inset) clamp(4rem, 12vh, 8rem);
  clip-path: polygon(0 var(--cr-wedge), 100% 0, 100% 100%, 0 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: clamp(24rem, 70svh, 44rem);
}

.cr-cita__marca {
  position: absolute;
  right: calc(-0.04em + 3%);
  bottom: 4%;
  z-index: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4.5rem, 24vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(var(--petroleo-rgb), 0.05);
  pointer-events: none;
  white-space: nowrap;
  translate: 0 var(--dy, 0px);
}

/* Hueco listo: foto o vídeo de interior / llegada a la entrada */
.cr-cita__media {
  position: absolute;
  z-index: 1;
  margin: 0;
  right: -12%;
  bottom: 6%;
  width: min(62vw, 16rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  rotate: 3.2deg;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(var(--dorado-rgb), 0.32);
  background:
    radial-gradient(90% 80% at 60% 30%, rgba(var(--dorado-rgb), 0.12), transparent 55%),
    linear-gradient(160deg, var(--beige) 0%, var(--beige-oscuro) 100%);
}

/* Móvil: la figura entra en flujo bajo la cita — absoluta se le superpone */
@media (max-width: 767px) {
  .cr-cita {
    min-height: 0;
    align-content: start;
    row-gap: 1.25rem;
    padding-bottom: clamp(3rem, 10vh, 5rem);
  }

  .cr-cita__media {
    position: relative;
    inset: auto;
    width: min(58vw, 13.5rem);
    margin: 0 0 0 auto;
    rotate: 2deg;
    z-index: 2;
  }

  .cr-cita__quote {
    max-width: 100%;
  }
}

.cr-cita__media img,
.cr-cita__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.cr-cita__media:has(img):not(:has(img[src=""])),
.cr-cita__media:has(video) {
  background: var(--petroleo);
}

.cr-cita__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--cr-max);
  margin-inline: auto;
}

.cr-cita__quote {
  margin: 0;
  width: 100%;
  max-width: min(22rem, 72%);
}

.cr-cita__quote p {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.cr-cita__l1 {
  font-size: clamp(1.85rem, 1.1rem + 4vw, 3.85rem);
  color: var(--petroleo);
}

.cr-cita__l2 {
  margin-top: 0.28em;
  font-style: italic;
  font-size: clamp(1.85rem, 1.1rem + 4vw, 3.85rem);
  color: var(--dorado);
}

/* ============================================
   ESCENA FINAL · El cierre (oscuro, silencio)
   ============================================ */
.cr-cierre {
  position: relative;
  z-index: 5;
  overflow: hidden;
  min-height: clamp(22rem, 66svh, 40rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: calc(-1 * var(--cr-wedge));
  padding: calc(clamp(4rem, 12vh, 8rem) + var(--cr-wedge)) var(--cr-inset) clamp(4rem, 12vh, 8rem);
  clip-path: polygon(0 0, 100% var(--cr-wedge), 100% 100%, 0 100%);
  background:
    radial-gradient(60% 60% at 22% 8%, rgba(var(--dorado-rgb), 0.1) 0%, transparent 55%),
    radial-gradient(70% 55% at 50% 46%, rgba(var(--turquesa-rgb), 0.14) 0%, transparent 62%),
    var(--petroleo);
}

.cr-cierre__marca {
  position: absolute;
  left: 50%;
  bottom: -0.22em;
  z-index: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(7rem, 32vw, 26rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(var(--texto-claro-rgb), 0.04);
  pointer-events: none;
  white-space: nowrap;
  translate: -50% var(--dy, 0px);
}

.cr-cierre__inner {
  position: relative;
  z-index: 1;
  max-width: min(44rem, 92%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cr-cierre__frase {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3.25rem);
  line-height: 1.16;
  color: var(--blanco-roto);
  text-wrap: balance;
}

.cr-cierre__frase em {
  font-style: italic;
  color: var(--dorado);
}

.cr-cierre__frase em:last-of-type {
  display: block;
  margin-top: 0.22em;
  color: rgba(var(--texto-claro-rgb), 0.72);
}

.cr-cierre__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: clamp(2.25rem, 6vw, 3.25rem);
}

/* ============================================
   BOTONES
   ============================================ */
.nos-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: auto;
  padding: 1.05rem 2.15rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  isolation: isolate;
  overflow: hidden;
  transition:
    color 0.55s cubic-bezier(0.22, 0.61, 0.24, 1),
    border-color 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 0.61, 0.24, 1),
    box-shadow 0.55s ease;
}

.nos-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.24, 1);
}

.nos-btn__label {
  display: inline-block;
}

.nos-btn__arrow {
  display: inline-block;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.24, 1);
}

.nos-btn--fill {
  color: var(--petroleo);
  background: var(--dorado);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.nos-btn--fill::before {
  background: var(--blanco-roto);
}

.nos-btn--ghost {
  color: var(--petroleo);
  border: 1px solid rgba(var(--beige-claro-rgb), 0.35);
  background: var(--blanco-roto);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.nos-btn--ghost::before {
  background: var(--dorado);
}

.nos-btn--fill:active::before,
.nos-btn--ghost:active::before {
  transform: translateY(0);
}

.nos-btn--ghost:active {
  color: var(--petroleo);
  border-color: var(--dorado);
}

/* ============================================
   TABLET
   ============================================ */
@media (min-width: 768px) {
  body.pagina-tienda {
    padding-bottom: 0;
  }

  .cr-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .cr-hero__foto {
    justify-self: end;
    width: min(100%, 26rem);
  }

  .cr-cita__media {
    right: 4%;
    top: 10%;
    bottom: auto;
    width: min(42vw, 26rem);
  }

  .cr-cita__quote {
    max-width: min(32rem, 58%);
  }
}

/* Tablet vertical: se conserva la figura superpuesta, pero sin invadir la cita */
@media (min-width: 768px) and (max-width: 1023px) {
  .cr-cita__media {
    width: min(32vw, 17rem);
    right: 1.5%;
  }

  .cr-cita__quote {
    max-width: min(24rem, 50%);
  }
}

/* ============================================
   ESCRITORIO
   ============================================ */
@media (min-width: 1024px) {
  .cr-hero__foto {
    width: min(100%, 30rem);
    translate: 0 1%;
  }

  .cr-hero__foto-duo {
    aspect-ratio: 3 / 4;
  }

  .cr-cita__media {
    right: 6%;
    width: min(38vw, 28rem);
    top: 8%;
  }

  .cr-cita__quote {
    max-width: min(34rem, 52%);
  }

  .nos-btn:hover {
    transform: translateY(-3px);
  }

  .nos-btn:hover::before {
    transform: translateY(0);
  }

  .nos-btn--fill:hover {
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  }

  .nos-btn--ghost:hover {
    color: var(--petroleo);
    border-color: var(--dorado);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  }

  .nos-btn--ghost:hover .nos-btn__arrow {
    transform: translateX(5px);
  }
}

/* Landscape corto — sin alturas de escena rígidas */
@media (max-height: 500px) and (orientation: landscape) {
  .cr-hero,
  .cr-cita,
  .cr-cierre {
    min-height: 0;
  }

  .cr-hero {
    padding: clamp(1.5rem, 6vh, 2.75rem) var(--cr-inset);
  }

  .cr-hero__title {
    font-size: clamp(1.85rem, 1.1rem + 4vh, 2.85rem);
  }

  .cr-cita {
    padding: calc(clamp(2.5rem, 8vh, 4rem) + var(--cr-wedge)) var(--cr-inset) clamp(2.5rem, 8vh, 4rem);
  }

  .cr-cierre {
    padding: calc(clamp(2.5rem, 8vh, 4rem) + var(--cr-wedge)) var(--cr-inset) clamp(2.5rem, 8vh, 4rem);
  }
}

/* ============================================
   MOVIMIENTO REDUCIDO
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal {
    transition: none;
  }

  .cr-hero__marca,
  .cr-enc__marca,
  .cr-manif__marca,
  .cr-cita__marca,
  .cr-cierre__marca {
    translate: none !important;
  }

  .cr-cierre__marca {
    translate: -50% 0 !important;
  }
}

/* ============================================
   DIRECCIÓN DE ARTE EN MOVIMIENTO
   grano · luz · cursor · cinética · scroll-driven
   ============================================ */

/* ---- Grano de película (film grain) ---- */
.cr-grain {
  position: fixed;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  animation: cr-grain 0.7s steps(6) infinite;
}

@keyframes cr-grain {
  0% { transform: translate(0, 0); }
  16% { transform: translate(-7%, 4%); }
  33% { transform: translate(6%, -6%); }
  50% { transform: translate(-4%, 7%); }
  66% { transform: translate(8%, -3%); }
  83% { transform: translate(-6%, -7%); }
  100% { transform: translate(0, 0); }
}

/* ---- Revelado cinético por palabras ---- */
.js-reveal .reveal[data-split] {
  opacity: 1;
  transform: none;
}

[data-split] .w {
  display: inline-block;
  will-change: transform, opacity;
}

.js-reveal [data-split] .w {
  opacity: 0;
  transform: translateY(0.5em);
  transition:
    opacity 0.7s ease,
    transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 26ms);
}

.js-reveal [data-split].is-in .w {
  opacity: 1;
  transform: none;
}

/* ---- El encuentro · rail + momento activo ---- */
.cr-enc__seq {
  position: relative;
}

.cr-enc__rail {
  display: none;
}

.cr-enc__mom {
  position: relative;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.24, 1);
}

.cr-enc__verbo {
  transition: color 0.55s ease;
}

@media (min-width: 768px) {
  .cr-enc__seq {
    padding-left: 2.75rem;
  }

  .cr-enc__rail {
    display: block;
    position: absolute;
    left: 0.45rem;
    top: 0.7em;
    bottom: 0.7em;
    width: 1px;
    background: linear-gradient(180deg, rgba(var(--dorado-rgb), 0.5), rgba(var(--dorado-rgb), 0.1));
  }

  .cr-enc__mom::before {
    content: "";
    position: absolute;
    left: -2.35rem;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(var(--dorado-rgb), 0.5);
    background: transparent;
    transition: background 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
  }

  .cr-enc__mom.is-active {
    transform: translateX(10px);
  }

  .cr-enc__mom.is-active::before {
    background: var(--dorado);
    transform: scale(1.35);
    box-shadow: 0 0 0 5px rgba(var(--dorado-rgb), 0.12);
  }

  .cr-enc__mom:not(.is-active) .cr-enc__verbo {
    color: rgba(var(--texto-claro-rgb), 0.72);
  }

  .cr-enc__mom--3:not(.is-active) .cr-enc__verbo {
    color: rgba(var(--dorado-rgb), 0.8);
  }
}

/* ---- Interludio · huecos listos (sin “provisional”) ---- */
.cr-inter {
  position: relative;
  overflow: visible;
  background: transparent;
  margin-top: 0;
  padding: clamp(3rem, 9vh, 5.5rem) var(--cr-inset) clamp(2rem, 5vh, 3.5rem);
  clip-path: none;
}

.cr-inter__comp {
  position: relative;
  max-width: var(--cr-max);
  margin-inline: auto;
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.cr-slot {
  position: relative;
  margin: 0;
}

.cr-slot__marco {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(var(--dorado-rgb), 0.22);
  background: #173743;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.cr-slot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Passe-partout: filete dorado interior, como una lámina montada */
.cr-slot__marco::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: clamp(0.4rem, 1.4vw, 0.7rem);
  border: 1px solid rgba(var(--dorado-rgb), 0.2);
  pointer-events: none;
}

/* Sombra baja que asienta la foto sobre el fondo oscuro */
.cr-slot__marco::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(var(--petroleo-rgb), 0) 48%,
    rgba(var(--petroleo-rgb), 0.34) 100%
  );
  pointer-events: none;
}

.cr-slot__nota {
  display: grid;
  gap: 0.4rem;
  max-width: 30rem;
  margin-top: clamp(0.9rem, 2.5vw, 1.25rem);
  padding-top: clamp(0.65rem, 2vw, 0.9rem);
  border-top: 1px solid rgba(var(--dorado-rgb), 0.3);
}

.cr-slot__frase {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 0.92rem + 0.55vw, 1.35rem);
  line-height: 1.35;
  color: rgba(var(--texto-claro-rgb), 0.82);
}

.cr-slot--a .cr-slot__marco {
  aspect-ratio: 16 / 10;
  rotate: -1.1deg;
}

.cr-slot--b .cr-slot__marco {
  aspect-ratio: 16 / 10;
  rotate: 1.4deg;
}

@media (min-width: 768px) {
  .cr-inter__comp {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
  }

  .cr-slot--a .cr-slot__marco {
    aspect-ratio: 3 / 2;
    rotate: -1.4deg;
  }

  .cr-slot--b {
    margin-top: clamp(2.5rem, 8vw, 6rem);
    z-index: 2;
  }

  .cr-slot--b .cr-slot__marco {
    aspect-ratio: 4 / 5;
    rotate: 1.8deg;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  }
}

@media (hover: hover) and (min-width: 768px) {
  .cr-slot:hover .cr-slot__marco {
    border-color: rgba(var(--dorado-rgb), 0.5);
  }

  .cr-slot:hover img {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-slot img {
    transition: none;
  }
}

/* ---- Parallax + duotono dinámico (scroll-driven) ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
    .cr-hero__foto-duo img {
      animation: cr-hero-duo linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    @keyframes cr-hero-duo {
      from {
        filter: grayscale(1) sepia(1) hue-rotate(135deg) saturate(0.72) brightness(0.88) contrast(1.02) blur(0.45px);
        transform: scale(1.06) translateY(-2%);
      }
      to {
        filter: grayscale(1) sepia(1) hue-rotate(168deg) saturate(0.85) brightness(0.95) contrast(1.02) blur(0.45px);
        transform: scale(1.06) translateY(3%);
      }
    }
  }
}

/* ============================================
   MÓVIL · formato de las fotos y palabras de fondo
   ============================================ */
@media (max-width: 767px) {
  /* Los marcos siguen el formato real de cada fotografía: las verticales
     dejan de recortarse dentro de huecos apaisados */
  .cr-hero__foto {
    translate: 0 -5%;
  }

  .cr-hero__foto-duo {
    aspect-ratio: 3 / 4;
  }

  .cr-hero__foto-duo img {
    object-position: 50% 30%;
  }

  .cr-slot--a .cr-slot__marco {
    aspect-ratio: 3 / 2;
  }

  .cr-slot--b .cr-slot__marco {
    aspect-ratio: 3 / 4;
  }

  .cr-cita__media {
    aspect-ratio: 2 / 3;
  }

  /* Las palabras de fondo: caben enteras y con tamaños distintos
     para no repetir la misma escala en cada sección */
  .cr-hero__marca {
    font-size: clamp(4.4rem, 22vw, 6.75rem);
    left: 0.4rem;
    top: auto;
    bottom: clamp(0.35rem, 1.5vh, 1.1rem);
  }

  .cr-manif__marca {
    font-size: clamp(3.6rem, 17.5vw, 5.5rem);
    left: 0.4rem;
    bottom: clamp(1.5rem, 5vh, 2.75rem);
  }

  .cr-enc__marca {
    font-size: clamp(2.7rem, 12.5vw, 4.1rem);
    right: calc(0.4rem + 2%);
  }

  .cr-cita__marca {
    font-size: clamp(3.35rem, 15.5vw, 5.1rem);
    right: calc(0.4rem + 3%);
    bottom: clamp(1rem, 3vh, 2rem);
  }

  .cr-cierre__marca {
    font-size: clamp(4.85rem, 24vw, 7.25rem);
    bottom: clamp(1.25rem, 4vh, 2.5rem);
  }
}

/* Móvil apaisado: el hueco del hero no puede crecer a lo alto, pero sí
   acercarse al formato de la foto */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1023px) {
  .cr-hero__foto-duo {
    aspect-ratio: 1 / 1;
  }

  .cr-hero__foto-duo img {
    object-position: 50% 30%;
  }
}

/* ---- Movimiento reducido ---- */
@media (prefers-reduced-motion: reduce) {
  .cr-grain {
    animation: none;
  }

  .js-reveal [data-split] .w {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

