:root {
  --burgundy: #540b17;
  --gold: #c8a783;
  --gold-light: #e4c4a1;
  --bronze: #b27e49;
  --paper: #f6eee6;
  --gray: #d9d9d9;
  --title: "Fraunces", serif;
  --serif: "Suranna", serif;
  --sans: "Open Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--burgundy);
  color: var(--gold-light);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.preloader {
  position: fixed;
  inset: 0;
  background: var(--burgundy);
  display: grid;
  place-items: center;
  z-index: 10000;
  transition: opacity .6s ease, visibility .6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4px solid rgba(228, 196, 161, .25);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

.button {
  border: 0;
  border-radius: 50px;
  background: var(--gold);
  color: white;
  padding: 15px 30px;
  min-width: 160px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, .28);
  transition: transform .35s ease, background .35s ease, color .35s ease;
}

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

.button.light {
  background: white;
  color: var(--burgundy);
}

.button.light:hover {
  background: var(--burgundy);
  color: white;
}

.music-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--burgundy);
  display: grid;
  place-items: center;
  padding: 24px;
  transition: opacity .6s ease, visibility .6s ease;
}

.music-modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.music-card {
  text-align: center;
  max-width: 760px;
}

.modal-flowers {
  width: min(250px, 70vw);
  animation: float 5s ease-in-out infinite;
}

.music-card p {
  color: var(--bronze);
  font-size: clamp(22px, 4vw, 35px);
  margin: 18px 0 0;
}

.music-card h2 {
  font-family: var(--title);
  color: var(--gold-light);
  font-size: clamp(52px, 9vw, 82px);
  line-height: 1;
  margin: 18px 0 24px;
}

.music-card span {
  color: var(--bronze);
  font-size: 19px;
  display: block;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-actions .button {
  min-width: 190px;
  padding: 11px 22px;
  font-size: 14px;
}

.music-toggle {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 1000;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(200, 167, 131, .95);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
  display: none;
  place-items: center;
  cursor: pointer;
}

.music-toggle.visible {
  display: grid;
}

.music-toggle span,
.music-toggle span:before,
.music-toggle span:after {
  content: "";
  display: block;
  width: 8px;
  height: 34px;
  border-radius: 8px;
  background: white;
  animation: bars .9s ease-in-out infinite alternate;
}

.music-toggle span {
  position: relative;
}

.music-toggle span:before {
  position: absolute;
  left: -16px;
  animation-delay: .15s;
}

.music-toggle span:after {
  position: absolute;
  right: -16px;
  animation-delay: .3s;
}

.music-toggle.paused span,
.music-toggle.paused span:before,
.music-toggle.paused span:after {
  animation-play-state: paused;
  height: 22px;
}

#player-musica-fondo {
  position: absolute;
  left: -99999px;
  width: 10px;
  height: 10px;
}


.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  position: relative;
  background: var(--burgundy);
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 100%;
  height: 345px;
  transform: translateX(-50%);
  background: url("assets/svg/curva01.svg") center bottom/100% no-repeat;
  z-index: 5;
  pointer-events: none;
}

.hero-photo {
  min-height: 100vh;
  background: linear-gradient(rgba(29, 29, 27, .35), rgba(29, 29, 27, .35)), url("assets/img/portada.jpg") center/cover fixed;
  position: relative;
}

.hero-photo:after {
  content: "";
  position: absolute;
  top: -10%;
  right: -405px;
  width: 500px;
  height: 120%;
  background: var(--burgundy);
  border-radius: 50%;
  z-index: 2;
  box-shadow:
    -22px 0 34px rgba(0, 0, 0, .25),
    -58px 0 70px rgba(84, 11, 23, .34);
}

.hero-photo:before {
  content: "";
  position: absolute;
  top: -8%;
  right: -360px;
  width: 480px;
  height: 116%;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(20, 0, 4, .26) 48%, rgba(84, 11, 23, .72) 82%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 199px 24px 202px;
  z-index: 3;
}

.flower {
  position: absolute;
  pointer-events: none;
}

