/* Reframe — sistema visual editorial premium */

:root {
  --bg: #f4f4f3;
  --bg-alt: #e6e6e4;
  --bg-soft: #eeeeec;
  --bg-deep: #1c1c1e;
  --ink: #1c1c1e;
  --ink-2: #3a3a3c;
  --ink-3: #6a6a6d;
  --ink-4: #9a9a9d;
  --line: rgba(28, 28, 30, 0.1);
  --line-2: rgba(28, 28, 30, 0.05);
  --accent: #ff5a47;
  --accent-deep: #e63d2c;
  --paper-on-deep: #f4f4f3;
  --font-serif: "Roboto Serif", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:
    "Roboto", "Söhne", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 10vw, 160px);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section--alt {
  background: var(--bg-alt);
}
.section--deep {
  background: var(--bg-deep);
  color: var(--paper-on-deep);
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow--deep {
  color: rgba(245, 241, 234, 0.6);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.h-display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 8.4vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-title {
  font-weight: 500;
  opacity: 1;
}
.hero-title-l1 {
  color: rgba(245, 241, 234, 0.85);
}
.hero-title-l2 {
  color: var(--accent);
}
.hero-enfocar {
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-block;
  transition: transform 0.5s ease-in-out;
  cursor: default;
}
.hero-enfocar:hover {
  transform: scale(1.02);
  transform-origin: left center;
}
.hero-sub {
  max-width: 700px;
}
.hero-actions .btn {
  display: flex;
  align-items: center;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-actions .btn-primary {
  background: transparent;
  color: #f5f1ea;
  border: 1px solid rgba(245, 241, 234, 0.4);
}
.dot-accent {
  font-style: normal;
  font-family: "Press Start 2P", ui-monospace, monospace;
  display: inline-block;
  font-size: 0.55em;
  vertical-align: baseline;
  transform: translateY(0.12em);
  margin-left: 0.04em;
  animation: dot-pulse 1.4s steps(1, end) infinite;
}
@keyframes dot-pulse {
  0%,
  49% {
    color: rgba(244, 244, 243, 0.35);
  }
  50%,
  100% {
    color: var(--accent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dot-accent {
    animation: none;
    color: var(--accent);
  }
}
.h-display em {
  color: rgba(245, 241, 234, 0.78);
  font-style: italic;
}
.h-section {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 5.2vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
}
.h-card {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
}
.lead {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  font-weight: 400;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.small {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.btn .arrow.arrow-down {
  animation: arrow-sweep 2s ease-in-out infinite;
}
body.idx2 .hero-actions .btn .arrow.arrow-down {
  animation: arrow-sweep 2s ease-in-out infinite;
}
body.idx2 .hero-actions .btn:hover .arrow.arrow-down {
  animation: arrow-sweep 2s ease-in-out infinite !important;
  transform: none;
}
@keyframes arrow-sweep {
  0% { transform: translateY(-5px); opacity: 0; }
  25% { opacity: 1; }
  50% { transform: translateY(5px); opacity: 0; }
  100% { transform: translateY(5px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn .arrow.arrow-down { animation: none; opacity: 1; }
}
.btn-primary {
  background: var(--ink);
  color: #faf7f1;
}
.btn-primary:hover {
  background: var(--accent);
  color: #faf7f1;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-on-deep-primary {
  background: var(--paper-on-deep);
  color: var(--ink);
}
.btn-on-deep-primary:hover {
  background: var(--accent);
  color: var(--paper-on-deep);
}
.btn-on-deep-ghost {
  background: transparent;
  color: var(--paper-on-deep);
  border-color: rgba(245, 241, 234, 0.25);
}
.btn-on-deep-ghost:hover {
  border-color: var(--paper-on-deep);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.nav.scrolled {
  background-color: rgba(244, 244, 243, 0.78);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.nav-spacer {
  flex: 1;
}
.nav-logo {
  height: 32px;
  width: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav-logo-mark {
  height: 30px;
  width: auto;
  display: block;
}
.nav-logo-mark--light {
  display: none;
}
.nav.scrolled .nav-logo-mark--dark {
  display: none;
}
.nav.scrolled .nav-logo-mark--light {
  display: block;
}
.nav.scrolled.menu-open .nav-logo-mark--dark {
  display: block;
}
.nav.scrolled.menu-open .nav-logo-mark--light {
  display: none;
}
.nav-logo svg {
  height: 100%;
  width: auto;
  fill: var(--ink);
}
.nav-links {
  display: flex;
  gap: clamp(12px, 1.5vw, 22px);
  align-items: center;
  white-space: nowrap;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-cta {
  background-color: transparent;
  padding: 9px 20px;
  font-size: 13px;
  white-space: nowrap;
  border: 2px solid var(--ink-3) !important;
  color: var(--ink-2) !important;
  margin-left: 6px;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.nav.over-hero .nav-links > a.nav-cta {
  color: #f5f1ea !important;
  border-color: rgba(245, 241, 234, 0.55) !important;
  background: transparent !important;
}
.nav.over-hero .nav-links > a.nav-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.nav-burger {
  position: absolute;
  right: var(--pad-x);
  top: 20px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:not(.nav-link-feature) {
  position: relative;
  padding: 7px 12px;
  border-radius: 7px;
  transition: color 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-links a:not(.nav-link-feature)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:not(.nav-link-feature):hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.5);
}
.nav-links a:not(.nav-link-feature):hover::after {
  transform: scaleX(1);
}
.nav.over-hero .nav-links a:not(.nav-link-feature):hover {
  background: rgba(245, 241, 234, 0.12);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.6);
}
/* Item destacado del nav (p. ej. "Formación Austriaca") — píldora de acento
   discreta que invita al clic, legible sobre el hero oscuro y al hacer scroll. */
.nav-links a.nav-link-feature {
  color: var(--accent);
  font-weight: 600;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 6px 15px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
.nav-links a.nav-link-feature:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -10px var(--accent);
}
.nav.over-hero .nav-links > a.nav-link-feature {
  color: var(--accent) !important;
}
.nav.over-hero .nav-links > a.nav-link-feature:hover {
  color: #fff !important;
}
/* Versión drawer (móvil): misma píldora de acento, alineada a la izquierda. */
.nav-drawer-inner a.nav-link-feature {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(15px, 3.4vw, 18px);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  align-self: flex-start;
  padding: 11px 22px;
}
.nav-drawer-inner a.nav-link-feature:hover {
  background: var(--accent);
  color: #fff;
}
.nav-links a.btn-primary {
  color: #faf7f1;
}
.nav-links a.btn-primary:hover {
  color: #faf7f1;
}
.nav-burger {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.burger-icon {
  position: relative;
  width: 22px;
  height: 14px;
  display: inline-block;
}
.burger-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease;
}
.burger-icon span:nth-child(1) {
  top: 0;
}
.burger-icon span:nth-child(2) {
  top: 6px;
}
.burger-icon span:nth-child(3) {
  top: 12px;
}
.burger-icon.is-open span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.burger-icon.is-open span:nth-child(2) {
  opacity: 0;
}
.burger-icon.is-open span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}
.nav.over-hero .nav-burger {
  color: #f5f1ea;
}
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(28, 28, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200; /* por encima del nav (100) y todo lo demás */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 96px 32px 48px;
  max-width: 520px;
  margin: 0 auto;
}
.nav-drawer-inner a {
  font-family: var(--font-serif);
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper-on-deep);
  border-bottom: 1px solid rgba(244, 244, 243, 0.12);
  padding-bottom: 18px;
}
.nav-drawer-inner a.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  align-self: flex-start;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 12px;
}

.nav.over-hero .nav-links > a {
  color: rgba(245, 241, 234, 0.9) !important;
}
.nav.over-hero .nav-links > a:hover {
  color: #f5f1ea !important;
}
.nav.over-hero .nav-logo svg {
  fill: #f5f1ea;
}
.nav.over-hero .nav-cta {
  color: #f5f1ea !important;
  border-color: #f5f1ea !important;
}
.nav.over-hero .nav-cta:hover {
  border-color: var(--accent) !important;
}
.nav.over-hero .nav-links a.btn-primary {
  background: #f5f1ea !important;
  color: #1a1814 !important;
}
.nav.over-hero .nav-links a.btn-primary:hover {
  background: var(--accent) !important;
  color: #f5f1ea !important;
}
.nav-links a.btn-primary {
  background: var(--ink);
  color: #faf7f1 !important;
}
.nav-links a.btn-primary:hover {
  background: var(--accent);
  color: #faf7f1 !important;
}
.hero,
.hero-content,
.hero-title {
  color: #f5f1ea;
}
.h-display.hero-title {
  color: #f5f1ea;
}

.nav.menu-open {
  background-color: rgba(28, 28, 30, 0.96) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  z-index: 300; /* encima del drawer */
}
.nav.menu-open .nav-logo svg {
  fill: var(--paper-on-deep);
}
.nav.menu-open .nav-burger {
  color: var(--paper-on-deep);
}

@media (max-width: 1040px) {
  .nav-links,
  .nav-cta,
  .nav-spacer {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
  .nav-drawer {
    display: block;
  }

  /* Scrollado + menú abierto → nav-row blanco TRANSLÚCIDO (como el negro) */
  .nav.scrolled.menu-open {
    background-color: rgba(244, 244, 243, 0.72) !important;
    background-image: none !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    border-bottom-color: var(--line) !important;
  }
  .nav.scrolled.menu-open .nav-logo svg {
    fill: var(--ink) !important;
  }
  .nav.scrolled.menu-open .nav-burger {
    color: var(--ink) !important;
  }

  .nav-cta-mobile {
    display: flex;
    background-color: transparent;
    padding: 10px 20px !important;
    font-size: 13px;
    border: 2px solid var(--bg-soft) !important;
    color: var(--bg-alt);
  }
  .nav-cta-mobile:hover {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
  }

  .nav.scrolled.menu-open ~ .nav-drawer .nav-cta-mobile {
    color: var(--ink) !important;
    border-color: var(--ink) !important;
  }

  /* Drawer blanco TRANSLÚCIDO cuando está scrollado (como el negro) */
  .nav.scrolled.menu-open ~ .nav-drawer {
    background-color: rgba(244, 244, 243, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .nav.scrolled.menu-open ~ .nav-drawer .nav-drawer-inner a {
    color: var(--ink);
    border-bottom-color: var(--line);
  }
  /* La píldora destacada conserva el acento (color + borde completo) también
     en el drawer blanco; sin esto el texto se oscurecía y el borde inferior
     se volvía gris, viéndose "raro". */
  .nav.scrolled.menu-open ~ .nav-drawer .nav-drawer-inner a.nav-link-feature {
    color: var(--accent);
    border-color: var(--accent);
  }
}
/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: #1a1814;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(88px, 12vw, 160px) var(--pad-x) clamp(28px, 4vw, 60px);
  margin: 0;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transform-origin: center center;
  filter: brightness(0.78) contrast(1.05) saturate(0.9);
}
.hero-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.15) 85%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    radial-gradient(ellipse at 30% 40%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.hero-video-bg .grain {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 100%;
  color: #f5f1ea;
}
.hero-eyebrow {
  color: rgba(245, 241, 234, 0.75);
}
.hero-eyebrow .dot {
  background: var(--accent);
}
.hero-title {
  max-width: 18ch;
  margin: 24px 0 0;
  color: #f5f1ea;
}
.hero-title em {
  color: rgb(245, 241, 234);
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 4vw, 80px);
  align-items: center;
  padding-bottom: 0;
}
.hero-sub {
  color: rgba(245, 241, 234, 0.85);
  max-width: 700px;
  font-size: clamp(14px, 1.3vw, 19px);
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-self: end;
}
.hero-actions .btn-primary {
  background: #f5f1ea;
  color: #1a1814;
}
.hero-actions .btn-primary:hover {
  background: var(--accent);
  color: #f5f1ea;
}
.hero-actions .btn-ghost {
  color: #f5f1ea;
  border-color: rgba(245, 241, 234, 0.3);
}
.hero-actions .btn-ghost:hover {
  border-color: #f5f1ea;
}
.hero-tap {
  position: absolute;
  bottom: clamp(16px, 3vw, 36px);
  left: clamp(16px, 3vw, 36px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.7);
  cursor: pointer;
}
.hero-tap .play-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 234, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

@media (max-width: 880px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-top: 96px;
    padding-bottom: 72px;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    padding-bottom: 0;
    gap: 28px;
  }
  .hero-title {
    margin-bottom: 28px;
  }
  .hero-actions {
    justify-self: start;
  }
}
@media (max-width: 480px) {
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Logo wall */
.logo-wall-section {
  padding: clamp(36px, 8vw, 110px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.logo-wall-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 4vw, 48px);
}
.logo-wall-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--accent);
  display: inline-block;
}
.client-marquee {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}
.marquee-track {
  display: flex;
  align-items: baseline;
  gap: clamp(24px, 6vw, 96px);
  padding: 0 clamp(14px, 4vw, 56px);
  width: max-content;
  will-change: transform;
}
.client-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(18px, 3.6vw, 56px);
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  position: relative;
  transition:
    color 360ms ease,
    transform 360ms ease,
    opacity 360ms ease,
    filter 360ms ease;
  flex: 0 0 auto;
}
.client-name .client-arrow {
  font-size: 0.42em;
  color: var(--ink-3);
  transform: translateY(-0.4em);
  opacity: 0;
  transition:
    opacity 280ms ease,
    color 280ms ease,
    transform 280ms ease;
}
.client-name.is-featured {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.client-name.is-dim {
  opacity: 0.32;
  filter: blur(0.4px);
}
.client-name.is-hot {
  color: var(--accent);
  transform: translateY(-2px);
}
.client-name.is-hot .client-arrow {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-0.4em) translateX(2px);
}
.client-name:focus-visible {
  outline: none;
  color: var(--accent);
}
.client-name:focus-visible .client-arrow {
  opacity: 1;
  color: var(--accent);
}
.marquee-cue {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 44px);
  color: var(--accent);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  letter-spacing: -0.04em;
}
.marquee-cue--right {
  right: clamp(16px, 3vw, 40px);
}
.marquee-cue--left {
  left: clamp(16px, 3vw, 40px);
}
.marquee-cue.is-on {
  opacity: 0.85;
}
.marquee-cue--right.is-on {
  transform: translateY(-50%) translateX(4px);
}
.marquee-cue--left.is-on {
  transform: translateY(-50%) translateX(-4px);
}

/* Pitch */
.pitch-section {
  position: relative;
  overflow: hidden;
}
.pitch-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(16px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(16px, 4vw, 56px);
}
.pitch-headline {
  text-align: right;
}
.pitch-divider {
  width: 100%;
  height: 1px;
  background: rgba(244, 244, 243, 0.12);
  position: relative;
  margin-bottom: clamp(20px, 2vw, 72px);
}
.pitch-divider-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-0.5px);
}
.pitch-paragraphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 64px);
  margin-bottom: clamp(20px, 2vw, 80px);
}
.pitch-compare {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(14px, 4vw, 56px);
  padding-top: clamp(16px, 4vw, 56px);
  border-top: 1px solid rgba(244, 244, 243, 0.1);
  align-items: start;
}
.pitch-compare-divider {
  background: rgba(244, 244, 243, 0.12);
  align-self: stretch;
}
.contrast-group-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 244, 243, 0.4);
  margin-bottom: 12px;
}
.contrast-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(244, 244, 243, 0.2);
  font-size: 15px;
}
.contrast-item--bad {
  color: rgba(244, 244, 243, 0.55);
}
.contrast-item--good {
  color: rgb(244, 244, 243);
}
.ci-icon {
  font-size: 17px;
  min-width: 18px;
}
.contrast-item--bad .ci-icon {
  color: rgba(244, 244, 243, 0.25);
}
.contrast-item--good .ci-icon {
  color: var(--accent);
}
.pitch-title-l1 {
  font-size: clamp(28px, 5vw, 70px);
  font-weight: 500;
  opacity: 0.75;
}
.pitch-title-l2 {
  font-size: clamp(32px, 5.8vw, 80px);
  font-style: normal;
  font-weight: 700;
  color: rgb(255, 90, 71);
}

