*,*::before,*::after {
    box-sizing: border-box
}

:root {
    --bg-main: #160b12;
    --rose: #cf8fa0;
    --rose-2: #eac4cf;
    --gold: #debf98;
    --cream: #fff8f6;
    --ink: #2b1521;
    --card-width: min(92vw,430px);
    --gif-height: clamp(58px,12vw,84px);
    --shadow-deep: 0 24px 60px rgba(0,0,0,.28)
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(207, 143, 160, .18), transparent 28%), linear-gradient(180deg, #d1a7a7 0%, #d1a7a7 45%, #d1a7a7 100%);
    color: #912405;
    font-family: "Montserrat",Arial,sans-serif;
    overflow-x: hidden
}

.textoconteo {
	color: #ffffff;
}


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

button,input,textarea {
    font: inherit
}

button {
    border: 0;
    background: none;
    padding: 0
}

#particles-canvas{position:fixed;inset:0;width:100%;height:100%;z-index:999;pointer-events:none}


.story {
    position: relative;
    z-index: 1;
    width: 100%;

}

.story-section {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(2rem,7vw,3.8rem) 0;
}

.story-card {
    position: relative;
    width: var(--card-width);
    aspect-ratio: 9/16;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,240,246,.18);
    transform: translateY(30px) scale(.985);
    opacity: 0;
    transition: transform .8s ease,opacity .8s ease,box-shadow .35s ease
}

.story-card:hover {
    box-shadow: 0 28px 70px rgba(0,0,0,.35)
}

.story-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1)
}

.card-bg,.card-shade,.card-content {
    position: absolute;
    inset: 0
}

.card-bg {
    background-size: cover;
    background-position: center;
    transform: translate3d(0,var(--parallax-y,0px),0) scale(1.09);
    will-change: transform;
    filter: saturate(1.2);
}

.card-shade {
    background: transparent
}

.card-shade-hero {
    background: transparent
}

.card-content {
    z-index: 2;
    padding: clamp(1.15rem,4.4vw,1.55rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .85rem
}

.hero-only {
    justify-content: flex-end;
    align-items: center;
    text-align: center
}

.countdown-box {
    width: 100%;
    margin-top: auto;
    padding: 1rem 0 .3rem
}

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

.countdown-item {
    padding: .9rem .35rem;
    border-radius: 18px;
    background: rgba(91,51,64,.35);
    border: 1px solid rgba(255,241,244,.24);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15)
}

.countdown-item span {
    display: block;
    font-size: clamp(1.55rem,5vw,2.1rem);
    font-weight: 700;
    line-height: 1
}

.countdown-item small {
    display: block;
    margin-top: .35rem;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,243,246,.88)
}

.event-date {
    margin: .95rem 0 0;
    font-family: "Cormorant Garamond",Bold;
    font-size: clamp(1.5rem,3.4vw,1.3rem);
    letter-spacing: .04em
	
  color: #fff; /* Color del texto principal */
  text-shadow: 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff; /* Efecto neÃ³n */
}

		
}

.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin-top: .2rem;
    padding-bottom: .25rem;
    color: var(--cream)
}

.scroll-cue img {
    width: 56px;
    height: 56px;
    animation: bounceArrow 1.8s infinite ease-in-out;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,.35))
}

.scroll-cue span {
    font-size: .78rem;
    letter-spacing: .28em;
    text-transform: uppercase
}

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

    50% {
        transform: translateY(9px);
        opacity: 1
    }
}

.small-kicker {
    margin: 0;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgb(145 36 5);
}

.script-title {
    margin: .25rem 0;
    font-family: "Great Vibes",cursive;
    font-size: clamp(2.2rem,9vw,3.75rem);
    font-weight: 400;
    line-height: .95;
    color: #912405;
}

.section-title {
    margin: 0;
    font-family: "Cormorant Garamond",serif;
    font-size: clamp(1.95rem,7vw,2.9rem);
    font-weight: 600;
    line-height: 1.05;
    color: ##912405;
}

.centered-message {
    justify-content: center;
    align-items: center;
    text-align: center
}

.message-copy,.detail-copy {
    margin: 0;
    max-width: 92%;
    font-size: clamp(.94rem,5.35vw,1.08rem);
    line-height: 1.58
}

.detail-copy.compact {
    max-width: 100%;
    font-size: .9rem;
    line-height: 1.45
}

.mosaic-grid {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .7rem
}

.mosaic-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255,242,246,.28);
    box-shadow: 0 14px 30px rgba(0,0,0,.18)
}

.detail-stack {
    justify-content: center;
    align-items: center;
    text-align: center
}

.center-stack {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem
}

