@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");

:root {
  --blush-25: #fffaf8;
  --blush-50: #fff2ee;
  --blush-100: #f9dfd7;
  --blush-200: #efc5bb;
  --rose: #c57990;
  --rose-deep: #7b3951;
  --gold: #b89045;
  --gold-soft: #ead391;
  --champagne: #fff8e8;
  --ink: #3d2730;
  --muted: #765d66;
  --card: rgba(255, 252, 246, 0.86);
  --shadow: 0 24px 80px rgba(89, 43, 50, 0.16);
  --radius: 18px;
  --title-font: Georgia, "Times New Roman", serif;
  --script-font: "Great Vibes", "Edwardian Script ITC", "Bickham Script Pro", "Segoe Script", cursive;
  --body-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 18% 4%, rgba(234, 211, 145, 0.36), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(239, 197, 187, 0.58), transparent 26rem),
    linear-gradient(180deg, var(--blush-25), var(--blush-100) 48%, var(--champagne));
  overflow-x: hidden;
}

body.cover-active {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.content {
  width: min(100% - 2rem, 60rem);
  margin: 0 auto;
}

.content--narrow {
  width: min(100% - 2rem, 43rem);
}

.page-glow {
  position: fixed;
  z-index: -2;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.5;
  pointer-events: none;
}

.page-glow--top {
  top: -8rem;
  left: -5rem;
  background: rgba(234, 211, 145, 0.8);
}

.page-glow--bottom {
  right: -7rem;
  bottom: 8rem;
  background: rgba(197, 121, 144, 0.22);
}

.sparkles,
.petal-field,
.floral-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkles {
  z-index: 7;
}

.petal-field {
  z-index: 24;
}

.floral-overlay {
  z-index: 3;
}

.sparkle {
  position: absolute;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 18px rgba(184, 144, 69, 0.64);
  animation: floatSparkle var(--duration, 12s) ease-in-out infinite;
}

.petal {
  position: absolute;
  top: -14vh;
  left: var(--left, 50%);
  width: var(--size, 1.1rem);
  height: var(--size, 1.1rem);
  background-image: url("../images/recursos/arreglo_floral_01.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: var(--opacity, 0.62);
  transform: rotate(var(--rotate, 0deg));
  animation: petalFall var(--duration, 16s) linear var(--delay, 0s) infinite;
  filter: drop-shadow(0 8px 12px rgba(123, 57, 81, 0.12));
}

.petal.is-burst {
  top: auto;
  bottom: 22%;
  animation: petalBurst 1300ms ease-out forwards;
}

.floating-bloom {
  position: absolute;
  width: var(--size, 7rem);
  height: var(--size, 7rem);
  background-image: var(--image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: var(--opacity, 0.22);
  transform: rotate(var(--rotate, 0deg));
  animation: bloomFloat var(--duration, 18s) ease-in-out infinite;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::after {
  position: absolute;
  inset: -40% -60%;
  content: "";
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.55), transparent 65%);
  transform: translateX(-72%) rotate(8deg);
  transition: transform 620ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(72%) rotate(8deg);
}

.button--primary {
  color: var(--champagne);
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  box-shadow: 0 18px 38px rgba(123, 57, 81, 0.28);
}

.intro-cover {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  min-height: 100svh;
  place-items: stretch;
  padding: 1.1rem;
  overflow: hidden;
  background: #efd0c2;
  perspective: 1100px;
  transition: opacity 900ms ease, visibility 900ms ease, transform 900ms ease;
}

.intro-cover.is-opening .intro-cover__image {
  animation: envelopeOpen 1250ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.intro-cover.is-opening .intro-cover__shade {
  animation: coverFlash 1250ms ease both;
}

.intro-cover.is-opening .intro-cover__light {
  animation: invitationGlow 1250ms ease both;
}

.intro-cover.is-opening .intro-cover__content {
  animation: buttonDepart 540ms ease both;
}

.intro-cover.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

.intro-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 50% 64%;
}

.intro-cover__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(54, 35, 45, 0.02), rgba(54, 35, 45, 0.08) 44%, rgba(54, 35, 45, 0.42)),
    radial-gradient(circle at 50% 72%, rgba(255, 253, 248, 0.22), transparent 20rem);
}

