/* ==========================================================================
   Láminas 1080 × 1350 (4:5). Todo se mide en px nativos; la vista previa escala.
   --ts  = tamaño de titular elegido por el usuario
   --fit = reducción automática cuando el texto no cabe
   ========================================================================== */

.slide {
  --ts: 1; --fit: 1;
  --ix: 50%; --iy: 30%; --iz: 1; --dx: 0%; --dy: 0%;
  width: 1080px; height: 1350px;
  position: relative; overflow: hidden;
  background: var(--s-bg); color: var(--s-ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
.slide * { box-sizing: border-box; }
.slide .z { position: absolute; }

/* ---------------- Marcas ---------------- */

/* EVA — premium, oscuro, editorial; lima eléctrica muestreada del logo (#ECFE6E) */
.b-eva {
  --f-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --f-kicker: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --t-case: uppercase; --t-lh: .9; --t-ls: .003em; --t-w: 400; --t-style: normal;
  --lime: #ECFE6E;
}
.b-eva.t-dark {
  --s-bg: #2B2B2D; --s-deep: #1E1E20; --s-ink: #EFEBE0; --s-muted: #8F8D86;
  --s-line: rgba(239,235,224,.22); --s-mark: #ECFE6E;
  --s-acc-ink: #ECFE6E; --s-acc-bg: transparent; --s-num: #ECFE6E;
  --s-panel: #EFEBE0; --s-panel-ink: #262628; --s-panel-acc: #262628; --s-panel-acc-bg: #ECFE6E;
  --s-chip: #ECFE6E; --s-chip-ink: #1E1E20; --s-edge: rgba(239,235,224,.55);
}
.b-eva.t-light {
  --s-bg: #ECE8DD; --s-deep: #DAD4C6; --s-ink: #262628; --s-muted: #6F6D66;
  --s-line: rgba(38,38,40,.22); --s-mark: #262628;
  --s-acc-ink: #1E1E20; --s-acc-bg: #ECFE6E; --s-num: #262628;
  --s-panel: #2B2B2D; --s-panel-ink: #EFEBE0; --s-panel-acc: #ECFE6E; --s-panel-acc-bg: transparent;
  --s-chip: #262628; --s-chip-ink: #ECFE6E; --s-edge: rgba(255,255,255,.8);
}

/* Janica Merchant — lujo minimalista, revista; amarillo Nika solo como acento pequeño */
.b-janica {
  --f-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-body: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
  --f-kicker: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
  --t-case: none; --t-lh: 1.02; --t-ls: -.015em; --t-w: 500; --t-style: normal;
  --lime: #ECFE6E;
}
.b-janica.t-light {
  --s-bg: #F3EEE6; --s-deep: #E6DDCF; --s-ink: #2E2B28; --s-muted: #8B8177;
  --s-line: rgba(46,43,40,.3); --s-mark: #2E2B28;
  --s-acc-ink: #2E2B28; --s-acc-bg: transparent; --s-num: #2E2B28;
  --s-panel: #FFFFFF; --s-panel-ink: #2E2B28; --s-panel-acc: #2E2B28; --s-panel-acc-bg: transparent;
  --s-chip: #2E2B28; --s-chip-ink: #F3EEE6; --s-edge: transparent;
}
.b-janica.t-dark {
  --s-bg: #2E2B28; --s-deep: #3A3632; --s-ink: #F3EEE6; --s-muted: #B3A89C;
  --s-line: rgba(243,238,230,.3); --s-mark: #F3EEE6;
  --s-acc-ink: #F3EEE6; --s-acc-bg: transparent; --s-num: #F3EEE6;
  --s-panel: #F3EEE6; --s-panel-ink: #2E2B28; --s-panel-acc: #2E2B28; --s-panel-acc-bg: transparent;
  --s-chip: #F3EEE6; --s-chip-ink: #2E2B28; --s-edge: transparent;
}

/* City Kia — blanco y negro, plata metálica; rojo solo para precios, CTA y urgencia.
   El rojo es provisional: el perfil no define HEX. Cambiar aquí cuando se apruebe. */
.b-citykia {
  --f-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-kicker: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --t-case: uppercase; --t-lh: .9; --t-ls: -.01em; --t-w: 900; --t-style: normal;
  --red: #D7141A; --silver: #B9BDC3;
}
.b-citykia.t-light {
  --s-bg: #FFFFFF; --s-deep: #EDEEF0; --s-ink: #0B0B0C; --s-muted: #6B6F75;
  --s-line: rgba(11,11,12,.16); --s-mark: #D7141A;
  --s-acc-ink: #D7141A; --s-acc-bg: transparent; --s-num: #D7141A;
  --s-panel: #0B0B0C; --s-panel-ink: #FFFFFF; --s-panel-acc: #E5262C; --s-panel-acc-bg: transparent;
  --s-chip: #D7141A; --s-chip-ink: #FFFFFF; --s-edge: transparent;
}
.b-citykia.t-dark {
  --s-bg: #0B0B0C; --s-deep: #1A1B1D; --s-ink: #FFFFFF; --s-muted: #A2A6AC;
  --s-line: rgba(255,255,255,.18); --s-mark: #E5262C;
  --s-acc-ink: #E5262C; --s-acc-bg: transparent; --s-num: #E5262C;
  --s-panel: #FFFFFF; --s-panel-ink: #0B0B0C; --s-panel-acc: #D7141A; --s-panel-acc-bg: transparent;
  --s-chip: #E5262C; --s-chip-ink: #FFFFFF; --s-edge: transparent;
}

/* ---------------- Tipografía común ---------------- */

.s-kicker {
  font-family: var(--f-kicker); font-weight: 600; font-size: 26px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .14em; color: var(--s-muted);
  display: flex; align-items: center; gap: 16px; margin: 0 0 26px;
}
.s-kicker::before { content: ''; width: 18px; height: 18px; background: var(--s-mark); flex: none; }
.b-janica .s-kicker { font-weight: 500; letter-spacing: .32em; font-size: 22px; }
.b-janica .s-kicker::before { width: 56px; height: 1.5px; }
.b-citykia .s-kicker { font-weight: 800; letter-spacing: .08em; color: var(--s-ink); }
.b-citykia .s-kicker::before { width: 44px; height: 8px; }

.s-title {
  font-family: var(--f-display); font-weight: var(--t-w); font-style: var(--t-style);
  text-transform: var(--t-case); line-height: var(--t-lh); letter-spacing: var(--t-ls);
  margin: 0; text-wrap: balance; color: var(--s-ink);
}
.b-citykia .s-title { font-stretch: 72%; }
.s-body {
  font-size: calc(40px * var(--fit)); line-height: 1.28; margin: 28px 0 0; color: var(--s-ink);
  max-width: 820px; font-weight: 500; opacity: .92; text-wrap: pretty;
}
.b-janica .s-body { font-weight: 400; font-size: calc(36px * var(--fit)); line-height: 1.4; }
.b-citykia .s-body { font-weight: 500; font-stretch: 90%; }

.acc {
  font-style: normal; color: var(--s-acc-ink); background: var(--s-acc-bg);
  padding: 0 .05em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.b-janica .acc {
  font-style: italic;
  background: linear-gradient(transparent 80%, var(--lime) 80%, var(--lime) 93%, transparent 93%);
}
.s-panel .acc { color: var(--s-panel-acc); background: var(--s-panel-acc-bg); }
.b-janica .s-panel .acc { background: linear-gradient(transparent 80%, var(--lime) 80%, var(--lime) 93%, transparent 93%); }

/* ---------------- Capas de fondo y marca ---------------- */

.s-bg { position: absolute; inset: 0; z-index: 0; }
.b-eva.t-dark .s-bg { background: var(--brand-background, none) center / cover; opacity: .9; }
.b-eva.t-light .s-bg { background: var(--brand-background, none) center / cover; opacity: .85; }
.s-grain {
  position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMDAnIGhlaWdodD0nMzAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nLjg1JyBudW1PY3RhdmVzPSczJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDEgIDAgMCAwIDAgMSAgMCAwIDAgMCAxICAwIDAgMCAxLjQgLS4yJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzMwMCcgaGVpZ2h0PSczMDAnIGZpbHRlcj0ndXJsKCNuKScvPjwvc3ZnPg==");
}
.b-janica .s-grain, .b-citykia .s-grain { display: none; }

/* HUD editorial de EVA: reglas finas, bloques y flechas */
.s-hud { position: absolute; left: 80px; right: 190px; top: 78px; height: 20px; z-index: 6; display: flex; align-items: center; gap: 12px; }
.s-hud i { display: block; height: 14px; }
.s-hud .hb1 { width: 64px; background: var(--s-ink); opacity: .9; }
.s-hud .hb2 { width: 40px; background: var(--s-mark); }
.s-hud .ln { flex: 1; height: 1.5px; background: var(--s-line); }
.s-hud .ar { font: 400 30px/1 var(--f-body); color: var(--s-mark); margin-left: 8px; }
.s-ticks { position: absolute; right: 64px; top: 50%; z-index: 6; display: flex; flex-direction: column; gap: 10px; }
.s-ticks i { width: 14px; height: 30px; background: var(--s-line); display: block; }
.s-ticks i:nth-child(3) { background: var(--s-mark); height: 14px; }
.b-janica .s-hud, .b-janica .s-ticks, .b-citykia .s-hud, .b-citykia .s-ticks { display: none; }

.s-frame { display: none; }
.b-janica .s-frame { display: block; position: absolute; inset: 44px; border: 1.5px solid var(--s-line); z-index: 6; pointer-events: none; }

.s-count {
  position: absolute; right: 80px; top: 66px; z-index: 8;
  font: 600 38px/1 var(--f-body); color: var(--s-muted); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.b-janica .s-count { font: 500 italic 26px/1 var(--f-display); letter-spacing: .08em; top: 84px; right: 90px; }
.b-citykia .s-count { font-weight: 800; font-stretch: 80%; color: var(--s-ink); border-bottom: 6px solid var(--s-mark); padding-bottom: 6px; }

.s-sign { position: absolute; left: 80px; bottom: 76px; z-index: 9; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.s-sign .logo { display: block; height: 118px; width: auto; }
.b-citykia .s-sign .logo { height: 128px; }
.s-sign .by { display: flex; align-items: center; gap: 16px; font: 500 30px/1 var(--f-body); color: var(--s-ink); opacity: .9; }
.s-sign .by img { height: 58px; width: auto; }
.s-sign .wordmark { font: 500 italic 40px/1 'Bodoni Moda', Georgia, serif; color: var(--s-ink); letter-spacing: .01em; }
.b-janica .s-sign { left: 90px; bottom: 92px; }
.s-sign.big .logo { height: 190px; }

/* Papel rasgado (EVA). El contorno se genera en app.js. */
.s-torn, .s-torn-edge { position: absolute; left: -10px; right: -10px; z-index: 4; pointer-events: none; }
.s-torn { background: var(--s-deep); }
.s-torn-edge { background: var(--s-edge); z-index: 3; opacity: .55; }
.b-janica .s-torn, .b-janica .s-torn-edge, .b-citykia .s-torn, .b-citykia .s-torn-edge { display: none; }

/* ---------------- Fotografía ---------------- */

.s-photo { position: absolute; z-index: 2; overflow: hidden; }
.s-photo img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: var(--ix) var(--iy); transform-origin: var(--ix) var(--iy);
  /* dx/dy: desplazamiento libre (se arrastra con el mouse en el Editor; admite negativos) */
  transform: translate(var(--dx), var(--dy)) scale(var(--iz));
}
.bw .s-photo img { filter: grayscale(1) contrast(1.08); }
.s-photo.empty {
  display: flex; align-items: flex-end; padding: 60px 80px;
  background: repeating-linear-gradient(-45deg, var(--s-line) 0 2px, transparent 2px 22px);
  outline: 3px dashed var(--s-line); outline-offset: -3px;
}
.ph-note {
  font: 500 26px/1.35 'IBM Plex Mono', Menlo, monospace; color: var(--s-muted);
  background: var(--s-bg); padding: 14px 18px; max-width: 760px;
}
.ph-note b { color: var(--s-ink); font-weight: 500; }

/* visible: los elementos se pueden arrastrar fuera de su caja en el Editor (fitSlide mide sin esos desplazamientos) */
.fitbox { overflow: visible; }
.front { z-index: 5; }
.back { z-index: 1; }

/* ---------------- PORTADA ---------------- */
.l-portada .s-photo { left: 0; right: 0; bottom: 0; height: 76%; }
.l-portada .s-photo:not(.empty) { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%); mask-image: linear-gradient(to bottom, transparent 0, #000 20%); }
.l-portada .s-head { position: absolute; left: 80px; right: 80px; top: 150px; max-height: 760px; }
.l-portada .s-title { font-size: calc(158px * var(--ts) * var(--fit)); }
.b-janica.l-portada .s-title { font-size: calc(128px * var(--ts) * var(--fit)); }
.l-portada .s-body { max-width: 700px; }
.l-portada .s-sign { z-index: 9; }

/* ---------------- CIFRA ---------------- */
.l-cifra .s-photo { right: 0; top: 0; bottom: 0; width: 48%; }
.l-cifra .s-photo:not(.empty) { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
.l-cifra .s-photo.empty { top: 180px; bottom: 260px; right: 80px; width: 38%; padding: 36px; }
.l-cifra .s-flow { position: absolute; left: 80px; right: 80px; top: 200px; bottom: 300px; display: flex; flex-direction: column; justify-content: center; }
.s-number {
  font-family: var(--f-display); font-weight: var(--t-w); line-height: .82; letter-spacing: -.01em;
  font-size: calc(400px * var(--ts) * var(--fit)); color: var(--s-num); white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.b-citykia .s-number { font-stretch: 68%; }
.b-janica .s-number { font-style: italic; }
.b-eva.t-light .s-number span.hl { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 88%, transparent 88%); }
.s-numlabel {
  font-family: var(--f-display); font-weight: var(--t-w); text-transform: var(--t-case);
  line-height: var(--t-lh); letter-spacing: var(--t-ls);
  font-size: calc(118px * var(--ts) * var(--fit)); margin-top: 26px; max-width: 900px; text-wrap: balance;
}
.b-citykia .s-numlabel { font-stretch: 72%; }
.l-cifra .has-photo .s-body { max-width: 540px; }
.l-cifra .s-torn { top: -10px; height: 150px; }
.l-cifra .s-torn-edge { top: -4px; height: 150px; }

/* ---------------- FRASE ---------------- */
.l-frase .s-panel {
  position: absolute; left: 64px; right: 64px; top: 250px; bottom: 290px; z-index: 3;
  background: var(--s-panel); color: var(--s-panel-ink); padding: 96px 80px 72px;
}
.l-frase.has-photo .s-panel { top: 620px; bottom: 250px; left: 64px; right: 160px; padding: 72px 72px 60px; }
.l-frase .s-panel .fitbox { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.l-frase .s-panel .s-title { color: var(--s-panel-ink); font-size: calc(112px * var(--ts) * var(--fit)); }
.b-janica.l-frase .s-panel .s-title { font-size: calc(92px * var(--ts) * var(--fit)); }
.l-frase .s-panel .s-body { color: var(--s-panel-ink); }
.l-frase .s-panel .s-kicker { color: var(--s-panel-ink); opacity: .7; }
.l-frase .s-panel .s-kicker::before { background: var(--s-panel-acc); }
.b-janica.l-frase .s-panel { border: 1.5px solid var(--s-line); }
.l-frase .s-photo { left: 0; right: 0; top: 0; height: 74%; z-index: 2; }
.l-frase .s-photo:not(.empty) { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.l-frase .s-photo.empty { align-items: flex-start; padding-top: 170px; }
.l-frase .quote {
  position: absolute; left: 110px; top: 150px; z-index: 4;
  font: 400 260px/1 var(--f-display); color: var(--s-mark);
}
.b-citykia.l-frase .quote { font-weight: 900; }
.l-frase.has-photo .quote { top: 520px; left: 96px; }

/* ---------------- LISTA ---------------- */
.l-lista .s-flow, .l-comparar .s-flow, .l-cta .s-flow {
  position: absolute; left: 80px; right: 80px; top: 170px; bottom: 270px; display: flex; flex-direction: column;
}
.l-lista.has-photo .s-flow { right: 44%; }
.l-lista .s-photo { right: 0; top: 0; bottom: 0; width: 42%; }
.l-lista .s-photo:not(.empty) { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.l-lista .s-photo.empty { padding: 40px; }
.l-lista .s-title, .l-comparar .s-title { font-size: calc(112px * var(--ts) * var(--fit)); }
.b-janica.l-lista .s-title, .b-janica.l-comparar .s-title { font-size: calc(92px * var(--ts) * var(--fit)); }
.s-items { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-direction: column; }
.s-items li {
  display: grid; grid-template-columns: 52px 1fr; gap: 30px; align-items: start;
  padding: 26px 0; border-top: 1.5px solid var(--s-line);
  font-size: calc(40px * var(--fit)); line-height: 1.25; font-weight: 500;
}
.s-items li:last-child { border-bottom: 1.5px solid var(--s-line); }
.s-items .mk { width: 46px; height: 46px; border: 4px solid var(--s-mark); position: relative; margin-top: 2px; }
.s-items .mk::after {
  content: ''; position: absolute; left: 12px; top: 3px; width: 13px; height: 24px;
  border: solid var(--s-mark); border-width: 0 5px 5px 0; transform: rotate(45deg);
}
.b-eva.t-light .s-items .mk { background: var(--lime); border-color: var(--s-ink); }
.b-eva.t-light .s-items .mk::after { border-color: var(--s-ink); }
.b-janica .s-items li { font-weight: 400; }
.b-janica .s-items .mk { border-width: 1.5px; border-radius: 50%; }
.b-janica .s-items .mk::after { border-width: 0 2px 2px 0; left: 15px; top: 7px; width: 11px; height: 20px; }

/* ---------------- COMPARAR ---------------- */
.s-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 60px; flex: 1; min-height: 0; }
.s-col { padding: 44px 40px; border: 2px solid var(--s-line); display: flex; flex-direction: column; }
.s-col h4 {
  margin: 0 0 30px; font: var(--t-w) calc(58px * var(--fit))/1 var(--f-display);
  text-transform: var(--t-case); letter-spacing: var(--t-ls); color: var(--s-muted);
}
.b-citykia .s-col h4 { font-stretch: 72%; }
.s-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.s-col li { display: grid; grid-template-columns: 36px 1fr; gap: 18px; font-size: calc(34px * var(--fit)); line-height: 1.25; font-weight: 500; }
.s-col li::before { font: 700 34px/1.25 var(--f-body); }
.s-col.a { opacity: .78; }
.s-col.a li::before { content: '×'; color: var(--s-muted); }
.s-col.b { background: var(--s-panel); color: var(--s-panel-ink); border-color: var(--s-panel); }
.s-col.b h4 { color: var(--s-panel-ink); }
.s-col.b li::before { content: '✓'; color: var(--s-panel-ink); }
.b-eva.t-dark .s-col.b { background: var(--lime); border-color: var(--lime); color: #1E1E20; }
.b-eva.t-dark .s-col.b h4, .b-eva.t-dark .s-col.b li::before { color: #1E1E20; }
.b-citykia .s-col.b h4 { color: var(--s-panel-acc); }
.b-janica .s-col { border-width: 1.5px; }
.b-janica .s-col li { font-weight: 400; }

/* ---------------- CTA ---------------- */
.l-cta .s-flow { justify-content: center; top: 140px; bottom: 440px; }
.l-cta.has-photo .s-flow { right: 40%; }
.l-cta .s-photo { right: 0; top: 0; bottom: 0; width: 46%; }
.l-cta .s-photo:not(.empty) { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%); mask-image: linear-gradient(to right, transparent 0, #000 24%); }
.l-cta .s-photo.empty { padding: 40px; }
.l-cta .s-title { font-size: calc(170px * var(--ts) * var(--fit)); }
.b-janica.l-cta .s-title { font-size: calc(120px * var(--ts) * var(--fit)); }
.s-chip {
  align-self: flex-start; margin-top: 44px; background: var(--s-chip); color: var(--s-chip-ink);
  font: 700 calc(40px * var(--fit))/1 var(--f-body); padding: 26px 34px; display: inline-flex; gap: 18px; align-items: center;
  text-transform: uppercase; letter-spacing: .04em;
}
.s-chip::after { content: '→'; font-weight: 400; }
.b-janica .s-chip { font-weight: 500; letter-spacing: .2em; font-size: calc(26px * var(--fit)); border-radius: 99px; padding: 24px 40px; }
.l-cta .s-torn { bottom: -10px; height: 400px; }
.l-cta .s-torn-edge { bottom: -4px; height: 400px; }
.l-portada .s-torn { bottom: -10px; height: 250px; }
.l-portada .s-torn-edge { bottom: -4px; height: 250px; }

/* Guía de zona segura (solo en el editor) */
.s-safe { display: none; position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.show-safe .s-safe { display: block; box-shadow: inset 0 0 0 60px rgba(255, 60, 110, .16); }
.show-safe .s-safe::before, .show-safe .s-safe::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(255, 60, 110, .7);
}
.show-safe .s-safe::before { left: 34px; }
.show-safe .s-safe::after { right: 34px; }

/* ---------------- ESCENA: foto a sangre + titular gigante ---------------- */
.l-escena .s-photo { inset: 0; }
.l-escena .s-photo.empty { align-items: flex-start; padding-top: 170px; }
.l-escena .s-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, var(--s-bg) 0%, color-mix(in srgb, var(--s-bg) 55%, transparent) 34%, transparent 62%);
}
.l-escena .s-flow {
  position: absolute; left: 80px; right: 80px; bottom: 250px; top: 520px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.l-escena .s-title { font-size: calc(200px * var(--ts) * var(--fit)); }
.b-janica.l-escena .s-title { font-size: calc(140px * var(--ts) * var(--fit)); }
.l-escena .s-body { max-width: 720px; }

/* ---------------- COMPARAR con foto ---------------- */
.l-comparar .s-photo { left: 0; right: 0; top: 0; height: 46%; }
.l-comparar .s-photo:not(.empty) { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.l-comparar .s-photo.empty { align-items: flex-start; padding-top: 170px; }
.l-comparar.has-photo .s-flow { top: 380px; }

/* ---------------- Recorte: la persona u objeto queda delante del texto ----------------
   Es la misma foto sin fondo (PNG). Hereda el encuadre de .s-photo, así calza exacto. */
.s-cut { z-index: 6 !important; pointer-events: none; }
.s-cut img { filter: none; }
.bw .s-cut img { filter: grayscale(1) contrast(1.08); }

/* ---------------- Acabado EVA: nunca fondos planos, bordes con HUD ----------------
   Ver "Regla de acabado" en eva-carousel-visual-guide.md */
.b-eva { --paper: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0MjAnIGhlaWdodD0nNDIwJz48ZmlsdGVyIGlkPSdwJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nLjAxOCAuMDQ1JyBudW1PY3RhdmVzPSc0JyBzZWVkPSc3Jy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIC41ICAwIDAgMCAwIC41ICAwIDAgMCAwIC41ICAwIDAgMCAuNTUgMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSc0MjAnIGhlaWdodD0nNDIwJyBmaWx0ZXI9J3VybCgjcCknLz48L3N2Zz4="); }
/* Papel en las zonas sólidas: franjas rasgadas, panel de frase, columna destacada y botón */
.b-eva .s-torn, .b-eva .s-tab, .b-eva.l-frase .s-panel, .b-eva .s-col.b, .b-eva .s-chip {
  background-image: var(--paper); background-size: 420px 420px; background-blend-mode: soft-light;
}
.b-eva .s-torn, .b-eva .s-tab { background-color: var(--s-deep); }

/* Pestaña de papel rasgado en la esquina superior derecha */
.s-tab, .s-tab-edge { display: none; }
.b-eva .s-tab { display: block; position: absolute; top: -12px; right: -12px; width: 430px; height: 176px; z-index: 4; pointer-events: none; }
.b-eva .s-tab-edge { display: block; position: absolute; top: -12px; right: -12px; width: 436px; height: 184px; z-index: 3; background: var(--s-edge); opacity: .5; pointer-events: none; }

/* Bloques de color bajo el contador */
.s-dots { display: none; }
.b-eva .s-dots { display: flex; gap: 8px; position: absolute; right: 80px; top: 124px; z-index: 8; }
.b-eva .s-dots i { width: 22px; height: 22px; display: block; background: var(--s-line); }
.b-eva .s-dots i:nth-child(2) { background: var(--s-mark); }
.b-eva .s-dots i:nth-child(3) { background: #7FD4C1; opacity: .85; }

/* Ventana HUD fina en el borde derecho */
.s-win { display: none; }
.b-eva .s-win { display: block; position: absolute; right: 44px; top: 30%; width: 150px; height: 64px; border: 1.5px solid var(--s-line); z-index: 6; pointer-events: none; }
.b-eva .s-win::before { content: ''; position: absolute; left: 12px; top: 12px; width: 58px; height: 12px; background: var(--s-line); }
.b-eva .s-win::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 1.5px; background: var(--s-line); }

/* Línea con flechas en el borde inferior derecho */
.s-hudb { display: none; }
.b-eva .s-hudb { display: flex; align-items: center; gap: 14px; position: absolute; right: 80px; bottom: 58px; width: 360px; z-index: 8; pointer-events: none; }
.b-eva .s-hudb .ln { flex: 1; height: 1.5px; background: var(--s-line); }
.b-eva .s-hudb .ar { font: 400 28px/1 var(--f-body); color: var(--s-muted); }
.b-eva .s-hudb .bk { width: 34px; height: 10px; background: var(--s-mark); }

/* Papel rasgado en los diseños que antes no lo tenían */
.l-escena .s-torn { bottom: -10px; height: 170px; }
.l-escena .s-torn-edge { bottom: -4px; height: 170px; }
.l-frase .s-torn { top: -10px; height: 120px; }
.l-frase .s-torn-edge { top: -4px; height: 120px; }
.l-lista .s-torn { bottom: -10px; height: 210px; }
.l-lista .s-torn-edge { bottom: -4px; height: 210px; }
.l-comparar .s-torn { bottom: -10px; height: 210px; }
.l-comparar .s-torn-edge { bottom: -4px; height: 210px; }

/* Ajustes de acabado revisados en pantalla */
/* El resaltado lima no debe subir sobre la línea de arriba (tapaba letras con interlineado .9) */
.b-eva.t-light :not(.s-panel) > .fitbox > .s-title .acc, .b-eva.t-light .s-flow > .s-title .acc, .b-eva.t-light .s-numlabel .acc {
  background: linear-gradient(transparent 16%, var(--s-acc-bg) 16%, var(--s-acc-bg) 94%, transparent 94%);
}
/* En Frase el panel llega al borde derecho: la ventana HUD y las marcas chocaban con él */
.b-eva.l-frase .s-win, .b-eva.l-frase .s-ticks { display: none; }
/* Contador legible sobre fotos claras */
.has-photo .s-count, .has-photo .s-dots { text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.b-eva.has-photo .s-count { color: var(--s-ink); }

/* El ajuste automático (fitSlide) solo detecta el texto que se desborda hacia abajo.
   Con justify-content flex-end/center el exceso se iba hacia arriba y cortaba la primera línea
   sin achicar la letra. Los márgenes automáticos alinean igual, pero el exceso siempre cae abajo. */
.l-escena .s-flow, .l-cifra .s-flow, .l-cta .s-flow, .l-frase .s-panel .fitbox { justify-content: flex-start; }
.l-escena .s-flow > :first-child { margin-top: auto; }
.l-cifra .s-flow > :first-child, .l-cta .s-flow > :first-child, .l-frase .s-panel .fitbox > :first-child { margin-top: auto; }
.l-cifra .s-flow > :last-child, .l-cta .s-flow > :last-child, .l-frase .s-panel .fitbox > :last-child { margin-bottom: auto; }

/* Capa de texto sobre el recorte: todo menos el titular grande y la cifra (ver buildSlide) */
.over { z-index: 7 !important; pointer-events: none; }
.over .s-title, .over .s-number { visibility: hidden; }
.s-panel.over { background: none !important; border-color: transparent !important; }

/* El resaltado lima de los paneles tampoco debe subir sobre la línea de arriba */
.b-eva .s-panel .s-title .acc {
  background: linear-gradient(transparent 16%, var(--s-panel-acc-bg) 16%, var(--s-panel-acc-bg) 94%, transparent 94%);
}

/* Cifra con foto: el texto bajo la cifra no se mete debajo de la foto */
.l-cifra .has-photo .s-numlabel { max-width: 560px; }

/* Texto claro sobre fotos: sombra suave para que no se pierda en zonas claras */
.b-eva.t-dark.has-photo .s-title, .b-eva.t-dark.has-photo .s-number, .b-eva.t-dark.has-photo .s-numlabel,
.b-eva.t-dark.has-photo .s-body, .b-eva.t-dark.has-photo .s-kicker, .b-eva.t-dark.has-photo .s-items li {
  text-shadow: 0 2px 20px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35);
}

/* Fuente del dato: visible, pequeña y discreta bajo el texto de apoyo */
.s-source { margin: 22px 0 0; font: 500 calc(24px * var(--fit))/1.3 var(--f-body); color: var(--s-muted); letter-spacing: .02em; max-width: 820px; }
.s-panel .s-source { color: var(--s-panel-ink); opacity: .65; }
.b-eva.t-dark.has-photo .s-source { color: var(--s-ink); opacity: .8; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* ==========================================================================
   JANICA MERCHANT v2 — revista de lujo silenciosa (24-09-2026)
   Foto a sangre completa, sin marco ni degradado oscuro. Titular en serif condensada,
   apoyo en sans geométrica, un solo gesto lima por lámina.
   Basamentos: 01_SKILL_OPERATIVO/references/janica-merchant.md
   ========================================================================== */
.b-janica {
  --f-display: 'Instrument Serif', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-kicker: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --t-case: none; --t-lh: .9; --t-ls: -.012em; --t-w: 400; --t-style: normal;
}
.b-janica.t-light { --s-bg: #F3EEE6; --s-ink: #1F1D1B; --s-muted: #5E5750; --s-line: rgba(31,29,27,.45); --wash: rgba(246,241,233,.66); }
.b-janica.t-dark  { --s-bg: #2A2724; --s-ink: #F6F1E9; --s-muted: #D9D0C4; --s-line: rgba(246,241,233,.6); --wash: rgba(24,22,20,.5); }

.b-janica .s-frame { display: none; }

/* Foto siempre a sangre, sin máscaras */
.b-janica .s-photo, .b-janica .s-photo:not(.empty), .b-janica .s-photo.empty {
  inset: 0 !important; width: auto !important; height: auto !important;
  -webkit-mask-image: none !important; mask-image: none !important;
}
.b-janica .s-photo.empty { align-items: flex-end; padding: 0 84px 150px; }

/* Velo muy suave solo detrás del texto (la foto ya trae la zona limpia) */
.j-wash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 72% 48% at 20% 16%, var(--wash), transparent 72%);
}
.b-janica.l-frase .j-wash {
  background: radial-gradient(ellipse 72% 36% at 22% 12%, var(--wash), transparent 72%),
              radial-gradient(ellipse 90% 34% at 40% 90%, var(--wash), transparent 72%);
}
.b-janica.l-comparar .j-wash { background: radial-gradient(ellipse 90% 42% at 50% 16%, var(--wash), transparent 74%); }

/* Tipografía */
.b-janica .s-title { font-weight: 400; color: var(--s-ink); text-wrap: balance; }
.b-janica .acc, .b-janica .s-panel .acc { font-style: italic; background: none; color: inherit; padding: 0 .02em; }
.b-janica .s-kicker { font: 500 20px/1.2 var(--f-kicker); letter-spacing: .38em; color: var(--s-ink); opacity: .8; margin-bottom: 30px; }
.b-janica .s-kicker::before { width: 56px; height: 1.5px; background: var(--s-ink); }
.b-janica .s-body {
  font: 400 calc(34px * var(--fit))/1.4 var(--f-body); color: var(--s-ink); opacity: .92;
  max-width: 580px; margin-top: 34px;
}
.b-janica .s-source { color: var(--s-ink); opacity: .6; font-size: calc(20px * var(--fit)); }
.b-janica.t-dark .s-title, .b-janica.t-dark .s-body, .b-janica.t-dark .s-number, .b-janica.t-dark .s-numlabel,
.b-janica.t-dark .j-lede, .b-janica.t-dark .j-line, .b-janica.t-dark .s-items li { text-shadow: 0 1px 22px rgba(0,0,0,.3); }
.b-janica.has-photo .s-count { text-shadow: none; }

/* Gestos lima: uno por lámina */
.j-lime { display: block; background: var(--lime); flex: none; }
.j-rule { width: 150px; height: 6px; margin: 44px 0 4px; }
.j-square { width: 34px; height: 34px; margin: 52px 0 40px; }
.j-brush {
  width: 78%; max-width: 820px; height: 26px; margin-top: 10px; background: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA2MDAgMjYnIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnPjxwYXRoIGQ9J002IDE3IEMgMTEwIDksIDMwMCA1LCA1OTQgOSBDIDU5OCAxMSwgNTk3IDE1LCA1OTAgMTUgQyA0MjAgMTMsIDIzMCAxNiwgMTIgMjMgQyAzIDIzLCAxIDE4LCA2IDE3IFonIGZpbGw9JyNFQ0ZFNkUnLz48L3N2Zz4=");
  background-size: 100% 100%;
}

/* Firma y número */
.b-janica .s-sign { left: 84px; bottom: 82px; gap: 26px; }
.b-janica .s-sign .jm { font: 500 22px/1 var(--f-body); text-transform: uppercase; letter-spacing: .42em; color: var(--s-ink); }
.b-janica.l-cta .s-sign::before { content: ''; width: 150px; height: 1.5px; background: var(--s-ink); opacity: .7; }
.b-janica .s-count {
  top: auto; bottom: 84px; right: 84px; display: flex; align-items: center; gap: 18px;
  font: italic 400 34px/1 var(--f-display); letter-spacing: .02em; color: var(--s-ink); opacity: .85;
}
.b-janica .s-count::before { content: ''; width: 70px; height: 1.5px; background: currentColor; }
.b-janica.l-portada .s-count, .b-janica.l-cta .s-count { display: none; }

/* PORTADA: Janica a la derecha, titular en mayúsculas arriba a la izquierda */
.b-janica.l-portada .s-flow { position: absolute; left: 84px; top: 118px; width: 660px; bottom: 300px; display: flex; flex-direction: column; }
.b-janica.l-portada .s-title { font-size: calc(150px * var(--ts) * var(--fit)); }

/* ESCENA: espacio u objeto, titular en minúsculas con cursiva */
.b-janica.l-escena .s-flow { position: absolute; left: 84px; right: 260px; top: 118px; bottom: 420px; display: flex; flex-direction: column; }
.b-janica.l-escena .s-flow > :first-child { margin-top: 0; }
.b-janica.l-escena .s-title { font-size: calc(150px * var(--ts) * var(--fit)); }

/* FRASE PARTIDA: párrafo arriba, remate en mayúsculas abajo con trazo lima */
.b-janica.l-frase .s-flow { position: absolute; left: 84px; right: 84px; top: 110px; bottom: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.b-janica .j-top { max-width: 600px; }
.b-janica .j-lede { font: 400 calc(62px * var(--fit))/1.06 var(--f-display); color: var(--s-ink); margin: 0; text-wrap: pretty; }
.b-janica .j-bottom { max-width: 900px; }
.b-janica.l-frase .s-title { font-size: calc(160px * var(--ts) * var(--fit)); }

/* LISTA: mayúsculas, cuadrito lima, frases sin viñetas */
.b-janica.l-lista .s-flow { position: absolute; left: 84px; right: 360px; top: 118px; bottom: 160px; display: flex; flex-direction: column; }
.b-janica.l-lista .s-title { font-size: calc(128px * var(--ts) * var(--fit)); }
.b-janica .s-items { margin: 0; gap: 30px; }
.b-janica .s-items li {
  display: block; border: 0 !important; padding: 0;
  font: 400 calc(36px * var(--fit))/1.3 var(--f-body); color: var(--s-ink); max-width: 560px;
}

/* CIFRA: número en serif cursiva */
.b-janica.l-cifra .s-flow { position: absolute; left: 84px; right: 340px; top: 118px; bottom: 300px; display: flex; flex-direction: column; justify-content: flex-start; }
.b-janica.l-cifra .s-flow > :first-child { margin-top: 0; }
.b-janica .s-number { font: italic 400 calc(340px * var(--ts) * var(--fit))/.82 var(--f-display); color: var(--s-ink); }
.b-janica .s-numlabel { font: 400 calc(76px * var(--ts) * var(--fit))/1 var(--f-display); color: var(--s-ink); margin-top: 8px; max-width: 640px; }

/* CONTRASTE (comparar): frases centradas arriba y remate resaltado */
.b-janica.l-comparar .s-flow {
  position: absolute; left: 90px; right: 90px; top: 96px; bottom: 470px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.b-janica.l-comparar .s-title { font-size: calc(70px * var(--ts) * var(--fit)); margin-bottom: 30px; }
.b-janica .j-line { font: 400 calc(52px * var(--fit))/1.1 var(--f-display); color: var(--s-ink); margin: 0 0 26px; max-width: 880px; }
.b-janica .j-line.j-lab { font-style: italic; }
.b-janica .j-line.sm { font: 400 calc(28px * var(--fit))/1.35 var(--f-body); margin: 18px 0 0; }
.b-janica .j-punch { margin-top: 26px; }
.b-janica .j-punch span {
  font: 400 calc(150px * var(--ts) * var(--fit))/.95 var(--f-display); color: var(--s-ink);
  background: linear-gradient(transparent 42%, var(--lime) 42%, var(--lime) 90%, transparent 90%);
  padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.b-janica.l-comparar .s-body { margin-left: auto; margin-right: auto; }

/* CIERRE: Janica sonriendo, titular reflexivo, guardar y firma */
.b-janica.l-cta .s-flow { position: absolute; left: 84px; right: 300px; top: 118px; bottom: 250px; display: flex; flex-direction: column; justify-content: flex-start; }
.b-janica.l-cta .s-flow > :first-child { margin-top: 0; }
.b-janica.l-cta .s-title { font-size: calc(124px * var(--ts) * var(--fit)); }
.j-save { display: flex; align-items: center; gap: 22px; margin-top: 44px; font: 500 calc(26px * var(--fit))/1.35 var(--f-body); color: var(--s-ink); max-width: 560px; }
.j-save .acc { font-style: normal; font-weight: 700; }
.j-bm {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: rgba(165,150,130,.35) center / 26px no-repeat url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAzMCc+PHBhdGggZD0nTTMgMmgxOHYyNmwtOS03LTkgN3onIGZpbGw9J25vbmUnIHN0cm9rZT0nIzFGMUQxQicgc3Ryb2tlLXdpZHRoPScyLjQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnLz48L3N2Zz4=");
}

/* ==========================================================================
   DISEÑO BASE — marcas nuevas (06_MARCAS/<marca>/marca.json con design: "base").
   Los colores y las tipografías llegan como variables en línea desde app.js (baseVars);
   aquí solo va lo que no depende de la marca.
   ========================================================================== */
.b-base { --t-lh: .95; --t-ls: -.01em; --t-w: 700; --t-style: normal; }
.b-base .s-grain, .b-base .s-hud, .b-base .s-ticks { display: none; }
.b-base .s-title { font-weight: 700; }
.b-base .s-sign .wordmark { font: 700 44px/1 var(--f-display); font-style: normal; text-transform: var(--t-case); letter-spacing: .02em; color: var(--s-ink); }
.b-base .s-chip { border-radius: 6px; }
.b-base.t-dark.has-photo .s-title, .b-base.t-dark.has-photo .s-number, .b-base.t-dark.has-photo .s-numlabel,
.b-base.t-dark.has-photo .s-body, .b-base.t-dark.has-photo .s-kicker, .b-base.t-dark.has-photo .s-items li,
.b-base.t-dark.has-photo .s-source, .b-base.t-dark.has-photo .s-sign .wordmark {
  text-shadow: 0 2px 20px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35);
}
.b-base .acc { padding: 0 .06em; }

/* Lámina completa: la imagen generada ya trae la tipografía (ver lamina_completa.rb) */
.slide.full .s-full { position: absolute; inset: 0; z-index: 2; }

/* ==========================================================================
   Diseño por bloques (layout "bloques"): pila de textos por zona con su estilo.
   Plantillas basadas en las láminas aprobadas de Janica (app.js · BLOCK_TEMPLATES).
   ========================================================================== */
.l-bloques .s-blocks { --fit: 1; position: absolute; left: 84px; right: 84px; z-index: 5; display: flex; flex-direction: column; gap: 24px; }
.l-bloques .z-arriba { top: 100px; }
.l-bloques .z-abajo { bottom: 100px; }
.l-bloques .z-centro { top: 50%; transform: translateY(-50%); }
.l-bloques .z-izquierda { left: 70px; right: auto; top: 43%; width: 240px; }
.l-bloques .z-derecha { left: auto; right: 70px; top: 46%; width: 240px; }
.l-bloques .j-wash {
  background: radial-gradient(ellipse 80% 34% at 30% 12%, var(--wash, rgba(246,241,233,.5)), transparent 72%),
              radial-gradient(ellipse 90% 30% at 40% 90%, var(--wash, rgba(246,241,233,.5)), transparent 72%);
}
.blk { color: var(--s-ink); margin: 0; }
.blk.a-izq { align-self: flex-start; text-align: left; }
.blk.a-centro { align-self: center; text-align: center; }
.blk.a-der { align-self: flex-end; text-align: right; }
.blk.w-medio { max-width: 58%; }
.blk-titulo { font: 400 calc(88px * var(--ts) * var(--fit))/.95 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.blk-titulo-xl { font: 400 calc(132px * var(--ts) * var(--fit))/.9 var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
.blk-serif { font: 400 calc(50px * var(--fit))/1.12 var(--f-display); text-wrap: pretty; }
.blk-sans { font: 400 calc(31px * var(--fit))/1.38 var(--f-body); opacity: .92; }
.blk-sans-grande { font: 300 calc(46px * var(--fit))/1.2 var(--f-body); }
.blk-etiqueta { font: 500 calc(20px * var(--fit))/1.5 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.blk-espaciado { font: 400 calc(27px * var(--fit))/1.4 var(--f-body); letter-spacing: .14em; }
.blk-cifra { font: 400 calc(230px * var(--ts) * var(--fit))/.9 var(--f-display); letter-spacing: -.02em; }
.blk-fuente { font: 400 calc(18px * var(--fit))/1.4 var(--f-body); opacity: .62; }
.blk-guardar { display: flex; align-items: center; gap: 22px; font: 400 calc(25px * var(--fit))/1.4 var(--f-body); }
.blk-guardar .j-bm { flex: none; }
.blk-firma { font: 500 20px/1 var(--f-body); letter-spacing: .42em; text-transform: uppercase; }
.blk-linea { display: block; width: 520px; max-width: 100%; height: 5px; border-radius: 3px; background: var(--lime); }
.blk.a-centro.blk-linea { margin: 0 auto; }
.blk-dot { color: var(--lime); }
/* Marcas en el texto: ==resaltador== y __subrayado__ (también sirven en los diseños clásicos) */
mark.hl { background: var(--lime); color: inherit; padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ul { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: .09em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.t-dark .blk:not(.blk-linea) { text-shadow: 0 1px 22px rgba(0,0,0,.3); }
/* La copia de encima del recorte no repite los fondos de resaltador */
.over mark.hl { background: none; }
