/* aaaaaa  luego refactorizo esto*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    overflow: hidden;
}

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(
        circle at center,
        #fff9df 0%,
        #f8edc9 45%,
        #e5cca0 100%
    );
}

.card {
    width: min(90vw, 600px);
    height: min(88vh, 720px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #fffef8,
        #fff7dd
    );
    border: 1px solid rgba(190, 150, 60, 0.3);
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(75, 55, 20, 0.25);
    animation: card-appear 1.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(196, 157, 65, 0.35);
    pointer-events: none;
}

.card::after {
    content: "✦";
    position: absolute;
    top: 25px;
    right: 30px;
    color: #d5aa38;
    font-size: 20px;
}

.card__content {
    position: relative;
    z-index: 10;
    width: 75%;
    margin: auto;
    padding-top: 55px;
    text-align: center;
    color: #5d5038;
}

.card__label {
    display: block;
    margin-bottom: 12px;
    color: #c29a28;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 5px;
}

.card__flower {
    margin-bottom: 5px;
    font-size: 40px;
}

.card__title {
    margin-bottom: 15px;
    color: #735f36;
    font-size: 29px;
    font-weight: normal;
}

.card__divider {
    width: 55px;
    height: 1px;
    margin: 0 auto 22px;
    background: #c9a94d;
}

.card__text {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}

.card__message {
    margin-top: 18px;
    color: #947522;
    font-size: 16px;
    font-style: italic;
    line-height: 1.7;
}

.card__signature {
    display: block;
    margin-top: 18px;
    color: #8c7131;
    font-size: 18px;
    font-style: italic;
}

.bouquet {
    position: absolute;
    bottom: -35px;
    left: 50%;
    z-index: 20;
    width: 430px;
    height: 300px;
    transform: translateX(-50%);
}

.bouquet__ribbon {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 30;
    width: 65px;
    height: 55px;
    transform: translateX(-50%);
    border-radius: 5px;
    background: #d5a52f;
}

.bouquet__ribbon::before,
.bouquet__ribbon::after {
    content: "";
    position: absolute;
    top: 35px;
    width: 50px;
    height: 70px;
    background: #c99625;
}

.bouquet__ribbon::before {
    right: 45px;
    transform: rotate(25deg);
}

.bouquet__ribbon::after {
    left: 45px;
    transform: rotate(-25deg);
}

.flower {
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 220px;
    transform-origin: bottom center;
    animation: flower-sway 4s ease-in-out infinite;
}

.flower--left {
    left: 0;
    transform: rotate(-20deg) scale(0.85);
}

.flower--left-center {
    left: 65px;
    bottom: 35px;
    transform: rotate(-10deg);
}

.flower--center {
    left: 150px;
    bottom: 65px;
    transform: scale(1.05);
}

.flower--right-center {
    left: 230px;
    bottom: 35px;
    transform: rotate(10deg);
}

.flower--right {
    left: 300px;
    transform: rotate(20deg) scale(0.85);
}

.flower--front {
    left: 170px;
    bottom: 0;
    transform: rotate(-2deg) scale(0.75);
}

.flower__stem {
    position: absolute;
    bottom: 0;
    left: 56px;
    width: 8px;
    height: 190px;
    border-radius: 10px;
    background: linear-gradient(
        to right,
        #315d28,
        #4d8b35,
        #315d28
    );
}

.flower__leaves::before,
.flower__leaves::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 28px;
    border-radius: 100% 0 100% 0;
    background: #4d8a34;
}

.flower__leaves::before {
    left: 8px;
    bottom: 80px;
    transform: rotate(-30deg);
}

.flower__leaves::after {
    right: 0;
    bottom: 115px;
    transform: rotate(145deg);
}

.flower__head {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flower__petals {
    position: absolute;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        #ffd83d 0deg 12deg,
        transparent 12deg 20deg
    );
    filter: drop-shadow(
        0 3px 2px rgba(160, 110, 0, 0.2)
    );
}

.flower__center {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        #6b3d12 0%,
        #4c270d 60%,
        #321907 100%
    );
    box-shadow:
        inset 0 0 0 5px #8b541a,
        0 3px 5px rgba(0, 0, 0, 0.2);
}

.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sparkles__item {
    position: absolute;
    color: #d7ae37;
    font-size: 15px;
    animation: sparkle-animation 3s infinite ease-in-out;
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flower-sway {
    0% {
        margin-left: 0;
    }

    50% {
        margin-left: 3px;
    }

    100% {
        margin-left: 0;
    }
}

@keyframes sparkle-animation {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@media (max-width: 600px) {
    .card {
        width: 92vw;
        height: 90vh;
    }

    .card__content {
        width: 78%;
        padding-top: 45px;
    }

    .card__title {
        font-size: 23px;
    }

    .card__text,
    .card__message {
        font-size: 14px;
        line-height: 1.55;
    }

    .bouquet {
        bottom: -40px;
        transform: translateX(-50%) scale(0.75);
    }
}
