:root {
    --light-blue: #c5d1e2;
    --taupe: #A1988C;
    --beige: #ebd4b6;
    --yellow: #dfbf3d;
    --bluish-gray: #6e818b;
    --brown: #61513C;
    --brown-shadow: rgba(97, 81, 60, 0.80);
    --dark-blue: #192C36;
    --gold: #ffb338;
    --light-shadow: #77571d;
    --dark-shadow: #3e2904;
}

.tangerine-regular {
    font-family: "Tangerine", cursive;
    font-weight: 400;
    font-style: normal;
}

.tangerine-bold {
    font-family: "Tangerine", cursive;
    font-weight: 700;
    font-style: normal;
}

.rationale-regular {
    font-family: "Rationale", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.fuzzy-bubbles-regular {
    font-family: "Fuzzy Bubbles", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.fuzzy-bubbles-bold {
    font-family: "Fuzzy Bubbles", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.mea-culpa-regular {
    font-family: "Mea Culpa", cursive;
    font-weight: 400;
    font-style: normal;
}

.alumni-sans-pinstripe-regular {
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.alumni-sans-pinstripe-regular-italic {
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.alegreya-regular {
    font-family: "Alegreya", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: sans-serif;
    scroll-behavior: smooth;
    background-color: var(--beige);
    color: var(--brown);
}

#hero {
    perspective: 1px;
    transform-style: preserve-3d;
    background-image: url('./images/bg-flower.jpg');
    background-size: cover;
    background-position: center;
}

#hero-bg {
    transform: translateZ(-1px) scale(1.5);
}

.arrow {
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.bounce {
    animation: bounce 2s infinite;
}

.slow-transition {
    transition: all 0.8s ease-in-out;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-15px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

#itinerary {
    background-image: url('./images/bg-evento.jpg');
    background-size: cover;
    background-position: center;
}

#story {
    background-image: url('./images/bg-historia.jpg');
    background-size: cover;
    background-position: center;
}

#rsvp {
    background-image: url('./images/bg-reserva.jpg');
    background-size: cover;
    background-position: center;
}

#regalos {
    background-image: url('./images/bg-regalos.jpg');
    background-size: cover;
    background-position: center;
}

.custom-shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
}

.custom-shape-divider-top .shape-fill {
    fill: var(--light-blue);
}

.custom-shape-divider-top-flip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-top-flip svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
}

.custom-shape-divider-top-flip .shape-fill {
    fill: var(--light-blue);
}

.timer-box {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    background-image: url('./images/bg-cuenta.jpg');
    background-size: cover;
    background-position: center;
}

.bg-countdown {
    background-image: url('./images/bg-cuenta.jpg');
    background-size: cover;
    background-position: center;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timer-item span,
.timer-item-b span {
    display: flex;
}

.timer-item .number {
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(97, 81, 60, 0.80);
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: #33333399;
}

.timer-item-b .number {
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(97, 81, 60, 0.80);
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: #33333399;
    padding-top: 0px;
}

.timer-item .label {
    font-size: 1rem;
    color: #55555599;
    font-family: "Mea Culpa", cursive;
    margin-top: -20px;
}

.timer-item-b .label {
    font-size: 1rem;
    color: #55555599;
    font-family: "Mea Culpa", cursive;
    margin-top: -20px;
}


/* Bride and Groom Section */

#bride-and-groom {
    position: relative;
    overflow: hidden;
    background-image: url('./images/bg-nos-conocimos.jpg');
    background-size: cover;
    background-position: center;
}

