@import url('https://fonts.googleapis.com/css2?family=Coiny&family=Titan+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nerko+One&family=Sriracha&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --color-pink: #feecea;
    --color-white: #fff;
    --color-black: #333;
    --color-text-pink: #ff7882;
    --color-heart: #F61F1F;
    --color-bg-letter: #fff8e4;
    --color-border: #DACCBF;
}

html {
    height: 100%;
}

body {
    position: relative;
    font-size: 16px;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: linear-gradient(var(--color-pink), var(--color-pink));
}

#wrapper {
    position: relative;
    background-color: transparent;
    background-image: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 1) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 1) 76%, transparent 77%, transparent), 
                      linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255,1) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 1) 76%, transparent 77%, transparent);
    min-height: 100vh;
    background-size: 80px 80px;
    overflow-x: hidden;
    z-index: 1;
}

.flag__birthday {
    display: flex;
    justify-content: space-between;
    transform: translateY(-200px);
    animation: translateYFlag 1.5s 2s forwards;
}

@keyframes translateYFlag {
    to {
        transform: translateY(-10px);
    }
}

.flag__birthday .flag__left {
    transform: rotate(-10deg) translate(-20px, 30px);
}

.flag__birthday .flag__right {
    transform: rotate(10deg) translate(20px, 30px) scaleX(-1);
}

.content {
    width: 100%;
    position: relative;
    display: flex;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.content .left, .content .right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content .left {
    width: 40%;
    padding-left: 100px;
}

.content .right {
    width: 60%;
}

.left .btn {
    transform: scale(0);
    animation: scaleCricle 2s 16s forwards ease-in-out;
}

#btn__letter {
    position: relative;
    margin-top: 30px;
    background-color: var(--color-text-pink);
    outline: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 50px;
    border: 3px solid var(--color-black);
    font-family: "Sriracha", cursive;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transform: scale(1);
    transition: all .5s ease-in-out;
}

#btn__letter:active {
    transform: scale(0.7);
}

#btn__letter i {
    margin-left: 5px;
}

#btn__letter:hover {
    border-color: var(--color-heart);
    background-color: var(--color-heart);
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

#btn__letter:hover i {
    animation: rotateHeart 1s infinite linear;
}

@keyframes rotateHeart {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(12deg);
    }
    75% {
        transform: rotate(-12deg);
    }
}

.title {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    font-family: "Titan One", sans-serif;
    font-size: 3rem;
    flex-direction: column;
    perspective: 1000px;
}

.title .happy, .title .birthday {
    position: relative;
    text-shadow: 4px 4px var(--color-black), 
                -4px 4px var(--color-black), 
                4px -4px var(--color-black), 
                -4px -4px var(--color-black), 
                4px 8px 0 var(--color-black);
    font-weight: bold;
    display: flex;
    justify-content: center;
}

.title .happy {
    color: var(--color-white);
}

.title .happy span, .title .birthday span {
    transform: translateY(50px);
    opacity: 0;
    visibility: hidden;
    animation: txtTranslateY .5s var(--t) forwards;
}

@keyframes txtTranslateY {
    100% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.title .birthday {
    color: var(--color-text-pink);
}

.title .hat {
    position: absolute;
    right: 45px;
    top: -350px;
    transform: rotate(-40deg);
    z-index: -1;
    animation: topHat 4s 7s forwards ease;
}

@keyframes topHat {
    20%, 30% {
        top: -30px;
        transform-origin: left;
        transform: rotate(-40deg);
    }
    35%, 100% {
        top: -30px;
        transform: rotate(0deg);
    }
}

.date__of__birth, .name {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-text-pink);
    border-radius: 50px;
    margin-top: 20px;
    font-family: "Sriracha", cursive;
}

.date__of__birth {
    border: 3px solid var(--color-black);
    position: relative;
    transform: translateY(-100px);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    width: 0px;
    animation: dateOfBirth 5s 9s forwards;
}

@keyframes dateOfBirth {
    20%, 40% {
        width: 0px;
        height: 0;
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
    }
    45% {
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
        width: 300px;
        height: 0px;
    }
    50%, 100% {
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
        width: 300px;
        height: 50px;
    }
}

.name {
    position: absolute;
    padding: 0px 40px;
    bottom: -20px;
    border: 3px solid var(--color-black);
}

.date__of__birth span, .name span {
    font-weight: bold;
    margin: 0px 10px;
}

.date__of__birth span {
    font-size: 1.2rem;
}

.name span {
    font-size: 1.7rem;
}

.right .box__account {
    position: relative;
    transform: translateY(700px);
    animation: topBoxImage 8s 7s forwards ease-in;
}

