/* MDP · proyectos-elevation.css · v3 EDITORIAL MAGAZINE
 * Inspo: The Modern House / Snøhetta / Knight Frank Editions / DBOX / OMA
 * Reglas: tipografía manda, mucho aire, hairlines, italic accents, single-image hero,
 *         cero grano page-wide, cero letterbox, cero vignettes pesados.
 * Carga DESPUÉS de flip-cards.css y gallery.css.
 */

@import url("./tokens.css");

/* ============================================================
   00 · HERO CINEMA · full-bleed Ken Burns slideshow + texto minimal
   Inspo: Aman Resorts / Sotheby's / The Modern House full-bleed hero
   ============================================================ */
.cat-cine {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  background: var(--carbon-1000);
  overflow: hidden;
  isolation: isolate;
}
.cine-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cine-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.02);
  will-change: opacity, transform;
}

/* 14 slides · 5s slot (4s visible + 1s crossfade) · ciclo total 70s
   Variaciones de Ken Burns rotando (zoom, pan-L, pan-R) para que no se sienta repetitivo. */
.cine-slide:nth-child(1)  { animation: cine-cross 70s linear infinite both 0s,    cine-kb-pan-l 70s linear infinite both 0s; }
.cine-slide:nth-child(2)  { animation: cine-cross 70s linear infinite both 5s,    cine-kb-zoom  70s linear infinite both 5s; }
.cine-slide:nth-child(3)  { animation: cine-cross 70s linear infinite both 10s,   cine-kb-pan-r 70s linear infinite both 10s; }
.cine-slide:nth-child(4)  { animation: cine-cross 70s linear infinite both 15s,   cine-kb-zoom  70s linear infinite both 15s; }
.cine-slide:nth-child(5)  { animation: cine-cross 70s linear infinite both 20s,   cine-kb-pan-l 70s linear infinite both 20s; }
.cine-slide:nth-child(6)  { animation: cine-cross 70s linear infinite both 25s,   cine-kb-zoom  70s linear infinite both 25s; }
.cine-slide:nth-child(7)  { animation: cine-cross 70s linear infinite both 30s,   cine-kb-pan-r 70s linear infinite both 30s; }
.cine-slide:nth-child(8)  { animation: cine-cross 70s linear infinite both 35s,   cine-kb-zoom  70s linear infinite both 35s; }
.cine-slide:nth-child(9)  { animation: cine-cross 70s linear infinite both 40s,   cine-kb-pan-l 70s linear infinite both 40s; }
.cine-slide:nth-child(10) { animation: cine-cross 70s linear infinite both 45s,   cine-kb-zoom  70s linear infinite both 45s; }
.cine-slide:nth-child(11) { animation: cine-cross 70s linear infinite both 50s,   cine-kb-pan-r 70s linear infinite both 50s; }
.cine-slide:nth-child(12) { animation: cine-cross 70s linear infinite both 55s,   cine-kb-zoom  70s linear infinite both 55s; }
.cine-slide:nth-child(13) { animation: cine-cross 70s linear infinite both 60s,   cine-kb-pan-l 70s linear infinite both 60s; }
.cine-slide:nth-child(14) { animation: cine-cross 70s linear infinite both 65s,   cine-kb-zoom  70s linear infinite both 65s; }

@keyframes cine-cross {
  0%, 0.5%   { opacity: 0; }
  2%, 6%     { opacity: 1; }
  7.5%, 100% { opacity: 0; }
}
/* Ken Burns AGRESIVO · zoom 1.04 → 1.24, rotate sutil para sentir cámara */
@keyframes cine-kb-zoom {
  0%   { transform: scale(1.04) rotate(0); }
  7.5% { transform: scale(1.24) rotate(0.3deg); }
  8%, 100% { transform: scale(1.04) rotate(0); }
}
@keyframes cine-kb-pan-l {
  0%   { transform: scale(1.12) translateX(0) rotate(0); }
  7.5% { transform: scale(1.16) translateX(-5.2%) rotate(-0.4deg); }
  8%, 100% { transform: scale(1.12) translateX(0) rotate(0); }
}
@keyframes cine-kb-pan-r {
  0%   { transform: scale(1.12) translateX(0) rotate(0); }
  7.5% { transform: scale(1.16) translateX(5.2%) rotate(0.4deg); }
  8%, 100% { transform: scale(1.12) translateX(0) rotate(0); }
}

