.iv {
  --ink: #171719;
  --paper: #f6f3ed;
  --orange: #ff883e;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.55;
}
.iv *, .iv *::before { box-sizing: border-box; }
.iv :is(h1,h2,h3,p,dl,dd,figure) { margin: 0; }
.iv .iv-wrap { width: min(1240px, 88%); margin-inline: auto; }
.iv h1, .iv h2, .iv h3 { font-weight: 800; }
.iv h1, .iv h2 { line-height: .98; letter-spacing: -.065em; }
.iv h2 { font-size: clamp(2.4rem, 4.8vw, 4.8rem); }
.iv h3 { font-size: clamp(1.3rem, 1.9vw, 1.8rem); letter-spacing: -.045em; line-height: 1.14; }
.iv p.iv-label { display: flex; align-items: center; gap: .75rem; margin-bottom: 24px; font: 700 .74rem/1.5 ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .11em; }
.iv-label i { width: 21px; height: 3px; flex: none; background: var(--orange); }
.iv-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(660px, 52vw, 850px); padding: 140px 0 70px; color: #fff; background: #101011; }
.iv-optic, .iv-optic img, .iv-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.iv-optic { z-index: -2; }
.iv-optic img { object-fit: cover; object-position: 63% 55%; }
.iv-hero::before { content: ''; z-index: -1; background: linear-gradient(90deg, #090909dd, #0b0b0bd6 27%, #10101140 53%, transparent 70%); }
.iv .iv-opening h1 { font-size: clamp(3.9rem, 6.7vw, 7rem); line-height: .94; }
.iv-opening h1 em { font-style: normal; color: var(--orange); }
.iv .iv-deck { max-width: min(32rem, 45vw); margin-top: 24px; color: #f0ece9; font-size: clamp(1rem, 1.18vw, 1.18rem); line-height: 1.6; }
.iv-actions { margin-top: 27px; display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; }
.iv a.iv-btn, .iv .iv-retry summary { font: 750 .94rem/1.4 Montserrat, Arial, sans-serif; }
.iv a.iv-btn { display: inline-flex; gap: 22px; align-items: center; justify-content: space-between; padding: 15px 20px; border-radius: 4px; background: var(--orange); color: #19130e; text-decoration: none; }
.iv a.iv-btn:hover { background: #ffa871; }
.iv-secondary { font-size: .94rem; font-weight: 700; color: white; text-underline-offset: 6px; text-decoration: underline; padding-block: 10px; }
.iv-secondary span { margin-left: 5px; }
.iv :is(a, summary):focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.iv a.iv-btn:focus-visible { outline-color: #fff; }
.iv-case, .iv-scope, .iv-delivery, .iv-close { padding-block: clamp(60px, 7vw, 110px); }
.iv-case { scroll-margin-top: 65px; }
.iv-casegrid { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); align-items: center; gap: clamp(32px, 7vw, 106px); }
.iv-photo { background: #bc581e; overflow: hidden; }
.iv-photo img { width: 100%; aspect-ratio: 1/.98; display: block; object-fit: cover; }
.iv-case-copy > p:not(.iv-label), .iv .iv-report-intro { margin-top: 18px; max-width: 53ch; color: #45413d; }
.iv-ledger { margin-top: 24px; border: 1px solid #c6c1b6; background: #fffdfa; padding: 16px 19px; }
.iv-ledger-head, .iv-entry { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.iv-ledger-head { font-size: .8rem; color: #5a534c; padding-bottom: 10px; border-bottom: 1px solid #d5cfc4; }
.iv-entry { padding-block: 13px; font: 500 .9rem/1.5 ui-monospace, Consolas, monospace; }
.iv-entry strong { white-space: nowrap; }
.iv-retry summary { color: #80370c; display: list-item; cursor: pointer; padding: 8px 0; }
.iv-retry summary b { margin-left: 5px; }
.iv .iv-after, .iv-retry[open] .iv-before { display: none; }
.iv-retry[open] .iv-after { display: inline; }
.iv-duplicate { background: #ffe7ce; padding-inline: 8px; color: #6a300a; }
.iv-retry p { padding-top: 12px; font-size: .92rem; }
.iv-retry p b { display: block; }
.iv-scope { background: #1c1c1e; color: #f9f6f0; }
.iv-situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 44px; }
.iv-situations article { border-top: 1px solid #70685f; padding-top: 22px; }
.iv-situations h3 { max-width: 22ch; }
.iv-situations p { margin-top: 14px; color: #d3cec7; }
.iv-delivery { background: #ebe7de; }
.iv-delgrid, .iv-footgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 100px); }
.iv-files div { border-top: 1px solid #b1aa9c; padding-block: 16px; }
.iv-files dt { font-weight: 800; letter-spacing: -.025em; font-size: 1.16rem; }
.iv-files dd { margin-top: 5px; color: #474039; }
.iv-close { background: #ff914c; }
.iv-close .iv-label i { background: var(--ink); }
.iv-close p + p { margin-top: .75em; }
.iv a.iv-darkbtn { margin-top: 22px; background: var(--ink); color: #fff; }
.iv a.iv-darkbtn:hover { background: #343335; }
@media (max-width: 900px) {
  .iv .iv-wrap { width: 90%; }
  .iv-casegrid { gap: 26px; }
  .iv-situations { gap: 22px; }
}
@media (max-width: 720px) {
  /* La portada ya reserva el espacio de la cabecera fija en móvil. */
  .iv.site-main { padding-top: 0; }
  .iv-hero { display: flex; flex-direction: column-reverse; min-height: 0; padding: 0; background: #101011; }
  .iv .iv-opening { padding-block: 110px 20px; }
  .iv-optic, .iv-optic img { position: static; width: 100%; height: auto; }
  .iv-optic { display: block; position: relative; }
  .iv-optic img { display: block; aspect-ratio: 2.45; object-fit: cover; object-position: center; }
  .iv-optic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#101011, transparent 26%); }
  .iv-hero::before { display: none; }
  .iv .iv-opening h1 { font-size: clamp(3.1rem, 11vw, 4.8rem); }
  .iv .iv-deck { max-width: 38rem; margin-top: 16px; }
  .iv-actions { margin-top: 18px; }
  .iv-casegrid, .iv-delgrid, .iv-footgrid, .iv-situations { grid-template-columns: 1fr; }
  .iv-photo img { aspect-ratio: 2.4; object-position: 50% 46%; }
  .iv-situations h3 { max-width: none; }
  .iv-situations { margin-top: 26px; }
  .iv p.iv-label { margin-bottom: 18px; }
}
@media (max-width: 390px) {
  .iv p.iv-label { font-size: .66rem; }
  .iv-actions { gap: 6px 12px; }
  .iv a.iv-btn { padding: 13px 15px; gap: 10px; }
  .iv-secondary { font-size: .84rem; }
}