@keyframes topBoxImage {
    to {
        transform: translateY(0);
    }
}

.content .right .image {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 6px solid var(--color-black);
}

.content .right .image img {
    width: 100%;
    object-fit: cover;
}

.cricle {
    position: absolute;
    top: 20px;
    right: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
    animation: scaleCricle 3s 15s forwards ease-in-out;
}

@keyframes scaleCricle {
    0% {
        transform: scale(0);
    }
    10% {
        transform: scale(1.3);
    }
    20% {
        transform: scale(0.7);
    }
    30%, 100% {
        transform: scale(1);
    }
}

.text__cricle {
    width: 100px;
    height: 100px;
    background-color: var(--color-text-pink);
    border-radius: 50%;
    border: 5px solid var(--color-black);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotateCricle 5s linear infinite;
}

@keyframes rotateCricle {
    to {
        transform: rotate(360deg);
    }
}

.text__cricle span {
    top: 0%;
    left: 50%;
    position: absolute;
    color: var(--color-black);
    transform: rotate(calc(var(--i) * 24deg));
    transform-origin: 0 45px;
    font-family: "Sriracha", cursive;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.fa-heart {
    color: var(--color-heart);
    filter: drop-shadow(0 0 3px var(--color-heart));
    animation: scaleHeart 1s infinite linear;
}

.cricle .fa-heart {
    position: absolute;
    transform: scale(0.85);
}

@keyframes scaleHeart {
    50% {
        transform: scale(1.2);
    }
}

.right .balloon_one {
    position: absolute;
    top: -70px;
    left: -70px;
    animation: balloon1 2s infinite linear;
}

@keyframes balloon1 {
    0%, 50%, 100% {
        transform-origin: bottom right;
        transform: rotate(0deg);
    }
    25% {
        transform-origin: bottom right;
        transform: rotate(3deg);
    }
    75% {
        transform-origin: bottom right;
        transform: rotate(-3deg);
    }
}

.right .balloon_two {
    position: absolute;
    top: 170px;
    right: -65px;
    z-index: -1;
    transform: rotate(10deg);
    animation: balloon2 2s infinite linear;
}

@keyframes balloon2 {
    0%, 50%, 100% {
        transform-origin: bottom left;
        transform: rotate(10deg);
    }
    25% {
        transform-origin: bottom left;
        transform: rotate(7deg);
    }
    75% {
        transform-origin: bottom left;
        transform: rotate(13deg);
    }
}

.decorate_star {
    position: absolute;
    transform: scale(0);
    background-color: var(--color-black);
    clip-path: polygon(0 50%, 35% 35%, 50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%);
    animation: scaleCricle 3s var(--t) forwards, scaleStar 2s 16s infinite ease-in-out;
}

.decorate_star.star1 {
    width: 20px;
    height: 20px;
    top: 75px;
    left: 300px;
}

.decorate_star.star2 {
    width: 15px;
    height: 20px;
    top: 35px;
    right: 360px;
}

.decorate_star.star3 {
    width: 14px;
    height: 14px;
    top: 290px;
    left: 630px;
}

.decorate_star.star4 {
    width: 18px;
    height: 18px;
    bottom: 60px;
    left: 35px;
}

.decorate_star.star5 {
    width: 16px;
    height: 18px;
    bottom: 140px;
    left: 500px;
}

@keyframes scaleStar {
    25% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
}

.decorate_bottom {
    position: absolute;
    right: 0;
    bottom: -10px;
}

.decorate_flower--one {
    position: absolute;
    top: 250px;
    left: 50px;
    transform: scale(0);
    animation: scaleCricle 3s var(--t) forwards ease-in-out;
}

.decorate_flower--two {
    position: absolute;
    top: 225px;
    left: 540px;
    transform: scale(0);
    animation: scaleCricle 3s var(--t) forwards ease-in-out;
}

.decorate_flower--three {
    position: absolute;
    top: 150px;
    right: 235px;
    transform: scale(0);
    animation: scaleCricle 3s var(--t) forwards ease-in-out;
}

.smiley__icon {
    position: absolute;
    bottom: 180px;
    left: 600px;
    transform: scale(0);
    animation: scaleCricle 3s 15s forwards ease-in-out;
}

/* MODAL LETTER */
.box__letter {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}

.box__letter .letter__border {
    position: absolute;
    width: 55vw;
    max-width: 900px;
    height: 450px;
    background-color: var(--color-white);
    border-radius: 27px;
    padding: 17px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.letter__border .close {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    cursor: pointer;
    z-index: 15;
}

.letter__border .letter {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-letter);
    border-radius: 10px;
    padding-top: 15px;
}

.letter__border .letter .title__letter {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-weight: bold;
    font-size: 2.4rem;
}

.title__letter .fa-solid {
    margin-left: 5px;
    font-size: 1.3rem;
}

.letter__border .letter .content__letter {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    padding-top: 1.5rem;
    padding-bottom: 70px;
}

.letter__border .letter .content__letter .left {
    position: relative;
    width: 50%;
    height: 100%;
    padding: 1.7rem;
    border-right: 3px solid var(--color-border);
}

.content__letter .left #heart__letter {
    width: 100%;
    max-width: 279px;
    margin: 0 auto;
    display: block;
}

