/* El acceso comercial inicial conserva su propio margen sobre la impresión. */
.flap-top .print-head { top: max(68px, calc(env(safe-area-inset-top) + 62px)); }
/* Mérida · Galería de cal y bronce */
:root {
  --merida-relief: url("/modelos/merida/assets/web/pasta-relief-008.webp");
  --merida-arcade: url("/modelos/merida/assets/web/arcade-008.svg");
  --studio-font: Manrope, system-ui, sans-serif;
  --studio-rail: linear-gradient(105deg, #d9d8c7ed, #f7f1e5bf 60%, #b0b9a5b0), var(--merida-relief) center 10% / 650px auto;
}
.flap-top .face.out {
  background: linear-gradient(170deg, #fdf7e952, #c7bca37d), var(--merida-relief) center 24% / cover;
}
.flap-bottom .face.out {
  background: linear-gradient(175deg, #ebdfc874, #ded0b690), var(--merida-relief) center 87% / cover;
}
.flap-left .face.out { background: linear-gradient(115deg, #495c4d, #2e4437 65%, #273b31); }
.flap-right .face.out { background: linear-gradient(248deg, #506251, #34483b 72%, #26392f); }
:is(.flap-left, .flap-right) .face.out::before {
  background: var(--merida-arcade) center / clamp(56px, 9vw, 104px);
  opacity: .57;
}
.face.in {
  background: var(--merida-arcade) center / 86px, radial-gradient(ellipse at 48% 80%, #536453, #263c30 80%);
}
.patio :is(.emboss, .lining-sprig) { display: none; }
.flap-top .print-to {
  font-size: clamp(10px, 1.5vw, 15px);
  color: #3d4638;
  text-shadow: 0 1px #fff6e4;
}
.patio .print-date { color: #594530; }
.patio .print-foot { color: #493c31; }
.patio .seal {
  border-radius: 50%;
  background: conic-gradient(from 35deg, #e8c797, #85633a, #d0ac75, #f5dbad, #80613c, #e8c797);
  box-shadow: inset 0 0 0 2px #e8c393, inset 0 0 0 4px #9a754c, 0 6px 12px #1b1b16ad;
}
.patio .seal::before {
  inset: 6px;
  background: radial-gradient(ellipse at 37% 23%, #62745c, #344d3c 56%, #1b3026);
  box-shadow: inset 0 1px 2px #d7d7b886, inset 0 -3px 4px #172720bd;
}
.patio .seal::after { animation: none; }
.patio .seal img {
  width: 86%;
  height: 86%;
  position: relative;
  filter: drop-shadow(0 1px 1px #181e14);
}
.patio .seal-hint {
  left: 50%;
  right: auto;
  translate: -50% 0;
  white-space: nowrap;
  color: #fff4db;
  background: #203029ee;
  border-radius: 4px;
  padding: 5px 8px;
}

.hero { isolation: isolate; }
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 16px;
  border: 1px solid #f3dfb090;
  border-radius: 48% 48% 2px 2px / 12% 12% 2px 2px;
  pointer-events: none;
}
.hero-copy { z-index: 3; }
.hero-copy .eyebrow { text-shadow: 0 1px 7px #18251f; }
.hero h1 { text-shadow: 0 2px 24px #12221978; }

.experience section:not(.hero) { scroll-margin-top: 12px; }
.experience .folio {
  color: #755f43;
  font-weight: 600;
  letter-spacing: .17em;
}
.experience .folio::before {
  content: "";
  display: inline-block;
  width: 29px;
  height: 8px;
  margin-inline-end: 9px;
  border-block: 1px solid currentColor;
  transform-origin: left center;
  vertical-align: 1px;
  opacity: .64;
}
.intro.paper {
  background: linear-gradient(120deg, #f7f3e9e5, #eee9debd), var(--merida-relief) center / cover;
}
.intro .sprig { display: none; }
.intro .date-medallion {
  border-radius: 48% 48% 4px 4px;
  box-shadow: 0 0 0 4px #f7f3e9, 0 0 0 5px #9d805775;
}
.countdown-section.paper {
  border-top: 8px double #a7916a77;
  background: linear-gradient(180deg, #eee9debb, #f7f3e9f2 34%), var(--merida-relief) center 8% / cover;
}
.countdown-grid > div {
  border-radius: 48% 48% 3px 3px;
  box-shadow: inset 0 0 0 2px #f7f3e9, inset 0 0 0 3px #9d80574a;
  background: #faf5ea;
}
.photo-frame {
  border-radius: 48% 48% 2px 2px / 14% 14% 2px 2px;
  outline: 1px solid #a88b60;
  outline-offset: 5px;
}
.venue-panel {
  background: linear-gradient(155deg, #344a3c, #203029);
  color: #f7f3e9;
  box-shadow: inset 0 0 0 7px #203029, inset 0 0 0 8px #bda87b70;
}
.venue-panel :is(.folio, .overline, dt, .venue-note) { color: #eddbb9; }
.venue-panel .venue-map-link {
  color: #f7f3e9;
  border-color: #dfc395;
}
.venue-panel .venue-map-link:hover { color: #203029; background: #f0e0c5; }
.romance-copy { text-shadow: 0 1px 12px #14251d; }
.romance::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #f0e0bd8a;
  pointer-events: none;
}
.details.paper { border-block: 1px solid #aa90655c; }
.detail-photo { border-radius: 48% 48% 3px 3px / 12% 12% 3px 3px; outline: 1px solid #a98f66; outline-offset: 4px; }
.program { border-inline-start: 1px solid #ad956e; padding-inline-start: 11px; }
.program time { color: #654c30; font-variant-numeric: tabular-nums; }
.dinner.paper {
  background: linear-gradient(#f7f3e9dc, #f7f3e9ed), var(--merida-relief) center / cover;
}
.gifts { border-block: 7px double #aa8c5f73; }
.rsvp .folio { color: #f3dec1; }
.rsvp-inner { border-inline: 1px solid #ac9a744d; padding-inline: clamp(12px, 4vw, 44px); }
.rsvp form { box-shadow: 0 10px 23px -20px #13241b; }
.wishes.paper {
  background: linear-gradient(165deg, #f7f3e9e6, #eee9deef), var(--merida-relief) center / cover;
}
.wishes input, .wishes textarea { background-color: #fcf7ee; }
.experience footer {
  background: linear-gradient(#203029e6, #18251ff0), var(--merida-arcade) center / 88px;
  color: #f7f3e9;
}
.motion .folio.is-in::before { animation: merida-rule 560ms ease-out both; }
@keyframes merida-rule { from { scale: .3 1; opacity: .14; } to { scale: 1; opacity: .64; } }
@media (prefers-reduced-motion: reduce) {
  .motion .folio.is-in::before { animation: none; }
}
@media (max-width: 560px) {

  .hero::after, .romance::after { inset: 8px; }
  .rsvp-inner { padding-inline: 12px; }
}