/* ============ CANTERA FLASH · pulso luminoso al entrar la página ============ */
.cine-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at 50% 50%,
    rgba(212, 154, 111, 0.32) 0%,
    rgba(212, 154, 111, 0.08) 30%,
    transparent 65%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: cine-flash-burst 2400ms cubic-bezier(0.4, 0, 0.2, 1) 400ms forwards;
}
@keyframes cine-flash-burst {
  0%   { opacity: 0; transform: scale(0.6); }
  18%  { opacity: 1; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ============ CAMERA SETTLE · todo el hero se "asienta" al cargar ============ */
.cat-cine {
  animation: cine-settle 1800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cine-settle {
  0%   { transform: scale(1.06) translateY(12px); filter: blur(8px) brightness(0.7); }
  60%  { filter: blur(0) brightness(1); }
  100% { transform: scale(1) translateY(0); filter: blur(0) brightness(1); }
}

/* Veil · gradient dark para legibilidad del texto + vignette sutil */
.cine-veil {
  position: absolute;
  inset: 0;
  background:
    /* Dark vertical wash · centro más oscuro */
    linear-gradient(180deg,
      rgba(14, 12, 10, 0.55) 0%,
      rgba(14, 12, 10, 0.38) 40%,
      rgba(14, 12, 10, 0.55) 80%,
      rgba(14, 12, 10, 0.72) 100%),
    /* Vignette dark edges */
    radial-gradient(ellipse 110% 110% at 50% 50%,
      transparent 50%,
      rgba(14, 12, 10, 0.32) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Overlay · texto centrado · motion-rich entrance */
.cine-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pad-x);
  color: var(--paper-50);
}

/* ============ EYEBROW · hairlines growing del centro + label fade ============ */
.cine-eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--paper-50);
  margin-bottom: clamp(28px, 4vh, 44px);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.ceb-rule {
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--accent-warm);
  animation: ceb-rule-grow 1000ms cubic-bezier(0.7, 0, 0.2, 1) 200ms forwards;
}
@keyframes ceb-rule-grow {
  to { width: 38px; }
}
.ceb-lbl {
  display: inline-block;
  opacity: 0;
  letter-spacing: 0.62em;
  animation: ceb-lbl-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) 600ms forwards;
}
@keyframes ceb-lbl-in {
  to { opacity: 0.72; letter-spacing: 0.48em; }
}

/* ============ TITLE · letter-by-letter cascade 3D + blur focus + glow pulse ============ */
.cine-title {
  font-family: var(--sans-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--paper-50);
  margin: 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.34em;
  /* Perspective necesario para el rotateX 3D de cada letra */
  perspective: 800px;
  perspective-origin: 50% 50%;
}
.ct-word {
  display: inline-flex;
  transform-style: preserve-3d;
}
.ct-word em {
  font-style: italic;
  font-weight: 300;
  position: relative;
  display: inline-flex;
}
/* CADA LETRA · 3D cascade · blur 24px → 0, lift 80px → 0, rotateX 24deg → 0 */
.ct-l {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px) rotateX(24deg) scale(1.12);
  filter: blur(24px);
  text-shadow: 0 0 0 transparent, 0 2px 28px rgba(0, 0, 0, 0.32);
  animation: ct-letter-cascade 1300ms cubic-bezier(0.16, 1, 0.3, 1)
             calc(1100ms + var(--wd, 0ms) + var(--ld, 0ms)) forwards;
  will-change: opacity, transform, filter, text-shadow;
}
@keyframes ct-letter-cascade {
  0% {
    opacity: 0;
    transform: translateY(80px) rotateX(24deg) scale(1.12);
    filter: blur(24px);
    text-shadow: 0 0 32px rgba(212, 154, 111, 0.9), 0 2px 28px rgba(0, 0, 0, 0.32);
  }
  50% {
    opacity: 1;
    filter: blur(0);
    text-shadow: 0 0 18px rgba(212, 154, 111, 0.55), 0 2px 28px rgba(0, 0, 0, 0.32);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
    text-shadow: 0 0 0 transparent, 0 2px 28px rgba(0, 0, 0, 0.32);
  }
}

