/* Perla técnica — tema claro
   Fondo perla, texto tinta, acento rojo, grilla y cápsulas. */

body.perla {
  --obsidian: #f3f1ec;
  --paper: #161616;
  --ash: #6b6560;
  --line: rgba(22, 22, 22, 0.12);
  --crimson: #c4232a;
  --blood: #8e1c24;
  --perla: #f3f1ec;
  --niebla: #e7e2da;
  --tinta: #161616;
  --tinta-soft: #2c2c2c;
  --rojo: #c4232a;
  --rojo-prof: #7a1420;
  --grilla: rgba(196, 35, 42, 0.16);
  --sheet: #f7f5f1;
  background: var(--perla);
  color: var(--tinta);
  color-scheme: light;
}

html:has(body.perla) {
  background: #f3f1ec;
  color: #161616;
  color-scheme: light;
}

body.perla ::selection {
  background: #f0c8c6;
  color: #161616;
}

body.perla .brand img,
body.perla .site-footer-logo img {
  filter: brightness(0);
}

/* —— Cabecera —— */
body.perla .site-header,
body.perla.home .site-header,
body.perla .site-header.site-header--unified.is-scrolled,
body.perla.home .site-header.site-header--unified.is-scrolled {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  background: rgba(243, 241, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body.perla .header-eyebrow {
  color: var(--ash);
}

body.perla .nav a,
body.perla .menu-toggle {
  color: var(--tinta-soft);
}

body.perla .nav a:hover,
body.perla .nav a:focus-visible {
  color: var(--rojo);
}

body.perla .nav a[aria-current="page"] {
  color: var(--perla);
  background: var(--tinta);
}

@media (min-width: 861px) {
  body.perla .site-header--unified .nav {
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
  }

  body.perla .site-header--unified .nav a {
    padding: 8px 14px;
    border-radius: 999px;
  }
}

@media (max-width: 860px) {
  body.perla .nav,
  body.perla .site-header--unified .nav.is-open {
    background: #f7f5f1;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(22, 22, 22, 0.08);
  }

  body.perla .site-header--unified .nav.is-open a {
    color: var(--tinta);
  }
}

/* —— Home: lámina (hero «Perla técnica», ref. Red Maiden) —— */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

body.perla .pearl-hero {
  --ph-ink: #161616;
  --ph-ink-2: #3d3a37;
  --ph-mist: #dfe2e8;
  --ph-steel: #b9bec9;
  --ph-yellow: #e3c341;
  --ph-r: 30px;
  --ph-grotesk: "Inter Tight", "Manrope", sans-serif;
  --ph-mono: "JetBrains Mono", ui-monospace, monospace;
  padding: clamp(16px, 2vw, 28px) clamp(16px, 2.4vw, 32px) clamp(8px, 1.5vw, 16px);
  background: var(--perla);
}

body.perla .pearl-sheet {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 2.2vw, 32px);
  align-items: stretch;
  padding: 22px clamp(18px, 2vw, 28px) 22px 18px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--sheet);
  overflow: hidden;
}

/* riel cápsula */
body.perla .pearl-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  padding: 8px 0;
  border-radius: 999px;
  background: var(--rojo);
}

body.perla .pearl-rail-target {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  margin: 8px 0;
  border-radius: 50%;
  border: 2.5px solid var(--sheet);
}

body.perla .pearl-rail-target::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--sheet);
}

body.perla .pearl-rail-core {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 48px;
  padding: 18px 0;
  border-radius: 999px;
  background: var(--sheet);
}

body.perla .pearl-rail ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.perla .pearl-rail-track {
  position: relative;
}

body.perla .pearl-rail-glide {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rojo);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.42s cubic-bezier(0.22, 0.8, 0.24, 1);
}

body.perla .pearl-rail a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--rojo);
  border-radius: 50%;
  background: transparent;
  font: 600 11px/1 var(--ph-mono);
  letter-spacing: 0.02em;
  color: var(--rojo);
  transition: color 0.42s cubic-bezier(0.22, 0.8, 0.24, 1), border-color 0.42s cubic-bezier(0.22, 0.8, 0.24, 1);
}

body.perla .pearl-rail a:hover,
body.perla .pearl-rail a:focus-visible {
  background: transparent;
  color: var(--rojo-prof, #7a1420);
}

body.perla .pearl-rail a.is-current,
body.perla .pearl-rail a.is-current:hover,
body.perla .pearl-rail a.is-current:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #fff;
}

