﻿:root {
    --paper: #fffdfb;
    --ink: #333033;
    --muted: #6e6769;
    --gold: #c4ab7d;
    --gold-dark: #a78d5e;
    --rose: #9b4560;
    --wine: #916461;
    --date-rose: #916461;
    --sage: #78845f;
    --line: rgba(196, 171, 125, 0.45);
    --shadow: 0 22px 50px rgba(46, 35, 28, 0.18);
    --font-script: "Parisienne", "Cormorant Garamond", Georgia, serif;
    --font-title: "Cormorant Garamond", Georgia, serif;
    --font-text: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f0ece7;
  font-family: var(--font-text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.invitation {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 60px rgba(48, 39, 33, 0.2);
}

.envelope-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  touch-action: pan-y;
}

.envelope-image {
  display: block;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center top;
}

.seal-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  color: #fff;
  background: radial-gradient(circle, #caaa73 0 58%, #b28c50 60% 100%);
  box-shadow: 0 8px 20px rgba(86, 55, 28, 0.26);
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 700;
}

.invitation-content[hidden],
[hidden] {
  display: none !important;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 86px 30px 84px;
  color: var(--wine);
  text-align: center;
  background: url("../images/fondo.jpg") center / cover;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
}

.wedding-kicker,
.for-label,
.admission-label,
.people-label {
  margin: 0;
  color: var(--wine);
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wedding-kicker {
  font-size: clamp(1.25rem, 4.8vw);
}

.ornament-line {
  width: min(78%, 330px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--gold-dark);
}

.ornament-line::before,
.ornament-line::after {
  content: "";
  height: 1px;
  background: var(--gold-dark);
}

.ornament-line span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
}

.invite-message {
  max-width: 330px;
  margin: 6px 0 10px;
  color: var(--wine);
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 4.1vw);
  font-weight: 600;
  line-height: 1.42;
}

.for-label {
  position: relative;
  margin-top: 2px;
  color: var(--gold-dark);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
}

.wedding-biblie {
    max-width: 340px;
    margin: 18px 0 0;
    color: var(--gold);
    font-family: var(--font-script);
    font-size: clamp(2rem, 6.6vw) !important;
    line-height: 1.22;
}

.hero-copy h1 {
    font-family: var(--font-script);
    font-size: clamp(3.5rem, 13vw, 4.25rem);
    font-weight: 400;
    line-height: 0.98;
    color: var(--gold);
    max-width: 100%;
    margin: 0 auto;
}

.admission {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.ampersand {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  margin: 4px auto 0;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-family: var(--font-title);
  font-size: 2.35rem;
}

.admission-label {
  margin-top: 6px;
  font-size: clamp(0.98rem, 4vw, 1.28rem);
}

.guest-count {
  color: var(--gold-dark);
  font-family: var(--font-title);
  font-size: clamp(3.3rem, 13vw, 4.25rem);
  line-height: 0.88;
}

.people-label {
  color: var(--wine);
  font-size: clamp(0.98rem, 4vw, 1.28rem);
}

.closing-note {
  max-width: 340px;
  margin: 18px 0 0;
  color: var(--wine);
  font-family: var(--font-script);
  font-size: clamp(1.65rem, 6.6vw, 2.35rem) !important;
  line-height: 1.22;
}

.hero-copy h2,
.gallery-section h2,
.info-card h2,
.event-card h2,
.modal-card h2,
.confirmation-section h2,
.closing-section h2 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 700;
}

.hero-copy h2 {
  color: #fff;
  font-family: var(--font-script);
  font-size: clamp(3.8rem, 15vw, 6.2rem);
  font-weight: 400;
  line-height: 0.96;
  max-width: 100%;
  overflow-wrap: normal;
}

.hero-copy > p:last-child {
  margin: 34px 0 0;
  font-size: 1.25rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 34px;
  height: 34px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateX(-50%) rotate(45deg);
}

.flower-frame {
  position: relative;
  min-height: 72vh;
  padding: 150px 26px;
  display: grid;
  place-items: center;
  text-align: center;
  background: url("../images/fondo.jpg") center / cover;
}

.flower-frame::before,
.flower-frame::after {
  content: none;
}