.intro-cover__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 253, 248, 0.56), transparent 11rem),
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.34), transparent 58%);
  opacity: 0.34;
  mix-blend-mode: screen;
  pointer-events: none;
}

.intro-cover__content {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100%, 42rem);
  min-height: calc(100svh - 2.2rem);
  margin: 0 auto;
  padding: 2rem 1.2rem 3.6rem;
  text-align: center;
  animation: riseIn 900ms ease both;
}

.intro-cover .button {
  min-width: min(100%, 18rem);
  border-color: rgba(234, 211, 145, 0.76);
  animation: invitePulse 2.4s ease-in-out infinite;
}

.invitation {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}

.portrait-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem 1rem 5.2rem;
  overflow: visible;
}

.portrait-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: transparent;
}

.portrait-hero__photo {
  position: relative;
  z-index: 1;
  width: min(92vw, 38rem);
  max-height: 80svh;
  object-fit: contain;
  transform-origin: center;
  filter: drop-shadow(0 26px 60px rgba(89, 43, 50, 0.2));
}

.portrait-hero__content {
  position: relative;
  z-index: 2;
  margin-top: 0.35rem;
  text-align: center;
}

.small-gold {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portrait-hero h1 {
  margin: 0;
  color: var(--rose-deep);
  font-family: var(--script-font);
  font-size: clamp(5rem, 23vw, 10rem);
  font-weight: 400;
  line-height: 0.95;
  text-shadow: 0 14px 30px rgba(123, 57, 81, 0.12);
}

.corner-flower {
  position: absolute;
  z-index: 2;
  width: min(36vw, 17rem);
  opacity: 0.86;
  pointer-events: none;
  filter: drop-shadow(0 16px 34px rgba(89, 43, 50, 0.12));
}

.corner-flower--left {
  left: -4.5rem;
  bottom: -4rem;
  transform: rotate(18deg);
}

.corner-flower--right {
  top: -3.5rem;
  right: -4.5rem;
  transform: rotate(-18deg);
}

.music-section {
  position: relative;
  padding: 1.4rem 1rem;
  background: transparent;
}

.music-player {
  width: min(100%, 34rem);
  min-height: 5rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3.1rem 4rem 3.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(184, 144, 69, 0.34);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.player-button {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: 1px solid rgba(184, 144, 69, 0.45);
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(255, 248, 232, 0.85);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.player-button--main {
  width: 4rem;
  height: 4rem;
  color: var(--champagne);
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  box-shadow: 0 14px 32px rgba(123, 57, 81, 0.26);
  font-size: 1.1rem;
}

.player-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.music-player__label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.number-section {
  padding: 2.4rem 1rem 1.2rem;
  overflow: hidden;
}

.number-fifteen {
  width: min(72vw, 26rem);
  margin: 0 auto;
  filter: drop-shadow(0 24px 44px rgba(89, 43, 50, 0.12));
}

.story-section {
  position: relative;
  padding: 1.8rem 1rem 2.8rem;
  text-align: center;
  overflow: hidden;
}

.story-text {
  margin: 0 auto 2.2rem;
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(1.35rem, 5vw, 2.15rem);
  line-height: 1.55;
}

.gold-script {
  margin: 1.3rem 0 0.6rem;
  color: var(--gold);
  font-family: var(--script-font);
  font-size: clamp(2.2rem, 11vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 9px 20px rgba(184, 144, 69, 0.14);
}

.gold-script--large {
  font-size: clamp(3.4rem, 16vw, 7rem);
}

.parents {
  margin: 0 0 2.5rem;
  color: var(--rose-deep);
  font-family: var(--title-font);
  font-size: clamp(1.5rem, 6vw, 2.6rem);
  line-height: 1.35;
}

.side-branch {
  position: absolute;
  width: min(28vw, 13rem);
  opacity: 0.32;
  pointer-events: none;
}

.side-branch--left {
  left: -4rem;
  top: 1rem;
  transform: rotate(16deg);
}

.side-branch--right {
  right: -4rem;
  bottom: 1rem;
  transform: rotate(190deg);
}

.full-photo {
  min-height: 100svh;
  overflow: hidden;
  background: transparent;
}

.full-photo img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center;
}

.date-section {
  padding: 3rem 1rem 1.9rem;
  text-align: center;
}

.date-ornament {
  width: min(100%, 40rem);
  margin: 0 auto;
}

.date-ornament img {
  width: min(100%, 30rem);
  margin: 0 auto;
}

.event-date {
  display: block;
  margin: -0.35rem 0;
  color: #8f7a44;
  font-family: var(--title-font);
  line-height: 1;
}

.event-date__month {
  display: block;
  margin-bottom: 0.5rem;
  font-size: clamp(1.55rem, 6vw, 2.8rem);
  font-weight: 500;
}

.event-date__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 5vw, 2.8rem);
  width: min(100%, 31rem);
  margin: 0.55rem auto 0.35rem;
}

.event-date__row span {
  font-size: clamp(1.25rem, 5vw, 2.3rem);
  font-weight: 500;
}

.event-date__row span:first-child {
  text-align: right;
}

.event-date__row span:last-child {
  text-align: left;
}

.event-date__row strong {
  color: var(--gold);
  font-size: clamp(4.2rem, 18vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.details-section {
  position: relative;
  padding: 2rem 1rem;
}

.dome-card {
  position: relative;
  width: min(100% - 1rem, 42rem);
  margin: 0 auto;
  padding: 6.2rem 1.4rem 2.4rem;
  overflow: visible;
  border: 1px solid rgba(184, 144, 69, 0.4);
  border-radius: 50% 50% var(--radius) var(--radius) / 4.5rem 4.5rem var(--radius) var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  text-align: center;
}

.dome-card::before {
  position: absolute;
  inset: 0.7rem;
  content: "";
  border: 1px solid rgba(184, 144, 69, 0.18);
  border-radius: 50% 50% calc(var(--radius) - 4px) calc(var(--radius) - 4px) / 4rem 4rem calc(var(--radius) - 4px) calc(var(--radius) - 4px);
  pointer-events: none;
}

.dome-card--small {
  padding-bottom: 3.4rem;
}

.card-flower {
  position: absolute;
  z-index: 3;
  width: min(46vw, 15rem);
  pointer-events: none;
}

.card-flower--top {
  top: -6.2rem;
  left: 50%;
  transform: translateX(-50%);
}

.card-flower--bottom {
  right: -4.5rem;
  bottom: -4.7rem;
  transform: rotate(-18deg);
  opacity: 0.76;
}

.dome-card h2,
.section--countdown h2 {
  position: relative;
  margin: 0 0 1.3rem;
  color: var(--rose-deep);
  font-family: var(--title-font);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
}

.event-details {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin: 0;
}

.event-details div {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.62);
}

.event-details dt {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-details dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(1.25rem, 4.8vw, 2rem);
  line-height: 1.28;
}

.section--countdown {
  padding: 2.4rem 1rem;
  text-align: center;
  background: transparent;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.countdown div {
  position: relative;
  padding: 1rem 0.4rem;
  border: 1px solid rgba(184, 144, 69, 0.32);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.78);
  box-shadow: 0 16px 40px rgba(89, 43, 50, 0.11);
  overflow: hidden;
}

.countdown strong {
  display: block;
  color: var(--rose-deep);
  font-family: var(--title-font);
  font-size: clamp(1.9rem, 9vw, 3.3rem);
  font-weight: 500;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dress-code {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--rose-deep);
  font-family: var(--title-font);
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.reserved-colors {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.22rem);
  line-height: 1.65;
}

.closing-section {
  padding: 1rem 1rem 4rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px) scale(0.98);
  transition: opacity 760ms ease, filter 760ms ease, transform 760ms ease;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSparkle {
  0%,
  100% {
    opacity: 0.18;
    transform: translate3d(0, 0, 0) scale(0.8);
  }
  45% {
    opacity: 0.75;
    transform: translate3d(0.5rem, -1.5rem, 0) scale(1.18);
  }
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -12vh, 0) rotate(var(--rotate, 0deg)) scale(0.55);
  }
  9% {
    opacity: var(--opacity, 0.62);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 4rem), 116vh, 0) rotate(calc(var(--rotate, 0deg) + 520deg)) scale(0.9);
  }
}