body.perla .pearl-rail-text {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 500 10.5px/1 var(--ph-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ph-ink-2);
}

/* texto */
body.perla .pearl-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 0 6px;
}

@property --dot {
  syntax: "<color>";
  inherits: true;
  initial-value: #ddd6cc;
}

@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

body.perla .pearl-beats {
  --dot: #ddd6cc;
  position: absolute;
  z-index: 0;
  left: 86px;
  right: 6%;
  bottom: 10px;
  height: 52%;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  padding-bottom: 64px;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  transition: --dot 0.6s ease;
}

body.perla .pearl-beats span {
  --p: 0;
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  animation: pearl-p 5.6s cubic-bezier(0.45, 0.02, 0.55, 1) infinite alternate;
  animation-delay: calc(var(--i) * -0.34s);
}

body.perla .pearl-beats b {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 7px;
}

body.perla .pearl-beats i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--dot);
  opacity: clamp(0, calc(var(--p) - var(--d)), 1);
  transform: scale(clamp(0.62, calc(0.62 + (var(--p) - var(--d)) * 0.38), 1));
}

body.perla .pearl-beats .is-mirror {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  transition: opacity 0.6s ease;
}

body.perla .pearl-sheet:hover .pearl-beats {
  --dot: #9c968e;
}

body.perla .pearl-sheet:hover .pearl-beats .is-mirror {
  opacity: 0.58;
}

@keyframes pearl-p {
  from { --p: 0; }
  to { --p: var(--n); }
}

@media (max-width: 700px) {
  body.perla .pearl-beats {
    left: 12px;
    right: 12px;
    height: 32%;
    gap: 5px;
    padding-bottom: 36px;
  }

  body.perla .pearl-beats i {
    width: 8px;
    height: 8px;
  }

  body.perla .pearl-beats b {
    gap: 4px;
  }
}

body.perla .pearl-top,
body.perla .pearl-display,
body.perla .pearl-pills,
body.perla .pearl-actions {
  position: relative;
  z-index: 1;
}

body.perla .pearl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: auto;
}

body.perla .pearl-lede {
  position: relative;
  max-width: 31ch;
  margin: 0;
  padding-left: 34px;
  font: 500 15px/1.5 var(--ph-grotesk);
  color: var(--ph-ink-2);
}

body.perla .pearl-marker {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--rojo);
  border-radius: 50%;
}

body.perla .pearl-marker::after {
  content: "";
  position: absolute;
  left: 6.75px;
  top: 17px;
  width: 1.5px;
  height: 58px;
  background: var(--rojo);
}

body.perla .pearl-ast {
  flex: none;
  width: 68px;
  height: 68px;
  margin-right: 6%;
}

body.perla .pearl-display {
  margin: 40px 0 0;
  font-family: var(--ph-grotesk);
  font-weight: 700;
  font-size: clamp(56px, 7.6vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: none;
  color: var(--ph-ink);
}

body.perla .pearl-line {
  display: flex;
  align-items: center;
  gap: 0.14em;
  white-space: nowrap;
}

body.perla .pearl-dd {
  width: auto;
  height: 0.64em;
  margin-top: 0.06em;
}

body.perla .pearl-accent {
  color: var(--rojo);
}

body.perla .pearl-arrow {
  flex: none;
  width: 0.48em;
  height: 0.48em;
  margin: 0.12em 0 0 0.04em;
  color: var(--rojo);
}

body.perla .pearl-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: none;
  margin: 30px 0 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

body.perla .pearl-pills::-webkit-scrollbar {
  height: 0;
}

body.perla .pearl-pills li {
  flex: none;
}

body.perla .pearl-pills li > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border: 1.5px solid var(--ph-ink);
  border-radius: 999px;
  font: 600 11.5px/1 var(--ph-grotesk);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

body.perla .pearl-pills li > a:hover,
body.perla .pearl-pills li > a:focus-visible {
  background: var(--ph-ink);
  color: var(--sheet);
}

body.perla .pearl-pills li.is-on > * {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}

body.perla .pearl-pills li.is-on span {
  font-size: 15px;
  font-weight: 400;
}

body.perla .pearl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body.perla .pearl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 13px/1 var(--ph-grotesk);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.perla .pearl-btn--fill {
  background: var(--ph-ink);
  color: var(--sheet);
  border: 1.5px solid var(--ph-ink);
}

body.perla .pearl-btn--fill:hover,
body.perla .pearl-btn--fill:focus-visible {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
}

body.perla .pearl-btn--line {
  border: 1.5px solid var(--ph-ink);
  color: var(--ph-ink);
}

body.perla .pearl-btn--line:hover,
body.perla .pearl-btn--line:focus-visible {
  border-color: var(--rojo);
  color: var(--rojo);
}

/* escenario: panel con muescas cóncavas */
body.perla .pearl-stage {
  --nr: 28px;
  position: relative;
  z-index: 1;
  min-width: 0;
  height: clamp(460px, 38vw, 560px);
  margin: 0;
}

body.perla .pearl-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--ph-r);
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  background: #121212;
}