.flower-hero-a {
  width: min(420px, 82%);
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  animation: floatCentered 6s ease-in-out infinite;
}

.flower-hero-b {
  width: 225px;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: floatCentered 6s ease-in-out infinite reverse;
}

.hero-box {
  text-align: center;
  position: relative;
  z-index: 2;
  height: 589px;
}

.date-pill {
  display: inline-block;
  font-family: var(--title);
  color: var(--gold-light);
  font-size: 25px;
  padding: 6px 34px;
  margin-bottom: 44px;
  border: 1px solid var(--gold-light);
}

.hero h1 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(72px, 8vw, 96px);
  line-height: .98;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  color: transparent;
}

.amp {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 58px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  color: var(--gray);
  font-size: 35px;
  position: relative;
  margin: 4px 0;
}

.amp:before,
.amp:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 82px;
  height: 1px;
  background: var(--gold-light);
}

.amp:before {
  right: 72px;
}

.amp:after {
  left: 72px;
}

.quote {
  color: var(--gold);
  font-size: 22px;
  line-height: 1.55;
  margin-top: 58px;
  position: relative;
}

.quote:before,
.quote:after {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: .5;
  font-weight: 700;
}

.quote:before {
  content: "\201C";
  margin-bottom: 14px;
}

.quote:after {
  content: "\201D";
  margin-top: 26px;
}

.countdown-section {
  height: 161px;
  background: var(--burgundy);
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.countdown-section:before {
  content: none;
}

.countdown-section:after {
  content: "";
  position: absolute;
  left: 35%;
  top: -40px;
  width: 34%;
  height: 160px;
  border-top: 2px solid rgba(228, 196, 161, .55);
  border-radius: 50%;
  transform: rotate(-4deg);
  z-index: 1;
  pointer-events: none;
}

.count-ring {
  width: 430px;
  height: 430px;
  margin-top: -257px;
  border: 2px solid rgba(228, 196, 161, .85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  background:
    radial-gradient(circle at 48% 46%, #3c0610 0 47%, #4a0713 48% 63%, transparent 64%),
    radial-gradient(circle, rgba(84, 11, 23, .96) 0 64%, transparent 65%);
  z-index: 6;
}

.count-ring:before,
.count-ring:after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(200, 167, 131, .7);
  border-radius: 50%;
}

.count-ring:after {
  inset: 27px;
  border-color: rgba(228, 196, 161, .62);
}

.count-flowers {
  position: absolute;
  width: 330px;
  top: -78px;
  left: -10px;
  animation: float 5s ease-in-out infinite;
  z-index: 3;
}

.falta {
  font-family: var(--title);
  font-size: 60px;
  margin-top: 58px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  color: transparent;
  z-index: 1;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 315px;
  z-index: 1;
}

.countdown div {
  border-right: 1px solid var(--gold);
  padding: 0 7px;
}

.countdown div:last-child {
  border-right: 0;
}

.countdown strong {
  display: block;
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}

.countdown span {
  display: block;
  color: var(--gold-light);
  font-size: 17px;
  text-transform: uppercase;
  margin-top: 8px;
}

.heart {
  width: 34px;
  height: 34px;
  background: var(--gold);
  transform: rotate(-45deg);
  margin-top: -34px;
  z-index: 1;
}

.heart:before,
.heart:after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 50%;
}

.heart:before {
  top: -17px;
  left: 0;
}

.heart:after {
  left: 17px;
  top: 0;
}

.guests,
.ceremony,
.confirm,
.gallery,
.party,
.gifts,
.map-section,
.footer-invite {
  background: var(--burgundy);
  text-align: center;
  position: relative;
}

.guests {
  padding: 10px 20px 80px;
}

.guest-card {
  max-width: 760px;
  margin: auto;
}

.guest-total {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--burgundy);
  display: inline-grid;
  place-items: center;
  font: 700 35px/1 var(--title);
}

.guest-card h3 {
  font: 700 40px/1 var(--title);
  margin: 8px 0;
  color: var(--gold-light);
}

.guest-small {
  margin: 0 0 20px;
  color: var(--gray);
}

