:root {
  --bg: #f7f9f8;
  --petrol: #173b45;
  --green: #2e7d6e;
  --green-light: #ddeee8;
  --orange: #e99b4c;
  --muted: #5e6b70;
  --danger: #b95f5f;
  --white: #fff;
  --shadow: 0 12px 35px rgba(23, 59, 69, .08);
  --stage-height: 100dvh;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { overflow: hidden; color: var(--petrol); background: #dfe7e4; }
button, a { font: inherit; }
.deck { position: relative; width: 100vw; height: var(--stage-height); display: grid; place-items: center; overflow: hidden; }
.slide {
  container-type: size;
  position: absolute;
  width: min(100vw, calc(var(--stage-height) * 16 / 9));
  height: min(var(--stage-height), calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  padding: clamp(30px, 4cqw, 66px) clamp(38px, 5.2cqw, 84px) clamp(34px, 4.2cqw, 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(46,125,110,.08), transparent 23%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.994);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.8,.22,1), visibility .5s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); z-index: 2; }
.slide::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: linear-gradient(90deg, var(--petrol), var(--green), var(--orange)); }
.slide > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .35em; color: var(--green); font-size: clamp(12px, 1.05cqw, 17px); font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .28em; font-size: clamp(34px, 4.35cqw, 70px); line-height: .98; letter-spacing: -.045em; }
h1 span { color: var(--green); }
h2 { margin-bottom: 0; font-size: clamp(30px, 3.15cqw, 50px); line-height: 1.03; letter-spacing: -.035em; }
h2 em { display: inline-block; margin-left: .35em; font-size: .58em; font-style: normal; letter-spacing: .02em; text-transform: uppercase; vertical-align: .15em; }
.up { color: var(--green); }
.down { color: var(--danger); }
.mixed { color: var(--orange); }
.lead { max-width: 78%; margin: 0 0 clamp(22px, 2.8cqh, 34px) 7.2cqw; color: var(--muted); font-size: clamp(15px, 1.42cqw, 22px); line-height: 1.35; }

.slide-header { display: flex; align-items: center; gap: 1.4cqw; margin-bottom: clamp(14px, 1.9cqh, 22px); }
.section-number { display: grid; place-items: center; width: clamp(48px, 5.4cqw, 86px); aspect-ratio: 1; border: 2px solid rgba(46,125,110,.32); border-radius: 50%; color: var(--green); font-size: clamp(16px, 1.55cqw, 25px); font-weight: 800; }
.compact-header { margin-bottom: clamp(12px, 1.6cqh, 18px); }