#heart__letter.animationOp {
    animation: opacityHeart 1s 1s forwards;
}

@keyframes opacityHeart {
    to {
        opacity: 1;
    }
}

.content__letter .left .heart {
    position: absolute;
    opacity: 0;
}

.content__letter .left .heart.animation {
    animation: scaleHeartLetter 1s var(--t) infinite ease-in-out;
}

@keyframes scaleHeartLetter {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    10% {
        opacity: 1;
        transform: scale(1.3);
    }
    20% {
        opacity: 1;
        transform: scale(0.7);
    }
    30%, 100% {
        opacity: 1;
        transform: scale(1);
    }
}

.content__letter .left .heart_1 {
    top: 90px;
    left: 30px;
}

.content__letter .left .heart_2 {
    top: 20px;
    right: 70px;
}

.content__letter .left .heart_3 {
    bottom: 50px;
    left: 145px;
}

.content__letter .left .heart_4 {
    top: 140px;
    right: 35px;
}

.content__letter .right {
    position: relative;
    width: 50%;
}

.content__letter .right .love__img {
    opacity: 0;
    position: absolute;
    right: 20px;
    top: -100px;
}

.love__img.animationOp {
    animation: opacityHeart 1s 1s forwards;
}

.content__letter .right .text__letter {
    margin-top: 60px;
    padding: 20px 15px 10px 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
}

.content__letter .right #mewmew {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0;
}

#mewmew.animationOp {
    animation: opacityHeart 1s 1s forwards;
}

#recuerdos.animationOp {
    animation: opacityHeart 1s 1s forwards;
}

#recuerdos {
    position: absolute;
    bottom: 0;
    left: 15px;
    opacity: 0;
}

/* MODAL MEMORIES */
.box__memories {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    z-index: 11;
    display: none;
}

.box__memories .memories__border {
    position: absolute;
    width: 75vw;
    max-width: 1200px;
    max-height: 85vh;
    background-color: var(--color-white);
    border-radius: 27px;
    padding: 17px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.memories__border .close__memories {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    cursor: pointer;
    z-index: 15;
}

.memories__border .memories__content {
    width: 100%;
    max-height: 80vh;
    background-color: var(--color-bg-letter);
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
}

.memories__content .memories__title {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-weight: bold;
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: var(--color-text-pink);
}

.photo__collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px;
}

.photo__item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid var(--color-black);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-white);
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
}

.photo__item.show {
    animation: fadeInPhoto 0.6s forwards;
}