.guest-card li {
  display: table;
  margin: 7px auto;
  padding: 7px 18px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .22);
  color: var(--gold-light);
}

.ceremony {
  padding: 60px 24px 160px;
  overflow: hidden;
}

.two-cols {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
}

.event-card {
  position: relative;
  z-index: 2;
}

.lottie {
  width: 160px;
  height: 160px;
  margin: auto;
}

.lottie.small {
  width: 76px;
  height: 76px;
}

.lottie.icon {
  width: 96px;
  height: 96px;
}

.event-card h2 {
  display: inline-block;
  min-width: 72%;
  padding: 10px 20px;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  font: 700 45px/1.2 var(--title);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  color: transparent;
}

.event-card h4 {
  color: var(--bronze);
  font-size: 25px;
  text-transform: uppercase;
  margin: 26px 0 8px;
}

.event-card p {
  color: var(--gold);
  font-size: 20px;
  margin: 4px 0;
}

.event-card .button {
  margin-top: 16px;
  width: min(260px, 88%);
}

.address {
  color: var(--gold-light) !important;
}

.side-flower {
  position: absolute;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.side-flower.one {
  width: 200px;
  left: -70px;
  top: 360px;
}

.side-flower.two {
  width: 152px;
  left: -38px;
  top: 470px;
}

.side-flower.three {
  width: 170px;
  left: -42px;
  top: 40px;
}

.title {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 66px);
  line-height: 1;
  margin: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--gold-light);
  font-size: 20px;
  font-weight: 300;
}

.confirm {
  padding: 110px 20px;
}

.gallery {
  padding: 50px 0 90px;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 20px;
  width: max-content;
  margin-top: 46px;
  animation: marquee 23s linear infinite;
}

.carousel figure {
  width: 310px;
  margin: 0;
  padding: 15px 15px 85px;
  background: var(--gray);
  box-shadow: 0 6px 15px rgba(0, 0, 0, .25);
  transform: rotate(-2deg);
}

.carousel figure:nth-child(even) {
  transform: rotate(2deg);
  background: var(--gold);
}

.carousel img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}

.party {
  padding: 140px 24px 170px;
  overflow: hidden;
}

.party-grid {
  max-width: 1120px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.party-card {
  min-height: 400px;
  background: var(--gold-light);
  border-radius: 20px;
  padding: 40px 26px;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.party-card h3 {
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
}

.party-card p {
  margin: 0 0 18px;
  line-height: 1.5;
}

.mini-flower {
  position: absolute;
  width: 210px;
  left: -16px;
  top: -72px;
  z-index: -1;
}

.gifts {
  padding: 110px 20px;
  overflow: hidden;
}

.map-section {
  padding: 80px 20px 90px;
}

.map-section iframe {
  display: block;
  width: min(1000px, 92vw);
  height: 460px;
  border: 0;
  margin: 36px auto 24px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .26);
}

.instagram {
  padding: 160px 20px;
  background: linear-gradient(rgba(84, 11, 23, .28), rgba(84, 11, 23, .55)), url("assets/img/instagram.jpg") center/cover fixed;
  text-align: center;
}

.instagram .title,
.instagram .subtitle {
  color: white;
  -webkit-text-fill-color: white;
}

.hashtag {
  display: inline-block;
  color: white;
  font: 700 55px/1 var(--serif);
  margin-top: 28px;
}

.footer-invite {
  padding: 100px 20px 70px;
}

.footer-invite h2 {
  font-family: var(--title);
  font-size: clamp(58px, 8vw, 90px);
  line-height: 1;
  margin: 0 0 36px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  color: transparent;
}

.footer-invite span {
  font-family: var(--serif);
}

.footer-invite ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-invite li {
  margin: 14px 0;
}

.footer-invite button,
.footer-invite a {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 20px;
  cursor: pointer;
}



.modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(84, 11, 23, .95);
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.open {
  display: grid;
}

.modal-box {
  width: min(560px, 100%);
  background: white;
  color: var(--burgundy);
  border-radius: 34px;
  padding: 44px 30px 34px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  animation: pop .35s ease both;
}

.modal-box h3 {
  font: 700 42px/1 var(--title);
  color: var(--gold);
  margin: 0 0 26px;
}

.modal-box p {
  color: var(--burgundy);
  font-size: 18px;
  line-height: 1.55;
}

.modal-box input,
.modal-box textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--gold);
  border-radius: 24px;
  padding: 14px 18px;
  margin: 12px 0;
  text-align: center;
  outline: 0;
}

