/* =========================================================
   ZARIA · Página de mercado: Zanzíbar (/markets/zanzibar.html)
   v4 · 2 dic. 2026 · Sobre la plantilla de las páginas de
   servicio (service-page.css: pantalla de entrada y portada).
   Bloques: portada (foto real) · presentación · The Zaria
   Edition (periódico) · el año del hotel (agenda de temporada) ·
   tres capítulos fotográficos · plan de las lluvias (fases) ·
   preguntas · cierre partido.
   Solo tokens, tipografías y escala --u del sitio.
   ========================================================= */

body.page-market { background: var(--c-beige); color: var(--c-ink); }
:where(.page-market) :where(h2, h3, h4, p) { margin: 0; }

/* Aparición al hacer scroll (markets.js añade .is-in) */
.js .page-market [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .page-market [data-reveal].is-in { opacity: 1; transform: none; }
.section-label--light { color: #f1e6d8; }

/* =========================================================
   1 · PORTADA · color del degradado y zoom lento de la foto
   ========================================================= */
.page-market .sp-hero__face--front { background: var(--c-chocolate); --hero-solid: 64 28 10; }
.page-market .sp-hero__title-btn { color: #f1e6d8; }
.mk-hero-photo img {
  object-position: 62% 60%;
  transform-origin: 64% 62%;
  animation: mk-kenburns 28s ease-in-out infinite alternate;
}
@keyframes mk-kenburns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.13) translate3d(-1.5%, -1%, 0); }
}

/* =========================================================
   2 · PRESENTACIÓN (jerarquía de Revenue, en claro)
   ========================================================= */
.mk-present { padding: var(--sp-gap) 0 calc(120 * var(--u)); background: var(--c-blush); color: var(--c-ink); }
.mk-present__body {
  display: flex; flex-direction: column; align-items: center;
  margin: calc(56 * var(--u)) auto 0; padding: 0 calc(80 * var(--u));
  text-align: center;
}
.mk-present__title {
  max-width: calc(980 * var(--u));
  font-size: calc(64 * var(--u)); line-height: 1.12; font-weight: 600; letter-spacing: -.005em;
  text-wrap: balance; color: #3b1e0e;
}
.mk-present__title .accent { display: block; font-size: 1.04em; color: var(--c-rust); }
.mk-present__text { max-width: calc(680 * var(--u)); margin-top: calc(48 * var(--u)); }
.mk-present__text p { font-size: max(16px, calc(20 * var(--u))); line-height: 1.6; text-wrap: pretty; }
.mk-present__text p + p { margin-top: calc(26 * var(--u)); }

/* =========================================================
   3 · THE ZARIA EDITION · periódico sobre la mesa
   ========================================================= */