/* Underline cantera bajo "proyectos." · draw rápido + glow pulse */
.ct-emph em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 2px;
  background: var(--accent-warm);
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(212, 154, 111, 0.0);
  animation: ct-underline-draw 900ms cubic-bezier(0.7, 0, 0.2, 1) 2400ms forwards,
             ct-underline-glow 2200ms cubic-bezier(0.4, 0, 0.6, 1) 3300ms infinite;
}
@keyframes ct-underline-draw {
  to { transform: scaleX(1); }
}
@keyframes ct-underline-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 154, 111, 0); }
  50%      { box-shadow: 0 0 18px rgba(212, 154, 111, 0.65); }
}

/* ============ SCROLL indicator · appears last (después del underline glow) ============ */
.cine-scroll {
  opacity: 0;
  animation: cine-scroll-in 1200ms cubic-bezier(0.16, 1, 0.3, 1) 3400ms forwards;
}
@keyframes cine-scroll-in {
  to { opacity: 0.62; }
}
/* Scroll indicator · hairline + label mono */
.cine-scroll {
  position: absolute;
  bottom: clamp(32px, 5vh, 64px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper-50);
  opacity: 0.6;
  transition: opacity 320ms;
}
.cine-scroll:hover { opacity: 1; }
.cine-scroll-line {
  display: inline-block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg,
    rgba(250, 247, 240, 0.6) 0%,
    rgba(250, 247, 240, 0.0) 100%);
  position: relative;
  overflow: hidden;
}
.cine-scroll-line::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  width: 1px;
  height: 24px;
  background: var(--accent-warm);
  animation: cine-scroll-bounce 2.4s var(--ease-cinematic, cubic-bezier(0.16, 1, 0.3, 1)) infinite;
}
@keyframes cine-scroll-bounce {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(80px); opacity: 0; }
}
.cine-scroll-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* Scroll progress · adaptado al hero cinematic */
.cat-cine .cat-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-warm);
  z-index: 200;
  transition: width 120ms linear;
}

/* ============================================================
   04 · FLIP CARDS · Apple Liquid Glass back face (mantengo)
   ============================================================ */
