:root {
  --blush: #f4cbd4;
  --rose: #d990a1;
  --deep-rose: #9a5868;
  --petal: #fbe7ec;
  --cream: #fffdfb;
  --ink: #533c42;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 28%, rgba(255,255,255,.8) 0 3px, transparent 4px),
    linear-gradient(145deg, #f8dce3 0%, #fdf2f4 48%, #edbdc9 100%);
}

.crazy-portal {
  position: fixed;
  z-index: 30;
  bottom: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  background: #111;
  border-radius: 50%;
  opacity: .72;
  transition: transform .2s, opacity .2s;
}
.crazy-portal:hover, .crazy-portal:focus-visible { opacity: 1; transform: scale(1.65); outline: 2px solid rgba(255,255,255,.8); outline-offset: 2px; }

.music-control {
  position: fixed;
  z-index: 20;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px 8px 8px;
  color: white;
  background: rgba(154,88,104,.92);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(83,60,66,.22);
  cursor: pointer;
  font: inherit;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: transform .2s, background .2s;
}
.music-control:hover { background: var(--rose); transform: translateY(-2px); }
.music-control__icon { display: grid; width: 28px; height: 28px; place-items: center; background: rgba(255,255,255,.2); border-radius: 50%; font-size: 1rem; }
.music-control.is-paused .music-control__icon { color: var(--deep-rose); background: white; }
.music-control.needs-action { animation: musicPulse 1.7s ease-in-out infinite; }

@keyframes musicPulse {
  50% { box-shadow: 0 10px 32px rgba(154,88,104,.45), 0 0 0 8px rgba(244,203,212,.22); }
}

.invitation {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 5vw, 64px) 16px;
  gap: clamp(28px, 5vw, 56px);
}

.glow { position: fixed; border-radius: 50%; filter: blur(2px); opacity: .55; }
.glow--one { width: 420px; height: 420px; top: -220px; left: -140px; background: rgba(255,255,255,.72); }
.glow--two { width: 340px; height: 340px; right: -170px; bottom: -140px; border: 1px solid rgba(255,255,255,.55); }

.card {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(52px, 9vw, 82px) clamp(24px, 8vw, 72px) clamp(46px, 8vw, 66px);
  overflow: hidden;
  text-align: center;
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(255,253,251,.13), rgba(255,253,251,.13)),
    url("img/fondo-cisne.png");
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 48% 48% 24px 24px / 11% 11% 24px 24px;
  box-shadow: 0 30px 80px rgba(139, 73, 90, .22), inset 0 0 0 7px rgba(246,214,221,.28);
  animation: arrive .9s cubic-bezier(.2,.8,.2,1) both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(217,144,161,.24);
  border-radius: 47% 47% 16px 16px / 10% 10% 16px 16px;
}

.card > *:not(.image-cover) { position: relative; z-index: 2; }

.image-cover {
  position: absolute;
  z-index: 1;
  display: block;
  width: 180px;
  height: 150px;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 72%, rgba(244,203,212,.92) 0 8%, transparent 9%),
    radial-gradient(ellipse at 30% 42%, #fff9fa 0 42%, transparent 43%),
    radial-gradient(ellipse at 76% 65%, #f7dbe2 0 43%, transparent 44%);
  filter: drop-shadow(0 8px 13px rgba(154,88,104,.08));
}

.image-cover--top {
  top: -35px;
  left: -42px;
  transform: rotate(22deg);
}

.image-cover--bottom {
  right: -38px;
  bottom: -36px;
  transform: rotate(202deg) scale(1.12);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--deep-rose);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  animation: rise .7s .18s both;
}

.moon {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  border-radius: 50%;
  box-shadow: -13px 6px 0 1px var(--blush);
  transform: rotate(-18deg);
  animation: rise .7s .28s both;
}

.star { position: absolute; color: var(--rose); font-style: normal; }
.star--one { top: 1px; right: 1px; font-size: 15px; }
.star--two { top: 23px; right: -10px; font-size: 22px; }
.star--three { bottom: 1px; right: 9px; font-size: 12px; }

h1 {
  margin: 6px 0 18px;
  color: var(--deep-rose);
  font-family: "Italiana", serif;
  font-size: clamp(4.6rem, 17vw, 7.4rem);
  font-weight: 400;
  line-height: .7;
  letter-spacing: -.055em;
  animation: rise .7s .35s both;
}

h1 em { color: var(--rose); font-weight: 400; }

.baby-names { margin:25px auto 0; color:var(--deep-rose); font-family:"Italiana",serif; font-size:clamp(.95rem,3vw,1.2rem); line-height:1.45; }
.baby-names span { padding:0 5px; color:var(--rose); }

.intro {
  margin: 28px 0 0;
  color: #755d63;
  font-family: "Italiana", serif;
  font-size: clamp(1rem, 3vw, 1.18rem);
  line-height: 1.65;
  animation: rise .7s .43s both;
}

