@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/titulares.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('assets/inter-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0c0b0f;
  --paper: #f9f7f3;
  --red: #dc0c3b;
  --pink: #ff8298;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-height: 78px;
  --index-height: 84px;
  --gutter: clamp(1.25rem, 6vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 1rem/1.55 Inter, system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }

.shell {
  width: min(calc(100% - 2 * var(--gutter)), 90rem);
  margin-inline: auto;
}
.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(rgba(8,7,10,.97), rgba(8,7,10,.80) 62%, transparent);
}
.scene {
  position: relative;
  display: flex;
  min-block-size: 100vh;
  min-block-size: 100svh;
  min-block-size: 100dvh;
  isolation: isolate;
  background: var(--ink);
}
.scene-picture {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: clip;
}
.scene-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  transform: scale(1.035);
  transition: transform 3s var(--ease);
}
.scene.is-current .scene-picture img { transform: scale(1); }
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,7,10,.91) 0%, rgba(8,7,10,.71) 22%, rgba(8,7,10,.19) 57%, transparent 84%),
    linear-gradient(0deg, #0b0a0d 0%, rgba(8,7,10,.79) 18%, rgba(8,7,10,.24) 53%, rgba(8,7,10,.08) 80%, rgba(8,7,10,.28) 100%);
  pointer-events: none;
}
.scene-golpe { --photo-position: center 54%; }
.scene-pan { --photo-position: center 54%; }
.scene-parteras { --photo-position: center 60%; }
.scene-inner {
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + max(1.5rem, env(safe-area-inset-top)));
  padding-bottom: calc(var(--index-height) + clamp(2rem, 7vh, 5.5rem) + env(safe-area-inset-bottom));
}
.scene-copy { width: min(100%, 58rem); }
.topic {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--pink);
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.topic::before { content: ''; width: 1.85rem; height: 2px; background: var(--red); }
.scene h2 {
  max-width: 16ch;
  margin: .75rem 0 1.25rem;
  font: 700 clamp(4rem, 7.8vw, 8rem)/.83 var(--display);
  letter-spacing: -.018em;
  text-wrap: balance;
  text-shadow: 0 6px 32px #0007;
}
.scene-golpe h2 {
  max-width: none;
  font-size: clamp(4rem, 9.1vw, 9rem);
}
.scene-golpe h2 span {
  display: block;
  margin-top: .1em;
  font-size: .63em;
  line-height: .94;
}
.summary {
  max-width: 49ch;
  color: #f0edeb;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  text-wrap: pretty;
}
.scene-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.5rem;
  margin-top: 1.6rem;
}
.author { font-size: .875rem; font-weight: 700; }
.story-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .5rem 1.25rem;
  background: #bf0a31;
  color: #fff;
  font-size: .9375rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 220ms ease;
  scroll-margin-block: var(--header-height) calc(var(--index-height) + 1.25rem);
}
.story-link:hover { background: #a60629; }

.story-index {
  position: fixed;
  z-index: 2;
  inset: auto 0 0;
  background: #0d0c10e8;
  backdrop-filter: blur(16px);
  border-top: 1px solid #ffffff33;
  padding-bottom: env(safe-area-inset-bottom);
}
.index-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.index-row a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(var(--index-height) - 1px);
  padding: .65rem clamp(.65rem, 2vw, 1.6rem);
  gap: clamp(.6rem, 1.4vw, 1rem);
  border-inline-start: 1px solid #ffffff22;
  color: #d4d0d4;
  text-decoration: none;
  font-size: clamp(.875rem, 1.25vw, 1.05rem);
  font-weight: 700;
  line-height: 1.24;
  transition: background-color 220ms ease, color 220ms ease;
}
.index-row a:last-child { border-inline-end: 1px solid #ffffff22; }
.index-row a img {
  width: clamp(2.5rem, 5vw, 4.5rem);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: .76;
}
.index-row a:hover, .index-row a[aria-current] { color: var(--paper); background: #ffffff0d; }
.index-row a[aria-current] img { opacity: 1; }
.index-row a[aria-current]::before {
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: var(--red);
  content: '';
}
.index-row a:focus-visible { outline-offset: -4px; z-index: 1; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 640px) {
  :root { --header-height: 64px; --index-height: 66px; }
  .scene::after {
    background: linear-gradient(0deg, #0b0a0d 0%, rgba(8,7,10,.93) 18%, rgba(8,7,10,.77) 39%, rgba(8,7,10,.21) 69%, rgba(8,7,10,.10) 87%, rgba(8,7,10,.44) 100%);
  }
  .scene-golpe { --photo-position: center 56%; }
  .scene-pan { --photo-position: center 46%; }
  .scene-parteras { --photo-position: center 57%; }
  .scene h2 {
    max-width: 100%;
    margin-block: .6rem .9rem;
    font-size: clamp(2.85rem, 12.6vw, 5rem);
    line-height: .89;
  }
  .scene-golpe h2 { font-size: clamp(3.5rem, 15.4vw, 5.6rem); }
  .scene-golpe h2 span { font-size: .62em; }
  .scene-action { margin-top: 1.15rem; gap: .7rem 1rem; }
  .story-link { min-height: 44px; }
  .story-index .shell { width: 100%; }
  .index-row a { justify-content: center; padding-inline: .5rem; text-align: center; }
  .index-row a img { display: none; }
}
@media (max-height: 510px) and (orientation: landscape) {
  :root { --header-height: 56px; --index-height: 58px; }
  .scene-inner { padding-top: calc(var(--header-height) + 1rem); padding-bottom: calc(var(--index-height) + 1.25rem); }
  .scene h2 { max-width: 24ch; font-size: clamp(2.55rem, 5.3vw, 3.8rem); margin-block: .5rem .7rem; }
  .scene-action { margin-top: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-picture img, .story-link, .index-row a { transition: none; }
  .scene-picture img { transform: none; }
}

:root:has(.site-header[data-rm-header="03"]) {
  --header-height: 68px;
}
.site-header[data-rm-header="03"] {
  z-index: 4;
  background: transparent;
  pointer-events: none;
}
.rm03-row {
  display: flex;
  position: relative;
  align-items: center;
  min-height: var(--header-height);
  padding-inline: max(5.25vw, env(safe-area-inset-left)) max(5.25vw, env(safe-area-inset-right));
}
.rm03-surface {
  position: absolute;
  inset: 0;
  background: #141416;
  border-bottom: 1px solid #3a3a3c;
  pointer-events: auto;
}
.rm03-veil { display: none; }
[data-rm-intro03] .rm03-veil {
  display: block;
  position: fixed;
  inset: 0;
  background: #141416;
}
[data-rm-intro03="pending"] :is(.rm03-brand, .rm03-surface) { opacity: 0; }
.rm03-brand {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 21px;
  height: 46px;
  transform-origin: left center;
  text-decoration: none;
  color: #d7d4ce;
  pointer-events: auto;
}
.rm03-brand img { display: block; width: 137px; height: auto; }
.rm03-divider { display: block; width: 1px; height: 22px; background: #555; }
.rm03-word { display: block; font: 700 10px/1 Arial, Helvetica, sans-serif; letter-spacing: .19em; }
.rm03-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.rm03-brand:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 820px) {
  .rm03-word { font-size: 9px; letter-spacing: .14em; }
}
@media (max-width: 640px) {
  .rm03-row { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .rm03-brand { gap: 12px; }
  .rm03-divider { height: 18px; }
  .rm03-word { font-size: 8px; }
}

.scene-action .rm-share-actions {
  position: relative;
  display: inline-flex;
  gap: .5rem;
  align-items: stretch;
  flex-wrap: wrap;
  max-inline-size: 100%;
}
.scene-action .rm-share-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding: .5rem .85rem;
  border: 1px solid #aaa7ac;
  border-radius: 0;
  background: #18171d;
  color: #faf8fa;
  font: 650 .9375rem/1.3 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.scene-action .rm-share-trigger:hover {
  background: #302c33;
  border-color: #fff;
}
.scene-action .rm-share-trigger:focus-visible {
  outline: 2px solid #ff8298;
  outline-offset: 3px;
}
.scene-action .rm-share-trigger svg { flex: none; }
.rm-share-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rm-share-panel {
  position: absolute;
  z-index: 3;
  width: max-content;
  transform: translateY(-50%);
  box-sizing: border-box;
  border: 1px solid #646067;
  background: #19181d;
  color: #f9f7f3;
  box-shadow: 0 6px 18px #08070a70;
  font: 550 .9375rem/1.25 Inter, system-ui, sans-serif;
}
.rm-share-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.rm-share-option svg { flex: none; }
.rm-share-option span { min-width: 0; overflow-wrap: anywhere; }
.rm-share-option:hover { background: #302c33; }
.rm-share-option:focus-visible { outline: 2px solid #ff8298; outline-offset: -3px; }
.rm-share-panel[data-copied] {
  border-color: #cba45c;
  background: #25201b;
  color: #ffe5a7;
}
.rm-share-panel[data-copied] .rm-share-option { background: transparent; cursor: default; }
.rm-share-panel[data-copied] .rm-share-option:focus-visible { outline-color: #e4bc70; }
.rm-share-sparks { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .rm-share-panel[data-copied] {
    animation: rm-share-confirmation var(--rm-confirmation-time) linear forwards;
  }
  .rm-share-sparks {
    display: block;
    position: absolute;
    inset: -38px 0 auto;
    height: 44px;
    overflow: hidden;
    pointer-events: none;
  }
  .rm-share-sparks i {
    position: absolute;
    top: 38px;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f1c267;
    opacity: 0;
    animation: rm-share-spark 580ms cubic-bezier(.18,.68,.28,1) both;
  }
  .rm-share-sparks i:nth-child(3n + 1) {
    width: 6px; height: 6px; border-radius: 0;
    background: #fff0c4;
    clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 37%);
    animation-delay: 40ms;
  }
  .rm-share-sparks i:nth-child(3n) { animation-delay: 75ms; }
  @keyframes rm-share-spark {
    0% { opacity: 0; transform: translate(-50%, 0) scale(1.2); }
    14% { opacity: 1; }
    55% { opacity: .9; }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(.55); }
  }
  @keyframes rm-share-confirmation {
    0% { opacity: 1; box-shadow: 0 0 0 transparent; }
    15% { box-shadow: 0 0 10px #e6b85445; }
    50%, 80% { opacity: 1; box-shadow: 0 5px 14px #08070a60; }
    100% { opacity: 0; }
  }
}
.rm-share-buffer {
  position: fixed; inset: 0 auto auto -10000px; opacity: 0; pointer-events: none;
  user-select: text; -webkit-user-select: text;
}
@media (max-width: 480px) {
  .scene-action .rm-share-actions {
    display: grid;
    grid-template-columns: minmax(0, auto) auto;
    width: fit-content;
  }
  .rm-share-actions .story-link {
    min-width: 0;
    padding-inline: .7rem;
    text-align: center;
    justify-content: center;
  }
  .scene-action .rm-share-trigger { padding-inline: .65rem; }
}