.countdown-section {
  min-height: 62vh;
  align-content: center;
  gap: 18px;
}

.countdown-section .section-kicker {
  font-size: clamp(4rem, 17vw, 5rem);
}

.countdown-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 10px 0 28px;
}

.countdown-grid div {
  min-width: 0;
  padding: 0 8px;
  border-right: 1px solid var(--line);
}

.countdown-grid div:last-child {
  border-right: 0;
}

.countdown-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 13vw, 4.5rem);
  line-height: 1;
}

.countdown-grid span {
  display: block;
  color: var(--wine);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
}

.heart-mark {
  color: var(--gold);
  font-size: clamp(2rem, 8.5vw, 2.9rem);
  line-height: 1;
}

.love-strip {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(10px, 3vw, 18px);
  margin-top: 0;
  padding: 8px 0 0;
}

.love-strip img {
  display: block;
  width: 100%;
  height: clamp(30px, 8.5vw, 46px);
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(69, 40, 48, 0.16));
}

.love-strip img:nth-child(2) {
  transform: translateY(2px) scale(1.12);
}

.event-stack {
  display: grid;
  gap: 28px;
  padding: 34px 18px;
  background:
    linear-gradient(rgba(33, 31, 31, 0.6), rgba(33, 31, 31, 0.6)),
    url("../images/fondo.jpg") center / cover fixed;
}

.info-stack {
  padding-top: 28px;
  padding-bottom: 28px;
  gap: 28px;
}

.event-card,
.info-card,
.modal-card,
.not-found-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 251, 0.96);
  box-shadow: var(--shadow);
}

.event-card {
  --event-card-x: clamp(16px, 5vw, 24px);
  min-width: 0;
  padding: 86px var(--event-card-x) 62px;
  margin: 0 auto;
  text-align: center;
  background: url("../images/fondo.jpg") center / cover;
}

.event-icon,
.line-icon {
  color: var(--gold);
  font-size: 4rem;
  line-height: 1;
}

.fa-note,
.fa-clef,
.dress-icon,
.gift-icon,
.checklist-icon {
  display: inline-grid;
  place-items: center;
}

.fa-note svg,
.fa-clef svg,
.dress-icon svg,
.gift-icon svg,
.checklist-icon svg {
  fill: currentColor;
}

.fa-note svg {
  width: 0.78em;
  height: 0.78em;
}

.fa-clef svg {
  width: 1.25em;
  height: 1em;
}

.dress-icon svg {
  width: 1.35em;
  height: 1em;
  fill: none;
}

.dress-icon .dress-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift-icon svg {
  width: 1em;
  height: 1em;
  fill: none;
}

.gift-icon .gift-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checklist-icon svg {
  width: 1em;
  height: 1em;
  fill: none;
}

.checklist-icon .checklist-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-icon-image {
  display: block;
  width: min(88%, 390px);
  height: 72px;
  margin: 0 auto;
  object-fit: contain;
}

.event-icon-blend {
  mix-blend-mode: multiply;
}

.event-icon-round {
  width: 118px;
  height: 118px;
}

.event-card h2 {
  max-width: 100%;
  margin-top: 8px;
  font-size: clamp(2.35rem, 10.8vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.event-date {
  margin: 22px calc(var(--event-card-x) * -1) 22px;
  padding: 20px var(--event-card-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-date > span {
  display: block;
  color: var(--date-rose);
  font-family: var(--font-title);
  font-size: clamp(2rem, 9vw, 2.55rem);
  font-weight: 700;
  text-transform: uppercase;
}

.event-date > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(6px, 3vw, 12px);
  margin: 10px 0;
}

.event-date small {
  display: block;
  min-width: 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid transparent;
  padding-top: 8px;
  color: var(--date-rose);
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 7vw, 2.1rem);
  font-weight: 700;
  text-transform: uppercase;
}

.event-date strong {
  color: var(--date-rose);
  font-family: var(--font-title);
  font-size: clamp(4rem, 18vw, 5.4rem);
  line-height: 0.82;
}

.event-card h3 {
  margin: 0 0 26px;
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 5.6vw, 1.8rem);
  line-height: 1.15;
}

.gold-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 320px);
  border: 0;
  border-radius: 12px;
  padding: 14px 24px;
  color: #fff;
  background: var(--gold);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gold-button:hover {
  color: #fff;
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.info-card,
.upload-section,
.confirmation-section,
.closing-section {
  margin: 0;
  padding: 70px 28px;
  text-align: center;
}

.info-card h2,
.modal-card h2,
.confirmation-section h2 {
  font-size: clamp(3.2rem, 14vw, 3rem);
}

.event-card.info-card p,
.modal-card p,
.upload-section p,
.confirmation-section p {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.55;
}

.event-card.info-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: auto;
  padding: 96px 24px 80px;
}