@keyframes petalBurst {
  0% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) rotate(var(--rotate, 0deg)) scale(0.58);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--burst-x, 2rem), var(--burst-y, -8rem), 0) rotate(calc(var(--rotate, 0deg) + 260deg)) scale(1);
  }
}

@keyframes bloomFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--rotate, 0deg)) scale(1);
  }
  50% {
    transform: translate3d(0.8rem, -1.4rem, 0) rotate(calc(var(--rotate, 0deg) + 8deg)) scale(1.04);
  }
}

@keyframes envelopeOpen {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
    filter: saturate(1) brightness(1);
  }
  42% {
    opacity: 1;
    transform: translate3d(0, -1.4rem, 0) scale(1.045) rotateX(2deg);
    filter: saturate(1.08) brightness(1.12);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -8vh, 8rem) scale(1.18) rotateX(10deg);
    filter: saturate(1.12) brightness(1.22) blur(5px);
  }
}

@keyframes coverFlash {
  0%,
  44% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes invitationGlow {
  0% {
    opacity: 0.28;
    transform: translateX(-18%);
  }
  44% {
    opacity: 0.85;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(18%);
  }
}

@keyframes buttonDepart {
  to {
    opacity: 0;
    transform: translateY(1.4rem) scale(0.94);
  }
}

@keyframes invitePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 18px 46px rgba(89, 43, 50, 0.28),
      0 0 0 0 rgba(234, 211, 145, 0.52);
  }
  50% {
    transform: translateY(-3px);
    box-shadow:
      0 24px 54px rgba(89, 43, 50, 0.34),
      0 0 0 0.42rem rgba(234, 211, 145, 0);
  }
}

