/* Láminas of a Feed Publicación (Marketing::SlideComponent): 1080×1350, drawn
   at full size and scaled by their frame, exported to JPEG in the browser. The
   brand colors come from the --color-landing-* palette in
   app/assets/tailwind/application.css; the slide fonts are self-hosted so the
   export can embed them. */

@font-face {
  font-family: "Slide Inter";
  src: url("/assets/InterVariable-884c49a1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Slide JetBrains Mono";
  src: url("/assets/JetBrainsMono-Medium-b91c79ef.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Slide JetBrains Mono";
  src: url("/assets/JetBrainsMono-Bold-265b4f93.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --slide-navy: var(--color-landing-primary);
  --slide-light-navy: var(--color-landing-primary-bg-2);
  --slide-green: var(--color-landing-accent);
  --slide-green-bg: var(--color-landing-accent-bg);
  --slide-myth-red: var(--color-landing-danger);
  --slide-paper: #FFFFFF;
  --slide-ink: var(--color-landing-text);
  --slide-slate: var(--color-landing-text-2);
  --slide-muted: var(--color-landing-text-3);
  --slide-border: var(--color-landing-border);
  --slide-photo-from: #DCE5EE;
  --slide-photo-to: #C9D6E3;
  --slide-missing: #A16207;
  --slide-missing-from: #FEF3C7;
  --slide-missing-to: #FDECB5;
  --slide-paper-faded: rgb(255 255 255 / 0.85);
  --slide-paper-clear: rgb(255 255 255 / 0);
  --slide-font-sans: "Slide Inter", "Inter", sans-serif;
  --slide-font-mono: "Slide JetBrains Mono", "JetBrains Mono", monospace;
  --slide-width: 1080px;
  --slide-height: 1350px;
}

/* A frame shows a Lámina at --slide-scale; the slide inside keeps its full size. */
.slide-frame {
  position: relative;
  width: calc(var(--slide-width) * var(--slide-scale, 0.3));
  height: calc(var(--slide-height) * var(--slide-scale, 0.3));
  overflow: hidden;
  flex-shrink: 0;
}
.slide-frame > .slide { transform: scale(var(--slide-scale, 0.3)); transform-origin: top left; }

/* A fitted frame fills its container's width; slide-fit sets --slide-scale to match. */
.slide-fit {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1350;
  overflow: hidden;
}
.slide-fit > .slide { transform: scale(var(--slide-scale, 0)); transform-origin: top left; }

.slide {
  width: var(--slide-width);
  height: var(--slide-height);
  background: var(--slide-paper);
  display: flex;
  flex-direction: column;
  font-family: var(--slide-font-sans);
  color: var(--slide-ink);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  line-height: normal;
}
.slide *, .slide *::before, .slide *::after { box-sizing: border-box; }
.slide [hidden] { display: none !important; }

.slide-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 88px 84px; min-height: 0; }
.slide-eyebrow { font-size: 34px; letter-spacing: 7px; font-weight: 700; color: var(--slide-navy); text-transform: uppercase; }
.slide-headline { font-size: 120px; font-weight: 900; line-height: 1; letter-spacing: -4px; margin-top: 32px; overflow-wrap: break-word; }
.slide-headline-medium { font-size: 104px; letter-spacing: -3.5px; }
.slide-content > :first-child, .slide-eyebrow[hidden] + .slide-headline, .slide-eyebrow[hidden] + .slide-claim-card { margin-top: 0; }
.slide-accent-navy { color: var(--slide-navy); }
.slide-accent-green { color: var(--slide-green); }
.slide-support { font-size: 50px; line-height: 1.35; color: var(--slide-slate); margin-top: 44px; font-weight: 400; }

.slide-chips { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 56px; }
.slide-chip { display: inline-flex; align-items: center; gap: 14px; background: var(--slide-green-bg); color: var(--slide-green); font-weight: 700; font-size: 40px; border-radius: 999px; padding: 22px 38px; }
.slide-chip svg { width: 38px; height: 38px; flex-shrink: 0; }

.slide-closing-pill { margin-top: 72px; align-self: flex-start; display: inline-flex; align-items: center; gap: 18px; background: var(--slide-green-bg); color: var(--slide-green); font-weight: 800; font-size: 44px; border-radius: 999px; padding: 30px 48px; }
.slide-closing-pill svg { width: 42px; height: 42px; flex-shrink: 0; }

.slide-footer { height: 156px; flex-shrink: 0; background: var(--slide-navy); border-top: 10px solid var(--slide-green); display: flex; align-items: center; justify-content: space-between; padding: 0 84px; }
.slide-logo-pill { background: var(--slide-paper); border-radius: 18px; height: 100px; padding: 0 24px; display: flex; align-items: center; }
.slide-logo-pill img { height: 72px; width: auto; display: block; }
.slide-footer-line { color: var(--slide-light-navy); font-size: 34px; font-weight: 600; white-space: nowrap; }
.slide-phone { font-family: var(--slide-font-mono); font-weight: 700; font-size: 40px; margin-left: 4px; color: var(--slide-paper); }

/* A photo field: the uploaded picture, or the amber "Falta la foto" placeholder. */
.slide-photo { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--slide-photo-from) 0%, var(--slide-photo-to) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--slide-muted); text-align: center; }
.slide-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-photo-missing { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: repeating-linear-gradient(135deg, var(--slide-missing-from) 0 24px, var(--slide-missing-to) 24px 48px); color: var(--slide-missing); }
.slide-photo-missing svg { width: 96px; height: 96px; opacity: 0.7; }
.slide-photo-missing span { font-size: 36px; font-weight: 700; max-width: 70%; line-height: 1.35; }