.event-card.info-card h2 {
  margin-top: 0;
  font-size: clamp(3rem, 13vw, 4.2rem);
  line-height: 0.95;
  text-transform: none;
}

.event-card.info-card p {
  max-width: 360px;
  margin: 0;
}

.info-grid {
  display: grid;
  gap: 16px;
  padding: 26px 18px 42px;
  background: #f8f5f1;
}

.info-tile {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
}

.info-tile span {
  display: block;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
}

.info-tile strong {
  display: block;
  margin-top: 6px;
  font-weight: 500;
}

.upload-section {
  color: var(--wine);
  background: url("../images/fondo.jpg") center / cover;
  padding-top: 116px;
  padding-bottom: 116px;
}

.upload-section h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 14vw, 3.4rem);
  line-height: 0.95;
}

.upload-section p {
  color: var(--wine);
  font-weight: 500;
}

.qr-link {
  width: min(72vw, 270px);
  aspect-ratio: 1;
  display: block;
  margin: 26px auto;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.qr-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-divider {
  width: min(100%, 330px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 28px auto 10px;
  color: var(--gold-dark);
}

.upload-divider::before,
.upload-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.upload-divider span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
}

.upload-form {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.upload-form input[type="file"] {
  width: min(100%, 330px);
  padding: 12px;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

.confirmation-section {
  min-height: 58vh;
  align-content: center;
  gap: 22px;
  padding-top: 150px;
  padding-bottom: 150px;
}

.closing-section {
  align-content: center;
  gap: 20px;
  min-height: 92vh;
  padding-top: 160px;
  padding-bottom: 160px;
}

.closing-section h2 {
  font-family: var(--font-script);
  font-size: clamp(3.05rem, 12vw, 4.85rem);
  font-weight: 400;
  line-height: 0.98;
  max-width: 100%;
  margin: 0 auto;
}

.closing-section h2 span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 10px 0 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--rose);
  font-family: var(--font-title);
  font-size: 2.25rem;
}

.closing-section p {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 700;
  margin: 0;
}

.family-grid {
  width: 100%;
  display: grid;
  gap: 30px;
  margin-top: 8px;
}

.family-block {
  display: grid;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.family-block h3 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.family-row {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
}

.family-block p {
  color: var(--wine);
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 5.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 22, 23, 0.62);
}

.modal-card {
  position: relative;
  max-width: 500px;
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 54px 26px 34px;
  text-align: center;
}

.large-modal {
  max-width: 620px;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  color: #9a938b;
  background: transparent;
  font-size: 2.5rem;
  line-height: 1;
}

.modal-card iframe {
  width: 100%;
  height: 260px;
  margin: 12px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ajax-form {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.ajax-form input:not([type="file"]) {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 8px;
  color: var(--ink);
  background: transparent;
  text-align: center;
}

.ajax-form output {
  min-height: 24px;
  color: var(--sage);
  font-size: 0.95rem;
}

.tips-list {
  display: grid;
  gap: 18px;
  padding-left: 22px;
  color: var(--muted);
  text-align: left;
  font-size: 1.08rem;
  line-height: 1.55;
}

.palette-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.palette-row span {
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.gift-qr-image {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 14px auto 0;
  border-radius: 10px;
  background: #fff;
}

.not-found-card {
  max-width: 520px;
  min-height: 80vh;
  display: grid;
  align-content: center;
  margin: 8vh auto;
  padding: 44px 28px;
  text-align: center;
}

.not-found-card h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 3.4rem;
}

@media (min-width: 720px) {
  .invitation {
    margin: 32px auto;
    border-radius: 30px;
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

