* {
  box-sizing: border-box;
}

:root {
  --bg-1: #fff4d8;
  --bg-2: #ffe4f1;
  --bg-3: #dff7ff;

  --text: #31213c;
  --muted: rgba(49, 33, 60, .72);

  --card: rgba(255, 255, 255, .44);
  --card-soft: rgba(255, 255, 255, .56);
  --card-strong: rgba(255, 255, 255, .72);
  --stroke: rgba(255, 255, 255, .68);

  --accent: #ffb703;
  --accent-2: #ff6fb1;
  --accent-3: #43c6f5;
  --accent-4: #8b5cf6;

  --shadow: 0 24px 70px rgba(94, 55, 124, .16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 183, 3, .32), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(67, 198, 245, .28), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255, 111, 177, .30), transparent 36%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 48%, var(--bg-3));
  overflow-x: hidden;
}

.site {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.glass {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, .42),
      rgba(255, 255, 255, .20)
    );
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  box-shadow: var(--shadow);
}

/* HERO */

.hero {
  min-height: auto;
  padding: 20px 18px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-image-card {
  width: min(92vw, 430px);
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 90px rgba(49, 33, 60, .22);
  background: rgba(255, 255, 255, .36);
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.08), rgba(0,0,0,.04)),
    linear-gradient(to top, rgba(0,0,0,.12), transparent 38%);
  pointer-events: none;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.invite-card {
  width: min(calc(100% - 8px), 410px);
  margin-top: -20px;
  padding: 22px;
  border-radius: 30px;
  position: relative;
  z-index: 3;
  animation: floatSoft 5s ease-in-out infinite;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-4);
}

h1 {
  margin: 0;
  max-width: 280px;
  font-size: clamp(46px, 13vw, 62px);
  line-height: .88;
  letter-spacing: -0.075em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(29px, 8vw, 42px);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

p {
  line-height: 1.55;
}

.invite-card p {
  max-width: 320px;
  margin: 12px 0 18px;
  font-size: 14px;
  font-weight: 700;
}

button,
.action-card {
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(255, 111, 177, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}

button:hover,
.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 111, 177, .32);
}

button:active,
.action-card:active {
  transform: scale(.98);
}

.invite-card button {
  width: 100%;
  padding: 15px 16px;
}

/* SECCIONES */

.section {
  padding: 44px 22px 22px;
  text-align: center;
}

.event-summary {
  padding-top: 24px;
}

.event-summary p,
.section-description {
  color: var(--muted);
  margin: 0 auto;
  max-width: 320px;
}

/* CUENTA REGRESIVA */

.countdown {
  width: min(calc(100% - 36px), 430px);
  margin: 18px auto;
  padding: 20px;
  border-radius: 28px;
  text-align: center;
}

.countdown-label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.timer div {
  padding: 14px 6px;
  border-radius: 18px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.62);
}

.timer strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.timer span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

/* VIDEO */

.video-section {
  padding: 42px 18px 18px;
  text-align: center;
}

.video-frame {
  width: min(84vw, 360px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.30));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
  background: #111;
  display: block;
}

.video-section p {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

/* ACCIONES */

.actions-grid {
  width: min(calc(100% - 36px), 560px);
  display: grid;
  gap: 14px;
  padding: 26px 0 8px;
  margin: 0 auto;
}

.action-card {
  width: 100%;
  min-height: 96px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--card-strong);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.action-card .action-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,183,3,.35), rgba(67,198,245,.32));
  font-size: 25px;
}

.action-card strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.action-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

/* INFO */

.info-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  padding: 20px 18px 12px;
  margin: 0 -22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.info-carousel::-webkit-scrollbar {
  display: none;
}

.info-card {
  min-height: 178px;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,183,3,.24), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.66), rgba(255,255,255,.34));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 45px rgba(94, 55, 124, .11);
  scroll-snap-align: center;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}

.info-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -32px;
  bottom: -32px;
  border-radius: 999px;
  background: rgba(255, 111, 177, .16);
}

.info-card:hover {
  transform: translateY(-4px) rotate(-.5deg);
}

.info-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255,255,255,.72);
  font-size: 25px;
  box-shadow: 0 10px 25px rgba(94, 55, 124, .10);
  animation: iconBounce 3.4s ease-in-out infinite;
}

.info-card:nth-child(2) .info-icon {
  animation-delay: .2s;
}

.info-card:nth-child(3) .info-icon {
  animation-delay: .4s;
}

.info-card:nth-child(4) .info-icon {
  animation-delay: .6s;
}

.info-card:nth-child(5) .info-icon {
  animation-delay: .8s;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

/* RSVP */

.rsvp {
  width: min(calc(100% - 36px), 560px);
  margin: 34px auto 20px;
  padding: 24px;
  border-radius: 32px;
}

.rsvp p {
  margin-top: 0;
  color: var(--muted);
  font-weight: 700;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.56);
  color: var(--text);
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

input::placeholder {
  color: rgba(49, 33, 60, .42);
}

input:focus,
select:focus {
  border-color: rgba(139, 92, 246, .7);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .12);
}

form button {
  margin-top: 4px;
}

footer {
  padding: 36px 22px 54px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

/* DECORACIÓN */

.floating-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(.2px);
  opacity: .72;
  pointer-events: none;
}

.shape-1 {
  width: 88px;
  height: 88px;
  top: 8%;
  left: -32px;
  background: rgba(255, 183, 3, .35);
  animation: drift 8s ease-in-out infinite;
}

.shape-2 {
  width: 62px;
  height: 62px;
  right: -18px;
  top: 18%;
  background: rgba(67, 198, 245, .35);
  animation: drift 7s ease-in-out infinite reverse;
}

.shape-3 {
  width: 74px;
  height: 74px;
  right: 20px;
  bottom: 10%;
  background: rgba(255, 111, 177, .3);
  animation: drift 9s ease-in-out infinite;
}

.reveal {
  animation: reveal .8s ease both;
}

/* ANIMACIONES */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(-3deg);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(12px, -16px, 0);
  }
}

/* ACCESIBILIDAD */

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

/* DESKTOP */

@media (min-width: 760px) {
  .hero {
    padding: 28px 28px 44px;
  }

  .hero-image-card {
    width: 430px;
    aspect-ratio: 9 / 16;
  }

  .invite-card {
    width: 410px;
    margin-top: -24px;
    padding: 24px;
  }

  .countdown {
    max-width: 500px;
  }

  .video-frame {
    width: 360px;
  }

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

  .action-card {
    min-height: 86px;
  }

  .info-carousel {
    max-width: 660px;
    margin: 0 auto;
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 24px 0;
  }

  .rsvp {
    max-width: 560px;
  }
}