[hidden] { display: none !important; }

:root {
  --brown: #481918;
  --brown-dark: #210807;
  --cream: #fff8e7;
  --yellow: #ffc100;
  --gold: #ffc100;
}

* { box-sizing: border-box; }

html { background: var(--brown-dark); }

body {
  margin: 0;
  color: var(--cream);
  font-family: "prenton", Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.envelope-intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  min-height: 100svh;
  padding: 24px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 193, 0, .11), transparent 36%),
    linear-gradient(145deg, #080707, #171111 55%, #070606);
  transition: opacity .75s ease 1.35s, visibility 0s linear 2.1s;
}

.envelope-intro.is-open {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro-heading {
  margin-bottom: clamp(30px, 5vh, 58px);
  text-align: center;
  color: #f8e7b0;
  transition: opacity .35s ease, transform .5s ease;
}
.guest-gate {
  width: min(530px, 88vw);
  margin: -25px auto 30px;
  text-align: left;
}
.guest-gate label {
  display: block;
  margin: 0 0 9px 4px;
  color: #d7c9c1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.guest-input-row {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 5px 5px 5px 17px;
  border: 1px solid rgba(255,193,0,.48);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 7px rgba(0,0,0,.38);
}
.guest-input-row > span { color: var(--yellow); font-size: 18px; font-weight: 800; }
.guest-input-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 9px;
  color: white;
  background: transparent;
  font-size: 15px;
}
.guest-input-row input::placeholder { color: #7e7370; }
.guest-input-row button {
  align-self: stretch;
  min-width: 112px;
  border: 0;
  border-radius: 999px;
  color: #321d12;
  cursor: pointer;
  background: linear-gradient(135deg, #ffe269, var(--yellow));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.guest-input-row button:disabled { cursor: wait; opacity: .7; }
.validation-message {
  min-height: 18px;
  margin: 8px 8px 0;
  text-align: center;
  color: #ef9a91;
  font-size: 11px;
}
.is-locked { opacity: .52; filter: grayscale(.7) drop-shadow(0 34px 40px rgba(0, 0, 0, .62)); }
.locked-medallion {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 52%;
  width: clamp(65px, 11vw, 88px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #8a7450;
  border-radius: 50%;
  color: #8a7450;
  background: #262123;
  box-shadow: 0 8px 20px rgba(0,0,0,.5), inset 0 0 0 7px rgba(138,116,80,.08);
  font-size: 24px;
}
.intro-heading span {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.intro-heading h2 {
  margin: 0;
  font-family: "prenton-condensed", "prenton", sans-serif;
  font-size: clamp(28px, 5vw, 45px);
  font-weight: 700;
  line-height: 1.1;
}
.intro-heading p {
  margin: 9px 0 0;
  color: #9f9490;
  font-family: "prenton", sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}
.is-open .intro-heading { opacity: 0; transform: translateY(-12px); }

.envelope-stage {
  perspective: 1300px;
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .62));
}

.envelope {
  position: relative;
  width: min(610px, 88vw);
  aspect-ratio: 1.58 / 1;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.75,.2,1) 1s;
}
.is-open .envelope { transform: translateY(22vh) scale(.88); }

.envelope-back {
  position: absolute;
  inset: 0;
  border: 1px solid #52494a;
  border-radius: 8px;
  background:
    radial-gradient(circle at 40% 20%, rgba(255,255,255,.05), transparent 28%),
    linear-gradient(145deg, #292426, #121011);
}

.letter-preview {
  position: absolute;
  z-index: 1;
  left: 6%;
  right: 6%;
  bottom: 4%;
  height: 88%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8%;
  border-radius: 5px;
  color: var(--brown);
  background: linear-gradient(160deg, #fffaf0, #e9dcc0);
  box-shadow: 0 -5px 20px rgba(0,0,0,.28);
  transition: transform .9s cubic-bezier(.2,.8,.2,1) .48s;
}
.letter-preview img { width: 32%; mix-blend-mode: multiply; }
.letter-preview span {
  margin-top: 12px;
  color: #4a2422;
  font: 700 clamp(12px, 2.2vw, 20px) Georgia, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.is-open .letter-preview { transform: translateY(-62%); }

.envelope-flap {
  position: absolute;
  z-index: 5;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  transform-origin: 50% 0;
  transform: rotateX(0deg);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.055), transparent 30%),
    linear-gradient(145deg, #272224, #0e0c0d);
  transition: transform .8s cubic-bezier(.4,0,.2,1), z-index 0s linear .38s;
  backface-visibility: visible;
}
.envelope-flap::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #75665b, transparent);
}
.is-open .envelope-flap { z-index: 0; transform: rotateX(180deg); }

.envelope-front-left,
.envelope-front-right,
.envelope-front-bottom {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
.envelope-front-left {
  clip-path: polygon(0 0, 55% 55%, 50% 100%, 0 100%);
  background: linear-gradient(120deg, #232022, #100e0f);
}
.envelope-front-right {
  clip-path: polygon(100% 0, 45% 55%, 50% 100%, 100% 100%);
  background: linear-gradient(240deg, #2a2527, #111011);
}
.envelope-front-bottom {
  clip-path: polygon(0 100%, 50% 48%, 100% 100%);
  background: linear-gradient(165deg, #302a2d, #131112 82%);
}

.wax-seal { position: absolute; z-index: 8; left: 50%; top: 52%; width: clamp(96px, 16vw, 126px); aspect-ratio: 1; display: grid; place-items: center; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; color: transparent; cursor: pointer; background-color: transparent; background-image: url("https://gettopizza.com/wp-content/uploads/2026/08/getto-gold-seal-final.png"); background-repeat: no-repeat; background-position: center; background-size: contain; box-shadow: none; filter: drop-shadow(0 10px 10px rgba(0,0,0,.45)) drop-shadow(0 2px 2px rgba(46,22,4,.38)); transition: transform .25s ease, filter .25s ease, opacity .28s ease .08s; }
.wax-seal::before { content: none; }
.wax-seal span { visibility: hidden; }
.wax-seal:hover { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.12); }
.wax-seal:focus-visible { outline: 3px solid white; outline-offset: 6px; }
.is-open .wax-seal { opacity: 0; transform: translate(-50%, -50%) scale(.72); pointer-events: none; }

.invitation-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  gap: clamp(34px, 6vw, 72px);
  padding: 34px 18px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% -20%, #7b3630 0%, transparent 43%),
    linear-gradient(145deg, #210807 0%, #481918 52%, #210807 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px);
  opacity: .18;
  background: var(--yellow);
}
.glow-one { left: -240px; top: 10%; }
.glow-two { right: -250px; bottom: 5%; }

.invitation-card {
  position: relative;
  width: min(760px, 100%);
  padding: 38px clamp(22px, 7vw, 72px) 34px;
  text-align: center;
  border: 1px solid rgba(255, 193, 0, .55);
  border-radius: 34px;
  background: linear-gradient(165deg, rgba(72, 25, 24, .96), rgba(33, 8, 7, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45), inset 0 0 0 7px rgba(255, 255, 255, .025);
}

.confirm-guidance {
  display: flex;
  width: min(430px, 100%);
  margin: 0 auto 28px;
  padding: 10px 12px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 193, 0, .28);
  border-radius: 999px;
  color: #ffe273;
  background: linear-gradient(100deg, rgba(255, 193, 0, .1), rgba(255, 193, 0, .025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.14);
}
.confirm-guidance p {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  margin: 0;
  color: #fff7e0;
  text-align: left;
  font-size: 11px;
  letter-spacing: .025em;
  line-height: 1.25;
}
.confirm-guidance p small {
  margin-bottom: 3px;
  color: #c7a843;
  font-size: 7px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.guidance-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 193, 0, .42);
  border-radius: 50%;
  color: var(--yellow);
  background: rgba(255, 193, 0, .08);
  font-size: 13px;
}
.guidance-arrow {
  width: 28px;
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 18px;
  animation: guidance-bounce 1.8s ease-in-out infinite;
}
@keyframes guidance-bounce {
  0%, 100% { transform: translateY(-2px); opacity: .65; }
  50% { transform: translateY(3px); opacity: 1; }
}

.invitation-card::before,
.invitation-card::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-color: var(--yellow);
  opacity: .7;
}
.invitation-card::before { top: 18px; left: 18px; border-top: 2px solid; border-left: 2px solid; border-radius: 15px 0 0; }
.invitation-card::after { right: 18px; bottom: 18px; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 15px; }

.top-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #f8dd8a;
  font-size: 10px;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.star { color: var(--yellow); font-size: 15px; }

.brand-logo {
  display: block;
  width: min(240px, 58vw);
  height: auto;
  margin: 25px auto 19px;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, .24));
}

.eyebrow {
  margin: 0 0 8px;
  color: #f4d675;
  font: italic 700 16px "prenton", sans-serif;
}

h1 {
  margin: 0;
  color: var(--cream);
  font: 700 clamp(42px, 9vw, 76px)/.93 "prenton-condensed", "prenton", sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 0 5px 25px rgba(0, 0, 0, .22);
}

.intro {
  max-width: 560px;
  margin: 18px auto 25px;
  color: #eadfd5;
  font-size: 15px;
  line-height: 1.65;
}

.event-details {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  align-items: center;
  gap: 25px;
  text-align: left;
}

.date-badge {
  flex: 0 0 auto;
  width: 104px;
  padding: 10px 8px;
  border: 1px solid var(--yellow);
  border-radius: 18px;
  color: var(--yellow);
  text-align: center;
  box-shadow: inset 0 0 25px rgba(255, 193, 0, .06);
}
.date-badge span { display: block; letter-spacing: .18em; font-size: 9px; }
.date-badge strong { display: block; color: white; font: 700 46px/1 "prenton", sans-serif; }
.date-badge .year { color: #f5dd92; }

.detail-copy p { margin: 3px 0; color: #eadfd5; font-size: 13px; }
.detail-copy p span { color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.detail-copy h2 { margin: 6px 0 4px; color: white; font: 700 25px/1.1 "prenton", sans-serif; }

.location-button {
  display: flex;
  width: fit-content;
  min-width: 220px;
  margin-top: 13px;
  padding: 8px 11px 8px 9px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 193, 0, .55);
  border-radius: 999px;
  color: #fff8e7;
  text-decoration: none;
  background:
    radial-gradient(circle at 17% 30%, rgba(255, 193, 0, .15), transparent 28%),
    linear-gradient(125deg, rgba(255,255,255,.07), rgba(0,0,0,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 7px 18px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.location-button:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  background: linear-gradient(125deg, rgba(255,193,0,.18), rgba(0,0,0,.14));
}
.location-button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.location-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 113, .7);
  border-radius: 50%;
  background: rgba(255, 193, 0, .09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.location-pin {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid var(--yellow);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.location-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translate(-50%, -50%);
}
.location-button-copy { display: flex; flex-direction: column; line-height: 1.05; }
.location-button-copy small {
  color: #d5c7bb;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.location-button-copy strong {
  margin-top: 4px;
  color: #ffe273;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.location-arrow { margin-left: auto; color: var(--yellow); font-size: 18px; }

.countdown-wrap {
  margin: 27px auto 24px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 193, 0, .22);
}
.countdown-label { margin: 0 0 12px; color: #e9d9ca; font: italic 700 14px "prenton", sans-serif; }
.countdown { display: flex; justify-content: center; gap: clamp(8px, 3vw, 22px); }
.time-unit { min-width: 58px; }
.time-unit strong { display: block; color: var(--yellow); font: 700 clamp(27px, 6vw, 39px)/1 "prenton", sans-serif; font-variant-numeric: tabular-nums; }
.time-unit span { display: block; margin-top: 5px; color: #d6c6b8; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }

.confirm-button {
  display: flex;
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 16px 21px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd84a, var(--yellow));
  color: #2b1414;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 32px rgba(255, 193, 0, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.confirm-button:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255, 193, 0, .35); }
.confirm-button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.confirm-button span { font-size: 21px; line-height: 0; }

.closing { margin: 15px 0 0; color: #bfaea3; font: italic 700 12px "prenton", sans-serif; }

.roma-experience {
  position: relative;
  width: min(1120px, 100%);
  padding: clamp(24px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 193, 0, .42);
  border-radius: 36px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 193, 0, .11), transparent 25%),
    linear-gradient(145deg, #080808, #15120c 58%, #050505);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 226, 115, .05);
}

.roma-experience::after {
  content: "ROMA";
  position: absolute;
  top: -32px;
  right: 18px;
  z-index: 0;
  color: rgba(255, 193, 0, .035);
  font: 700 clamp(100px, 19vw, 230px)/1 "prenton-condensed", "prenton", sans-serif;
  letter-spacing: -.05em;
  pointer-events: none;
}

.roma-story {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  margin-bottom: clamp(28px, 5vw, 52px);
}

.roma-logo-panel {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 34px 24px 25px;
  border-radius: 28px;
  color: #ddbd54;
  text-align: center;
  border: 1px solid rgba(255, 193, 0, .42);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,193,0,.09), transparent 40%),
    linear-gradient(150deg, #141414, #050505);
  box-shadow: inset 0 0 0 1px rgba(255,226,115,.04), 0 18px 45px rgba(0,0,0,.5);
}

.roma-logo-panel img {
  display: block;
  width: min(330px, 100%);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 8px 24px rgba(255, 255, 255, .12));
}

.roma-logo-panel span {
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.roma-eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.roma-copy h2 {
  max-width: 590px;
  margin: 0 0 20px;
  color: var(--cream);
  font: 700 clamp(40px, 6vw, 70px)/.92 "prenton-condensed", "prenton", sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.roma-copy > p:not(.roma-eyebrow) {
  max-width: 610px;
  margin: 0 0 13px;
  color: #eadfd5;
  font-size: 16px;
  line-height: 1.65;
}

.roma-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.roma-features span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 193, 0, .46);
  border-radius: 999px;
  color: #ffe580;
  background: rgba(255, 193, 0, .07);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.roma-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 205px;
  gap: 12px;
}

.roma-photo {
  position: relative;
  grid-column: span 2;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: #170b0a;
  cursor: zoom-in;
  appearance: none;
}

.roma-photo-wide { grid-column: span 4; grid-row: span 2; }
.roma-photo-detail { grid-column: span 2; grid-row: span 2; }
.roma-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}
.roma-photo:hover img { transform: scale(1.035); filter: saturate(1.08); }
.roma-photo:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.zoom-hint {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,226,115,.72);
  border-radius: 50%;
  color: #171008;
  background: rgba(255,193,0,.9);
  box-shadow: 0 5px 18px rgba(0,0,0,.35);
  font-size: 20px;
}

.final-confirm {
  margin-top: clamp(34px, 6vw, 64px);
  padding: clamp(30px, 5vw, 54px) 20px 8px;
  border-top: 1px solid rgba(255, 193, 0, .3);
  text-align: center;
}
.final-confirm-kicker { color: var(--yellow); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.final-confirm h2 { margin: 8px 0 10px; color: white; font: 700 clamp(38px, 6vw, 62px)/1 "prenton-condensed", "prenton", sans-serif; text-transform: uppercase; }
.final-confirm > p:not(.closing) { margin: 0 auto 23px; color: #cfc2b4; font-size: 14px; }

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
  background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(10px);
  animation: lightbox-in .22s ease both;
}
.photo-lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border: 1px solid rgba(255,193,0,.55); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.7); object-fit: contain; }
.lightbox-close { position: fixed; top: 20px; right: 23px; width: 46px; height: 46px; border: 1px solid rgba(255,193,0,.6); border-radius: 50%; color: var(--yellow); cursor: pointer; background: #111; font-size: 30px; line-height: 1; }
.lightbox-close:focus-visible { outline: 3px solid white; outline-offset: 3px; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

/* Todos los textos secundarios usan la variante Prenton Bold del kit de marca. */
body :where(p, span, label, input, button, a, small, strong) {
  font-family: "prenton", Arial, Helvetica, sans-serif;
  font-weight: 700;
}

@media (max-width: 540px) {
  .invitation-shell { padding: 14px 10px; }
  .invitation-card { border-radius: 25px; padding-top: 31px; }
  .confirm-guidance { margin-bottom: 24px; padding: 8px 10px; gap: 10px; }
  .confirm-guidance p { font-size: 10px; }
  .guidance-icon { width: 31px; height: 31px; }
  .top-line span:not(.star) { max-width: 110px; line-height: 1.4; }
  .event-details { gap: 16px; }
  .date-badge { width: 90px; }
  .date-badge strong { font-size: 39px; }
  .detail-copy h2 { font-size: 21px; }
  .countdown { gap: 2px; justify-content: space-between; }
  .time-unit { min-width: 50px; }
  .guest-gate { margin-top: -14px; margin-bottom: 18px; }
  .guest-input-row { min-height: 50px; padding-left: 13px; }
  .guest-input-row button { min-width: 88px; }
  .roma-experience { padding: 23px 14px 14px; border-radius: 25px; }
  .roma-story { grid-template-columns: 1fr; gap: 26px; }
  .roma-logo-panel { min-height: 230px; padding: 26px 22px 20px; border-radius: 20px; }
  .roma-copy { padding: 0 8px; }
  .roma-copy > p:not(.roma-eyebrow) { font-size: 15px; }
  .roma-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 175px; gap: 8px; }
  .roma-photo, .roma-photo-detail { grid-column: span 1; grid-row: span 1; border-radius: 14px; }
  .roma-photo-wide { grid-column: span 2; grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-intro, .intro-heading, .envelope, .letter-preview, .envelope-flap, .wax-seal {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .guidance-arrow { animation: none; }
}


/* Evita que la onda amarilla del pie de página cubra la tarjeta en celulares. */
@media (max-width: 540px) {
  .invitation-shell {
    padding-bottom: 110px;
  }
}


/* ==========================================================
   AJUSTE RESPONSIVO PROFESIONAL — PC, TABLET Y CELULAR
   ========================================================== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.invitation-shell {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(12px, 3vw, 34px);
}

.invitation-card,
.roma-experience {
  width: min(1120px, 100%);
  max-width: 100%;
  margin-inline: auto;
}

/* Se elimina la palabra decorativa ROMA del fondo. */
.roma-experience::after {
  content: none !important;
  display: none !important;
}

.roma-story,
.roma-copy,
.roma-logo-panel {
  min-width: 0;
}

.roma-copy {
  width: 100%;
}

.roma-eyebrow,
.roma-copy h2,
.roma-copy > p {
  overflow-wrap: anywhere;
}

.roma-copy h2 {
  max-width: 100%;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: .94;
  text-wrap: balance;
}

.roma-copy > p:not(.roma-eyebrow) {
  text-wrap: pretty;
}

.roma-gallery,
.roma-photo,
.roma-photo img {
  max-width: 100%;
}

@media (min-width: 901px) {
  .roma-experience {
    padding: clamp(38px, 4.6vw, 58px);
  }

  .roma-story {
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
    gap: clamp(38px, 5vw, 68px);
  }

  .roma-copy h2 {
    font-size: clamp(46px, 5vw, 68px);
  }
}

@media (min-width: 541px) and (max-width: 900px) {
  .invitation-shell {
    gap: 44px;
  }

  .roma-experience {
    padding: 32px;
    border-radius: 30px;
  }

  .roma-story {
    grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr);
    gap: 30px;
  }

  .roma-logo-panel {
    min-height: 250px;
    padding: 26px 20px;
  }

  .roma-copy h2 {
    font-size: clamp(36px, 6.3vw, 52px);
  }

  .roma-copy > p:not(.roma-eyebrow) {
    font-size: 15px;
  }

  .roma-gallery {
    grid-auto-rows: 180px;
  }
}

@media (max-width: 540px) {
  .invitation-shell {
    gap: 30px;
    padding: 12px 10px 96px;
  }

  .envelope-intro {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  .envelope {
    width: min(610px, 94vw);
  }

  .invitation-card {
    width: 100%;
    padding: 28px 16px 28px;
    border-radius: 24px;
  }

  .invitation-card::before,
  .invitation-card::after {
    width: 42px;
    height: 42px;
  }

  .top-line {
    gap: 7px;
    font-size: 8px;
    letter-spacing: .1em;
  }

  .brand-logo {
    width: min(215px, 62vw);
    margin-block: 21px 16px;
  }

  h1 {
    font-size: clamp(39px, 13vw, 58px);
    line-height: .94;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .intro {
    margin-block: 16px 22px;
    font-size: 14px;
    line-height: 1.55;
  }

  .event-details {
    width: 100%;
    max-width: 340px;
    gap: 14px;
  }

  .date-badge {
    width: 82px;
  }

  .detail-copy {
    min-width: 0;
    flex: 1;
  }

  .location-button {
    width: 100%;
    min-width: 0;
  }

  .countdown {
    width: 100%;
  }

  .time-unit {
    min-width: 0;
    flex: 1 1 25%;
  }

  .roma-experience {
    width: 100%;
    padding: 22px 14px 16px;
    border-radius: 24px;
  }

  .roma-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 28px;
  }

  .roma-logo-panel {
    width: 100%;
    min-height: 210px;
    padding: 24px 18px 20px;
  }

  .roma-logo-panel img {
    width: min(290px, 84%);
  }

  .roma-copy {
    padding-inline: 4px;
    text-align: left;
  }

  .roma-eyebrow {
    margin-bottom: 10px;
    font-size: 9px;
    line-height: 1.45;
    letter-spacing: .14em;
  }

  .roma-copy h2 {
    margin-bottom: 16px;
    font-size: clamp(34px, 11.2vw, 48px);
    line-height: .94;
    letter-spacing: -.025em;
  }

  .roma-copy > p:not(.roma-eyebrow) {
    font-size: 14px;
    line-height: 1.58;
  }

  .roma-features {
    gap: 7px;
    margin-top: 19px;
  }

  .roma-features span {
    padding: 8px 10px;
    font-size: 8px;
    letter-spacing: .06em;
  }

  .roma-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(130px, 42vw, 168px);
    gap: 8px;
  }

  .roma-photo,
  .roma-photo-detail {
    grid-column: span 1;
    grid-row: span 1;
  }

  .roma-photo-wide {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .final-confirm {
    padding-inline: 6px;
  }

  .final-confirm h2 {
    font-size: clamp(34px, 10.5vw, 48px);
  }
}

@media (max-width: 360px) {
  .invitation-card {
    padding-inline: 12px;
  }

  .event-details {
    align-items: flex-start;
    gap: 10px;
  }

  .date-badge {
    width: 74px;
  }

  .location-icon {
    width: 34px;
    height: 34px;
  }

  .roma-experience {
    padding-inline: 10px;
  }

  .roma-copy h2 {
    font-size: 33px;
  }
}


/* Ajuste responsive del encabezado de la invitación */
@media (max-width: 600px) {
  .top-line {
    width: calc(100% - 24px);
    max-width: 100%;
    margin-inline: auto;
    padding: 10px 12px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: visible;
  }

  .top-line-item {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-align: center;
    line-height: 1.25;
  }

  .top-line .star {
    flex: none;
    margin: 0;
  }
}

@media (max-width: 360px) {
  .top-line {
    width: calc(100% - 16px);
    padding-inline: 8px;
    gap: 5px;
  }

  .top-line-item {
    font-size: 8px;
    letter-spacing: .08em;
  }
}


/* Corrección: unión limpia entre el campo y el botón Validar. */
.guest-input-row {
  padding-right: 0;
  overflow: hidden;
}
.guest-input-row button {
  margin-block: -5px;
  min-height: 54px;
  border-radius: 0 999px 999px 0;
  padding-inline: 22px;
}


/* Corrección: elimina la esquina oscura sobre la casilla de confirmación. */
.confirm-guidance {
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background: #652415;
}


/* Rediseño móvil elegante: composición limpia, sin esquinas decorativas. */
.invitation-card::before,
.invitation-card::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 600px) {
  .invitation-card {
    padding: 24px 18px 30px;
    border: 0;
    border-radius: 20px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,193,0,.07), transparent 32%),
      linear-gradient(180deg, #511b19 0%, #2b0c0b 100%);
    box-shadow: 0 22px 55px rgba(19,5,4,.36);
  }

  .confirm-guidance {
    width: 100%;
    min-height: 64px;
    margin: 0 auto 30px;
    padding: 11px 14px;
    gap: 12px;
    border: 0;
    border-radius: 14px;
    overflow: visible;
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 0 0 1px rgba(255,193,0,.24);
  }

  .guidance-icon {
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(255,193,0,.12);
    font-size: 15px;
  }

  .confirm-guidance p {
    font-size: 13px;
    line-height: 1.22;
    letter-spacing: 0;
  }

  .confirm-guidance p small {
    margin-bottom: 4px;
    font-size: 8px;
    letter-spacing: .16em;
  }

  .guidance-arrow {
    width: 20px;
    font-size: 21px;
  }

  .top-line {
    width: 100%;
    padding: 0 2px;
    gap: 10px;
    color: #f5d977;
    font-size: 9px;
    letter-spacing: .11em;
  }

  .top-line-item {
    line-height: 1.3;
    text-wrap: balance;
  }
}

/* Encabezado móvil compacto */
@media (max-width: 600px) {
  .top-line {
    width: fit-content !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding: 0 !important;
    grid-template-columns: auto auto auto !important;
    gap: 6px !important;
  }
}


/* Ajuste final: frases del encabezado realmente juntas en celular. */
@media (max-width: 600px) {
  .top-line {
    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100% - 8px) !important;
    grid-template-columns: none !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 0 !important;
    margin-inline: auto !important;
  }

  .top-line-item,
  .top-line span:not(.star) {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 8px !important;
    line-height: 1 !important;
    letter-spacing: .055em !important;
  }

  .top-line .star {
    margin: 0 1px !important;
    line-height: 1 !important;
  }
}