@media (max-width: 880px) {
  .pitch-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pitch-headline {
    text-align: left;
  }
  .pitch-paragraphs {
    grid-template-columns: 1fr;
  }
  .pitch-compare {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pitch-compare-divider {
    display: none;
  }
}

/* Pillars */
.pillars {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 9vw, 140px);
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.pillar:nth-child(even) {
  direction: rtl;
}
.pillar:nth-child(even) > * {
  direction: ltr;
}
.pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 18px;
}
.pillar-title {
  margin-bottom: 18px;
}
.pillar-desc {
  margin-bottom: 24px;
  max-width: 48ch;
}
.pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.pillar-bullets li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.pillar-bullets li:last-child {
  border-bottom: 1px solid var(--line);
}
.pillar-bullets .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-4);
  font-size: 14px;
  min-width: 22px;
}
.pillar-visual {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.pillar-visual .label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pillar-visual .num-big {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .pillar,
  .pillar:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .pillar-visual {
    aspect-ratio: 3/2;
  }
}

/* Concepto */
.concept-section {
  position: relative;
  overflow: hidden;
}
.concept-header {
  margin-bottom: clamp(16px, 3vw, 48px);
}
.concept-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(14px, 5vw, 80px);
  margin-bottom: clamp(10px, 2vw, 24px);
}
.concept-sub {
  max-width: 44ch;
  text-align: right;
  margin: 0;
}
.concept-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.concept-title-l1 {
  font-weight: 500;
  color: rgba(244, 244, 243, 0.75);
}
.concept-title-l2 {
  font-size: clamp(32px, 5.8vw, 80px);
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.concept-rows {
  display: flex;
  flex-direction: column;
}
.concept-row {
  display: grid;
  grid-template-columns: clamp(32px, 6vw, 96px) 1fr 1.3fr;
  gap: clamp(10px, 4vw, 64px);
  align-items: center;
  padding: clamp(16px, 3vw, 48px) clamp(2px, 1vw, 16px);
  border-top: 1px solid rgba(244, 244, 243, 0.1);
  transition:
    background 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  cursor: default;
}
.concept-row:last-child {
  border-bottom: 1px solid rgba(244, 244, 243, 0.1);
}
.concept-row:hover {
  background: rgba(244, 244, 243, 0.03);
  transform: scale(1.01);
}
.concept-row-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(12px, 1.6vw, 22px);
  color: var(--accent);
  transition: color 0.3s ease;
  padding-top: 2px;
  align-self: start;
}
.concept-row-heading {
  font-family: var(--font-serif);
  font-size: clamp(17px, 3vw, 50px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper-on-deep);
}
.concept-row-body {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.1vw, 18px);
  line-height: 1.65;
  color: rgba(244, 244, 243, 0.62);
  margin: 0;
  max-width: 52ch;
}