@media (max-width: 700px) {
  .intro-cover {
    padding: 0.75rem;
  }

  .intro-cover__content {
    min-height: calc(100svh - 1.5rem);
    padding-bottom: 2.4rem;
  }

  .portrait-hero {
    padding-top: 1rem;
    padding-bottom: 5.8rem;
    width: 100%;
    overflow-x: clip;
  }

  .portrait-hero__photo {
    width: min(100%, 31rem);
    max-height: 76svh;
    transform: scale(1.14);
  }

  .corner-flower {
    width: min(42vw, 10rem);
  }

  .corner-flower--left {
    left: -3.6rem;
    bottom: -3.5rem;
  }

  .corner-flower--right {
    right: -3.6rem;
  }

  .music-player {
    grid-template-columns: 2.8rem 3.8rem 2.8rem;
    gap: 0.6rem;
    border-radius: 28px;
  }

  .player-button {
    width: 2.8rem;
    height: 2.8rem;
  }

  .player-button--main {
    width: 3.8rem;
    height: 3.8rem;
  }

  .number-fifteen {
    width: min(82vw, 23rem);
  }

  .side-branch {
    width: min(30vw, 8rem);
    opacity: 0.22;
  }

  .side-branch--left {
    left: -2.6rem;
  }

  .side-branch--right {
    right: -2.6rem;
  }

  .card-flower--bottom {
    right: -2.8rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dome-card {
    width: min(100%, 34rem);
    padding: 5.6rem 1rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .petal,
  .floating-bloom {
    display: none;
  }
}