.flip-face {
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(14, 12, 10, 0.06),
    0 18px 38px -18px rgba(14, 12, 10, 0.28),
    0 48px 96px -32px rgba(14, 12, 10, 0.18);
}
.flip-card:hover {
  filter: drop-shadow(0 24px 48px rgba(14, 12, 10, 0.16));
}
.flip-back {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 40%),
    rgba(14, 12, 10, 0.92);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
  overflow: hidden;
}
.flip-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  pointer-events: none;
}
.flip-back > * { position: relative; z-index: 1; }
.flip-status {
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.flip-status-active {
  background: linear-gradient(180deg, rgba(212, 154, 111, 0.96), rgba(180, 117, 74, 0.88));
}

/* ============================================================
   05 · CAT-GRID-ALL · sección unificada con header editorial + grid asimétrico
   ============================================================ */
.cat-grid-all {
  position: relative;
  background: var(--paper-50, #FBFAF7);
  padding: clamp(100px, 14vh, 180px) var(--pad-x) clamp(80px, 12vh, 140px);
  isolation: isolate;
  overflow: hidden;
}
/* Aura atmosférica · radial cantera bottom-right + leve grid texture */
.cga-aura {
  position: absolute;
  right: -10%;
  top: 30%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at center,
    rgba(180, 117, 74, 0.10) 0%,
    rgba(180, 117, 74, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Vertical rail cantera izquierda · marca editorial */
.cga-rail {
  position: absolute;
  left: var(--pad-x);
  top: clamp(100px, 14vh, 180px);
  bottom: clamp(80px, 12vh, 140px);
  width: 1px;
  background: linear-gradient(180deg,
    var(--accent-warm) 0%,
    rgba(180, 117, 74, 0.32) 30%,
    rgba(180, 117, 74, 0.12) 60%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 768px) {
  .cga-rail { display: none; }
}

/* ============ HEADER editorial ============ */
.cgh {
  position: relative;
  z-index: 1;
  max-width: var(--max-w, 1440px);
  margin: 0 auto clamp(56px, 8vh, 96px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vh, 48px);
  align-items: end;
}
@media (min-width: 1024px) {
  .cgh {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: clamp(48px, 5vw, 96px);
  }
}
.cgh-eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  grid-column: 1 / -1;
}
.cghe-rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--accent-warm);
}
.cgh-title {
  font-family: var(--sans-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  margin: 0;
  grid-column: 1;
  text-wrap: balance;
}
.cgh-title em {
  font-style: italic;
  font-weight: 300;
}
.cgh-title em::after {
  /* Underline cantera hairline bajo cada em */
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background: var(--accent-warm);
  margin-top: 0.08em;
  opacity: 0.5;
}

/* ============ LEGEND · status indicators (visual, no clickeable) ============ */
.cgh-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  grid-column: 1;
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid var(--ink-200);
  position: relative;
}
.cgh-legend::before {
  content: '';
  position: absolute;
  left: 0;
  top: -0.5px;
  width: 38px;
  height: 1px;
  background: var(--accent-warm);
}
@media (min-width: 1024px) {
  .cgh-legend {
    grid-column: 2;
    border-top: 0;
    padding-top: 0;
    align-self: end;
    justify-content: flex-end;
  }
  .cgh-legend::before { display: none; }
}
.cgl-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.cgl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  position: relative;
  align-self: center;
}
.cgl-tag[data-status="active"]    .cgl-dot { background: var(--accent-warm); box-shadow: 0 0 0 3px rgba(212, 154, 111, 0.18); }
.cgl-tag[data-status="active"]    .cgl-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-warm);
  animation: cgl-pulse 1.8s ease-out infinite;
}
@keyframes cgl-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
.cgl-tag[data-status="delivered"] .cgl-dot { background: var(--ink-700, #2A2622); }
.cgl-tag[data-status="archive"]   .cgl-dot { background: transparent; border: 1px solid var(--ink-300); width: 8px; height: 8px; box-sizing: border-box; }
.cgl-num {
  font-family: var(--sans-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.015em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.cgl-lbl {
  color: var(--ink-500);
}

/* ============ GRID uniforme · 4-col, todas las cards mismo tamaño ============ */
.cgr {
  position: relative;
  z-index: 1;
  max-width: var(--max-w, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(16px, 2.2vw, 36px);
  row-gap: clamp(28px, 4vh, 56px);
  perspective: 1800px;
}
.cgr > .flip-card {
  aspect-ratio: 3 / 4;
  width: 100%;
}
/* Tablet · 2 columns */
@media (min-width: 600px) {
  .cgr { grid-template-columns: repeat(2, 1fr); }
}
/* Desktop small · 3 columns */
@media (min-width: 900px) {
  .cgr { grid-template-columns: repeat(3, 1fr); }
}
/* Desktop large · 4 columns */
@media (min-width: 1200px) {
  .cgr { grid-template-columns: repeat(4, 1fr); }
}

/* Archive card · overrides para que entre en grid uniforme */
.cgr > .flip-card-archive {
  aspect-ratio: 3 / 4 !important;
  grid-column: auto !important;
}
.cgr > .flip-card-archive .archive-front-grid {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto !important;
}

/* Status badge "EN OPERACIÓN" para delivered (gris carbon) */
.flip-status-delivered {
  background: linear-gradient(180deg, rgba(42, 38, 34, 0.92) 0%, rgba(14, 12, 10, 0.84) 100%);
  color: var(--paper-50);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   06 · IMAGE MARQUEE STRIP · editorial sin vignettes pesados
   ============================================================ */
.cat-strip {
  position: relative;
  overflow: hidden;
  background: var(--paper-50);
  padding: 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.cat-strip-track {
  display: flex;
  gap: 18px;
  padding: clamp(36px, 5vh, 64px) 0;
  width: max-content;
  animation: cat-strip-scroll 72s linear infinite;
  will-change: transform;
}
.cat-strip-reverse .cat-strip-track {
  animation-direction: reverse;
  animation-duration: 84s;
}
.cat-strip-cell {
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 460px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  background: var(--ink-200);
}
.cat-strip-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: filter 600ms var(--ease-cinematic, cubic-bezier(0.16, 1, 0.3, 1)),
              transform 600ms var(--ease-cinematic, cubic-bezier(0.16, 1, 0.3, 1));
}
.cat-strip-cell:hover img {
  filter: saturate(1.04);
  transform: scale(1.04);
}
.cat-strip-track:hover {
  animation-play-state: paused;
}
@keyframes cat-strip-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   07 · OUTRO · editorial cierre · sin backdrop pesado
   ============================================================ */
.cat-outro {
  position: relative;
  background: var(--carbon-1000);
  isolation: isolate;
  overflow: hidden;
}
.cat-outro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 70%,
    rgba(180, 117, 74, 0.10) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cat-outro-inner { position: relative; z-index: 1; }
.cat-outro-title em { color: var(--accent-warm); }

.cat-outro-contact {
  position: relative;
  padding: clamp(28px, 4vh, 48px) 0;
  border-top: 1px solid rgba(250, 247, 240, 0.12);
  border-bottom: 1px solid rgba(250, 247, 240, 0.12);
  margin: clamp(32px, 5vh, 56px) auto;
}
.cat-outro-contact::before,
.cat-outro-contact::after {
  content: '';
  position: absolute;
  width: 38px;
  height: 1px;
  background: var(--accent-warm);
  left: 50%;
  transform: translateX(-50%);
}
.cat-outro-contact::before { top: -0.5px; }
.cat-outro-contact::after  { bottom: -0.5px; }

.cat-outro-cta {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 32px -12px rgba(0, 0, 0, 0.36);
  transition: transform 320ms var(--ease-cinematic, cubic-bezier(0.16, 1, 0.3, 1)),
              background 320ms var(--ease-cinematic, cubic-bezier(0.16, 1, 0.3, 1));
}
.cat-outro-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(212, 154, 111, 0.98), rgba(180, 117, 74, 0.92));
}

/* ============================================================
   08 · GALLERY · sin overlap chrome + cells limpias
   ============================================================ */
.gallery-grid {
  margin-top: 0;
  padding-top: 8px;
}
.gallery-chrome {
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.72) 0%,
    rgba(10, 10, 10, 0.42) 50%,
    rgba(10, 10, 10, 0) 100%);
}
.gallery-cell {
  overflow: hidden;
  transition: transform 520ms var(--ease-cinematic, cubic-bezier(0.16, 1, 0.3, 1));
}
.gallery-cell:hover { transform: translateY(-4px); }
.gallery-close {
  top: 22px;
  right: 26px;
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.gallery-close:hover {
  background: linear-gradient(180deg, rgba(212, 154, 111, 0.98), rgba(180, 117, 74, 0.92));
}

/* ============================================================
   09 · REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .flip-card:hover { filter: none; }
  .gallery-cell:hover,
  .cat-outro-cta:hover,
  .gallery-close:hover,
  .cat-strip-cell:hover img { transform: none; }
  .cat-strip-track { animation: none; }
  /* Cine hero: solo mostrar primer slide estático */
  .cat-cine { animation: none; }
  .cine-slide { animation: none; opacity: 0; transform: scale(1); }
  .cine-slide:nth-child(1) { opacity: 1; }
  .cine-flash { animation: none; opacity: 0; }
  /* Text motion: instant final state */
  .ceb-rule { animation: none; width: 38px; }
  .ceb-lbl { animation: none; opacity: 0.72; letter-spacing: 0.48em; }
  .ct-l { animation: none; opacity: 1; transform: none; filter: none; text-shadow: 0 2px 28px rgba(0,0,0,0.32); }
  .ct-emph em::after { animation: none; transform: scaleX(1); box-shadow: none; }
  .cine-scroll { animation: none; opacity: 0.62; }
  .cine-scroll-line::after { animation: none; }
  .cat-chapter-head-minimal.reveal { opacity: 1; transform: none; }
}