.section-icon {
    width: clamp(66px,18vw,92px);
    height: clamp(66px,18vw,92px);
    margin-bottom: .4rem;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,.2))
}
.section-icon2 {
    width: clamp(200px,18vw,92px);
    /* height: clamp(10px,18vw,92px); */
    margin-bottom: 4rem;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,.2));
}

.calendar-month {
    padding: .45rem 1rem;
    border-radius: 999px;
    background: rgba(255,248,250,.14);
    letter-spacing: .24em;
    font-size: .82rem;
    text-transform: uppercase
}

.calendar-number {
    font-size: clamp(3.4rem,15vw,5.4rem);
    margin: .35rem 0 .1rem;
    line-height: .9
}

.card-location {
    justify-content: center;
    text-align: center;
    gap: .6rem
}

.map-frame {
    width: 100%;
    height: clamp(220px,37svh,290px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,241,244,.28);
    box-shadow: 0 16px 34px rgba(0,0,0,.2);
    background: rgba(255,246,249,.1)
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: .95rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg,rgba(207,143,160,.96),rgba(222,191,152,.95));
    color: #30101f;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(0,0,0,.18)
}

.card-form {
    justify-content: center;
    text-align: center;
    gap: .65rem
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    width: 100%;
    text-align: left
}

.rsvp-form label {
    display: flex;
    flex-direction: column;
    gap: .35rem
}

.rsvp-form span {
    font-size: .74rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgb(145 36 5);
}

.double-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .7rem
}

.rsvp-form input,.rsvp-form textarea {
    width: 100%;
    border: 1.5px solid rgb(157 35 61 / 26%);
    border-radius: 16px;
    padding: .9rem .95rem;
    color: #922708;
    background: rgba(255,247,249,.11);
    backdrop-filter: blur(10px);
    outline: none
}

.rsvp-form input::placeholder,.rsvp-form textarea::placeholder {
    color: rgba(255,241,244,.62)
}

.rsvp-form input:focus,.rsvp-form textarea:focus {
    border-color: rgba(255,244,247,.72);
    box-shadow: 0 0 0 3px rgba(207,143,160,.16)
}

.rsvp-form textarea {
    resize: none;
    min-height: 84px
}

.form-button {
    margin-top: .2rem;
    width: 100%
}

.form-status {
    margin: 0;
    min-height: 1.2rem;
    text-align: center;
    font-size: .88rem;
    color: rgb(145 36 5);
}

.music-toggle {
    position: fixed;
    right: max(.9rem,env(safe-area-inset-right,0px) + .4rem);
    top: max(.45rem, env(safe-area-inset-top,0px) + 0.5rem);
    z-index: 25;
    display: inline-flex;
    align-items: center;
    /* gap: .55rem; /* 
    /* padding: .25rem .25rem; */
    border-radius: 999px;
    background: rgb(255 255 255 / 28%);
    color: var(--cream);
    border: 1px solid rgba(255,244,247,.18);
    backdrop-filter: blur(5px);
    box-shadow: 0 12px 28px rgba(0,0,0,.24)
}

.music-toggle img {
    width: 70px;
    height: 70px;
}

.music-toggle span {
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase
}

@media (max-width: 389px) {
  .music-toggle {
    width: 75px;
    height: 75px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .music-toggle img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
  }

  .music-toggle span {
    display: none;
  }
}


.fixed-gif {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(100vw,520px);
    z-index: 20;
    padding-inline:max(.55rem,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));pointer-events: none
}

.fixed-gif img {
    width: 100%;
}

.fixed-gif-top {
    top: max(.4rem,env(safe-area-inset-top,0px) + .2rem)
}

.fixed-gif-bottom {
    bottom: max(.45rem,env(safe-area-inset-bottom,0px) + .2rem)
}

@media (max-width: 389px) {
    .story-card {
        width:93vw;
        border-radius: 28px
    }

    .countdown-item {
        padding: .78rem .2rem
    }

    .countdown-item span {
        font-size: 1.35rem
    }

    .message-copy,.detail-copy {
        font-size: .9rem
    }

    .map-frame {
        height: 200px
    }

    .music-toggle {
       
    }

    .music-toggle span {
        display: none
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .story-card,.card-bg,.scroll-cue img {
        transition: none;
        animation: none;
        transform: none !important
    }
}

.map-link{
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 10;
}



.map-link{
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 9999;
}

#Lugar .centered-message{
  pointer-events: none;
}

.section-icon2{
  animation: latidoMap 1.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes latidoMap{
  0%, 100%{
    transform: scale(1);
  }
  50%{
    transform: scale(1.1);
  }
}



.card-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.card-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 1;
}

.card-shade{
  z-index: 2;
}

.card-content{
  z-index: 3;
}