@media (max-width: 880px) {
  .concept-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .concept-sub {
    text-align: left;
    max-width: 100%;
  }
  .concept-row {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    gap: 8px clamp(10px, 3vw, 24px);
  }
  .concept-row-body {
    grid-column: 2;
    margin-top: 8px;
  }
  .concept-row:hover {
    transform: none;
  }
}
@media (max-width: 480px) {
  .concept-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .concept-row-body {
    grid-column: 1;
  }
}

/* Casos */
#casos {
  padding-top: clamp(45px, 10vw, 128px);
}
/* ===================================================
   Cases — sección de video rediseñada
   =================================================== */

.cases-section {
  padding-top: var(--section-y);
  padding-bottom: 0;
  background: var(--bg);
}

/* Header editorial */
.cases-editorial-head {
  margin-bottom: clamp(16px, 2vw, 28px);
}
.cases-eyebrow {
  margin-bottom: clamp(16px, 2vw, 28px);
}
.cases-head-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.cases-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: rgba(28, 28, 30, 0.75);
  margin: 0;
}

.cases-title-bold {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(32px, 5.8vw, 80px);
  color: var(--ink);
  display: block;
}
.cases-sub {
  max-width: 52ch;
  color: var(--ink-2);
}

.cases-divider {
  width: 100%;
  height: 2px;
  background: var(--line);
  margin: clamp(32px, 5vw, 64px) 0 0;
}

