/* Palette (from the reference template): rose #DEA8AB · gold #B4A180 / #AE9366 / #CEB690 · blush #FFF2F4 · ink #191919 */
@font-face {
  font-family: 'Font Awesome 5 Free';
  src: url('../../assets/fonts/fa-solid-900.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: block;
}
/* Uses the licensed "High Spirited" font when installed on the device; otherwise the Mea Culpa fallback. */
@font-face {
  font-family: 'high_spirited';
  src: local('High Spirited'), local('High-Spirited');
  font-display: swap;
}

:root {
  --rose: #DEA8AB;
  --gold: #B4A180;
  --gold-dark: #AE9366;
  --gold-light: #CEB690;
  --blush: #FFF2F4;
  --ink: #191919;
  --script: 'high_spirited', 'Mea Culpa', cursive;
  --serif: 'Lora', Georgia, serif;
  --col: 500px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--serif); color: var(--ink); background: #FEF7F8; letter-spacing: .5px; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; height: 100vh; }
[v-cloak] { display: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, p { margin: 0; }

.fa { font-family: 'Font Awesome 5 Free'; font-weight: 900; font-style: normal; display: inline-block; line-height: 1; }
.fa-xl { font-size: 60px; color: #2D2D2D; margin-bottom: 8px; }
.fa-bounce { animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Typography ---------- */
.t-script { font-family: var(--script); font-weight: 400; line-height: 1.05; text-align: center; }
.t-script--hero { font-size: clamp(55px, 17vw, 70px); color: #fff; margin: 28px 0 24px; }
.t-script--lg { font-size: clamp(42px, 13vw, 60px); }
.t-script--md { font-size: clamp(34px, 10.5vw, 45px); color: var(--ink); }
.t-serif { font-size: 19px; line-height: 1.5; letter-spacing: 1px; text-align: center; }
.t-serif--lg { font-size: 21px; color: #000; }
.t-serif--sm { font-size: 16px; }
.t-serif--caps { text-transform: uppercase; font-weight: 500; font-size: 15px; line-height: 1.7; letter-spacing: 2px; }
.t-label { font-family: var(--serif); font-size: clamp(18px, 5.6vw, 28px); font-weight: 500; text-transform: uppercase; letter-spacing: 3px; color: #fff; text-align: center; }
.t-white { color: #fff; }

.col { width: 100%; max-width: var(--col); margin: 0 auto; }

/* ---------- Envelope ---------- */
.envelope { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; background: #FEF7F8; overflow: hidden; transition: background-color .9s .25s; }
.envelope__sheet { position: relative; width: min(var(--col), 100%); perspective: 1400px; }
.envelope__part { display: block; width: 100%; height: auto; box-shadow: none; transition: transform 1.3s cubic-bezier(.65, 0, .25, 1), opacity 1s .35s; will-change: transform; }
/* The envelope image is split at the wax seal (~68% of its height): the top lifts away, the bottom drops. */
.envelope__part--top { clip-path: inset(0 0 32% 0); transform-origin: 50% 68%; }
.envelope__part--bottom { position: absolute; inset: 0 auto auto 0; clip-path: inset(68% 0 0 0); }
.envelope__sheet::before { content: ''; position: absolute; inset: 0; box-shadow: 0 0 10px rgba(0, 0, 0, .5); transition: opacity .4s; pointer-events: none; }
/* Invisible hit area over the wax seal, as in the template's hidden "ABRIR" button. */
.envelope__seal { position: absolute; left: 49.5%; top: 68%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; z-index: 2; }
.envelope__seal:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.envelope.is-opening { background-color: transparent; pointer-events: none; }
.envelope.is-opening .envelope__sheet::before { opacity: 0; }
.envelope.is-opening .envelope__part--top { transform: translateY(-78%) rotateX(32deg); opacity: 0; }
.envelope.is-opening .envelope__part--bottom { transform: translateY(46%); opacity: 0; }
.envelope.is-gone { display: none; }
@media (prefers-reduced-motion: reduce) { .envelope, .envelope__part { transition-duration: .01s; transition-delay: 0s; } }

/* Elementor bounds every section after the hero to a centred 500px column. */
.sheet { max-width: var(--col); margin: 0 auto; overflow-x: clip; border-left: 1px solid var(--gold); border-right: 1px solid var(--gold); }

/* ---------- Scroll animations (Elementor-equivalent) ---------- */
.anim { opacity: 0; animation-duration: 1.25s; animation-fill-mode: both; animation-timing-function: ease; }
.anim.is-in { opacity: 1; }
.anim--fadeIn.is-in { animation-name: fadeIn; }
.anim--fadeInUp.is-in { animation-name: fadeInUp; }
.anim--fadeInDown.is-in { animation-name: fadeInDown; }
.anim--fadeInLeft.is-in { animation-name: fadeInLeft; }
.anim--fadeInRight.is-in { animation-name: fadeInRight; }
.anim--zoomIn.is-in { animation-name: zoomIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .anim { opacity: 1; animation: none !important; } .fa-bounce { animation: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: #000; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .5)), url('../../assets/photo-03.jpeg') center 70% / cover; opacity: .96; }
.hero__inner { position: relative; width: 100%; max-width: var(--col); padding: 100px 50px; text-align: center; }
.hero__scroll { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.hero__scroll .fa { font-size: 22px; }

/* ---------- Quote ---------- */
.quote { background: var(--rose); }
.quote .col { padding: 120px 70px 100px; }
.quote__body p { color: #fff; font-size: 19px; line-height: 2; letter-spacing: 1px; text-align: center; margin-bottom: 18px; }
.divider { margin-top: 26px; text-align: center; color: #fff; font-size: 19px; letter-spacing: 1px; }
.divider--icon { display: flex; justify-content: center; }
.divider--icon .fa { font-size: 20px; }
.divider--dark { color: #000; margin-top: 28px; }

/* ---------- Paper sections ---------- */
.paper { background: #f4e2e0 url('../../assets/paper-blush.png') center / cover; }
.parents { padding: 0; }
.parents .col, .date-card .col { padding: 70px 30px; }
.card { text-align: center; }
.card--double { border: 2px double var(--gold); padding: 40px 30px; }
.card--double .t-script--md { margin: 0 0 14px; }
.card--double h2:first-child { margin-bottom: 30px; }
.card--double h3 { margin-top: 36px; }
.card--double .t-serif { margin-top: 6px; }
.card--double h2:last-child { margin-top: 36px; }
.card--plain { padding: 40px 20px 70px; }
.date-card { padding-bottom: 20px; }
.date-card .col { padding-top: 40px; }

/* ---------- Countdown ---------- */
.countdown { position: relative; background: #000; text-align: center; overflow: hidden; }
.countdown__bg { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .65)), url('../../assets/photo-01.jpeg') center / cover; }
.countdown__inner { position: relative; max-width: var(--col); margin: 0 auto; padding: 120px 15px; }
.countdown__grid { display: flex; justify-content: center; gap: 4%; max-width: 75%; margin: 24px auto; color: #fff; }
.countdown__grid > div { flex: 1; display: flex; flex-direction: column; align-items: center; }
.countdown__grid strong { font-size: 35px; font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.countdown__grid span { font-size: 14px; text-transform: uppercase; line-height: 30px; letter-spacing: 2px; }

/* ---------- Where & when ---------- */
.where { padding: 80px 0 70px; }
.where > h2 { color: #000; letter-spacing: 1px; padding: 0 30px 30px; }
.where__photo, .where__card { max-width: var(--col); margin: 0 auto; }
.where__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.where__card { padding: 40px 30px 60px; text-align: center; }
.where__card h2 { color: var(--ink); letter-spacing: .5px; margin-bottom: 22px; }
.where__card .t-serif { margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; margin-top: 26px; padding: 14px 28px; border: 0; border-radius: 0; font-family: var(--serif); font-size: 17px; text-transform: uppercase; letter-spacing: 4px; color: #fff; text-decoration: none; cursor: pointer; transition: filter .25s, transform .25s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--rose { background: var(--rose); }
.btn--gold { background: var(--rose); }

/* ---------- Gold sections ---------- */
.gold { background: #FEF7F8 url('../../assets/fondo-dorado.png') center top / 100% auto repeat-y; }

.rsvp { padding: 30px; }
.rsvp__card { max-width: var(--col); margin: 0 auto; background: var(--blush); box-shadow: -10px 10px 10px rgba(0, 0, 0, .6); padding: 50px 30px; text-align: center; }
.rsvp__card > h2.t-script { color: #000; letter-spacing: 1px; }
.rsvp__name { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.3; letter-spacing: .5px; margin: 8px 0 26px; }
.rsvp__title { font-size: 21px; font-weight: 400; margin-bottom: 10px; }
.rsvp__result { font-size: 18px; line-height: 1.4; letter-spacing: 1px; }
.field { display: block; text-align: left; margin-bottom: 18px; }
.field > span:first-child { display: block; font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; background: #fff; border: 1px solid #d8cfc8; border-radius: 0; padding: 12px 14px; font: 400 17px var(--serif); color: #000; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.field textarea { resize: vertical; }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 38px; }
.select .fa { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #9b2c3a; font-size: 15px; margin: 4px 0 0; }
.rsvp .btn { width: 100%; margin-top: 14px; }

.finder__hint { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: #6f5a5c; text-align: left; }
.finder__list { list-style: none; margin: 12px 0 0; padding: 0; text-align: left; }
.finder__list li + li { margin-top: 8px; }
.finder__list button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #ead6d8; border-radius: 0; background: #fff; font: 400 17px var(--serif); color: #000; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.finder__list button:hover, .finder__list button:focus-visible { border-color: var(--rose); background: #fff7f8; outline: 0; }
.finder__list small { color: #8a6a6d; font-size: 14px; white-space: nowrap; }
.seats { margin: 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--rose); background: rgba(222, 168, 171, .18); font-size: 16px; text-align: left; }
.seats .fa { margin-right: 6px; color: var(--rose); }
.link { display: block; margin: 14px auto 0; padding: 4px; border: 0; background: none; font: 400 15px var(--serif); color: #7a5a5d; text-decoration: underline; cursor: pointer; }

.details { padding: 40px 30px 60px; }
.details__box { max-width: var(--col); margin: 0 auto 30px; padding: 40px 24px 20px; text-align: center; color: #2D2D2D; }
.details__box .t-script { color: #2D2D2D; margin-bottom: 14px; }
.details__box .t-serif { letter-spacing: 1.5px; margin-bottom: 8px; }
.details__note { background: none; box-shadow: none; padding: 10px 0; font-size: 19px; font-weight: 400; line-height: 1.6; letter-spacing: 1px !important; color: #000; }
.details__img { width: 55%; max-width: 240px; height: auto; margin: 20px auto 16px; }

/* ---------- Timeline ---------- */
.timeline { padding: 60px 0 40px; }
.tl { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: var(--col); }
.tl__line { position: absolute; left: 108px; top: var(--tl-top, 0); width: 3px; height: var(--tl-length, 0); background: #F1EDE7; }
.tl__fill { position: absolute; inset: 0 auto auto 0; width: 100%; background: var(--rose); }
.tl__item { position: relative; padding: 0 20px 80px 180px; }
.tl__item:last-child { padding-bottom: 40px; }
.tl__marker { position: absolute; left: 80px; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #F1EDE7; color: #fff; transition: background-color .5s; }
.tl__item:last-child .tl__marker { top: calc(50% - 20px); }
.tl__time { font-size: 19px; letter-spacing: 1px; color: #F1EDE7; transition: color .6s; }
.tl__title { font-family: var(--script); font-weight: 400; font-size: clamp(40px, 12.5vw, 50px); line-height: 1.1; color: #F1EDE7; margin: 4px 0 10px; transition: color .6s; }
.tl__item img { width: 150px; height: 150px; }
.tl__item.is-active .tl__marker { background: var(--rose); }
.tl__item.is-active .tl__time, .tl__item.is-active .tl__title { color: #000; }

/* ---------- Hashtag / thanks / gallery / footer ---------- */
.hashtag { background: var(--rose); }
.hashtag .col { padding: 120px 50px 100px; text-align: center; }
.hashtag h3 { font-size: 21px; font-weight: 400; line-height: 1.5; letter-spacing: 1px; }
.hashtag__tag { margin-top: 18px; color: #fff; font-size: 21px; letter-spacing: 1px; }
.hashtag__tag .fa { color: #FF0365; margin-right: 6px; }
.thanks .col { padding: 120px 40px; text-align: center; }
.thanks h3 { color: #000; }

.gallery { background: #fff; }
.gallery figure { margin: 0 auto; max-width: var(--col); }
.gallery img { width: 100%; }

.footer { background: var(--rose); padding: 10px 10px 15px; text-align: center; font: 500 .8rem 'Inter', sans-serif; color: #fff; }

/* ---------- Floating music button ---------- */
.music { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--rose); color: #fff; font-size: 16px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); display: grid; place-items: center; transition: background .25s; }
.music:hover { background: #c98d91; }

@media (max-width: 480px) {
  .quote .col { padding: 100px 40px 80px; }
  .hashtag .col, .thanks .col { padding-left: 30px; padding-right: 30px; }
}