.modal-box textarea {
  min-height: 105px;
  resize: vertical;
}

.close {
  position: absolute;
  right: 18px;
  top: -18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.qr {
  width: 260px;
  max-width: 100%;
  border: 10px solid white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatCentered {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

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

@keyframes bars {
  to {
    transform: scaleY(.45);
  }
}

@keyframes pop {
  from {
    transform: translateY(20px) scale(.96);
    opacity: 0;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 490px;
    background-attachment: scroll;
  }

  .hero-photo:after {
    inset: auto 0 -1px;
    width: 100%;
    height: 150px;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(transparent, var(--burgundy));
  }

  .hero-photo:before {
    display: none;
  }

  .hero:after {
    height: 150px;
    bottom: -70px;
    width: 240vw;
    background-size: 100% 100%;
  }

  .hero-content {
    min-height: 650px;
    padding-top: 60px;
  }

  .flower-hero-a,
  .flower-hero-b {
    display: none;
  }

  .countdown-section {
    height: 330px;
  }

  .count-ring {
    width: 330px;
    height: 330px;
    margin-top: -62px;
  }

  .count-flowers {
    width: 218px;
    top: -28px;
    left: -8px;
  }

  .falta {
    font-size: 46px;
    margin-top: 60px;
  }

  .countdown {
    width: 280px;
  }

  .two-cols,
  .party-grid {
    grid-template-columns: 1fr;
  }

  .ceremony {
    padding-bottom: 110px;
  }

  .event-card {
    margin-bottom: 40px;
  }

  .party {
    padding-top: 110px;
  }

  .instagram {
    background-attachment: scroll;
    padding: 110px 20px;
  }

  
  .hero-photo {
    background: linear-gradient(rgba(29, 29, 27, .35), rgba(29, 29, 27, .35)), url("assets/img/portada_mobile.jpg") center/cover fixed;
    position: relative;
  }

  .hero-photo {
    width: 100%;
    height: 490px;
    position: relative;
  }

  .hero-photo:after {
    content: "" !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("assets/img/curva_portada_horizontal.png") !important;
    background-repeat: no-repeat !important;
    background-position: bottom center !important;
    background-size: contain !important;
    z-index: 0 !important;
    top: 0 !important;
    left: 0 !important;
  }

  .hero:after{
    display: none;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 70px;
  }

  .amp:before,
  .amp:after {
    width: 54px;
  }

  .amp:before {
    right: 68px;
  }

  .amp:after {
    left: 68px;
  }

  .quote {
    font-size: 20px;
  }

  .count-ring {
    width: 300px;
    height: 300px;
  }

  .count-ring:before {
    inset: 10px;
  }

  .count-ring:after {
    inset: 22px;
  }

  .falta {
    margin-top: 42px;
  }

  .countdown {
    width: 246px;
  }

  .countdown strong {
    font-size: 34px;
  }

  .heart {
    width: 28px;
    height: 28px;
    margin-top: -26px;
  }

  .heart:before,
  .heart:after {
    width: 28px;
    height: 28px;
  }

  .heart:before {
    top: -14px;
  }

  .heart:after {
    left: 14px;
  }

  .event-card h2 {
    font-size: 40px;
    min-width: 86%;
  }

  .title {
    font-size: 45px;
  }

  .subtitle {
    padding: 0 12px;
  }

  .carousel figure {
    width: 265px;
  }

  .carousel img {
    height: 285px;
  }

  .hashtag {
    font-size: 40px;
  }

  .music-toggle {
    top: auto;
    bottom: 12px;
    width: 62px;
    height: 62px;
  }

}