/* ── REVISTA (flipbook) ── */
.revista-section { background: #fff; padding: 72px 20px 64px; }
.revista-header { text-align: center; margin-bottom: 32px; }
.revista-header h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  color: #1a3a1a; margin: 0 0 14px; letter-spacing: -0.5px;
}
.revista-header h2 span { color: #4a7a3e; }
.revista-header p { color: #6a7c6a; font-size: 16px; max-width: 520px; margin: 0 auto; }

.revista-viewer { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.revista-stage { width: 100%; display: flex; justify-content: center; align-items: center; min-height: 200px; }
.revista-book-wrap { flex: none; filter: drop-shadow(0 18px 30px rgba(26, 58, 26, 0.18)); transition: transform 0.6s ease; }
.revista-page { background: #fff; overflow: hidden; }
.revista-page img {
  width: 100%; height: 100%; display: block; object-fit: contain; background: #fff;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.revista-loading { color: #6a7c6a; font-size: 14px; }

.revista-toolbar { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 22px; }
.revista-toolbar button {
  appearance: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid #b8d9af; background: #fff; color: #1a3a1a;
  display: grid; place-items: center; transition: all 0.2s; touch-action: manipulation; font-family: inherit;
}
.revista-toolbar button:hover { background: #4a7a3e; border-color: #4a7a3e; color: #fff; }
.revista-toolbar button:focus-visible { outline: 2px solid #4a7a3e; outline-offset: 2px; }
.revista-toolbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.revista-counter { min-width: 76px; text-align: center; font-size: 14px; font-weight: 700; color: #1a3a1a; font-variant-numeric: tabular-nums; }
.revista-hint { margin: 10px 0 0; font-size: 12.5px; color: #6a8a6a; text-align: center; }
.revista-expand .icon-close { display: none; }

/* Expanded: the viewer takes the whole screen (works on iPhone too, no Fullscreen API needed) */
.revista-viewer.is-expanded {
  position: fixed; inset: 0; z-index: 100000; max-width: none; margin: 0;
  background: #101a12;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(10px + env(safe-area-inset-bottom, 0px));
}
.revista-viewer.is-expanded .revista-stage { flex: 1; min-height: 0; }
.revista-viewer.is-expanded .revista-book-wrap { filter: none; }
.revista-viewer.is-expanded .revista-toolbar { padding-top: 10px; }
.revista-viewer.is-expanded .revista-toolbar button { background: #1f2e22; border-color: #34503a; color: #e6ece5; }
.revista-viewer.is-expanded .revista-toolbar button:hover { background: #4a7a3e; border-color: #4a7a3e; }
.revista-viewer.is-expanded .revista-counter { color: #e6ece5; }
.revista-viewer.is-expanded .revista-hint { display: none; }
.revista-viewer.is-expanded .revista-expand .icon-open { display: none; }
.revista-viewer.is-expanded .revista-expand .icon-close { display: block; }
body.revista-lock { overflow: hidden; }

@media (max-width: 768px) {
  .revista-section { padding: 56px 12px 48px; }
  .revista-header { margin-bottom: 22px; }
  .revista-header p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .revista-toolbar button, .revista-book-wrap { transition: none; } }