.slide-cover { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 4cqw; }
.slide-cover::before { content: ""; position: absolute; width: 43%; height: 100%; right: 0; top: 0; background: linear-gradient(150deg, rgba(221,238,232,.7), rgba(247,249,248,0)); }
.brand-row { display: flex; align-items: center; gap: clamp(9px, .9cqw, 14px); margin-bottom: clamp(20px, 3.2cqh, 30px); }
.logo-frame { display: grid; place-items: center; flex: 0 0 auto; height: clamp(64px, 8.2cqh, 84px); padding: 6px 10px; overflow: hidden; border: 1px solid rgba(23,59,69,.1); border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(23,59,69,.05); }
.logo-frame img { display: block; width: auto; height: auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-wide { width: clamp(210px, 20cqw, 290px); }
.logo-square { width: clamp(76px, 8.2cqw, 96px); }
.cover-subtitle { margin-bottom: clamp(18px, 3cqh, 30px); color: var(--muted); font-size: clamp(18px, 1.8cqw, 29px); }
.cover-meta { display: flex; flex-wrap: wrap; gap: .65em 1.4em; margin-bottom: clamp(12px, 2cqh, 20px); font-size: clamp(13px, 1.16cqw, 18px); }
.cover-meta p { margin: 0; }
.member-block { width: min(100%, 650px); }
.member-label { display: block; margin-bottom: .65cqh; color: var(--petrol); font-size: clamp(11px, .88cqw, 14px); letter-spacing: .08em; text-transform: uppercase; }
.member-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.3cqw, 20px); }
.member-list span { padding: .65cqh .45cqw; border-top: 1px solid #afbfba; border-bottom: 2px solid var(--green); color: var(--muted); font-size: clamp(13px, 1.03cqw, 17px); font-weight: 700; text-align: center; }
.online-link { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(15px, 2.2cqh, 24px); padding: 9px 13px; border: 1px solid rgba(46,125,110,.25); border-radius: 999px; color: var(--green); font-size: clamp(11px, .9cqw, 14px); font-weight: 700; text-decoration: none; }
.online-link:hover, .online-link:focus-visible { background: var(--green-light); outline: none; }
.online-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.visual-button { position: relative; display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.visual-button:focus-visible { border-radius: 16px; outline: 4px solid rgba(46,125,110,.3); outline-offset: 4px; }
.cover-art .visual-button { width: 100%; }
.cover-art img { display: block; width: 100%; max-height: 67cqh; object-fit: contain; filter: drop-shadow(0 20px 25px rgba(23,59,69,.1)); }
.zoom-hint { position: absolute; right: 5%; bottom: 4%; padding: .45em .75em; border-radius: 999px; color: #fff; background: rgba(23,59,69,.78); font-size: clamp(9px, .75cqw, 12px); font-weight: 700; opacity: .82; }

.fat-layout { display: grid; grid-template-columns: 1.7fr .8fr; gap: 2.2cqw; align-items: stretch; }
.flow-horizontal { display: flex; align-items: center; justify-content: space-between; gap: .55cqw; min-height: 24cqh; padding: 2cqw; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.flow-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1cqh; text-align: center; font-size: clamp(13px, 1.22cqw, 19px); line-height: 1.18; }
.flow-step.emphasized { color: var(--green); }
.food-visual { width: clamp(86px, 8.8cqw, 136px); height: clamp(68px, 8.5cqh, 94px); }
.food-visual img, .mechanism-visual img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 7px rgba(23,59,69,.13)); }
.mechanism-visual { width: clamp(86px, 8.8cqw, 136px); height: clamp(68px, 8.5cqh, 94px); }
.food-visual .zoom-hint, .mechanism-visual .zoom-hint { right: -3px; bottom: -3px; padding: .28em .5em; font-size: 8px; }
.icon-circle { display: grid; place-items: center; width: clamp(48px, 5cqw, 78px); aspect-ratio: 1; border-radius: 50%; color: var(--green); background: var(--green-light); }
.icon-circle svg { width: 58%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.flow-arrow { color: var(--orange); font-size: clamp(20px, 2.3cqw, 36px); font-weight: 800; }
.drug-card { padding: 2cqw; border-left: 5px solid var(--orange); border-radius: 22px; background: var(--petrol); color: #fff; box-shadow: var(--shadow); }
.drug-heading span { color: #a9c9c1; font-size: clamp(11px, .9cqw, 14px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.drug-heading h3 { margin: .18em 0 .55em; color: #fff; font-size: clamp(22px, 2cqw, 32px); text-transform: uppercase; }
.drug-card ul, .why-card ul { margin: 0; padding-left: 1.1em; font-size: clamp(13px, 1.12cqw, 18px); line-height: 1.35; }
.drug-card li + li, .why-card li + li { margin-top: .45em; }
.terms { display: flex; gap: 2cqw; margin: 1.8cqh 0 1.6cqh 7.2cqw; }
.terms p { display: flex; align-items: baseline; gap: .65em; margin: 0; font-size: clamp(11px, .95cqw, 15px); }
.terms strong { color: var(--orange); font-size: 1.45em; }
blockquote { margin: 0; padding: 1.25cqh 2cqw; border-radius: 14px; color: var(--petrol); background: var(--green-light); font-size: clamp(14px, 1.35cqw, 21px); font-weight: 700; text-align: center; }

.grapefruit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.3cqw; margin-left: 7.2cqw; }
.mechanism-card { min-height: 47cqh; padding: 1.5cqw 2cqw; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.mechanism-card h3 { margin-bottom: .45em; font-size: clamp(18px, 1.75cqw, 28px); text-align: center; text-transform: uppercase; }
.mechanism-card.positive { border-top: 6px solid var(--green); }
.mechanism-card.negative { border-top: 6px solid var(--danger); }
.vertical-flow { display: grid; grid-template-columns: 1fr; justify-items: center; gap: .2cqh; color: var(--muted); font-size: clamp(11px, 1cqw, 16px); text-align: center; }
.vertical-flow p { margin: 0; line-height: 1.17; }
.vertical-flow > span:not(.grapefruit-icon) { color: var(--orange); font-size: 1.25em; font-weight: 900; line-height: .9; }
.grapefruit-icon { width: clamp(96px, 9.4cqw, 148px); height: clamp(74px, 9.4cqh, 112px); }
.grapefruit-icon img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(23,59,69,.12)); }
.vertical-flow mark { margin-top: .25cqh; padding: .35em .75em; border-radius: 999px; color: #fff; background: var(--green); font-size: clamp(13px, 1.18cqw, 19px); font-weight: 900; text-transform: uppercase; }
.negative .vertical-flow mark { background: var(--danger); }
.risk { margin: .6cqh 0 0; color: var(--danger); font-size: clamp(10px, .86cqw, 14px); line-height: 1.25; text-align: center; }
.mechanism-note { margin: 1.3cqh 0 1.2cqh 7.2cqw; color: var(--muted); font-size: clamp(10px, .86cqw, 14px); text-align: center; }
.mechanism-note span { padding: 0 .35em; color: var(--orange); }
.same-food { display: flex; align-items: center; justify-content: center; gap: 2cqw; margin-left: 7.2cqw; padding: 1.2cqh 1.7cqw; border-radius: 14px; background: var(--petrol); color: #fff; font-size: clamp(11px, 1cqw, 16px); }
.same-food strong { color: #ffd19d; font-size: 1.18em; text-transform: uppercase; }

.slide-minerals .lead { margin-bottom: 1.8cqh; }
.mineral-layout { display: grid; grid-template-columns: 1.8fr .8fr; gap: 2.2cqw; margin-left: 7.2cqw; }
.mineral-main { display: grid; grid-template-columns: 1fr; justify-items: center; gap: .75cqh; }
.ions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7cqw; width: 100%; }
.ions span { display: grid; place-items: center; min-height: clamp(38px, 5.2cqh, 54px); border: 2px solid rgba(46,125,110,.28); border-radius: 999px; background: #fff; color: var(--green); font-size: clamp(13px, 1.12cqw, 18px); font-weight: 800; text-align: center; }
.chelation-visual { width: auto; max-width: 100%; height: clamp(215px, 34cqh, 340px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, rgba(23,59,69,.08), rgba(233,155,76,.1)); }
.chelation-visual img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(23,59,69,.12)); }
.chelation-visual .zoom-hint { right: 10px; bottom: 9px; }
.chelation-summary { display: flex; align-items: center; justify-content: center; gap: .6cqw; width: 100%; color: var(--muted); font-size: clamp(10px, .86cqw, 14px); font-weight: 700; text-align: center; }
.chelation-summary b { color: var(--orange); font-size: 1.4em; }
.chelation-flow { display: grid; justify-items: center; gap: .05cqh; padding: 1.2cqh 1.1cqw; border-radius: 20px; background: #fff; box-shadow: var(--shadow); font-size: clamp(10px, .91cqw, 15px); text-align: center; }
.chelation-flow p { margin: 0; }
.chelation-flow p:first-child { display: flex; align-items: center; gap: .7em; }
.chelation-flow i { color: var(--orange); font-size: 1.5em; font-style: normal; }
.chelation-flow > span { color: var(--orange); font-size: 1.2em; line-height: .9; }
.down-text { color: var(--danger); font-weight: 900; text-transform: uppercase; }
.why-card { padding: 1.5cqw; border-radius: 20px; background: var(--petrol); color: #fff; }
.why-card h3 { margin-bottom: .7em; color: #ffd19d; font-size: clamp(16px, 1.55cqw, 24px); }
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3cqw; margin: 1.6cqh 0 1.2cqh 7.2cqw; }
.concept-grid article { padding: 1.2cqh 1.25cqw; border-radius: 16px; background: var(--green-light); }
.concept-grid h3 { margin-bottom: .25em; font-size: clamp(12px, 1.05cqw, 17px); text-transform: uppercase; }
.concept-grid p { margin-bottom: 0; color: var(--muted); font-size: clamp(10px, .84cqw, 14px); line-height: 1.2; }
.closing-line { margin: 0 0 0 7.2cqw; font-size: clamp(12px, 1.05cqw, 17px); font-weight: 800; text-align: center; }

.slide-references .slide-header { margin-bottom: 3cqh; }
.reference-list { margin-left: 7.2cqw; padding: 2.7cqh 3cqw; border-left: 5px solid var(--green); border-radius: 0 18px 18px 0; background: #fff; box-shadow: 0 8px 22px rgba(23,59,69,.045); }
.reference-list p { margin: 0 0 1.55em; padding-left: 2.2em; text-indent: -2.2em; color: var(--petrol); font-size: clamp(13px, 1.15cqw, 18px); line-height: 1.48; }
.reference-list p:last-child { margin-bottom: 0; }
.reference-list a { color: var(--green); font-weight: 700; overflow-wrap: anywhere; }
.reference-note { margin: 1.8cqh 0 0 7.2cqw; color: var(--muted); font-size: clamp(10px, .82cqw, 13px); text-align: right; }

.floating-nav { position: fixed; z-index: 25; bottom: 16px; left: 50%; display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid rgba(23,59,69,.14); border-radius: 999px; background: rgba(247,249,248,.9); box-shadow: 0 8px 24px rgba(23,59,69,.13); transform: translateX(-50%); backdrop-filter: blur(10px); }
.floating-nav button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--petrol); font-weight: 800; cursor: pointer; }
.floating-nav button:hover, .floating-nav button:focus-visible { background: var(--green); outline: 3px solid rgba(46,125,110,.22); }
.floating-nav button:disabled { opacity: .32; cursor: default; }
.floating-nav .counter { min-width: 48px; color: var(--petrol); font-size: 13px; font-weight: 800; text-align: center; }
.fullscreen-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.progress { position: fixed; z-index: 30; left: 0; bottom: 0; width: 100%; height: 4px; background: rgba(23,59,69,.12); }
.progress span { display: block; width: 20%; height: 100%; background: linear-gradient(90deg, var(--green), var(--orange)); transition: width .35s ease; }
.image-modal { width: min(88vw, 960px); max-width: 960px; padding: 28px; border: 0; border-radius: 24px; color: #fff; background: rgba(16,32,37,.96); box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.image-modal::backdrop { background: rgba(8,20,24,.82); }
.image-modal img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.image-modal p { margin: 14px 44px 0; color: #eaf4f0; font-size: 16px; text-align: center; }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(23,59,69,.9); font-size: 25px; line-height: 1; cursor: pointer; }
.modal-close:hover, .modal-close:focus-visible { background: var(--green); outline: 3px solid rgba(255,255,255,.25); }

@media (max-width: 900px), (max-height: 650px) {
  .slide { padding: 3.1cqh 4.4cqw 3.5cqh; }
  .lead, .grapefruit-grid, .mechanism-note, .same-food, .mineral-layout, .concept-grid, .closing-line, .reference-list, .reference-note { margin-left: 6.2cqw; }
  .flow-horizontal { border-radius: 16px; }
}

/* En pantallas 2K y 4K, el contenido crece con el lienzo completo. */
@media (min-width: 1800px) and (min-height: 900px) {
  .slide { padding: 4cqw 5.2cqw 4.2cqw; }
  .slide-header { margin-bottom: 1.9cqh; }
  .compact-header { margin-bottom: 1.6cqh; }
  .slide-references .slide-header { margin-bottom: 3cqh; }
  .eyebrow { font-size: 1.05cqw; }
  h1 { font-size: 4.35cqw; }
  h2 { font-size: 3.15cqw; }
  .lead { margin-bottom: 2.8cqh; font-size: 1.42cqw; }
  .section-number { width: 5.4cqw; font-size: 1.55cqw; }

  .brand-row { gap: .9cqw; }
  .logo-frame { height: 8.2cqh; padding: .7cqh .7cqw; border-radius: 1cqw; }
  .logo-wide { width: 20cqw; }
  .logo-square { width: 8.2cqw; }
  .cover-subtitle { font-size: 1.8cqw; }
  .cover-meta { font-size: 1.16cqw; }
  .member-block { max-width: 35cqw; }
  .member-label { font-size: .88cqw; }
  .member-list { gap: 1.3cqw; }
  .member-list span { font-size: 1.03cqw; }
  .online-link { padding: .75cqh 1cqw; font-size: .9cqw; }

  .flow-horizontal { min-height: 24cqh; padding: 2cqw; border-radius: 1.7cqw; }
  .flow-step { font-size: 1.22cqw; }
  .icon-circle { width: 5cqw; }
  .flow-arrow { font-size: 2.3cqw; }
  .food-visual { width: 8.8cqw; height: 8.5cqh; }
  .mechanism-visual { width: 8.8cqw; height: 8.5cqh; }
  .drug-card { border-radius: 1.7cqw; }
  .drug-heading span { font-size: .9cqw; }
  .drug-heading h3 { font-size: 2cqw; }
  .drug-card ul, .why-card ul { font-size: 1.12cqw; }
  .terms p { font-size: .95cqw; }
  blockquote { font-size: 1.35cqw; border-radius: 1.05cqw; }

  .mechanism-card { padding: 1.5cqw 2cqw; border-radius: 1.7cqw; }
  .mechanism-card h3 { font-size: 1.75cqw; }
  .vertical-flow { font-size: 1cqw; }
  .grapefruit-icon { width: 9.4cqw; height: 9.4cqh; }
  .vertical-flow mark { font-size: 1.18cqw; }
  .risk, .mechanism-note { font-size: .86cqw; }
  .same-food { font-size: 1cqw; border-radius: 1.05cqw; }

  .ions span { min-height: 5.2cqh; font-size: 1.12cqw; }
  .chelation-visual { height: 34cqh; border-radius: 1.4cqw; }
  .chelation-summary { font-size: .86cqw; }
  .chelation-flow { font-size: .91cqw; border-radius: 1.55cqw; }
  .why-card { border-radius: 1.55cqw; }
  .why-card h3 { font-size: 1.55cqw; }
  .concept-grid article { border-radius: 1.25cqw; }
  .concept-grid h3 { font-size: 1.05cqw; }
  .concept-grid p { font-size: .84cqw; }
  .closing-line { font-size: 1.05cqw; }

  .reference-list { border-radius: 0 1.4cqw 1.4cqw 0; }
  .reference-list p { font-size: 1.08cqw; }
  .reference-note { font-size: .82cqw; }
  .floating-nav { bottom: .9vw; gap: .4vw; padding: .34vw .45vw; }
  .floating-nav button { width: 2vw; height: 2vw; }
  .floating-nav .counter { min-width: 2.8vw; font-size: .72vw; }
  .fullscreen-button svg { width: 1vw; }
  .progress { height: max(4px, .22vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@page { size: 13.333in 7.5in; margin: 0; }

@media print {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html, body { width: 13.333in; height: auto; overflow: visible; background: #fff; }
  .deck { display: block; width: 13.333in; height: auto; overflow: visible; }
  .slide {
    position: relative !important;
    display: block !important;
    width: 13.333in !important;
    height: 7.5in !important;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .slide-cover { display: grid !important; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .no-print, [data-pdf-hide], .floating-nav, .progress { display: none !important; }
  a { color: inherit; text-decoration: none; }
}