/* Banda oscura del video */
.cases-video-band {
  background: transparent;
  padding: clamp(48px, 8vw, 100px) var(--pad-x);
}

.cases-video-stage {
  max-width: 1100px;
  margin: 0 auto;
}

/* Frame del video */
.cases-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0a0a0a;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 120px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}
.cases-video-frame.is-poster {
  cursor: pointer;
}
.cases-video-frame.is-poster:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 48px 140px rgba(0,0,0,0.8),
    0 12px 40px rgba(0,0,0,0.4);
}
.cases-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.cases-poster-img-s {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.cases-video-frame.is-poster:hover .cases-poster-img-s {
  transform: scale(1.03);
}
.cases-poster-dim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}
.cases-video-frame.is-poster:hover .cases-poster-dim {
  background: rgba(0,0,0,0.18);
}

/* Play button */
.cases-play-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.cases-yt-play-btn {
  width: clamp(64px, 7vw, 96px);
  height: clamp(64px, 7vw, 96px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: clamp(20px, 2.5vw, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  padding-left: 4px;
}
.cases-video-frame.is-poster:hover .cases-yt-play-btn {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Caption */
.cases-video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(244,244,243,0.1);
  margin-top: 20px;
}
.cases-caption-label {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--ink-3);
  font-style: italic;
  letter-spacing: -0.01em;
}
.cases-caption-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.cases-video-caption {
  border-top-color: var(--line);
}

@media (max-width: 880px) {
  .cases-head-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cases-video-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Visión */
.vision-section {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 10vw, 240px) 0;
}
.vision-bg-mark {
  position: absolute;
  top: -0.15em;
  right: -0.05em;
  font-family: var(--font-serif);
  font-size: clamp(160px, 36vw, 520px);
  line-height: 1;
  color: rgba(244, 244, 243, 0);
  pointer-events: none;
  user-select: none;
}
.vision {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(24px, 6vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.vision-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #2a2520, #1a1814);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 244, 243, 0.08);
}
.vision-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.vision-portrait-blur {
  transition:
    filter 0.65s ease-in-out,
    transform 0.65s ease-in-out;
}
.vision-portrait:hover .vision-portrait-blur {
  filter: blur(10px) brightness(1.02) saturate(0.85);
}
.vision-section.is-hover .vision-portrait-sharp {
  filter: brightness(1.05) drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}
/* El marco completo crece un poco y el resto de la página se oscurece */
.vision-portrait {
  transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease;
  position: relative;
}
.vision-section.is-hover .vision-portrait {
  transform: scale(1.06);
  z-index: 60;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
body.idx2 .vision-section.is-hover .vision-portrait {
  transform: scale(1.06) !important;
  z-index: 10 !important;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.vision-dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 5;
}
.vision-section.is-hover .vision-dim {
  opacity: 1;
}
.vision-portrait-sharp {
  -webkit-mask-image: radial-gradient(
    ellipse 72% 88% at 50% 38%,
    black 28%,
    transparent 68%
  );
  mask-image: radial-gradient(
    ellipse 72% 88% at 50% 38%,
    black 28%,
    transparent 68%
  );
  z-index: 2;
}
.vision-portrait .ph-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: rgba(245, 241, 234, 0.5);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.vision-portrait .ph-name {
  position: absolute;
  top: 18px;
  left: 18px;
  color: rgba(245, 241, 234, 0.85);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
}
.vision-quote {
  font-family: "Lora", var(--font-serif);
  font-size: clamp(18px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0 0 28px;
  font-weight: 300;
  color: var(--paper-on-deep);
}

/* ===== Reveal dinámico "La mente detrás de Reframe" ===== */
.vision-bg-mark {
  transition: opacity 1.1s ease, transform 1.1s ease;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
}
.vision-section.is-in .vision-bg-mark {
  opacity: 1;
  transform: none;
}
.vision-portrait {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.vision-section.is-in .vision-portrait {
  clip-path: inset(0 0 0 0);
}
/* barrido de luz que cruza el retrato al revelarse */
.vision-portrait-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
}
.vision-section.is-in .vision-portrait-scan {
  animation: vision-scan 1.4s ease-in-out 0.55s 1 both;
}
@keyframes vision-scan {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
.vision-body > * {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
}
.vision-section.is-in .vision-body > * {
  animation: vision-rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.vision-section.is-in .vision-body > *:nth-child(1) { animation-delay: 0.25s; }
.vision-section.is-in .vision-body > *:nth-child(2) { animation-delay: 0.42s; }
.vision-section.is-in .vision-body > *:nth-child(3) { animation-delay: 0.62s; }
@keyframes vision-rise {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.vision-attr {
  position: relative;
}
.vision-attr::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
}
.vision-section.is-in .vision-attr::before {
  animation: vision-line 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.9s forwards;
}
@keyframes vision-line {
  to { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .vision-portrait,
  .vision-bg-mark,
  .vision-body > * { transition: none; animation: none; opacity: 1; transform: none; filter: none; clip-path: none; }
  .vision-portrait-scan { display: none; }
}
.vision-bold {
  font-style: normal;
  font-weight: 800;
  color: var(--accent-deep);
}
.vision-attr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 234, 0.15);
}
.vision-attr .name {
  font-family: "Lora", var(--font-serif);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 600;
  color: var(--paper-on-deep);
}
.vision-attr .role {
  font-size: 14px;
  color: rgba(245, 241, 234, 0.5);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .vision {
    grid-template-columns: 1fr;
  }
  .vision-portrait {
    aspect-ratio: 3/2;
    max-height: 360px;
  }
}

/* ===================================================
   Testimonios
   =================================================== */

/* Header */
.testimonial-section-title {
  text-align: right;
  font-size: clamp(28px, 5vw, 70px);
  font-weight: 500;
  color: rgba(28, 28, 30, 0.75);
}
.testimonial-title-bold {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(32px, 5.8vw, 80px);
  color: var(--ink);
}
.testimonial-line {
  width: 100%;
  height: 2px;
  background: var(--accent);
  margin-bottom: clamp(14px, 2vw, 44px);
}

/* Columna de cubos */
.tcb-column {
  display: flex;
  flex-direction: column;
  padding: clamp(44px, 6.4vw, 84px) 0;
  gap: clamp(80px, 15vw, 220px);
}
.tcb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  transform: none;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Hover: el cubo crece un poco al pasar el cursor por la celda */
.testimonials-grid-item:hover .tcb-stage {
  transform: scale(1.30);
}
.tcb-scene {
  perspective: 2200px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.tcb-iso {
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(38deg);
}
.tcb-cube {
  --s: clamp(180px, 22vmin, 260px); /* un poco más pequeño */
  --h: calc(var(--s) / 2);
  width: var(--s);
  height: var(--s);
  position: relative;
  transform-style: preserve-3d;
}
.tcb-face {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border: 1px solid rgba(28, 28, 30, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tcb-face-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tcb-front {
  background: #bdbdbd;
  transform: translateZ(var(--h));
}
.tcb-back {
  background: #bdbdbd;
  transform: rotateY(180deg) translateZ(var(--h));
}
.tcb-right {
  background: #a8a8a8;
  transform: rotateY(90deg) translateZ(var(--h));
}
.tcb-left {
  background: #a8a8a8;
  transform: rotateY(-90deg) translateZ(var(--h));
}
.tcb-top {
  background: #d0d0d0;
  transform: rotateX(90deg) translateZ(var(--h));
}
.tcb-bottom {
  background: #909090;
  transform: rotateX(-90deg) translateZ(var(--h));
}

/* (texto sobre caras vuelve a usar los colores oscuros por defecto) */

.tcb-shadow {
  background: rgba(0, 0, 0, 0.18) !important;
  border: none !important;
  filter: blur(28px);
  border-radius: 14px;
  transform: rotateX(-90deg) translateZ(calc(var(--s) * 0.7)) !important;
}

/* Atribución en caras del cubo 3D */
.tcb-face-attr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 28, 30, 0.12);
  margin-top: 4px;
  flex-shrink: 0;
}
.tcb-face-attr-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid rgba(28, 28, 30, 0.08);
}
.tcb-face-attr-name {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.tcb-face-attr-role {
  font-family: var(--font-sans);
  font-size: 9.5px;
  color: var(--ink-3);
  line-height: 1.3;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* perfil */
.tcb-logo-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tcb-top .tcb-logo-wrap {
  padding: 16%;
  overflow: hidden;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.tcb-top .tcb-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Logo GOA (azalac.jpg) — JPEG con fondo blanco: lo fundimos con la cara del cubo */
.tcb-top .tcb-logo-img[src*="azalac"] {
  mix-blend-mode: multiply;
}
.tcb-overlay-logo-img[src*="azalac"] {
  mix-blend-mode: multiply;
}
.tcb-logo-img {
  max-width: 80%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.tcb-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.tcb-photo {
  width: clamp(56px, 26%, 88px);
  aspect-ratio: 1/1;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}
.tcb-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tcb-initials {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink-3);
}
.tcb-name {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.2vmin, 22px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tcb-role {
  font-family: var(--font-sans);
  font-size: clamp(10px, 1.3vmin, 12px);
  color: var(--ink-3);
  line-height: 1.3;
  max-width: 22ch;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.tcb-company-badge {
  font-family: var(--font-sans);
  font-size: clamp(9px, 1.1vmin, 11px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 90, 71, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 2px;
}

/* Frente — cita */
.tcb-quote-wrap {
  padding: clamp(14px, 2.2vmin, 22px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
  justify-content: center;
}
.tcb-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
}
.tcb-eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--accent);
  margin-right: 10px;
  flex-shrink: 0;
}
.tcb-quote {
  font-family: var(--font-serif);
  font-size: clamp(11px, 1.4vmin, 14px);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* =====================================================
  Grid de testimonios (matriz)
===================================================== */

.testimonials-grid-section {
  background: var(--bg-alt);
}

/* ===== Testimonios editorial (v2 · reemplaza cubos) ===== */
.tg-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 48px);
}
.tg-quote-mark {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  margin-bottom: 6px;
}
.tg-featured-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tg-attrib-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 40px);
}
.tg-photo-lg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.tg-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}
.tg-role {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 3px;
}
.tg-logo {
  height: 42px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  opacity: 1;
  margin-top: 4px;
}
.tg-logo[src*="universidad-icesi"] { height: 52px; }
.tg-logo[src*="azalac"] { height: 54px; }
.tg-divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.tg-all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.2vw, 30px);
}
.tg-ed-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #faf9f7;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 26px 28px 30px;
  animation: tgFade 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes tgFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.tg-ed-quote {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  flex: 1;
}
.tg-ed-attrib {
  display: flex;
  align-items: center;
  gap: 13px;
}
.tg-photo-sm {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.tg-ed-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.tg-ed-role {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-3);
}
.tg-logo-sm {
  height: 30px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  opacity: 1;
}
.tg-logo-sm[src*="universidad-icesi"] { height: 37px; }
.tg-logo-sm[src*="azalac"] { height: 39px; }
@media (prefers-reduced-motion: reduce) {
  .tg-ed-card { animation: none; }
}
@media (max-width: 1100px) {
  .tg-all-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .tg-featured { grid-template-columns: 1fr; }
  .tg-attrib-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .tg-all-grid { grid-template-columns: 1fr; }
}

.testimonials-grid-head {
  margin-bottom: clamp(8px, 1.5vw, 20px);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
  margin-top: clamp(32px, 5vw, 64px);
}

.testimonials-grid-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(360px, 42vmin, 480px);
  padding: clamp(20px, 4vmin, 56px) clamp(8px, 2vw, 24px);
  background: transparent;
  overflow: visible;
}

@media (max-width: 760px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .testimonials-grid-item {
    min-height: 320px;
    padding: 24px 12px;
  }
}

/* Backdrop cuando hay overlay activo — ahora hay otros cubos al rededor */
.tcb-overlay {
  background: rgba(28, 28, 30, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* =====================================================
  Scroll-jacking Testimonios
===================================================== */

.testimonial-scroll-wrapper {
  position: relative;
  padding-bottom: clamp(80px, 12vw, 180px);
  background: var(--bg-alt);
}

.testimonial-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.testimonial-sticky-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: clamp(32px, 6vh, 72px);
  padding-bottom: clamp(80px, 12vw, 180px);
  position: relative;
}
.tcb-scroll-item.header-visible {
  padding-top: clamp(40px, 8vh, 96px);
  transition:
    padding-top 0.4s ease,
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-sticky-head {
  flex-shrink: 0;
  padding-top: clamp(32px, 6vh, 72px) !important;
  margin-bottom: clamp(8px, 1.5vw, 20px) !important;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    max-height 0.4s ease;
  overflow: hidden;
  max-height: 300px;
}
.testimonial-sticky-head.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  max-height: 0;
  margin-bottom: 0 !important;
  pointer-events: none;
}

.testimonial-line {
  transition:
    opacity 0.4s ease,
    max-height 0.4s ease,
    margin 0.4s ease;
  overflow: hidden;
}
.testimonial-line.is-hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
}
.tcb-scroll-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.tcb-scroll-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.tcb-scroll-item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tsd-rail {
  position: absolute;
  bottom: clamp(16px, 3vh, 32px);
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.tsd-track {
  flex: 1;
  height: 2px;
  background: rgba(28, 28, 30, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.tsd-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.tsd-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  white-space: nowrap;
  flex-shrink: 0;
}

.tsd-current {
  color: var(--accent);
  font-weight: 500;
}

/* =====================================================
   Expanded face overlay
   ===================================================== */

.tcb-stage.is-dimmed {
  opacity: 0.08;
  filter: blur(3px);
  pointer-events: none;
}

/* Caras clickeables */
.tcb-clickable {
  cursor: pointer;
  transition: filter 0.2s ease;
}
.tcb-clickable:hover {
  filter: brightness(0.94);
}

/* Overlay de fondo */
.tcb-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 36px);
  padding-top: 72px;
  animation: tcb-overlay-in 0.3s ease forwards;
}
@keyframes tcb-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* La "cara" expandida */
.tcb-overlay-card {
  position: relative;
  width: min(1200px, 94vw);
  min-height: 75vh;
  max-height: 75vh;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f0f0;
  padding: clamp(48px, 6vh, 80px) clamp(40px, 6vw, 80px);
  border: 1px solid rgba(28, 28, 30, 0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.06);
  animation: tcb-card-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes tcb-card-in {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}

.tcb-overlay-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 44ch;
  text-align: center;
  margin: 4px 0;
}

.tcb-nav-btn {
  flex-shrink: 0;
  width: clamp(44px, 5vw, 60px);
  height: clamp(44px, 5vw, 60px);
  border-radius: 50%;
  border: 1.5px solid rgba(28, 28, 30, 0.2);
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.22s, border-color 0.22s, opacity 0.22s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.tcb-nav-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: scale(1.08);
}
.tcb-nav-btn.is-disabled {
  opacity: 0.2;
  pointer-events: none;
}
.tcb-nav-btn.is-return {
  border-color: var(--accent);
  color: var(--accent);
  font-size: clamp(16px, 2vw, 22px);
}
.tcb-nav-btn.is-return:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tcb-face-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}
.tcb-face-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.18);
  transition: background 0.3s, width 0.3s;
}
.tcb-face-dot.is-active {
  background: var(--accent);
  width: 20px;
}