.twin-note {
  margin: 13px 0 0;
  color: var(--rose);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: rise .7s .5s both;
}

.twin-note span { padding: 0 4px; font-family: serif; }

.divider { display: flex; align-items: center; gap: 11px; margin: 28px 0; color: var(--rose); }
.divider span { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--blush)); }
.divider span:last-child { background: linear-gradient(90deg, var(--blush), transparent); }
.divider i { min-width: 40px; font-family: serif; font-style: normal; letter-spacing: 3px; }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail { display: flex; flex-direction: column; align-items: center; padding: 7px 12px; }
.detail + .detail { border-left: 1px solid var(--blush); }
.detail__label { display: block; margin-bottom: 4px; color: var(--rose); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.detail strong { color: var(--deep-rose); font-family: "Italiana", serif; font-size: clamp(2.3rem, 8vw, 3.3rem); font-weight: 400; line-height: 1; }
.detail > span:last-child { margin-top: 6px; color: #725a61; font-size: .85rem; letter-spacing: .04em; }

.place {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
}

.place__icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--deep-rose); font-size: 1.4rem; }
.place strong { display: block; color: var(--deep-rose); font-family: "Italiana", serif; font-size: 1.25rem; font-weight: 400; }
.place p { margin: 5px 0 0; color: #725a61; font-size: .84rem; }
.dress-code { margin-top:23px; }
.dress-code strong { color:var(--deep-rose); font-family:"Italiana",serif; font-size:1.2rem; font-weight:400; }

.map-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 11px 19px;
  color: var(--deep-rose);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--blush);
  border-radius: 999px;
  transition: color .25s, background .25s, transform .25s;
}

.map-button:hover { color: white; background: var(--rose); transform: translateY(-2px); }

footer { margin-top: 36px; }
footer > span { color: var(--rose); font-size: .65rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
footer p { margin: 8px 0 0; color: var(--deep-rose); font-family: "Italiana", serif; font-size: clamp(1.15rem, 4vw, 1.45rem); }
footer i { padding: 0 5px; color: var(--rose); font-weight: 400; }

.rsvp {
  position: relative;
  width: min(100%, 700px);
  padding: clamp(38px, 7vw, 64px) clamp(22px, 7vw, 64px);
  overflow: hidden;
  text-align: center;
  background: rgba(255,253,251,.96);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 24px;
  box-shadow: 0 24px 65px rgba(139,73,90,.16), inset 0 0 0 6px rgba(246,214,221,.25);
}

.rsvp::before {
  content: "♡ ♡";
  position: absolute;
  top: 22px;
  right: 28px;
  color: rgba(217,144,161,.34);
  font-family: serif;
  font-size: 1.3rem;
  letter-spacing: 5px;
}

.rsvp h2 {
  margin: 7px 0 10px;
  color: var(--deep-rose);
  font-family: "Italiana", serif;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.rsvp__intro { max-width: 480px; margin: 0 auto 30px; color: #725a61; line-height: 1.6; }
.rsvp-form { text-align: left; }
.attendance-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; }
.attendance-choice legend { width: 100%; margin-bottom: 12px; color: var(--deep-rose); font-weight: 600; text-align: center; }
.attendance-choice label { cursor: pointer; }
.attendance-choice input { position: absolute; opacity: 0; pointer-events: none; }
.attendance-choice span {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 10px;
  color: var(--deep-rose);
  background: #fff9fa;
  border: 1px solid var(--blush);
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 600;
  transition: .2s ease;
}
.attendance-choice input:checked + span { color: white; background: var(--rose); box-shadow: 0 8px 18px rgba(217,144,161,.3); }
.attendance-choice input:focus-visible + span { outline: 3px solid rgba(154,88,104,.28); outline-offset: 2px; }
.choice-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--deep-rose);
  font-family: "Italiana", serif;
  font-size: 1.12rem;
  text-align: center;
}

.attendee-options { margin-top: 24px; }
.field { display: grid; gap: 7px; color: var(--deep-rose); font-size: .77rem; font-weight: 600; letter-spacing: .06em; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid #eac3cc;
  border-radius: 11px;
  font: inherit;
  font-size: .92rem;
  letter-spacing: normal;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217,144,161,.16); }