.bride-groom-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.groom-side,
.bride-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-card {
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.photo-card img {
    width: 100%;
    display: block;
}

.groom-card {
    transform: rotate(-8deg);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.bride-card {
    transform: rotate(8deg);
    animation: float-bride 8s ease-in-out infinite;
    z-index: 1;
}

.groom-text,
.bride-text {
    font-family: 'Cormorant Garamond', serif;
}

.groom-text {}

.bride-text {
    right: -150px;
    text-align: right;
}

.groom-text h3,
.bride-text h3 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.groom-text p,
.bride-text p {
    line-height: 1.7;
}

.center-icon {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(-8deg);
    }
    50% {
        transform: translateY(-25px) rotate(-6deg);
    }
    100% {
        transform: translateY(0px) rotate(-8deg);
    }
}

@keyframes float-bride {
    0% {
        transform: translateY(0px) rotate(8deg);
    }
    50% {
        transform: translateY(-25px) rotate(6deg);
    }
    100% {
        transform: translateY(0px) rotate(8deg);
    }
}

@keyframes heartbeat {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    10% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    20% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.bg-light-blue {
    background-color: var(--light-blue);
}

.text-shadow-brown {
    text-shadow: 2px 2px 4px rgba(97, 81, 60, 0.80);
    ;
}

.text-shadow-brown-light {
    text-shadow: 2px 2px 4px rgba(97, 81, 60, 0.30);
    ;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(97, 81, 60, 0.80);
    ;
}

.bg-event-card-1 {
    background-image: url('./images/evento-bg/1.png');
    background-size: cover;
    background-position: center;
}

.bg-event-card-2 {
    background-image: url('./images/evento-bg/2.png');
    background-size: cover;
    background-position: center;
}

.bg-event-card-3 {
    background-image: url('./images/evento-bg/3.png');
    background-size: cover;
    background-position: center;
}

.text-shadow-blue-dark {
    text-shadow: 5px 5px 6px #374c5799;
}

.text-shadow-blue-light {
    text-shadow: 5px 5px 6px #8c8ca290;
    ;
}

.bg-brown {
    background-color: var(--brown-shadow);
}

.bubbly-button {
    font-family: "Helvetica", "Arial", sans-serif;
    display: inline-block;
    font-size: 1em;
    padding: 1em 2em;
    margin-top: 100px;
    margin-bottom: 60px;
    -webkit-appearance: none;
    appearance: none;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
    box-shadow: 0 2px 25px #dfbf3d90;
}

.bubbly-button:focus {
    outline: 0;
}

.bubbly-button:before,
.bubbly-button:after {
    position: absolute;
    content: "";
    display: block;
    width: 140%;
    height: 100%;
    left: -20%;
    z-index: -1000;
    transition: all ease-in-out 0.5s;
    background-repeat: no-repeat;
}

.bubbly-button:before {
    display: none;
    top: -75%;
    background-image: radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, transparent 20%, #dfbf3d 20%, transparent 30%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, transparent 10%, #dfbf3d 15%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
}

.bubbly-button:after {
    display: none;
    bottom: -75%;
    background-image: radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, transparent 10%, #dfbf3d 15%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%), radial-gradient(circle, #dfbf3d 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
}

.bubbly-button:active {
    transform: scale(0.9);
    background-color: #dfbf3d;
    box-shadow: 0 2px 25px rgba(255, 0, 130, 0.2);
}

.bubbly-button.animate:before {
    display: block;
    animation: topBubbles ease-in-out 0.75s forwards;
}

.bubbly-button.animate:after {
    display: block;
    animation: bottomBubbles ease-in-out 0.75s forwards;
}

@keyframes topBubbles {
    0% {
        background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
    }
    50% {
        background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
    }
    100% {
        background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

@keyframes bottomBubbles {
    0% {
        background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
    }
    50% {
        background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
    }
    100% {
        background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

@property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
}

.anim-out-spin {
    animation: 0.8s linear 1s 1 alternate opacity-1-to-0;
    animation-delay: 5s;
    animation-fill-mode: both;
}

.anim-out-spin h1 {
    animation: 0.8s linear 1s 1 alternate anim-letter-spacing;
    animation-delay: 4s;
    animation-fill-mode: both;
}

.sp-nboda-p {
    animation: 2.8s linear 1s 1 alternate height-100-to-20;
    animation-delay: 2.3s;
    animation-fill-mode: both;
}

.sp-nboda {
    animation: 2.8s linear 1s 1 alternate height-100-to-10;
    animation-delay: 3.8s;
    animation-fill-mode: both;
}

.sp-nboda-nombre {
    animation: 2.8s linear 1s 1 alternate height-100-to-0;
    animation-delay: 5.3s;
    animation-fill-mode: both;
}

.sp-nboda-bg {
    --tw-backdrop-blur: blur(12px);
    -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    background-color: rgb(127 29 29 / 0.5);
    animation: 2.8s linear 1s 1 alternate anim-bg-out;
    animation-delay: 8.3s;
    animation-fill-mode: both;
}

@keyframes opacity-1-to-0 {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
    }
}

@keyframes anim-letter-spacing {
    0% {
        letter-spacing: normal;
        opacity: 1;
    }
    100% {
        letter-spacing: 40px;
        opacity: 0;
    }
}

@keyframes height-100-to-20 {
    0% {
        opacity: 0;
        transform: scaleY(0);
        height: 100%;
    }
    20% {
        opacity: 1;
        transform: scaleY(1);
        height: 100%;
    }
    60% {
        opacity: 1;
        transform: scaleY(1);
        height: 80%;
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
        height: 24%;
    }
}

@keyframes height-100-to-10 {
    0% {
        opacity: 0;
        transform: scaleY(0);
        height: 100%;
    }
    20% {
        opacity: 1;
        transform: scaleY(1);
        height: 100%;
    }
    60% {
        opacity: 1;
        transform: scaleY(1);
        height: 80%;
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
        height: 22%;
    }
}

@keyframes height-100-to-0 {
    0% {
        opacity: 0;
        transform: scaleY(0);
        height: 100%;
    }
    20% {
        opacity: 1;
        transform: scaleY(1);
        height: 100%;
    }
    60% {
        opacity: 1;
        transform: scaleY(1);
        height: 80%;
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
        height: 20%;
    }
}

@keyframes anim-bg-out {
    0% {
        background-color: rgb(127 29 29 / 0.5);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    100% {
        background-color: rgb(127 29 29 / 0);
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
}

.pointer-events {
    pointer-events: none;
}

.wrapper {
    display: grid;
    grid-template-areas: 'overlap';
    place-content: center;
    height: 100vh;
}

.wrapper>div {
    background-clip: text;
    -webkit-background-clip: text;
    color: --beige;
    grid-area: overlap;
    letter-spacing: 1px;
    -webkit-text-stroke: 4px transparent;
}

div.bg {
    background-image: repeating-linear-gradient( 105deg, var(--gold) 0%, var(--dark-shadow) 5%, var(--gold) 12%);
    color: transparent;
    filter: drop-shadow(5px 15px 15px black);
    transform: scaleY(1.05);
    transform-origin: top;
}

div.fg {
    background-image: repeating-linear-gradient( 5deg, var(--gold) 0%, var(--light-shadow) 23%, var(--gold) 31%);
    color: --beige;
    transform: scale(1);
}

.gold-text {
    background: linear-gradient(to bottom, #cfc09f 27%, #ffecb3 40%, #3a2c0f 78%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    position: relative;
    margin: 0;
}

.gold-text::after {
    background: none;
    content: attr(data-heading) / "";
    left: 0;
    top: 0;
    z-index: -1;
    position: absolute;
    text-shadow: -1px 0 1px #c6bb9f, 0 1px 1px #c6bb9f, 5px 5px 10px rgba(0, 0, 0, 0.4), -5px -5px 10px rgba(0, 0, 0, 0.4);
}