/* Botón cerrar */
.tcb-overlay-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tcb-overlay-close:hover {
  background: rgba(28, 28, 30, 0.1);
  color: var(--ink);
}

/* Perfil expandido */
.tcb-overlay-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  width: 100%;
}
.tcb-overlay-photo {
  width: 200px !important;
  height: 200px !important;
  margin-bottom: 8px;
}

/* Logo expandido */
.tcb-overlay-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.tcb-overlay-logo-img {
  max-height: 130px;
  max-width: 300px;
  width: auto;
}

/* Cita expandida */
.tcb-overlay-quote {
  width: 100%;
}
.tcb-overlay-quote-text {
  font-size: clamp(20px, 2.8vw, 34px) !important;
  line-height: 1.5 !important;
  margin: 0 0 36px !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}
.tcb-overlay-attr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(28, 28, 30, 0.12);
}
.tcb-overlay-attr-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
@keyframes flip-from-right {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(40deg) translateX(60px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg) translateX(0) scale(1);
  }
}
@keyframes flip-from-left {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(-40deg) translateX(-60px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg) translateX(0) scale(1);
  }
}
.tcb-overlay-card.anim-from-right {
  animation: flip-from-right 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.tcb-overlay-card.anim-from-left {
  animation: flip-from-left 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 880px) {
  .testimonial-section-title {
    text-align: left;
  }
  .tcb-profile {
    padding: 20px;
    gap: 8px;
  }
  .tcb-quote-wrap {
    padding: 24px;
    gap: 14px;
  }
  .tcb-photo {
    width: 80px;
    height: 80px;
  }
  .tcb-name {
    font-size: 17px;
  }

  .testimonial-sticky-inner {
    padding-top: clamp(20px, 4vh, 48px);
  }
}

@media (max-width: 480px) {
  .tcb-stage {
    padding: 32px 0;
  }
  .tcb-photo {
    width: 65px;
    height: 65px;
  }
  .tcb-name {
    font-size: 14px;
  }
  .tcb-role {
    font-size: 11px;
  }
  .tcb-quote {
    font-size: 12px;
    -webkit-line-clamp: 5;
  }
  .tcb-company-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* Conversaciones */
.conversations-title {
  text-align: center;
  max-width: 100%;
  margin: 0 0 clamp(18px, 4vw, 52px);
  font-size: clamp(28px, 5vw, 70px);
  font-weight: 500;
  color: rgba(244, 244, 243, 0.75);
}
.conv-title-bold {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(32px, 5.8vw, 80px);
  color: var(--accent);
}
.conversations-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(10px, 4vw, 80px);
  margin-bottom: clamp(14px, 2vw, 44px);
}
.conversations-desc {
  font-size: clamp(13px, 1.4vw, 15px);
  text-align: right;
  max-width: 44ch;
  margin: 0;
}
.conversations-line {
  width: 100%;
  height: 2px;
  background: var(--accent);
  margin-bottom: clamp(14px, 2vw, 44px);
}
.episodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.4vw, 32px);
}

