* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #e9f1f8;
  font-family: Georgia, serif;
  color: #1f2f4f;
  padding-bottom: 92px;
}

html,
body,
.hero,
.card-section {
  background: #e9f1f8;
}

/* PORTADA */
.hero {
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  position: relative;
}

.seal-sparkles {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 135px;
  height: 90px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

.seal-sparkles span {
  position: absolute;
  color: #d4af37;
  font-size: 18px;
  opacity: 0;
  animation: sealSparkle 2.4s ease-in-out infinite;
}

.seal-sparkles span:nth-child(1) {
  left: 8px;
  top: 20px;
  animation-delay: 0s;
}

.seal-sparkles span:nth-child(2) {
  right: 4px;
  top: 8px;
  animation-delay: .7s;
}

.seal-sparkles span:nth-child(3) {
  left: 54px;
  bottom: 0;
  animation-delay: 1.3s;
}

@keyframes sealSparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(.7);
  }

  45%, 60% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.envelope.opening + .seal-sparkles {
  display: none;
}

.envelope {
  width: 100%;
  height: 100vh;
  max-width: 430px;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  transition: transform .6s ease, opacity .6s ease;
  display: block;
}

.envelope.opening {
  transform: scale(1.01);
  opacity: 1;
}

.envelope.fade-out {
  opacity: 0;
  transform: translateY(-28px) scale(.98);
}

/* ESTRUCTURA GENERAL */
.card-section {
  min-height: auto;
  padding: 54px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 390px;
  background: #fffaf6;
  border: 1px solid rgba(191, 163, 111, .45);
  border-radius: 28px;
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(31, 47, 79, .12);
  overflow: hidden;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h2 {
  font-size: 34px;
  margin-bottom: 18px;
  color: #1f4778;
}

p {
  font-size: 16px;
  line-height: 1.7;
}

.heart {
  color: #dd7f82;
  font-size: 24px;
  margin-top: 12px;
}

.main-button {
  margin-top: 22px;
  border: none;
  background: #8eb3d5;
  color: white;
  padding: 15px 26px;
  border-radius: 18px;
  font-size: 16px;
  cursor: pointer;
  transition: .3s;
  text-decoration: none;
  display: inline-block;
  font-family: Georgia, serif;
}

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

/* INVITACIÓN */
#invitacion {
  padding-top: 46px;
}

.real-invitation-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 46px 22px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(255,250,246,.62), rgba(255,250,246,.62)),
    url("assets/compromiso-acuarela.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.real-invitation-card::before,
.real-invitation-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(55px);
  z-index: 0;
}

.real-invitation-card::before {
  background: rgba(230,175,190,.20);
  top: 80px;
  left: -70px;
}

.real-invitation-card::after {
  background: rgba(180,200,230,.20);
  bottom: 90px;
  right: -70px;
}

.real-invitation-card > * {
  position: relative;
  z-index: 2;
}

.invite-decoration-top {
  color: #d98aa0;
  font-size: 24px;
  letter-spacing: 6px;
  margin-bottom: 26px;
}

.couple-names {
  font-family: "Allura", cursive;
  font-size: 58px;
  line-height: 1;
  font-weight: 400;
  color: #1f4778;
  margin: 0 0 8px;
  white-space: nowrap;
  letter-spacing: 0;
  transform: scaleX(.92);
  transform-origin: center;
}

.couple-and {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  color: #d98aa0;
  line-height: 1.25;
  margin: 8px 0 20px;
}

.wedding-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #1f2f4f;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 18px;
  margin: 30px 0 30px;
}

.invite-text {
  color: #1f2f4f;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 34px;
}

.main-date {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #204a84;
  font-size: 28px;
  letter-spacing: 6px;
  margin-bottom: 32px;
}

.invite-decoration-bottom {
  color: #d98aa0;
  font-size: 22px;
}

/* DECORACIONES */
.arya-top-decoration,
.story-decoration,
.location-decoration,
.dress-decoration,
.bus-decoration,
.gift-decoration,
.rsvp-decoration,
.contact-decoration,
.countdown-stars,
.thanks-stars {
  color: #d98aa0;
  letter-spacing: 6px;
  font-size: 22px;
  margin-bottom: 18px;
}