body.perla .pearl-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 124%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 66% 38%;
  animation: pearl-drift 16s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes pearl-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-15%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body.perla .pearl-beats span,
  body.perla .pearl-photo {
    animation: none;
  }

  body.perla .pearl-beats span {
    --p: var(--n);
  }

  body.perla .pearl-photo {
    width: 100%;
    transform: none;
  }

  body.perla .pearl-rail-glide {
    transition: none;
  }
}

body.perla .pearl-notch {
  position: absolute;
  z-index: 3;
  background: var(--sheet);
}

body.perla .pearl-notch::before,
body.perla .pearl-notch::after {
  content: "";
  position: absolute;
  width: var(--nr);
  height: var(--nr);
}

body.perla .pearl-notch--tr {
  top: 0;
  right: 0;
  width: 138px;
  height: 138px;
  border-bottom-left-radius: var(--nr);
}

body.perla .pearl-notch--tr::before {
  top: 0;
  left: calc(-1 * var(--nr));
  background: radial-gradient(circle at 0 100%, transparent calc(var(--nr) - 0.5px), var(--sheet) var(--nr));
}

body.perla .pearl-notch--tr::after {
  right: 0;
  bottom: calc(-1 * var(--nr));
  background: radial-gradient(circle at 0 100%, transparent calc(var(--nr) - 0.5px), var(--sheet) var(--nr));
}

body.perla .pearl-disc {
  position: absolute;
  top: 0;
  right: 0;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--rojo);
}

body.perla .pearl-notch--bl {
  left: 0;
  bottom: 0;
  width: 318px;
  height: 128px;
  border-top-right-radius: var(--nr);
}

body.perla .pearl-notch--bl::before {
  left: 0;
  top: calc(-1 * var(--nr));
  background: radial-gradient(circle at 100% 0, transparent calc(var(--nr) - 0.5px), var(--sheet) var(--nr));
}

body.perla .pearl-notch--bl::after {
  right: calc(-1 * var(--nr));
  bottom: 0;
  background: radial-gradient(circle at 100% 0, transparent calc(var(--nr) - 0.5px), var(--sheet) var(--nr));
}

body.perla .pearl-portada {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 304px;
  height: 114px;
  padding: 14px 14px 14px 20px;
  border-radius: 22px;
  background: var(--ph-steel);
  color: var(--ph-ink);
  transition: background 0.2s ease;
}

body.perla .pearl-portada:hover,
body.perla .pearl-portada:focus-visible {
  background: var(--ph-mist);
}

body.perla .pearl-portada-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.perla .pearl-portada-kicker {
  font: 600 10px/1 var(--ph-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rojo-prof);
}

body.perla .pearl-portada strong {
  font: 700 22px/1.05 var(--ph-grotesk);
  letter-spacing: -0.02em;
}

body.perla .pearl-portada em {
  font: 500 12px/1.3 var(--ph-grotesk);
  font-style: normal;
  color: var(--ph-ink);
}

body.perla .pearl-swatch {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--rojo);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}

body.perla .pearl-caption {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font: 500 11px/1.35 var(--ph-mono);
  color: rgba(247, 245, 241, 0.88);
}

body.perla .pearl-ring {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--sheet);
  border-radius: 50%;
}

body.perla .pearl-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--sheet);
  border-radius: 50%;
}

body.perla .pearl-ring::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 19px;
  width: 1.5px;
  height: 200px;
  background: linear-gradient(var(--sheet), rgba(247, 245, 241, 0));
}