.episode {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.episode-art {
  aspect-ratio: 16/10;
  background: rgba(244, 244, 243, 0.06);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  text-decoration: none;
}

/* Overlay oscuro sobre la imagen */
.episode-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

/* Thumbnail YouTube */
.episode-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.episode-art:hover .episode-thumb {
  transform: scale(1.04);
}

/* Fallback sin thumbnail */
.episode-thumb-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(244, 244, 243, 0.08),
    rgba(244, 244, 243, 0.02)
  );
}

/* Play — encima del overlay */
.episode-art .play-mini {
  position: absolute;
  bottom: 14px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-on-deep);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.episode-art:hover .play-mini {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.episode-art .duration {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 243, 0.9);
  background: rgba(28, 28, 30, 0.8);
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
}

.episode h4 {
  font-family: var(--font-serif);
  font-size: clamp(12px, 1.4vw, 18px);
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.episode .meta {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .episodes {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .episodes {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .conversations-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .conversations-desc {
    text-align: left;
    max-width: 100%;
  }
}
@media (max-width: 380px) {
  .episodes {
    grid-template-columns: 1fr;
  }
}

/* CTA final */
.final-cta-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--bg);
  color: var(--ink);
}
.final-cta-eyebrow {
  margin-bottom: clamp(12px, 3vw, 32px);
}
.cta-bg-word {
  position: absolute;
  bottom: -0.12em;
  right: -0.04em;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(80px, 30vw, 500px);
  line-height: 1;
  color: rgba(28, 28, 30, 0.03);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.final-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 7.5vw, 116px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.cta-title-accent {
  font-style: normal;
  color: var(--accent);
}
.final-cta-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  position: relative;
  margin: clamp(20px, 5vw, 80px) 0;
  z-index: 1;
}
.final-cta-divider-accent {
  display: none;
}
.final-cta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 4vw, 80px);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.final-cta-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.final-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 680px) {
  .final-cta-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .final-cta-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .final-cta-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Footer */
.footer {
  background: var(--bg-deep);
  color: var(--paper-on-deep);
  padding: clamp(36px, 8vw, 80px) 0 clamp(18px, 4vw, 40px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(24px, 5vw, 56px);
}
.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 24px;
}
.footer-logo svg {
  height: 100%;
  width: auto;
  fill: var(--paper-on-deep);
}
.footer h5 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  color: rgba(245, 241, 234, 0.85);
  font-size: 14px;
}
.footer ul a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(245, 241, 234, 0.5);
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