/* ARYA */
.arya-card {
  position: relative;
}

.arya-title {
  color: #1f4778;
  margin-bottom: 18px;
}

.story-image {
  width: 85%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 5px;
  border-radius: 18px;
}

.arya-subtitle {
  color: #d98aa0;
  font-style: italic;
  font-size: 20px !important;
  margin: 0 0 16px;
}

.small-title {
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 22px;
  color: #1f2f4f;
}

.story-card p {
  font-size: 15px;
  line-height: 1.65;
  margin: 10px 0 16px;
}

.arya-final {
  color: #d98aa0;
  font-size: 24px !important;
  font-style: italic;
  margin-top: 22px;
}

/* HISTORIA */
.history-card h2 {
  color: #1f4778;
  margin-bottom: 22px;
}

.history-image {
  width: 100%;
  border-radius: 22px;
  display: block;
  margin: 18px 0 28px;
  box-shadow: 0 8px 22px rgba(31,47,79,.08);
}

.story-text {
  max-width: 92%;
  margin: 0 auto;
}

.story-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2f4f;
}

.story-text p:first-child {
  color: #d98aa0;
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
}

.story-text p:nth-child(2) {
  margin-bottom: 22px;
}

.story-decoration-bottom {
  margin-top: 16px;
  margin-bottom: 0;
}

/* TARJETAS CON ACUARELA */
.location-card,
.bus-card,
.music-card,
.refined-dress-card,
.gifts-card,
.rsvp-card,
.contact-card,
.countdown-card,
.final-photo-card {
  position: relative;
  overflow: hidden;
}

.location-card::before,
.bus-card::before,
.music-card::before,
.refined-dress-card::before,
.gifts-card::before,
.rsvp-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(230,175,190,.22);
  top: 36px;
  left: -65px;
  filter: blur(55px);
  z-index: 0;
}

.location-card::after,
.bus-card::after,
.music-card::after,
.refined-dress-card::after,
.gifts-card::after,
.rsvp-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(180,200,230,.22);
  bottom: 36px;
  right: -65px;
  filter: blur(55px);
  z-index: 0;
}

.location-card > *,
.bus-card > *:not(.bus-watermark),
.music-card > *,
.refined-dress-card > *,
.gifts-card > *,
.rsvp-card > *,
.contact-card > * {
  position: relative;
  z-index: 2;
}

/* UBICACIÓN */
.location-card h2 {
  margin-bottom: 24px;
}

.location-image {
  width: 100%;
  max-width: 315px;
  height: auto;
  display: block;
  margin: 18px auto 24px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(31, 47, 79, .10);
}

.venue-name {
  color: #1f4778;
  font-size: 28px;
  margin-bottom: 8px;
}

.venue-location {
  color: #d98aa0;
  font-size: 16px;
  letter-spacing: .5px;
  margin-bottom: 24px;
}

.location-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.location-button {
  margin-top: 12px;
  z-index: 3;
}

/* AUTOBÚS */
.bus-card h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.bus-intro {
  max-width: 90%;
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2f4f;
  font-style: italic;
}

.bus-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.bus-watermark img {
  width: 310px;
  max-width: 90%;
  opacity: .60;
  display: block;
  filter: saturate(.85);
}

.bus-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin: 22px 0;
}

.bus-time {
  font-size: 32px;
  color: #1f4778;
  font-weight: 500;
}

.bus-place {
  font-size: 16px;
  color: #1f2f4f;
  text-align: center;
}

.bus-place.highlight {
  font-size: 20px;
  color: #1f4778;
  font-weight: 500;
}

.bus-arrow {
  color: #d98aa0;
  font-size: 26px;
  line-height: 1;
}

.bus-late-note {
  font-size: 13px;
  color: #d98aa0;
  font-style: italic;
  margin: -4px 0 4px;
}

.bus-note {
  margin-top: 18px;
  font-size: 14px;
  color: #7a7a7a;
  font-style: italic;
}

/* DRESS CODE */
.dress-card h2 {
  margin-bottom: 10px;
}

.dress-intro {
  color: #d98aa0;
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 auto 8px;
  max-width: 92%;
}

.dress-image {
  width: 110%;
  max-width: none;
  display: block;
  margin: -8px 0 -10px;
  transform: translateX(-4%);
  border-radius: 10px;
  margin-bottom: 20px;
}