body.perla .pearl-scan {
  --cw: 80px;
  --rh: 52px;
  position: absolute;
  z-index: 2;
  right: 15%;
  top: 31%;
  display: grid;
  grid-template-columns: repeat(3, var(--cw));
  grid-template-rows: repeat(5, var(--rh));
  border-top: 1px solid var(--ph-yellow);
  border-left: 1px solid var(--ph-yellow);
  background-image:
    linear-gradient(to right, var(--ph-yellow) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ph-yellow) 1px, transparent 1px);
  background-size: var(--cw) var(--rh);
  background-position: calc(var(--cw) - 1px) 0, 0 calc(var(--rh) - 1px);
}

body.perla .pearl-scan::after {
  content: "";
  position: absolute;
  left: 100%;
  top: -1px;
  width: 130px;
  height: calc(100% + 1px);
  background-image:
    linear-gradient(to bottom, var(--ph-yellow) 1px, transparent 1px),
    linear-gradient(to right, var(--ph-yellow) 1px, transparent 1px);
  background-size: 100% var(--rh), var(--cw) 100%;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}

body.perla .pearl-scan span {
  grid-column: var(--c);
  grid-row: var(--r);
  align-self: end;
  padding: 0 0 6px 7px;
  font: 500 11px/1.1 var(--ph-grotesk);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.perla .pearl-year {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.perla .pearl-year li {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(247, 245, 241, 0.75);
  border-radius: 50%;
  font: 500 11px/1 var(--ph-mono);
  color: var(--sheet);
}

body.perla .pearl-barcode {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 26px;
  width: 124px;
  height: 30px;
  opacity: 0.92;
}

@media (max-width: 1100px) {
  body.perla .pearl-sheet {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  body.perla .pearl-rail {
    flex-direction: row;
    width: 100%;
    padding: 0 8px;
  }

  body.perla .pearl-rail-target {
    margin: 0 4px;
  }

  body.perla .pearl-rail-core {
    flex-direction: row;
    justify-content: space-between;
    width: auto;
    margin: 6px 0;
    padding: 0 6px;
  }

  body.perla .pearl-rail ol {
    flex-direction: row;
  }

  body.perla .pearl-rail-text {
    writing-mode: horizontal-tb;
    transform: none;
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  body.perla .pearl-hero {
    padding: 12px 10px 8px;
  }

  body.perla .pearl-sheet {
    gap: 22px;
    padding: 12px;
    border-radius: 28px;
  }

  body.perla .pearl-rail-text {
    display: none;
  }

  body.perla .pearl-rail-core {
    flex: 1;
    justify-content: center;
  }

  body.perla .pearl-rail ol {
    gap: 14px;
  }

  body.perla .pearl-copy {
    padding: 0 6px;
  }

  body.perla .pearl-lede {
    font-size: 14px;
  }

  body.perla .pearl-marker::after {
    height: 40px;
  }

  body.perla .pearl-ast {
    width: 48px;
    height: 48px;
    margin-right: 0;
  }

  body.perla .pearl-display {
    margin-top: 28px;
    font-size: clamp(52px, 16.5vw, 76px);
  }

  body.perla .pearl-pills {
    gap: 6px;
    margin-top: 22px;
  }

  body.perla .pearl-pills li > * {
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  body.perla .pearl-btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: 12px;
  }

  body.perla .pearl-stage {
    --nr: 20px;
    height: 400px;
  }

  body.perla .pearl-frame {
    border-radius: 24px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  body.perla .pearl-photo {
    object-position: 74% 30%;
  }

  body.perla .pearl-notch--tr {
    width: 90px;
    height: 90px;
  }

  body.perla .pearl-disc {
    width: 74px;
    height: 74px;
  }

  body.perla .pearl-notch--bl {
    width: 226px;
    height: 98px;
  }

  body.perla .pearl-portada {
    width: 214px;
    height: 86px;
    padding: 10px 10px 10px 14px;
    border-radius: 18px;
  }

  body.perla .pearl-portada strong {
    font-size: 18px;
  }

  body.perla .pearl-swatch {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  body.perla .pearl-caption {
    left: 18px;
    top: 18px;
    font-size: 10px;
  }

  body.perla .pearl-ring::after {
    height: 110px;
  }

  body.perla .pearl-scan {
    --cw: 54px;
    --rh: 34px;
    right: 22%;
    top: 31%;
  }

  body.perla .pearl-scan::after {
    display: none;
  }

  body.perla .pearl-scan span {
    padding: 0 0 4px 5px;
    font-size: 9.5px;
  }

  body.perla .pearl-year {
    right: 12px;
    bottom: 50px;
  }

  body.perla .pearl-year li {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  body.perla .pearl-barcode {
    right: 16px;
    bottom: 16px;
    width: 82px;
    height: 22px;
  }
}

/* —— Secciones y fichas —— */
body.perla .discipline-brief {
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 18px;
}

body.perla .discipline-brief-divider {
  background: rgba(22, 22, 22, 0.12);
}

body.perla .discipline-title-pill {
  background: #fff;
  color: var(--rojo);
  border-color: rgba(196, 35, 42, 0.45);
  box-shadow: none;
}

body.perla .discipline-title-pill:hover,
body.perla .discipline-title-row:hover .discipline-title-pill {
  color: #fff;
  background: var(--rojo);
  border-color: var(--rojo);
  box-shadow: 0 8px 18px rgba(196, 35, 42, 0.22);
}

@media (min-width: 981px) {
  body.perla .discipline-title-pill:hover,
  body.perla .discipline-title-row:hover .discipline-title-pill {
    transform: translateY(-1px);
  }
}

body.perla .discipline-rule,
body.perla .discipline-rule:first-child,
body.perla .discipline-rule:last-child {
  background: rgba(22, 22, 22, 0.16);
}

body.perla .work-card {
  border-color: rgba(22, 22, 22, 0.12);
  border-radius: 22px;
  box-shadow: none;
  background-color: #f7f4ef;
  color: var(--tinta);
}

body.perla .work-card--ink,
body.perla .work-card--ink .work-card-visual,
body.perla .work-card--ink .thumb-item,
body.perla .work-card--ink .work-card-thumbs img {
  background-color: #f7f4ef;
  color: var(--tinta);
}

body.perla .work-card--ink .work-card-title,
body.perla .work-card--ink .work-card-title a,
body.perla .project-entry .work-card-title a {
  color: var(--tinta);
}

body.perla .work-card--ink .work-card-def,
body.perla .work-card--ink .work-card-foot,
body.perla .work-card--ink .work-card-foot span {
  color: #2c2c2c;
}

body.perla .work-card--ink .work-card-visual::before,
body.perla .work-card--ink.work-card--invert .work-card-visual::before {
  display: none;
}

body.perla .projects-filters button {
  border: 1px solid rgba(22, 22, 22, 0.16);
  background: #fff;
  color: var(--tinta);
}

body.perla .projects-filters button:hover,
body.perla .projects-filters button:focus-visible,
body.perla .projects-filters button[aria-pressed="true"] {
  border-color: var(--rojo);
  background: #fff;
  color: var(--rojo);
}

body.perla .work-card:hover,
body.perla .work-card:focus-visible {
  border-color: var(--rojo);
  box-shadow: 0 10px 24px rgba(22, 22, 22, 0.08);
}

/* —— Botones heredados —— */
body.perla .cta--outline {
  border-color: var(--tinta);
  color: var(--tinta);
  border-radius: 999px;
}

body.perla .cta--outline:hover,
body.perla .cta--outline:focus-visible {
  background: var(--tinta);
  color: #f3f1ec;
}

body.perla .cta--text {
  color: var(--tinta);
}

body.perla .cta--text:hover,
body.perla .cta--text:focus-visible {
  color: var(--rojo);
}

body.perla main:has(.dossier),
body.perla main:has(.dossier--case) {
  padding-top: 0;
}

body.perla .interior-hero,
body.perla .interior-hero--banner {
  padding-top: clamp(28px, 4vw, 48px);
}
body.perla .interior-hero,
body.perla .interior-hero--banner {
  background: var(--perla);
  color: var(--tinta);
  border-bottom: 1px solid var(--line);
}

body.perla .interior-hero--banner .interior-hero-bg {
  opacity: 0.28;
}

body.perla .interior-hero-veil,
body.perla .projects-hero-veil {
  background: linear-gradient(90deg, #f3f1ec 0%, rgba(243, 241, 236, 0.88) 42%, rgba(243, 241, 236, 0.2) 100%) !important;
}

body.perla .projects-hero--bleed {
  background: var(--perla);
  color: var(--tinta);
}

body.perla .projects-kicker {
  color: #6b6560;
}

body.perla .projects-signals li {
  color: #2c2c2c;
}

body.perla .interior-title,
body.perla .page-label,
body.perla .discipline-count,
body.perla .close-profile-title {
  color: var(--tinta);
}

body.perla .close-profile,
body.perla .close-portrait-frame,
body.perla main.page {
  background: transparent;
  color: var(--tinta);
}

/* —— Caso —— */
body.perla .dossier--case .opening,
body.perla .dossier--case .opening-text,
body.perla .dossier--case .opening-image,
body.perla .dossier--case .meta-banner,
body.perla .meta-banner,
body.perla article.dossier.dossier--case .meta-row,
body.perla .dossier--case .signal-row {
  background: var(--perla) !important;
  color: var(--tinta);
}

body.perla .dossier--case .opening {
  border-bottom: 1px solid var(--line);
}

body.perla .dossier--case .opening-text .project-title,
body.perla .dossier--case .opening-claim,
body.perla .dossier--case .opening-text .context {
  color: var(--tinta);
}

body.perla .dossier--case .opening-text .context,
body.perla .meta-banner dt,
body.perla article.dossier.dossier--case .meta-row dt {
  color: var(--rojo);
}

body.perla .dossier--case .opening-claim,
body.perla .meta-banner dd,
body.perla article.dossier.dossier--case .meta-row dd,
body.perla .dossier--case .signal-row li {
  color: var(--tinta-soft);
}

body.perla .dossier--case .opening-text .project-title::after {
  background: rgba(22, 22, 22, 0.2);
}

body.perla .dossier--case .opening-image::before {
  background: linear-gradient(90deg, var(--perla), transparent);
}

body.perla .dossier--case .opening-image img {
  inset: 14px 18px 14px 0;
  width: auto;
  height: auto;
  border-radius: 22px;
}

body.perla .dossier--case .meta-banner,
body.perla article.dossier.dossier--case .meta-row,
body.perla .dossier--case .signal-row {
  border-top-color: var(--line) !important;
}

body.perla .meta-banner > div,
body.perla article.dossier.dossier--case .meta-row > div {
  border-right-color: var(--line);
}

body.perla .logo-tile--light {
  background:
    linear-gradient(rgba(22, 22, 22, 0.08) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(90deg, rgba(22, 22, 22, 0.08) 1px, transparent 1px) 0 0 / 10px 10px,
    #fff;
  border-color: rgba(22, 22, 22, 0.14);
}

body.perla .brand-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body.perla .interior-exp-brandrow {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

body.perla .brand-mark .swatch-row {
  gap: 4px;
}

body.perla .brand-mark .swatch-row li {
  width: 11px;
  height: 11px;
  border-color: rgba(22, 22, 22, 0.16);
  box-shadow: none;
}

body.perla .interior-logo-tile--virgin {
  width: 112px;
  height: 96px;
  border-radius: 14px;
}

body.perla .cx-band {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 18px;
}

body.perla .cx-band-kicker,
body.perla .cx-band-org {
  margin: 0;
  font-family: var(--font-sub);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rojo);
}

body.perla .cx-band-copy h3 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--tinta);
}

body.perla .cx-band-org {
  margin-top: 6px;
  color: var(--ash);
}

body.perla .cx-band-copy > p:last-child {
  margin: 10px 0 0;
  max-width: 62ch;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ash);
}

body.perla .cx-band-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body.perla .cx-band-metrics div {
  padding: 12px 10px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  border-radius: 12px;
  background: #f7f5f1;
}

body.perla .cx-band-metrics dt {
  margin: 0;
  font-family: var(--font-sub);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}

body.perla .cx-band-metrics dd {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--tinta);
}

@media (min-width: 860px) {
  body.perla .cx-band {
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, 280px);
    align-items: center;
    gap: 22px;
    padding: 22px 24px;
  }
}

body.perla .interior-formacion-logo,
body.perla .interior-formacion-logo--duoc,
body.perla .interior-formacion-logo--uniacc {
  filter: none;
  opacity: 1;
  height: 28px;
  max-width: 120px;
}

body.perla .dossier--case .case-logo {
  width: auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: #161616;
}

body.perla .dossier--case .tablist {
  border-color: var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

body.perla .dossier--case .tablist button {
  border-right-color: var(--line);
  color: var(--ash);
}

body.perla .dossier--case .tablist button[aria-selected="true"] {
  color: var(--tinta);
  background: #f7f5f1;
}

body.perla .dossier--case .tablist button:hover,
body.perla .dossier--case .tablist button:focus-visible {
  color: var(--rojo);
}

body.perla .dossier--case .info-copy,
body.perla .dossier--case .info-copy p,
body.perla .dossier--case .feature-copy,
body.perla .dossier--case .feature-copy p,
body.perla .dossier--case .feature-title,
body.perla .dossier--case .dossier-h3,
body.perla .dossier--case li {
  color: var(--tinta-soft);
}

body.perla .dossier--case .info-copy strong,
body.perla .dossier--case .feature-title,
body.perla .dossier--case .dossier-h3 {
  color: var(--tinta);
}

body.perla .dossier--case .key-figure,
body.perla .dossier--case .piece-row figure,
body.perla .dossier .opening-image {
  border-color: var(--line);
  border-radius: 16px;
  background: #fff;
}

body.perla .dossier--case .key-figure figcaption,
body.perla .dossier--case figcaption {
  color: var(--ash);
}

body.perla .link-crimson {
  color: var(--rojo);
}

/* —— Pie —— */
body.perla .site-footer {
  background: #efece6;
  border-top: 1px solid var(--line);
  color: var(--tinta);
}

body.perla .site-footer-rule {
  background: var(--line);
}

body.perla .site-footer-social a {
  border-color: var(--line);
  color: var(--tinta);
}

body.perla .site-footer-col a:hover,
body.perla .site-footer-col a:focus-visible,
body.perla .site-footer-base .meta a:hover {
  color: var(--rojo);
}

body.perla #identidad,
body.perla #direccion-de-arte,
body.perla #packaging,
body.perla #digital,
body.perla .close-profile {
  scroll-margin-top: 88px;
}

body.perla .close-profile {
  background: var(--perla);
  color: var(--tinta);
}

body.perla .close-stats,
body.perla .close-value-card,
body.perla .close-value-card:hover,
body.perla .interior-steps,
body.perla .interior-timeline,
body.perla .interior-skill-col,
body.perla .interior-lang-row,
body.perla .interior-topics,
body.perla .interior-channel,
body.perla .interior-channel:hover,
body.perla .interior-formacion-card,
body.perla .interior-exp-card,
body.perla .interior-exp-card:hover,
body.perla .interior-contact-panel,
body.perla .interior-avail {
  background: #fff;
  border-color: rgba(22, 22, 22, 0.12);
  color: var(--tinta);
}

body.perla .close-stats div,
body.perla .interior-step,
body.perla .interior-timeline-item,
body.perla .interior-lang,
body.perla .interior-topic {
  border-color: rgba(22, 22, 22, 0.12);
}

body.perla .close-portrait-name,
body.perla .close-portrait-role {
  color: #f3f1ec;
}

body.perla .close-stat-ico {
  color: var(--rojo);
  background: rgba(196, 35, 42, 0.08);
  border-color: rgba(196, 35, 42, 0.35);
}

body.perla .discipline-tags li,
body.perla .close-oficio-list li,
body.perla .interior-tool,
body.perla .interior-stack li,
body.perla .interior-pill,
body.perla .interior-card-meta a {
  background: #fff;
  border-color: rgba(22, 22, 22, 0.16);
  color: var(--tinta);
}

body.perla .interior-card-meta a:hover,
body.perla .interior-card-meta a:focus-visible {
  border-color: var(--rojo);
  color: var(--rojo);
}

body.perla .area-item {
  border-bottom-color: rgba(22, 22, 22, 0.12);
}

body.perla .area-item:hover .area-title,
body.perla .area-item:focus-visible .area-title {
  color: var(--rojo);
}

body.perla .interior-hero--banner .interior-hero-inner {
  padding-top: clamp(36px, 5vw, 64px);
}

@media (max-width: 900px) {
  body.perla .dossier--case .opening-image img {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  body.perla .dossier--case .opening-image::before {
    background: linear-gradient(0deg, var(--perla), transparent);
  }
}