.todo-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  background: rgba(184, 85, 45, 0.12);
  color: var(--accent);
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: clamp(16px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(24px, 5vw, 64px);
}
@media (max-width: 880px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Deep overrides */
.section--deep .eyebrow {
  color: rgba(244, 244, 243, 0.55);
}
.section--deep .eyebrow .dot,
.section--deep .concept-eyebrow .dot,
.section--deep .logo-wall-eyebrow .dot {
  background: var(--accent);
}
.section--deep .lead {
  color: rgba(244, 244, 243, 0.78);
}
.section--deep .body {
  color: rgba(244, 244, 243, 0.72);
}
.section--deep .small {
  color: rgba(244, 244, 243, 0.55);
}
.section--deep .h-section,
.section--deep .concept-title,
.section--deep h2,
.section--deep h3,
.section--deep h4 {
  color: var(--paper-on-deep);
}
.section--deep .concept-cell {
  border-top-color: rgba(244, 244, 243, 0.18);
}
.section--deep .concept-cell .num {
  color: rgba(244, 244, 243, 0.55);
}
.section--deep .concept-cell h4 {
  color: var(--paper-on-deep);
}
.section--deep .concept-cell p {
  color: rgba(244, 244, 243, 0.72);
}
.section--deep .case-card,
.section--deep .episode-card {
  background: rgba(244, 244, 243, 0.04);
  border-color: rgba(244, 244, 243, 0.14);
}
.section--deep .case-card:hover,
.section--deep .episode-card:hover {
  border-color: rgba(244, 244, 243, 0.45);
}
.section--deep .case-img,
.section--deep .episode-art {
  background: rgba(244, 244, 243, 0.06);
}
.section--deep .case-img .label,
.section--deep .episode-art .num {
  color: rgba(244, 244, 243, 0.6);
}
.section--deep .case-img .num-tag {
  color: rgba(244, 244, 243, 0.6);
  border-color: rgba(244, 244, 243, 0.18);
}
.section--deep .case-card h4 {
  color: var(--paper-on-deep);
}
.section--deep .case-card p {
  color: rgba(244, 244, 243, 0.7);
}
.section--deep .episode-art .duration {
  background: rgba(28, 28, 30, 0.6);
  color: rgba(244, 244, 243, 0.85);
}
.section--deep .episode-art .play-mini {
  background: var(--paper-on-deep);
  color: var(--ink);
}
.section--deep .btn-primary {
  background: var(--paper-on-deep);
  color: var(--ink);
}
.section--deep .btn-primary:hover {
  background: var(--accent);
  color: var(--paper-on-deep);
}
.section--deep .btn-ghost {
  color: var(--paper-on-deep);
  border-color: rgba(244, 244, 243, 0.25);
}
.section--deep .btn-ghost:hover {
  border-color: var(--paper-on-deep);
}