@keyframes fadeInPhoto {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo__item:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.photo__item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo__item:hover img {
    transform: scale(1.1);
}

.photo__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
    font-family: "Sriracha", cursive;
    font-size: 1rem;
    color: var(--color-white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    border-top: 3px solid var(--color-black);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo__item:hover .photo__caption {
    transform: translateY(0);
}

/* LIGHTBOX */
.photo__lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.photo__lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.lightbox__content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    border: 5px solid var(--color-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox__close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background-color: var(--color-heart);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 3px solid var(--color-white);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.lightbox__close:hover {
    transform: rotate(90deg) scale(1.1);
}

.lightbox__close i {
    color: var(--color-white);
    font-size: 1.5rem;
}

.lightbox__caption {
    text-align: center;
    color: var(--color-white);
    font-family: "Sriracha", cursive;
    font-size: 1.2rem;
    margin-top: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 25px;
}

/* SCROLLBAR PERSONALIZADO */
.memories__content::-webkit-scrollbar {
    width: 10px;
}

.memories__content::-webkit-scrollbar-track {
    background: var(--color-border);
    border-radius: 10px;
}

.memories__content::-webkit-scrollbar-thumb {
    background: var(--color-text-pink);
    border-radius: 10px;
    border: 2px solid var(--color-border);
}

.memories__content::-webkit-scrollbar-thumb:hover {
    background: var(--color-heart);
}

/* ===============================================
   RESPONSIVE DESIGN - TABLET
   =============================================== */
@media screen and (max-width: 1024px) {
    .content .left {
        width: 45%;
        padding-left: 50px;
    }
    
    .content .right {
        width: 55%;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .content .right .image {
        width: 350px;
        height: 350px;
    }
    
    .decorate_star.star3 {
        left: 500px;
    }
    
    .decorate_flower--two {
        left: 400px;
    }
    
    .box__letter .letter__border {
        width: 70vw;
        height: 420px;
    }
    
    .content__letter .right .text__letter {
        font-size: 1.1rem;
    }
}

/* ===============================================
   RESPONSIVE DESIGN - MÓVIL
   =============================================== */
@media screen and (max-width: 768px) {
    .flag__birthday .flag__left,
    .flag__birthday .flag__right {
        width: 180px;
    }
    
    .flag__birthday .flag__left {
        transform: rotate(-10deg) translate(-50px, 15px);
    }
    
    .flag__birthday .flag__right {
        transform: rotate(10deg) translate(50px, 15px) scaleX(-1);
    }
    
    .content {
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        align-items: center;
        padding: 2rem 1rem;
    }
    
    .content .left,
    .content .right {
        width: 100%;
        padding: 0;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .title .hat {
        position: absolute;
        right: 82px;
        top: -350px;
        transform: rotate(-40deg);
        z-index: -1;
        animation: topHatMobile 4s 7s forwards ease;
    }
    
    @keyframes topHatMobile {
        20%, 30% {
            top: -39px;
            transform-origin: left;
            transform: rotate(-40deg);
        }
        35%, 100% {
            top: -39px;
            transform: rotate(0deg);
        }
    }
        
    .title .hat img {
        width: 100px;
    }
    
    .date__of__birth {
        margin-top: 30px;
    }
    
    @keyframes dateOfBirth {
        20%, 40% {
            width: 0px;
            height: 0;
        }
        45% {
            width: 250px;
            height: 0px;
        }
        50%, 100% {
            width: 250px;
            height: 50px;
        }
    }
    
    .date__of__birth span {
        font-size: 1rem;
    }
    
    #btn__letter {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
    
    .content .right .image {
        width: 280px;
        height: 280px;
    }
    
    .name {
        bottom: -15px;
        padding: 5px 25px;
    }
    
    .name span {
        font-size: 1.3rem;
    }
    
    .cricle {
        top: 15px;
        right: 20px;
    }
    
    .text__cricle {
        width: 80px;
        height: 80px;
    }
    
    .text__cricle span {
        transform-origin: 0 35px;
        font-size: 0.6rem;
    }
    
    .right .balloon_two {
        top: 120px;
        right: -50px;
    }
    
    .right .balloon_two img {
        width: 70px;
    }
    
    /* Decoraciones - ocultar algunas en móvil para mejor visualización */
    .decorate_star {
        width: 12px !important;
        height: 12px !important;
    }
    
    .decorate_star.star1 {
        top: 50px;
        left: 30px;
    }
    
    .decorate_star.star2 {
        top: 30px;
        right: 30px;
    }
    
    .decorate_star.star3 {
        display: none;
    }
    
    .decorate_star.star4 {
        bottom: 100px;
        left: 20px;
    }
    
    .decorate_star.star5 {
        display: none;
    }
    
    .decorate_flower--one {
        top: 180px;
        left: 20px;
    }
    
    .decorate_flower--one img {
        width: 15px;
    }
    
    .decorate_flower--two {
        display: none;
    }
    
    .decorate_flower--three {
        top: 120px;
        right: 20px;
    }
    
    .decorate_flower--three img {
        width: 15px;
    }
    
    .smiley__icon {
        display: none;
    }
    
    .decorate_bottom {
        bottom: 0;
    }
    
    .decorate_bottom img {
        width: 60px;
    }
    
    /* MODAL LETTER - MÓVIL */
    .box__letter .letter__border {
        width: 92vw;
        height: auto;
        min-height: 400px;
        max-height: 90vh;
        padding: 12px;
    }
    
    .letter__border .letter .title__letter {
        font-size: 1.6rem;
        padding: 0 10px;
    }
    
    .letter__border .letter .content__letter {
        flex-direction: column;
        padding-top: 1rem;
        padding-bottom: 0px;
        overflow-y: auto;
        max-height: calc(90vh - 100px);
    }
    
    .letter__border .letter .content__letter .left {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid var(--color-border);
        padding: 1rem;
        min-height: 200px;
    }
    
    .content__letter .left #heart__letter {
        width: 100%;
        max-width: 170px;
        margin: 0 auto;
        display: block;
    }
    
    .content__letter .left .heart {
        width: 15px;
    }
    
    .content__letter .left .heart_1 {
        top: 50px;
        left: 20px;
    }
    
    .content__letter .left .heart_2 {
        top: 10px;
        right: 40px;
    }
    
    .content__letter .left .heart_3 {
        bottom: 30px;
        left: 80px;
    }
    
    .content__letter .left .heart_4 {
        top: 80px;
        right: 20px;
    }
    
    .content__letter .right {
        width: 100%;
        padding: 1rem;
        position: relative;
        min-height: 250px;
    }
    
    .content__letter .right .love__img {
        position: relative;
        right: auto;
        top: auto;
        text-align: center;
        margin: 0 auto 10px;
        display: block;
    }
    
    .love__img img {
        width: 120px;
        margin: 0 auto;
    }
    
    .content__letter .right .text__letter {
        margin-top: 10px;
        padding: 10px;
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .content__letter .right #mewmew {
        position: relative;
        bottom: auto;
        right: auto;
        width: 80px;
        margin: 10px auto 0;
        display: block;
    }
    
    #recuerdos {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 15px auto 0;
        text-align: center;
    }
    
    #recuerdos #btn__letter {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    /* MODAL MEMORIES - MÓVIL */
    .box__memories .memories__border {
        width: 95vw;
        max-height: 90vh;
        padding: 12px;
    }
    
    .memories__content .memories__title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .photo__collage {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 5px;
    }
    
    .photo__item img {
        height: 250px;
    }
    
    .photo__caption {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .lightbox__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox__caption {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

/* ===============================================
   RESPONSIVE DESIGN - MÓVIL PEQUEÑO
   =============================================== */
@media screen and (max-width: 480px) {
    .flag__birthday .flag__left,
    .flag__birthday .flag__right {
        width: 150px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .title .happy, .title .birthday {
        text-shadow: 2px 2px var(--color-black), 
                    -2px 2px var(--color-black), 
                    2px -2px var(--color-black), 
                    -2px -2px var(--color-black), 
                    2px 4px 0 var(--color-black);
    }
    
    .content .right .image {
        width: 240px;
        height: 240px;
    }
    
    .name span {
        font-size: 1.1rem;
    }
    
    .date__of__birth span {
        font-size: 0.9rem;
    }
    
    @keyframes dateOfBirth {
        20%, 40% {
            width: 0px;
            height: 0;
        }
        45% {
            width: 200px;
            height: 0px;
        }
        50%, 100% {
            width: 200px;
            height: 45px;
        }
    }
    
    .text__cricle {
        width: 70px;
        height: 70px;
    }
    
    .text__cricle span {
        transform-origin: 0 30px;
        font-size: 0.55rem;
    }
    
    .cricle .fa-heart {
        font-size: 0.8rem;
    }
    
    #btn__letter {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .letter__border .letter .title__letter {
        font-size: 1.3rem;
    }
    
    .content__letter .right .text__letter {
        font-size: 0.9rem;
    }
    
    .memories__content .memories__title {
        font-size: 20px;
    }
    
    .photo__item img {
        height: 220px;
    }
    
    .photo__caption {
        font-size: 0.85rem;
        padding: 10px;
    }
}

/* ===============================================
   AJUSTES LANDSCAPE MÓVIL
   =============================================== */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .content {
        flex-direction: row;
        padding: 1rem;
    }
    
    .content .left,
    .content .right {
        width: 50%;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .content .right .image {
        width: 200px;
        height: 200px;
    }
    
    .box__letter .letter__border {
        width: 85vw;
        max-height: 95vh;
    }
    
    .letter__border .letter .content__letter {
        flex-direction: row;
        max-height: calc(95vh - 80px);
    }
    
    .letter__border .letter .content__letter .left {
        width: 45%;
        border-right: 3px solid var(--color-border);
        border-bottom: none;
    }
    
    .content__letter .right {
        width: 55%;
    }
}

/* ===============================================
   OPTIMIZACIONES ADICIONALES
   =============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejora de touch para dispositivos móviles */
@media (hover: none) and (pointer: coarse) {
    #btn__letter,
    .close,
    .close__memories,
    .photo__item,
    .lightbox__close {
        min-height: 44px;
        min-width: 44px;
    }
    
    .photo__item:active {
        transform: scale(0.98);
    }
    
    #btn__letter:active {
        transform: scale(0.95);
    }
}_one {
        top: -50px;
        left: -50px;
    }
    
    .right .balloon_one img {
        width: 70px;
    }
    
    /* .right .balloon */