.people-fields { display: grid; gap: 14px; margin-top: 18px; }
.person-card { padding: 17px; background: #fff9fa; border: 1px solid rgba(217,144,161,.28); border-radius: 15px; }
.person-card h3 { margin: 0 0 12px; color: var(--rose); font-family: "Italiana", serif; font-size: 1.18rem; font-weight: 400; }
.person-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.privacy-note { margin: 20px 0 13px; color: #8a7479; font-size: .72rem; text-align: center; }
.submit-button {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  align-items: center;
  color: white;
  background: var(--deep-rose);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: transform .2s, background .2s;
}
.submit-button:hover { background: var(--rose); transform: translateY(-2px); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-message { min-height: 22px; margin: 14px 0 0; font-size: .85rem; text-align: center; }
.form-message--success { color: #617d63; }
.form-message--error { color: #a33d55; }

.corner-flower { position: absolute; width: 150px; height: 150px; pointer-events: none; }
.corner-flower--top { top: -15px; left: -12px; transform: rotate(-76deg); }
.corner-flower--bottom { right: -25px; bottom: -30px; transform: rotate(102deg); }
.leaf, .petal { position: absolute; display: block; background: var(--petal); border: 1px solid rgba(217,144,161,.32); }
.leaf { width: 65px; height: 26px; border-radius: 100% 0 100% 0; }
.leaf--1 { top: 47px; left: 53px; transform: rotate(-35deg); }
.leaf--2 { top: 75px; left: 74px; transform: rotate(48deg); background: #f7d8e0; }
.petal { width: 45px; height: 62px; border-radius: 80% 15% 80% 20%; }
.petal--1 { top: 8px; right: 7px; transform: rotate(22deg); }
.petal--2 { top: 38px; right: -8px; transform: rotate(70deg); background: #f4cbd4; }
.petal--3 { top: -18px; right: 35px; transform: rotate(-16deg); background: #fff7f8; }

@keyframes arrive { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 769px) {
  .card {
    width: min(100%, 700px);
    padding: 88px 82px 72px;
  }

  .eyebrow { font-size: .84rem; }
  h1 { font-size: 8.35rem; }
  .intro { font-size: 1.3rem; }
  .baby-names { font-size:1.28rem; }
  .twin-note { font-size: .76rem; }
  .detail__label { font-size: .78rem; }
  .detail strong { font-size: 3.75rem; }
  .detail > span:last-child { font-size: 1rem; }
  .place strong { font-size: 1.52rem; }
  .place p { font-size: .98rem; }
  .dress-code strong { font-size:1.4rem; }
  .map-button { padding: 13px 22px; font-size: .78rem; }
  footer > span { font-size: .74rem; }
  footer p { font-size: 1.68rem; }
}

@media (max-width: 520px) {
  .invitation { padding: 12px; }
  .card { padding: 56px 24px 48px; border-radius: 46% 46% 20px 20px / 8% 8% 20px 20px; }
  .card::before { inset: 8px; }
  h1 { font-size: clamp(4.25rem, 21vw, 5.5rem); }
  .intro { font-size: 1rem; line-height: 1.55; }
  .twin-note { font-size: .6rem; letter-spacing: .13em; }
  .detail strong { font-size: clamp(2.3rem, 14vw, 3rem); }
  .place {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 18px 14px;
    text-align: center;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(217,144,161,.4);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(154,88,104,.1);
    backdrop-filter: blur(5px);
  }
  .place__icon { display: none; }
  .place .detail__label { margin-bottom: 8px; color: #a35d6e; }
  .place strong { color: #633f49; font-family: "DM Sans",sans-serif; font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
  .place p { margin-top: 7px; color: #513b42; font-size: .88rem; font-weight: 500; line-height: 1.45; }
  .dress-code {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    text-align: center;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(217,144,161,.4);
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(154,88,104,.08);
  }
  .dress-code .detail__label { margin-bottom: 6px; color: #a35d6e; }
  .dress-code strong { color:#513b42; font-family:"DM Sans",sans-serif; font-size:1.05rem; font-weight:700; }
  .map-button { margin-top:14px; color:#754653; background:rgba(255,255,255,.9); border-color:rgba(217,144,161,.65); }
  .detail__label { color:#a35d6e; font-weight:700; }
  .detail > span:last-child { color:#513b42; font-weight:500; }
  .corner-flower { transform: scale(.72) rotate(13deg); transform-origin: top right; }
  .corner-flower--top { transform: scale(.72) rotate(-76deg); transform-origin: top left; }
  .corner-flower--bottom { transform: scale(.72) rotate(102deg); transform-origin: bottom right; }
  .details { gap: 8px; }
  .rsvp { padding: 42px 20px 34px; }
  .rsvp h2 { font-size: 2.65rem; }
  .rsvp__intro { font-size: .9rem; }
  .attendance-choice { grid-template-columns: 1fr; gap: 9px; }
  .person-grid { grid-template-columns: 1fr; }
  .music-control { padding-right: 10px; }
  .music-control__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 360px) {
  .card { padding-inline: 18px; }
  h1 { font-size: 4.05rem; }
  .details { gap: 2px; }
  .detail { padding-inline: 7px; }
  .detail__label { letter-spacing: .16em; }
  footer p { font-size: 1.08rem; }
}

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