.dress-text {
  font-size: 18px;
  line-height: 1.75;
  max-width: 92%;
  margin: 0 auto 12px;
}

.dress-highlight {
  margin-top: 14px;
  color: #d98aa0;
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
}

/* MÚSICA */
.music-card h2 {
  font-size: 28px;
  margin-bottom: 22px;
}

.music-card p {
  font-size: 15px;
  margin-bottom: 16px;
}

.music-disco {
  width: 150px;
  max-width: 70%;
  display: block;
  margin: 18px auto 16px;
}

.question {
  font-style: italic;
  font-size: 18px !important;
}

.music-input {
  width: 100%;
  max-width: 330px;
  display: block;
  border: 1px solid #9db9d4;
  border-radius: 14px;
  padding: 15px;
  font-size: 15px;
  margin: 16px auto 10px;
  font-family: Georgia, serif;
  color: #1f2f4f;
  background: #fff;
}

/* REGALOS */
.gift-decoration {
  margin-bottom: 8px;
}

.gift-image {
  width: 285px;
  max-width: 96%;
  max-height: none;
  object-fit: contain;
  display: block;
  margin: -8px auto 0;
}

.gifts-card h2 {
  font-size: 34px;
  margin-bottom: 16px;
  color: #1f4778;
}

.gifts-card p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.gift-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.gift-toggle {
  border: none;
  background: #8eb3d5;
  color: white;
  padding: 12px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 15px;
}

.gift-hidden {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(31,71,120,.12);
}

.gift-hidden.show {
  display: block;
}

.thanks-gift {
  margin-top: 24px;
  color: #d98aa0 !important;
  font-size: 21px !important;
  font-style: italic;
}

/* RSVP */
.rsvp-card {
  text-align: center;
}

.rsvp-card h2 {
  font-size: 34px;
  margin-bottom: 16px;
  color: #1f4778;
}

.rsvp-intro {
  max-width: 92%;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2f4f;
}

.rsvp-question {
  font-size: 15px;
  line-height: 1.65;
  margin: 4px auto 12px;
  max-width: 92%;
}

.conditional-section {
  margin-top: 4px;
}

.rsvp-input,
.rsvp-textarea {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid #d5e2ec;
  margin-bottom: 16px;
  font-family: Georgia, serif;
  font-size: 15px;
  background: rgba(255,255,255,.9);
  color: #1f2f4f;
}

.rsvp-textarea {
  min-height: 115px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 18px;
  text-align: left;
}

.radio-group label {
  background: rgba(247,251,255,.78);
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid #dce8f2;
  font-size: 15px;
}

.radio-group input {
  margin-right: 8px;
}

.mini-title {
  margin: 18px 0 8px;
  font-weight: bold;
  color: #1f4778;
}

.rsvp-note {
  margin: 6px 0 16px;
  color: #d98aa0;
  font-style: italic;
  font-size: 15px;
}

.rsvp-love {
  color: #d98aa0;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  margin: 20px 0 4px;
}

/* CONTACTO */
.contact-card h2 {
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
  align-items: start;
}

.contact-person {
  text-align: center;
}

.contact-person img {
  width: 138px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  border-radius: 22px;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform .3s ease;
}

.contact-person img:hover {
  transform: scale(1.03);
}

.contact-person h3 {
  color: #1f4778;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
}

.contact-button {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 16px;
  background: #8eb3d5;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.contact-footer {
  margin-top: 24px;
  color: #1f4778;
  font-style: italic;
  font-size: 15px;
}

/* CUENTA ATRÁS */
.countdown-card::before,
.countdown-card::after {
  content: "✦";
  position: absolute;
  font-size: 20px;
}

.countdown-card::before {
  top: 22px;
  left: 28px;
  color: #d9b46a;
}

.countdown-card::after {
  bottom: 22px;
  right: 28px;
  color: #1f4778;
}

.countdown-card h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.countdown-header {
  margin-bottom: 22px;
}

.clock-decoration {
  width: 90px;
  height: 90px;
  margin: 0 auto 18px;
  border: 3px solid rgba(31,71,120,.18);
  border-radius: 50%;
  position: relative;
}