.mk-paper-wrap {
  position: relative; overflow: hidden;
  padding: calc(104 * var(--u)) 0 calc(140 * var(--u));
  color: #f1e6d8;
  background:
    radial-gradient(60% 55% at 50% 58%, #6b3a2299 0%, transparent 72%),
    var(--c-chocolate);
}
.mk-paper-wrap__lead {
  margin: calc(40 * var(--u)) calc(120 * var(--u)) calc(72 * var(--u)) var(--nav-clear);
  max-width: calc(760 * var(--u));
  font-size: calc(44 * var(--u)); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; text-wrap: balance;
}
.mk-paper-wrap__lead .accent { display: block; color: #e0ae8a; font-size: 1.05em; }

.mk-paper {
  --ink: #2a1a12; --rule: #2a1a12;
  position: relative;
  width: min(calc(1040 * var(--u)), calc(100% - 40px));
  margin: 0 auto;
  padding: calc(44 * var(--u)) calc(60 * var(--u)) calc(56 * var(--u));
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.6%, #00000012 50%, transparent 50.4%),           /* pliegue */
    radial-gradient(120% 90% at 50% 40%, #f6efe3 0%, #efe5d4 70%, #e6d8c2 100%);
  box-shadow: 0 2px 0 #ffffff60 inset, 0 40px 60px -20px #000000b3, 0 12px 24px #00000059;
  transform: rotate(var(--r, -.8deg)) translateY(var(--y, 0px));
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.mk-paper::before { /* grano y fibra del papel */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.js .mk-paper:not(.is-in) { --r: -4deg; --y: 120px; }
.mk-paper__mast {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: calc(20 * var(--u));
  padding-bottom: calc(14 * var(--u));
  border-bottom: 3px double var(--rule);
}
.mk-paper__name {
  font-family: var(--font-serif); font-weight: 700;
  font-size: calc(74 * var(--u)); line-height: 1; letter-spacing: -.02em; text-align: center; white-space: nowrap;
}
.mk-paper__ear {
  font-size: max(10px, calc(11 * var(--u))); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5;
  padding: calc(8 * var(--u)) calc(10 * var(--u)); border: 1px solid var(--rule); justify-self: start;
}
.mk-paper__ear--r { justify-self: end; text-align: right; }
.mk-paper__dateline {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: calc(14 * var(--u)); padding-top: calc(8 * var(--u));
  border-top: 1px solid var(--rule);
  font-size: max(10px, calc(11 * var(--u))); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.mk-paper__headline {
  margin: calc(30 * var(--u)) 0 calc(28 * var(--u));
  font-family: var(--font-serif); font-weight: 700;
  font-size: calc(72 * var(--u)); line-height: 1; letter-spacing: -.025em; text-align: center;
}
.mk-paper__headline em { font-style: italic; color: #8a3e1f; }
.mk-paper__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  border-top: 1px solid var(--rule);
}
.mk-story { padding: calc(22 * var(--u)) calc(22 * var(--u)) calc(24 * var(--u)); border-left: 1px solid #2a1a1259; }
.mk-story:first-child { border-left: 0; padding-left: 0; }
.mk-story--lead { grid-row: 1 / span 2; padding-right: calc(28 * var(--u)); }
.mk-paper__grid > .mk-story:nth-child(4) { border-top: 1px solid #2a1a1259; }
.mk-paper__grid > .mk-story:nth-child(5) { border-top: 1px solid #2a1a1259; }
.mk-paper__grid > .mk-story:nth-child(2), .mk-paper__grid > .mk-story:nth-child(3) { }
.mk-story--note { grid-column: 2 / span 2; background: #2a1a120d; }
.mk-paper__grid { grid-template-areas: "lead a b" "lead c note"; }
.mk-story--lead { grid-area: lead; }
.mk-paper__grid > .mk-story:nth-child(2) { grid-area: a; }
.mk-paper__grid > .mk-story:nth-child(3) { grid-area: b; }
.mk-paper__grid > .mk-story:nth-child(4) { grid-area: c; }
.mk-story--note { grid-area: note; grid-column: auto; }
.mk-story__kick { font-size: max(10px, calc(11 * var(--u))); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8a3e1f; }
.mk-story__fig {
  margin-top: calc(6 * var(--u));
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: calc(58 * var(--u)); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums;
}
.mk-story--lead .mk-story__fig { font-size: calc(104 * var(--u)); margin-top: calc(8 * var(--u)); }
.mk-story__head { margin-top: calc(10 * var(--u)); font-family: var(--font-serif); font-weight: 700; font-size: calc(22 * var(--u)); line-height: 1.15; }
.mk-story--lead .mk-story__head { font-size: calc(30 * var(--u)); }
.mk-story__dek {
  margin-top: calc(10 * var(--u));
  font-family: var(--font-serif); font-size: max(13.5px, calc(15 * var(--u))); line-height: 1.55;
  text-align: justify; hyphens: auto;
}
.mk-story--lead .mk-story__dek { font-size: max(14.5px, calc(17 * var(--u))); }
.mk-story--lead .mk-story__dek::first-letter {
  float: left; font-weight: 700; font-size: 3.1em; line-height: .82; margin: .06em .08em 0 0; color: #8a3e1f;
}
.mk-story__quote { margin-top: calc(8 * var(--u)); font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: calc(26 * var(--u)); line-height: 1.2; }
.mk-paper .text-link { color: inherit; }

/* =========================================================
   4 · EL AÑO DEL HOTEL · agenda de temporada sobre papel
   ========================================================= */
.mk-year { padding: calc(110 * var(--u)) 0 calc(120 * var(--u)); background: var(--c-beige); }
.mk-year__head { margin: calc(40 * var(--u)) calc(120 * var(--u)) calc(56 * var(--u)) var(--nav-clear); max-width: calc(900 * var(--u)); }
.mk-year__title { font-size: calc(54 * var(--u)); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.mk-year__title .accent { display: block; font-size: 1.07em; margin-top: .04em; }
.mk-year__head p { margin-top: calc(26 * var(--u)); max-width: calc(640 * var(--u)); font-size: calc(17 * var(--u)); line-height: 1.65; }

.mk-cal {
  position: relative;
  margin: 0 calc(96 * var(--u)) 0 var(--nav-clear);
  padding: calc(48 * var(--u)) calc(52 * var(--u)) calc(44 * var(--u));
  background: radial-gradient(130% 100% at 30% 20%, #fbf6ee 0%, var(--c-ivory) 60%, #eee2d2 100%);
  box-shadow: 0 30px 50px -28px #3a1e1280, 0 2px 0 #fff inset;
  border-radius: 3px;
}
.mk-cal::before { /* título caligráfico, como «Zaria’s Revenue Formula.» */
  content: "The Zanzibar year";
  display: block; margin-bottom: calc(26 * var(--u));
  font-family: var(--font-script); font-size: calc(46 * var(--u)); line-height: 1; color: #8a3e1f;
}
.mk-cal__seasons { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: calc(10 * var(--u)); margin-bottom: calc(18 * var(--u)); }
.mk-cal__seasons span {
  grid-column: var(--from) / var(--to);
  padding-top: calc(8 * var(--u)); border-top: 1px solid #8a3e1f;
  font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a3e1f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-cal__seasons span.is-rain { border-top-style: dashed; color: var(--c-ink); border-color: var(--c-ink); }
.mk-cal__bars {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: calc(10 * var(--u));
  height: calc(250 * var(--u)); align-items: end;
  border-bottom: 1px solid #3a1e1266;
}
.mk-bar {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
}
.mk-bar__fill {
  display: block; width: 46%;
  height: calc(var(--h) * 84%);
  background: linear-gradient(180deg, #a66844, #5b2d1c);
  border-radius: 999px 999px 0 0;
  transform-origin: bottom;
  transition: transform 1.1s cubic-bezier(.2,.75,.2,1) calc(var(--i, 0) * 45ms), width .35s ease, background .3s ease;
}
.js .mk-cal:not(.is-in) .mk-bar__fill { transform: scaleY(0); }
.mk-bar.is-rain .mk-bar__fill { background: repeating-linear-gradient(180deg, #5b2d1c 0 6px, #8a5a3a 6px 8px); }
.mk-bar:hover .mk-bar__fill { width: 60%; }
.mk-bar[aria-selected="true"] .mk-bar__fill { width: 70%; background: linear-gradient(180deg, #c9976f, #854126); }
.mk-bar.is-rain[aria-selected="true"] .mk-bar__fill { background: repeating-linear-gradient(180deg, #854126 0 6px, #c9976f 6px 8px); }
.mk-bar__m {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0;
  font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.mk-bar[aria-selected="true"] .mk-bar__m { color: #8a3e1f; }
.mk-bar[aria-selected="true"] .mk-bar__m::after { content: ""; display: block; width: 18px; height: 2px; margin: 6px auto 0; background: #8a3e1f; }
.mk-bar__dot {
  position: absolute; left: 50%; bottom: calc(var(--h) * 84% + 10px); transform: translateX(-50%);
  font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: calc(15 * var(--u)); color: #3b1e0e; white-space: nowrap;
}
.mk-bar:focus-visible { outline: 2px solid #8a3e1f; outline-offset: 4px; border-radius: 4px; }
.mk-cal__legend { margin-top: calc(52 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: 1.55; color: #3a1e12b8; }
.mk-cal__legend > span { display: block; }
.mk-cal__key { display: inline-block; width: 8px; height: 14px; margin-right: 8px; vertical-align: middle; border-radius: 4px 4px 0 0; background: #8a5a3a; }
.mk-cal__key--dot { width: 14px; height: auto; background: none; border-radius: 0; font-family: var(--font-serif); font-style: italic; }
.mk-cal__key--dot::before { content: "%"; }

.mk-months { list-style: none; margin: calc(32 * var(--u)) 0 0; padding: 0; display: grid; gap: 16px; }
.js .mk-months { display: block; }
.js .mk-month { display: none; }
.js .mk-month.is-active { display: grid; animation: mk-page .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mk-page { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.mk-month {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px calc(48 * var(--u));
  padding-top: calc(28 * var(--u)); border-top: 1px solid #3a1e1240;
}
.mk-month__k { grid-column: 1 / -1; font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8a3e1f; }
.mk-month h4 { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: calc(34 * var(--u)); line-height: 1.12; color: #3b1e0e; }
.mk-month p:last-child { font-size: calc(17 * var(--u)); line-height: 1.65; }

/* =========================================================
   5 · THE COMMERCIAL CHALLENGE · capítulos que se apilan
   ========================================================= */
.mk-chapters { position: relative; background: var(--c-chocolate); }
.mk-chapters__intro { padding: calc(110 * var(--u)) 0 calc(80 * var(--u)); color: #f1e6d8; }
.mk-chapters__title {
  margin: calc(40 * var(--u)) calc(120 * var(--u)) 0 var(--nav-clear); max-width: calc(820 * var(--u));
  font-size: calc(58 * var(--u)); line-height: 1.08; font-weight: 600; letter-spacing: -.01em;
}
.mk-chapters__title .accent { display: block; color: #e0ae8a; font-size: 1.06em; }
.mk-chapter {
  position: sticky; top: 0;
  height: 100vh; min-height: 560px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  color: #f1e6d8;
  box-shadow: 0 -30px 60px #00000066;
}
.mk-chapter__media { position: absolute; inset: 0; }
.mk-chapter__media > img { transform: scale(var(--k, 1.08)); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.mk-chapter.is-in .mk-chapter__media > img { --k: 1; }
.mk-chapter::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #2a120acc 0%, #2a120a8c 38%, transparent 70%), linear-gradient(0deg, #2a120ab3 0%, transparent 45%);
}
.mk-chapter__copy {
  position: relative; z-index: 2;
  max-width: calc(720 * var(--u));
  margin: 0 0 calc(96 * var(--u)) var(--nav-clear);
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s ease .2s, transform 1s cubic-bezier(.2,.7,.2,1) .2s;
}
.mk-chapter.is-in .mk-chapter__copy, html:not(.js) .mk-chapter__copy { opacity: 1; transform: none; }
.mk-chapter__n { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #e0ae8a; }
.mk-chapter__line {
  margin-top: calc(18 * var(--u));
  font-size: calc(54 * var(--u)); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; text-wrap: balance;
}
.mk-chapter__line em { font-family: var(--font-serif); font-style: italic; font-weight: var(--accent-weight); color: #e0ae8a; font-size: 1.04em; }
.mk-chapter__text { margin-top: calc(24 * var(--u)); max-width: calc(560 * var(--u)); font-size: max(15px, calc(18 * var(--u))); line-height: 1.65; color: #f1e6d8e6; }

/* =========================================================
   6 · PLAN DE LAS LLUVIAS · fases (método de la página Zaria)
   ========================================================= */
.mk-plan { padding: calc(110 * var(--u)) 0 calc(110 * var(--u)); background: var(--c-sand); }
.mk-plan__head { margin: calc(40 * var(--u)) calc(120 * var(--u)) calc(64 * var(--u)) var(--nav-clear); max-width: calc(860 * var(--u)); }
.mk-plan__title { font-size: calc(54 * var(--u)); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.mk-plan__title .accent { font-size: 1.07em; }
.mk-plan__head p { margin-top: calc(22 * var(--u)); max-width: calc(600 * var(--u)); font-size: calc(17 * var(--u)); line-height: 1.65; }
.mk-phases {
  position: relative; list-style: none; margin: 0; padding: 0 calc(96 * var(--u)) 0 var(--nav-clear);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(40 * var(--u));
}
.mk-phases::before, .mk-phases::after {
  content: ""; position: absolute; top: calc(27 * var(--u)); left: var(--nav-clear); right: calc(96 * var(--u)); height: 1px; background: #3a1e1240;
}
.mk-phases::after { background: var(--c-rust); height: 2px; transform-origin: left; transform: scaleX(var(--p, 0)); }
.mk-phase { position: relative; z-index: 1; }
.mk-phase__dot {
  display: grid; place-items: center;
  width: calc(54 * var(--u)); height: calc(54 * var(--u)); min-width: 40px; min-height: 40px; border-radius: 50%;
  font-size: max(11px, calc(12 * var(--u))); font-weight: 600;
  background: var(--c-sand); border: 1px solid var(--c-ink); color: var(--c-ink);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.mk-phase.is-in:nth-child(1) .mk-phase__dot { background: var(--c-rust); border-color: var(--c-rust); color: #fff; }
.mk-phase.is-in:nth-child(2) .mk-phase__dot { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.mk-phase__when { margin-top: calc(26 * var(--u)); font-size: max(11px, calc(12 * var(--u))); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-rust); }
.mk-phase h4 { margin-top: calc(10 * var(--u)); font-size: calc(24 * var(--u)); line-height: 1.2; font-weight: 600; }
.mk-phase p { margin-top: calc(12 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.6; }
.mk-phase .mk-phase__out { font-weight: 600; color: var(--c-rust); }
.mk-plan__services { margin: calc(72 * var(--u)) calc(96 * var(--u)) 0 var(--nav-clear); max-width: calc(760 * var(--u)); font-family: var(--font-serif); font-style: italic; font-size: calc(21 * var(--u)); line-height: 1.5; }
.mk-plan__services .text-link { font-weight: 600; }

/* =========================================================
   7 · PREGUNTAS (sin cambios de estructura)
   ========================================================= */
.mk-faq { padding: calc(110 * var(--u)) 0; background: var(--c-beige); }
.mk-faq__wrap { margin: calc(40 * var(--u)) calc(96 * var(--u)) 0 var(--nav-clear); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: calc(64 * var(--u)); }
.mk-faq__title { font-size: calc(54 * var(--u)); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.mk-faq__title .accent { display: block; font-size: 1.07em; }
.mk-q { border-top: 1px solid #3a1e1240; }
.mk-q:last-child { border-bottom: 1px solid #3a1e1240; }
.mk-q summary { position: relative; list-style: none; cursor: pointer; padding: calc(22 * var(--u)) calc(44 * var(--u)) calc(22 * var(--u)) 0; font-size: calc(19 * var(--u)); line-height: 1.35; font-weight: 600; }
.mk-q summary::-webkit-details-marker { display: none; }
.mk-q summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-serif); font-size: calc(28 * var(--u)); color: var(--c-rust); transition: transform .3s ease; }
.mk-q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.mk-q summary:focus-visible { outline: 2px solid var(--c-rust); outline-offset: 2px; }
.mk-q p { padding: 0 calc(44 * var(--u)) calc(24 * var(--u)) 0; font-size: calc(16.5 * var(--u)); line-height: 1.65; }

/* =========================================================
   8 · CIERRE PARTIDO (como el de Revenue)
   ========================================================= */
.mk-close { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-blush); }
.mk-close__media { position: relative; min-height: calc(620 * var(--u)); }
.mk-close__media > img { position: absolute; inset: 0; object-position: 50% 40%; }
.mk-close__copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: calc(84 * var(--u)) calc(110 * var(--u)) calc(92 * var(--u)) calc(100 * var(--u)); color: #3b1e0e;
}
.mk-close__kicker { font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.mk-close__title { margin-top: calc(22 * var(--u)); font-family: var(--font-serif); font-weight: 400; font-size: calc(66 * var(--u)); line-height: 1; letter-spacing: -.02em; color: #4a2412; }
.mk-close__title .accent { display: block; font-style: italic; color: #8a3e1f; }
.mk-close__text { max-width: calc(400 * var(--u)); margin-top: calc(26 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.6; }
.mk-close .btn { height: calc(46 * var(--u)); margin-top: calc(32 * var(--u)); padding: 0 calc(22 * var(--u)); font-size: calc(14 * var(--u)); }

/* Imágenes pendientes: mientras no exista el archivo, un fondo cálido */
.mk-chapter__media, .mk-close__media { background: linear-gradient(135deg, #5b2d1c, #2c1812); }

/* =========================================================
   MÓVIL (< 1024 px)
   ========================================================= */
@media (max-width: 1023px) {
  .mk-present { padding: 56px 0 64px; }
  .mk-present__body { margin-top: 28px; padding: 0 20px; }
  .mk-present__title { font-size: 32px; }
  .mk-present__text { margin-top: 24px; }
  .mk-present__text p { font-size: 16px; }
  .mk-present__text p + p { margin-top: 16px; }

  .mk-paper-wrap { padding: 64px 0 72px; }
  .mk-paper-wrap__lead { margin: 22px 20px 36px; font-size: 28px; }
  .mk-paper { width: calc(100% - 28px); padding: 22px 18px 26px; }
  .js .mk-paper:not(.is-in) { --r: -3deg; --y: 60px; }
  .mk-paper__mast { grid-template-columns: 1fr; text-align: center; }
  .mk-paper__ear { display: none; }
  .mk-paper__name { font-size: 34px; }
  .mk-paper__dateline { font-size: 9px; letter-spacing: .1em; flex-wrap: wrap; justify-content: center; }
  .mk-paper__headline { font-size: 34px; margin: 18px 0 16px; }
  .mk-paper__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "lead lead" "a b" "c c" "note note"; }
  .mk-story { padding: 16px 12px; border-left: 0; border-top: 1px solid #2a1a1259; }
  .mk-story--lead { padding: 16px 0; }
  .mk-paper__grid > .mk-story:nth-child(3) { border-left: 1px solid #2a1a1259; }
  .mk-story__fig { font-size: 36px; }
  .mk-story--lead .mk-story__fig { font-size: 58px; }
  .mk-story__head { font-size: 18px; }
  .mk-story--lead .mk-story__head { font-size: 22px; }
  .mk-story__dek, .mk-story--lead .mk-story__dek { font-size: 14.5px; text-align: left; }
  .mk-story__kick { font-size: 10px; }
  .mk-story__quote { font-size: 21px; }

  .mk-year { padding: 64px 0; }
  .mk-year__head { margin: 22px 20px 28px; max-width: none; }
  .mk-year__title { font-size: 30px; }
  .mk-year__head p { font-size: 16px; max-width: none; }
  .mk-cal { margin: 0 12px; padding: 24px 14px 22px; }
  .mk-cal::before { font-size: 32px; margin-bottom: 14px; }
  .mk-cal__seasons { display: none; }
  .mk-cal__bars { height: 170px; gap: 3px; }
  .mk-bar__fill { width: 62%; }
  .mk-bar[aria-selected="true"] .mk-bar__fill { width: 86%; }
  .mk-bar__m { font-size: 9.5px; letter-spacing: 0; top: calc(100% + 8px); }
  .mk-bar__dot { font-size: 10px; bottom: calc(var(--h) * 84% + 6px); }
  .mk-cal__legend { margin-top: 40px; font-size: 11.5px; }
  .mk-month { grid-template-columns: 1fr; padding-top: 18px; }
  .mk-month__k { font-size: 10.5px; }
  .mk-month h4 { font-size: 24px; }
  .mk-month p:last-child { font-size: 16px; }

  .mk-chapters__intro { padding: 64px 0 40px; }
  .mk-chapters__title { margin: 22px 20px 0; font-size: 30px; }
  .mk-chapter { height: 100svh; min-height: 520px; }
  .mk-chapter::after { background: linear-gradient(0deg, #2a120af2 0%, #2a120ab3 45%, transparent 80%); }
  .mk-chapter__copy { margin: 0 20px 48px; max-width: none; }
  .mk-chapter__n { font-size: 11px; }
  .mk-chapter__line { font-size: 30px; margin-top: 12px; }
  .mk-chapter__text { font-size: 15.5px; margin-top: 14px; }

  .mk-plan { padding: 64px 0; }
  .mk-plan__head { margin: 22px 20px 32px; max-width: none; }
  .mk-plan__title { font-size: 30px; }
  .mk-plan__head p { font-size: 16px; }
  .mk-phases { grid-template-columns: 1fr; gap: 30px; padding: 0 20px 0 20px; }
  .mk-phases::before, .mk-phases::after { top: 20px; bottom: 20px; left: 40px; right: auto; width: 1px; height: auto; }
  .mk-phases::after { width: 2px; transform-origin: top; transform: scaleY(var(--p, 0)); }
  .mk-phase { padding-left: 60px; }
  .mk-phase__dot { position: absolute; left: 0; top: 0; }
  .mk-phase__when { margin-top: 0; font-size: 11px; }
  .mk-phase h4 { font-size: 20px; }
  .mk-phase p { font-size: 15.5px; }
  .mk-plan__services { margin: 40px 20px 0; font-size: 18px; }

  .mk-faq { padding: 64px 0; }
  .mk-faq__wrap { grid-template-columns: 1fr; margin: 22px 20px 0; gap: 24px; }
  .mk-faq__title { font-size: 30px; }
  .mk-q summary { font-size: 17px; padding: 18px 40px 18px 0; min-height: 44px; }
  .mk-q summary::after { font-size: 26px; }
  .mk-q p { font-size: 16px; padding: 0 0 20px; }

  .mk-close { grid-template-columns: 1fr; }
  .mk-close__media { min-height: 360px; }
  .mk-close__copy { padding: 48px 20px 60px; }
  .mk-close__kicker { font-size: 11px; }
  .mk-close__title { margin-top: 14px; font-size: 36px; line-height: 1.05; }
  .mk-close__text { margin-top: 16px; font-size: 15px; max-width: none; }
  .mk-close .btn { height: 46px; margin-top: 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-market *, .page-market *::before, .page-market *::after { animation: none !important; transition: none !important; }
  .js .page-market [data-reveal] { opacity: 1; transform: none; }
  .js .mk-paper:not(.is-in) { --r: -.8deg; --y: 0px; }
}
/* La foto de portada va dentro de <picture>: mismo encuadre y tono que .vintage > img */
.mk-hero-photo picture { position: absolute; inset: 0; display: block; }
.mk-hero-photo picture img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.38) saturate(.68) contrast(.92) brightness(.6);
}
.mk-chapter__media > img, .mk-close__media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Fotos de los capítulos y del cierre: <picture> dentro de .vintage,
   tono algo más claro que el de portada (ya vienen cálidas) */
.mk-chapter__media picture, .mk-close__media picture { position: absolute; inset: 0; display: block; }
.mk-chapter__media picture img, .mk-close__media picture img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.18) saturate(.86) contrast(.95) brightness(.84);
}
.mk-chapter__media picture img { transform: scale(var(--k, 1.08)); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.mk-chapter.is-in .mk-chapter__media picture img { --k: 1; }
.mk-chapter:nth-of-type(1) .mk-chapter__media picture img { object-position: 62% 60%; }
.mk-chapter:nth-of-type(2) .mk-chapter__media picture img { object-position: 60% 55%; }
.mk-chapter:nth-of-type(3) .mk-chapter__media picture img { object-position: 70% 50%; }
.mk-close__media picture img { object-position: 55% 55%; }
@media (max-width: 1023px) {
  .mk-chapter:nth-of-type(1) .mk-chapter__media picture img { object-position: 64% 50%; }
  .mk-chapter:nth-of-type(2) .mk-chapter__media picture img { object-position: 30% 50%; }
  .mk-chapter:nth-of-type(3) .mk-chapter__media picture img { object-position: 74% 50%; }
}

/* =========================================================
   AJUSTES 2 dic. (revisión en móvil)
   ========================================================= */
/* Calendario: versión por filas solo en móvil */
.mk-rows { display: none; }
.mk-clips__dots { display: none; }

/* Capítulos: fotos más oscuras y con más grano para que el texto destaque */
.mk-chapter__media picture img { filter: sepia(.34) saturate(.72) contrast(.94) brightness(.56); }
.mk-chapter__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mk-chapter::after { background: linear-gradient(90deg, #1e0c06e6 0%, #1e0c06a6 42%, #1e0c0633 75%), linear-gradient(0deg, #1e0c06cc 0%, transparent 50%); }

@media (max-width: 1023px) {
  /* Fotos de capítulo en móvil: oscurecido de abajo arriba más intenso */
  .mk-chapter::after { background: linear-gradient(0deg, #1e0c06 0%, #1e0c06d9 40%, #1e0c0666 72%, #1e0c0633 100%); }

  /* ---------- Periódico en móvil: cabecera + recortes deslizables ---------- */
  .mk-paper { width: auto; margin: 0 16px; padding: 22px 0 18px; transform: none; background: transparent; box-shadow: none; }
  .mk-paper::before { display: none; }
  .js .mk-paper:not(.is-in) { --r: 0deg; --y: 30px; }
  .mk-paper__mast, .mk-paper__headline { margin-left: 0; margin-right: 0; }
  .mk-paper__mast {
    padding: 18px 16px 12px; border-bottom: 3px double #2a1a12; color: #2a1a12;
    background: radial-gradient(120% 90% at 50% 30%, #f6efe3, #ebdfcc);
    border-radius: 2px 2px 0 0;
  }
  .mk-paper__name { font-size: 30px; }
  .mk-paper__dateline { display: none; }
  .mk-paper__headline {
    margin: 0; padding: 14px 16px 18px; font-size: 28px; line-height: 1.05; color: #2a1a12;
    background: radial-gradient(120% 90% at 50% 70%, #f6efe3, #ebdfcc);
    border-radius: 0 0 2px 2px; box-shadow: 0 20px 30px -18px #000000a6;
  }
  .mk-paper__grid {
    display: flex; gap: 12px; margin: 18px -16px 0; padding: 4px 16px 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    border-top: 0; grid-template-areas: none;
  }
  .mk-paper__grid::-webkit-scrollbar { display: none; }
  .mk-paper__grid > .mk-story, .mk-paper__grid > .mk-story:nth-child(n) {
    flex: 0 0 78%; min-width: 0; scroll-snap-align: start;
    padding: 18px 18px 20px; border: 0; color: #2a1a12;
    background: radial-gradient(130% 100% at 30% 20%, #f6efe3, #e9dcc7);
    border-radius: 2px; box-shadow: 0 14px 24px -12px #000000a6;
    transform: rotate(-.6deg);
  }
  .mk-paper__grid > .mk-story:nth-child(even) { transform: rotate(.6deg); }
  .mk-story--lead { padding: 18px; }
  .mk-story__more { display: none; }
  .mk-story--lead .mk-story__fig { font-size: 46px; }
  .mk-story__fig { font-size: 40px; }
  .mk-story__head, .mk-story--lead .mk-story__head { font-size: 19px; }
  .mk-story__dek, .mk-story--lead .mk-story__dek { font-size: 14.5px; line-height: 1.5; text-align: left; hyphens: manual; }
  .mk-story--lead .mk-story__dek::first-letter { float: none; font-size: inherit; margin: 0; color: inherit; font-weight: inherit; }
  .mk-story--note { background: radial-gradient(130% 100% at 30% 20%, #ead9c1, #dcc4a5) !important; }
  .mk-story__quote { font-size: 22px; }
  .mk-clips__dots { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
  .mk-clips__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .mk-clips__dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); background: #f1e6d84d; transition: background-color .3s ease, width .3s ease; }
  .mk-clips__dots button.is-on::before { width: 20px; border-radius: 4px; background: #e0ae8a; }

  /* ---------- Calendario en móvil: filas de izquierda a derecha ---------- */
  .mk-cal__seasons, .mk-cal__bars { display: none; }
  .mk-rows { display: block; list-style: none; margin: 0; padding: 0; }
  .mk-rows li + li { margin-top: 6px; }
  .mk-row {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k v" "s s" "bar bar";
    align-items: baseline; gap: 2px 10px; width: 100%; padding: 12px 12px 14px;
    border: 0; border-radius: 3px; background: transparent; color: #3b1e0e; font: inherit; text-align: left; cursor: pointer;
    transition: background-color .3s ease;
  }
  .mk-row.is-active { background: #8a3e1f14; }
  .mk-row__k { grid-area: k; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .mk-row.is-active .mk-row__k { color: #8a3e1f; }
  .mk-row__s { grid-area: s; font-size: 13px; color: #3a1e12b3; }
  .mk-row__v { grid-area: v; font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 20px; }
  .mk-row__bar { grid-area: bar; display: block; height: 8px; margin-top: 8px; border-radius: 4px; background: #3a1e1214; overflow: hidden; }
  .mk-row__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 4px; background: linear-gradient(90deg, #5b2d1c, #a66844); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.75,.2,1); }
  .mk-row.is-rain .mk-row__bar i { background: repeating-linear-gradient(90deg, #5b2d1c 0 6px, #8a5a3a 6px 8px); }
  .mk-row.is-active .mk-row__bar i { background: linear-gradient(90deg, #854126, #c9976f); }
  .mk-row.is-rain.is-active .mk-row__bar i { background: repeating-linear-gradient(90deg, #854126 0 6px, #c9976f 6px 8px); }
  .js .mk-cal:not(.is-in) .mk-row__bar i { transform: scaleX(0); }
  .mk-row:focus-visible { outline: 2px solid #8a3e1f; outline-offset: 2px; }
  .mk-cal__legend { margin-top: 18px; }
  .mk-cal__legend > span:first-child { display: none; }

  /* ---------- Línea de tiempo centrada con los círculos ---------- */
  .mk-phases { padding: 0 20px; }
  .mk-phase { padding-left: 62px; }
  .mk-phase__dot { width: 44px; height: 44px; min-width: 44px; min-height: 44px; left: 0; top: -2px; font-size: 12px; }
  .mk-phases::before, .mk-phases::after { left: 42px; width: 2px; margin-left: -1px; top: 22px; bottom: 22px; }
  .mk-phases::before { background: #3a1e1233; }
}