/* Portada con foto: the photo fills the slide and fades to white under the text. */
.slide-cover-photo { flex: 1; position: relative; min-height: 0; }
.slide-cover-photo > .slide-photo { position: absolute; inset: 0; }
.slide-cover-photo > .slide-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; justify-content: flex-end; padding: 260px 84px 72px;
  background: linear-gradient(to top, var(--slide-paper) 0%, var(--slide-paper) 60%, var(--slide-paper-faded) 78%, var(--slide-paper-clear) 100%); }
.slide-cover-photo .slide-headline { font-size: 94px; letter-spacing: -3px; }
.slide-cover-photo .slide-support { font-size: 44px; }

/* Pasos and Lista ✓ */
.slide-items { display: flex; flex-direction: column; gap: 60px; margin-top: 72px; }
.slide-item { display: flex; align-items: center; gap: 40px; font-size: 56px; font-weight: 700; color: var(--slide-ink); line-height: 1.2; letter-spacing: -1px; }
.slide-step-number { flex-shrink: 0; width: 120px; height: 120px; border-radius: 999px; background: var(--slide-navy); color: var(--slide-paper); font-size: 60px; font-weight: 900; display: flex; align-items: center; justify-content: center; letter-spacing: 0; }
.slide-check { flex-shrink: 0; width: 108px; height: 108px; border-radius: 999px; background: var(--slide-green-bg); color: var(--slide-green); display: flex; align-items: center; justify-content: center; }
.slide-check svg { width: 58px; height: 58px; }

/* Mito vs. realidad */
.slide-claim-card { border: 4px solid var(--slide-border); border-radius: 32px; padding: 56px 60px; margin-top: 44px; }
.slide-claim-label { display: inline-flex; align-items: center; gap: 14px; font-size: 38px; font-weight: 800; letter-spacing: 5px; text-transform: uppercase; }
.slide-claim-label svg { width: 34px; height: 34px; }
.slide-claim-label-myth { color: var(--slide-myth-red); }
.slide-claim-label-reality { color: var(--slide-green); }
.slide-claim-text { font-size: 82px; font-weight: 900; letter-spacing: -2.5px; line-height: 1.05; margin-top: 24px; }
.slide-claim-text-myth { text-decoration: line-through; text-decoration-thickness: 6px; text-decoration-color: var(--slide-myth-red); color: var(--slide-slate); }
.slide-claim-text-reality { color: var(--slide-navy); }

/* Antes / después: two stacked photos, the lower one fading to white above the text. */
.slide-before-after { justify-content: flex-start; padding: 0 0 72px; }
.slide-pair { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.slide-pair > .slide-photo { flex: 1; min-height: 0; }
.slide-pair > .slide-photo:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to top, var(--slide-paper), var(--slide-paper-clear)); pointer-events: none; z-index: 1; }
.slide-photo-badge { position: absolute; top: 26px; left: 26px; z-index: 2; font-size: 38px; font-weight: 800; color: var(--slide-paper); border-radius: 999px; padding: 14px 32px; }
.slide-photo-badge-before { background: var(--slide-slate); }
.slide-photo-badge-after { background: var(--slide-green); }
.slide-before-after-text { padding: 0 84px; display: flex; flex-direction: column; }

/* Foto completa: the photo fills the slide and fades to white under the text. */
.slide-full-photo { flex: 1; position: relative; min-height: 0; }
.slide-full-photo > .slide-photo { position: absolute; inset: 0; }
.slide-full-photo-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; padding: 260px 84px 80px;
  background: linear-gradient(to top, var(--slide-paper) 0%, var(--slide-paper) 55%, var(--slide-paper-faded) 72%, var(--slide-paper-clear) 100%); }
.slide-full-photo .slide-headline { font-size: 108px; }

/* Editor: the dashed 3:4 crop the profile grid shows (1012.5 of 1080 wide, centred). */
.slide-grid-crop { position: absolute; top: 0; bottom: 0; left: 3.125%; right: 3.125%; border-left: 1px dashed var(--color-text-muted); border-right: 1px dashed var(--color-text-muted); pointer-events: none; }

/* Editor and Revisión: the Láminas exported off-screen at full size. */
.slide-export-stage { position: fixed; left: -20000px; top: 0; pointer-events: none; }