.clock-decoration::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 24px;
  background: #1f4778;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.clock-decoration::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 3px;
  background: #d98aa0;
  top: 44px;
  left: 44px;
  transform-origin: left center;
  transform: rotate(35deg);
}

.countdown-text {
  font-style: italic;
  margin-bottom: 24px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.countdown-grid div {
  background: #f7fbff;
  border: 1px solid #d5e2ec;
  border-radius: 18px;
  padding: 18px 10px;
}

.countdown-grid span {
  display: block;
  font-size: 38px;
  color: #1f4778;
  margin-bottom: 6px;
  font-weight: 400;
  transition: transform .2s ease;
}

.countdown-grid span.tick {
  transform: scale(1.08);
}

.countdown-grid p {
  font-size: 12px;
  letter-spacing: 1px;
}

.countdown-date {
  margin-top: 18px;
  color: #b89b5e;
  letter-spacing: 2px;
}

/* GRACIAS FINAL */
#gracias,
.final-section {
  padding-bottom: 125px;
}

.final-photo-card {
  background: #fffaf6;
}

.final-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/final-bg.png");
  background-size: cover;
  background-position: center;
  opacity: .40;
  z-index: 0;
}

.final-photo-card > * {
  position: relative;
  z-index: 1;
}

.final-photo-card h2 {
  font-size: 54px;
  margin-bottom: 10px;
  color: #1f4778;
}

.final-photo-card p {
  color: #1f2f4f;
  line-height: 1.8;
}

.intro-text {
  margin-bottom: 35px;
}

.main-message {
  margin-bottom: 45px;
}

.highlight-text {
  color: #1f4778 !important;
  font-size: 20px;
  font-style: italic;
  margin-bottom: 20px;
}

.final-date {
  color: #b89b5e !important;
  letter-spacing: 3px;
  font-size: 20px;
  margin-top: 12px;
}

.final-signature {
  white-space: nowrap;
  margin-top: 18px;
}

.name-script {
  font-family: "Allura", cursive;
  font-size: 48px;
  color: #1f4778;
}

.ampersand {
  font-family: Georgia, serif;
  font-size: 34px;
  color: #d98aa0;
  margin: 0 8px;
}

/* MENÚ INFERIOR */
.bottom-nav {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: calc(100% - 30px);
  max-width: 430px;
  background: rgba(255,250,246,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(191,163,111,.35);
  border-radius: 22px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 10px;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(31,47,79,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease, transform .55s ease;
}

body.menu-visible .bottom-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.bottom-nav a {
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  transition: .3s;
  opacity: .55;
}

.bottom-nav a:hover {
  transform: translateY(-2px);
}

.bottom-nav a.active {
  opacity: 1;
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(142,179,213,.8);
  filter: drop-shadow(0 0 6px rgba(142,179,213,.7));
}
/* MICROEFECTOS ELEGANTES */
.card-section:not(.hero) .card {
  opacity: 1;
  transform: none;
}

.invite-decoration-top,
.invite-decoration-bottom,
.arya-top-decoration,
.story-decoration,
.location-decoration,
.dress-decoration,
.bus-decoration,
.gift-decoration,
.rsvp-decoration,
.contact-decoration,
.countdown-stars,
.thanks-stars {
  animation: softFloat 6s ease-in-out infinite;
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

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

  .card-section:not(.hero) .card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 430px) {
  .card-section {
    padding: 46px 18px;
  }

  .card {
    padding: 32px 24px;
  }

  .hero-content,
  .envelope {
    max-width: none;
  }

  .contact-grid {
    gap: 12px;
  }

  .contact-person img {
    width: 120px;
  }

  .contact-button {
    padding: 9px 12px;
    font-size: 13px;
  }

  .dress-image {
    width: 96%;
    margin: 0 auto -8px;
  }

  .dress-intro {
    font-size: 21px;
    margin-bottom: 8px;
  }

  .dress-highlight {
    font-size: 20px;
  }

  .gift-image {
    width: 295px;
    max-width: 98%;
  }
}


/* MENSAJES DE ENVÍO */
.form-status{
  margin-top:16px;
  color:#d98aa0;
  font-size:16px;
  font-style:italic;
  line-height:1.5;
}

.form-status.error{
  color:#b94a48;
}
