/* La apertura toma las facetas y sus colores del estudio de movimiento. */
:root { scroll-padding-top: 5.5625rem; }
.top-line nav { margin-left: auto; }
.top-line nav a {
  justify-content: center;
  min-width: 44px;
}
.top-line .signature .full-name { max-width: none; line-height: 1.25; }
.top-line [hidden] { display: none; }
.top-line nav a[aria-current="location"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: .38em;
}
.greeting .greeting-line {
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
}
.greeting-line span { white-space: nowrap; }
.services a { line-height: 1.17; }
.services a span:first-child { text-wrap: balance; }

.creator-section { background: #faf8f5; }
.creator h2 {
  margin: 0;
  max-width: 9ch;
  font: 600 clamp(3.5rem, 7vw, 7.2rem)/.94 var(--display);
  letter-spacing: -.05em;
}
.creator h2 span { display: block; }
.creator-photo img { display: block; }

:root[data-ambiente="facetas"] .metodo {
  background: #fff;
  border-block-start-color: #d8d7d2;
}
:root[data-ambiente="facetas"] .metodo-muestra {
  background: transparent;
  border-color: #484b4a;
  padding-inline: 0;
}
:root[data-ambiente="facetas"] .metodo-desglose[open] .metodo-ficha {
  background: #f4f4f1;
  border-inline-start-color: var(--red);
}

:root[data-ambiente="facetas"] .xr-radar {
  --xr-paper: #f3f5f4;
  --xr-ink: #202427;
  --xr-secondary: #464e51;
  --xr-red: #a51b32;
  background: var(--xr-paper);
  border-color: #c9cecc;
}
:root[data-ambiente="facetas"] .xr-radar__figure {
  --xr-paper: #202427;
  --xr-ink: #f5f7f6;
  --xr-secondary: #c4cdd1;
  --xr-red: #ff8a94;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--xr-paper);
  color: var(--xr-ink);
}
.xr-radar__figure figcaption {
  margin: 0 clamp(.85rem, 2.5vw, 2rem);
  padding-block: 1rem .8rem;
  border-bottom: 1px solid #677074;
}
.xr-radar__chart {
  width: calc(100% - 1rem);
  margin: .8rem auto .3rem;
}
:root[data-ambiente="facetas"] .xr-radar__grid { stroke: #748087; }
.radar-wave {
  height: clamp(3.6rem, 5.2vw, 5.3rem);
  overflow: hidden;
  border-top: 1px solid #42494a;
  background-color: #1a1b22;
}
.radar-wave canvas { display: block; width: 100%; height: 100%; }
.xr-radar__intro a {
  margin-top: 1rem;
  padding: .65rem 1rem;
  background: var(--xr-red);
  color: white;
  text-decoration: none;
}
.xr-radar__intro a span { color: inherit; }
.xr-radar__intro a:is(:hover, :focus-visible) { background: #781326; }
:root[data-ambiente="facetas"] .xr-radar__example summary {
  color: #202427;
  border: 1px solid #788183;
  background: transparent;
  box-shadow: none;
}
:root[data-ambiente="facetas"] .xr-radar__example summary:is(:hover, :focus-visible) {
  color: #fff;
  background: #262b2e;
}

.talks { background: #24282a; color: #fffaf7; }
.talks-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  justify-content: space-between;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(3rem, 6vw, 6rem);
}
.talks h2 {
  margin: 0;
  max-width: 11ch;
  font: 600 clamp(2.8rem, 4.5vw, 5rem)/.98 var(--display);
  letter-spacing: -.04em;
}
.talk { margin-top: clamp(1.25rem, 3vw, 3rem); border-block-start: 1px solid #727778; padding-block-start: .9rem; }
.talk-photos {
  display: grid;
  /* A igual altura, los dos encuadres elegidos guardan esta proporción de anchos. */
  grid-template-columns: minmax(0, 366fr) minmax(0, 302fr);
  gap: clamp(.65rem, 1.6vw, 1.5rem);
  width: min(100%, 42rem);
  justify-self: end;
}
.talk-photos img { display: block; width: 100%; height: auto; }
.talk-photos figcaption { margin-top: .7rem; line-height: 1.35; }
.talk-photos strong { display: block; font: 600 clamp(1.1rem, 1.5vw, 1.45rem)/1.2 var(--display); }
.talk-photos time { display: block; margin-top: .2rem; color: #dcddda; font-size: .95rem; }
.talk-location { font-size: .98rem; color: #dcddda; }
.talk h3 {
  margin: .65rem 0 .55rem;
  font: 600 clamp(2.1rem, 3.5vw, 3.4rem)/1.05 var(--display);
  letter-spacing: -.025em;
}
.talk p { font-size: clamp(1.05rem, 1.55vw, 1.3rem); max-width: 44ch; }

:root[data-ambiente="facetas"] .story {
  --ink: #212321;
  --red: #a11b2e;
  --line: #d4d1cb;
  color: var(--ink);
  background: #fffdf9;
  border-color: #dedcd5;
}
.story-intro p {
  margin-top: 1.1rem;
  max-width: 33ch;
  color: #464b49;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.story-years {
  padding-inline-start: clamp(1rem, 2vw, 1.75rem);
  border-inline-start: 1px solid #b1aaa2;
}
:root[data-ambiente="facetas"] .story-years > div {
  position: relative;
  border: 0;
  padding: 0 0 1.9rem;
}
.story-years > div::before {
  position: absolute;
  inset-inline-start: calc(-1 * clamp(1rem, 2vw, 1.75rem) - .32rem);
  inset-block-start: .55rem;
  width: .57rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  content: "";
}
.studies { padding-block: .5rem; border-block: 1px solid var(--line); }
.studies summary {
  width: fit-content;
  min-height: 44px;
  padding-block: .55rem;
  color: var(--red);
  font-weight: 600;
  cursor: pointer;
}
.studies ul { margin: .2rem 0 .85rem; padding-inline-start: 1.35rem; }
.studies li { padding-block: .2rem; }

/* Dos recortes con las cabeceras originales, a su color y sobre papel claro. */
#prensa:target {
  display: grid;
  align-content: center;
  min-block-size: calc(100svh - 7.5rem);
}
.press .wrap { row-gap: 1rem; }
.press h2 { margin-bottom: clamp(.55rem, 1.7vw, 1.6rem); }
:root[data-ambiente="facetas"] .press .clipping {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: clamp(.9rem, 1.6vw, 1.5rem) .7rem;
  padding: clamp(1.05rem, 2.1vw, 2rem);
  border: 0;
  color: #202124;
  background: #fffefa;
  --signal: #a6233a;
}
:root[data-ambiente="facetas"] .press .clipping-meta {
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  min-width: 0;
  padding: 0 0 .7rem;
  border-bottom: 1px solid #ccc8c0;
}
.press-masthead {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3rem;
}
.press-masthead img { display: block; height: auto; }
.masthead-razon { width: clamp(9.25rem, 16vw, 10.5rem); }
.masthead-as { width: 2.45rem; }
.masthead-meri { width: 7.3rem; }
.press .clipping time {
  color: #565953;
  font-size: .92rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.press .clipping h3 {
  align-self: start;
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.7rem);
  line-height: 1.13;
  text-wrap: pretty;
}
.clipping-source {
  display: flex;
  align-items: center;
  gap: .45em;
  color: #922139;
  font-weight: 600;
}
.clipping:is(:hover, :focus-visible) .clipping-source { text-decoration: underline; }
.press .mark { white-space: nowrap; }
.press .clipping:focus-visible { outline: 3px solid #ffd6db; outline-offset: 4px; }

@media (max-width: 62rem) {
  .talks-layout { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .talk-photos { justify-self: start; }
  :root { scroll-padding-top: 4.25rem; }
  .top-line {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    gap: 0 .5rem;
  }
  .top-line .signature { justify-self: start; align-self: center; }
  .signature-bar:has(.section-toggle[hidden]) { position: static; }
  .brand-mark { width: clamp(44px, 12vw, 58px); height: auto; }
  .section-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 44px;
    padding: .4rem .25rem .4rem .6rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 600 .95rem/1.25 Barlow, Arial, sans-serif;
    cursor: pointer;
  }
  .section-toggle span {
    width: .48rem;
    height: .48rem;
    border: solid var(--red);
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .section-toggle[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
  .section-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  .top-line nav:not([hidden]) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0 1rem;
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--line);
  }
  .top-line nav a { justify-content: start; padding-inline: .3rem; }
  .section-toggle:not([hidden]) + nav:not([hidden]) {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    padding: .4rem .8rem;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 .7rem 1.4rem #30121c25;
  }
}
@media (max-width: 48rem) {
  .greeting h1 { gap: clamp(.85rem, 3.2vw, 1.5rem); }
  .greeting .greeting-line {
    font-size: clamp(1.35rem, 5.6vw, 1.75rem);
    max-width: none;
  }
  :root[data-ambiente="facetas"] .services a {
    padding-inline: clamp(.875rem, 3.85vw, 1rem);
    min-height: 58px;
  }
  .talks h2 { max-width: 15ch; }
  .xr-radar__layout { gap: 1.4rem; }
  .xr-radar__figure { margin-inline: auto; }
  .story-layout { gap: 2rem; }
  .story-intro p { max-width: 42ch; }
}
@media (max-width: 46rem) {
  .creator h2 { max-width: 100%; font-size: clamp(3.1rem, 10.5vw, 5rem); }
  .creator h2 span { display: inline; }
}
@media (max-width: 24rem) {
  .top-line { width: calc(100% - 1.4rem); }
  .story-years > div { grid-template-columns: minmax(3rem, auto) minmax(0, 1fr); gap: .7rem; }
  .press .clipping time { font-size: .86rem; }
  .masthead-razon { width: 8.7rem; }
  .press-masthead { gap: .42rem; }
  .masthead-as { width: 2.05rem; }
  .masthead-meri { width: 6.45rem; }
}
@media (max-width: 48rem) {
  .greeting .period { color: #fff0f1; }
}
