
                /* CONFIG GENERAL*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family: Arial, sans-serif;

    background: #26121f;
    color: white;
}

                /*FONDO  */

.stars {
    position: fixed;
    inset: 0;

    background-image:
        radial-gradient(#ffffff 1px, transparent 1px),
        radial-gradient(#f4b6ce 1px, transparent 1px);

    background-size: 55px 55px, 90px 90px;
    background-position: 0 0, 30px 40px;

    opacity: 0.35;

    animation: starsMove 20s linear infinite;

    pointer-events: none;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-90px);
    }
}

                    /*PORTADA */

.hero {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 30px 20px;

    background:
        radial-gradient(
            circle at center,
            #65304b 0%,
            #3b1b30 50%,
            #26121f 100%
        );

    position: relative;
}

.content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

            /* TEXTS */

.subtitle {
    color: #e9a9c1;

    font-size: 11px;
    letter-spacing: 5px;
    font-weight: bold;
}

h1 {
    margin-top: 20px;

    font-family: Georgia, serif;
    font-size: clamp(45px, 9vw, 75px);

    font-weight: normal;

    color: #fff0f5;
}

.heart {
    color: #ed9fba;

    display: inline-block;

    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

.description {
    margin-top: 20px;

    color: #e8cbd7;

    line-height: 1.8;
    font-size: 15px;
}

                        /* SOBRE */

.envelope-container {
    margin: 60px auto 35px;

    width: 220px;
    height: 155px;

    perspective: 1000px;
}

.envelope {
    width: 100%;
    height: 100%;

    position: relative;

    filter: drop-shadow(0 15px 20px #0006);
}

.envelope-back {
    position: absolute;

    width: 100%;
    height: 100%;

    background: #d98da9;

    border-radius: 5px;
}

.letter {
    position: absolute;

    width: 85%;
    height: 85%;

    background: #fff8f4;

    left: 7.5%;
    top: 5%;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #a7466a;

    font-family: Georgia, serif;

    font-style: italic;

    transition: transform 1s;

    z-index: 2;
}

.envelope-front {
    position: absolute;
    inset: 0;

    background: #efb2c8;

    clip-path: polygon(
        0 0,
        50% 58%,
        100% 0,
        100% 100%,
        0 100%
    );

    z-index: 3;
}

.envelope-flap {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 65%;

    background: #e9a2bd;

    clip-path: polygon(
        0 0,
        100% 0,
        50% 100%
    );

    transform-origin: top;

    transition: transform 0.8s;

    z-index: 4;
}

.seal {
    position: absolute;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #9c365d;

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    left: 50%;
    top: 52%;

    transform: translate(-50%, -50%);

    z-index: 5;

    box-shadow: 0 3px 10px #0003;
}

                /* ANIMACION DEL SOBRE*/

.envelope {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

                /* La solapa */

.envelope-flap {
    transform-origin: top center;

    transform: rotateX(0deg);

    backface-visibility: hidden;

    transition:
        transform 0.9s cubic-bezier(.4, 0, .2, 1);

    z-index: 5;
}

                /* La carta */

.letter {
    position: absolute;

    z-index: 2;

    transform: translateY(0);

    transition:
        transform 1.2s cubic-bezier(.2, .8, .2, 1);

    transition-delay: 0s;
}

                    /* EL FRENTE DEL SOBRE */

.envelope-front {
    z-index: 3;
}

                    /* SELLO */

.seal {
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

                        /* SOBRE ABIERTO */

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope.open .letter {
    transform: translateY(-115px);

    transition-delay: 0.65s;

    z-index: 2;
}

.envelope.open .seal {
    opacity: 0;

    transform: translate(-50%, -50%) scale(0.3);
}

                    /* BOTON */

.instruction {
    color: #e4b9ca;

    font-size: 13px;

    margin-bottom: 20px;
}

button {
    padding: 14px 35px;

    border: 1px solid #e8a9c1;

    border-radius: 30px;

    background: transparent;

    color: white;

    font-size: 14px;

    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    background: #e8a9c1;

    color: #351629;

    transform: translateY(-3px);

    box-shadow: 0 5px 20px #e8a9c155;
}

                /* EFECTO DEL BOTON */

button:active {
    transform: scale(0.95);
}

button:disabled {
    cursor: default;
    opacity: 0.7;
}


                /* TRANCISION DE LA PORTADA */

.hero {
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.hero.hide {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

                /* PANTALLA DE LA CARTA */

.letter-screen {
    min-height: 100vh;

    display: none;

    justify-content: center;
    align-items: center;

    padding: 70px 20px;

    background:
        radial-gradient(
            circle at top right,
            #f4d5e1,
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #f9e8ed,
            #f2d1df,
            #e9c1d2
        );

    opacity: 0;
}

.letter-screen.show {
    display: flex;
    animation: appearLetter 1.5s ease forwards;
}

@keyframes appearLetter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

                /*EL "PAPEL DE LA CARTA" */

.letter-container {
    width: 100%;
    max-width: 760px;

    padding: 55px 45px;

    background: #fffdf9;

    border: 1px solid #e8c8d4;

    box-shadow:
        0 20px 60px #632c491f,
        inset 0 0 30px #f7e9e9;

    position: relative;
}

/* Borde decorativo */

.letter-container::before {
    content: "";

    position: absolute;

    inset: 12px;

    border: 1px solid #efdce2;

    pointer-events: none;
}

                /* TITLES */

.letter-subtitle {
    display: block;

    text-align: center;

    color: #bd7894;

    font-size: 10px;

    letter-spacing: 4px;

    font-weight: bold;
}

.letter-container h2 {
    margin-top: 30px;

    text-align: center;

    font-family: Georgia, serif;

    font-size: clamp(35px, 7vw, 52px);

    font-weight: normal;

    font-style: italic;

    color: #a34568;
}

.letter-divider {
    text-align: center;

    font-size: 27px;

    color: #d68ba9;

    margin: 20px 0 35px;
}

                /* TEXTOVICH*/

.letter-content {
    color: #684655;

    font-family: Georgia, serif;

    font-size: 16px;

    line-height: 2;

    text-align: justify;
}

.letter-content p {
    margin-bottom: 20px;
}

                /* FIRMA PRIME */

.letter-signature {
    margin-top: 35px;

    text-align: right;

    font-family: Georgia, serif;

    font-size: 21px;

    font-style: italic;

    line-height: 1.8;

    color: #a34568;
}

.letter-footer {
    margin-top: 45px;

    padding-top: 20px;

    border-top: 1px solid #efdce2;

    text-align: center;

    font-size: 10px;

    letter-spacing: 2px;

    color: #bd8b9f;
}

                /* RESPONSIVE  */

@media (max-width: 600px) {

    .letter-container {
        padding: 45px 25px;
    }

    .letter-content {
        font-size: 14px;
    }

}


                        /*NUESTRA HISTORY */

.story-section {

    padding: 100px 20px;

    background:
        radial-gradient(
            circle at top,
            #63334d,
            transparent 65%
        ),
        #291522;

    color: white;

    overflow: hidden;
}

.story-header {

    text-align: center;

    max-width: 650px;

    margin: 0 auto 80px;

}

.story-subtitle {

    color: #e8aac1;

    font-size: 10px;

    letter-spacing: 4px;

    font-weight: bold;

}

.story-header h2 {

    font-family: Georgia, serif;

    font-size: clamp(38px, 7vw, 58px);

    font-weight: normal;

    margin: 20px 0;

    color: #ffeaf1;

}

.story-header p {

    color: #e4c4d2;

    line-height: 1.8;

}


            /*LINEA DEL TIEMPOVICH*/

.timeline {

    max-width: 750px;

    margin: auto;

    position: relative;

    padding-left: 45px;

}

                    /*LINEA VERTICAL CHETUKI*/

.timeline::before {

    content: "";

    position: absolute;

    left: 14px;

    top: 0;

    height: 100%;

    width: 2px;

    background: linear-gradient(
        to bottom,
        #f3c0d2,
        #9d5575,
        transparent
    );

}


                /* ELEMENTOS */

.timeline-item {

    position: relative;

    margin-bottom: 55px;

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}

.timeline-item.visible {

    opacity: 1;

    transform: translateY(0);

}


                /*CORAZON DE LA LINEA*/

.timeline-heart {

    position: absolute;

    left: -45px;

    top: 25px;

    width: 30px;

    height: 30px;

    background: #9d4568;

    border: 2px solid #f2bdd0;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    z-index: 2;

    box-shadow: 0 0 18px #e9a6c455;

}


            /*TARJETITAS PRIME*/

.timeline-card {

    padding: 30px;

    background: #45243a;

    border: 1px solid #86506b;

    border-radius: 12px;

    box-shadow: 0 10px 30px #0002;

    transition:
        transform 0.3s ease,
        background 0.3s ease;

}

.timeline-card:hover {

    transform: translateX(7px);

    background: #532a43;

}

.timeline-date {

    font-size: 10px;

    letter-spacing: 3px;

    color: #efb4ca;

    font-weight: bold;

}

.timeline-card h3 {

    font-family: Georgia, serif;

    font-size: 24px;

    font-weight: normal;

    margin: 15px 0;

    color: #ffe1eb;

}

.timeline-card p {

    color: #e7cad6;

    font-size: 14px;

    line-height: 1.9;

}


                /*ULTIMO RECUERDO*/

.final-memory {

    background: linear-gradient(
        135deg,
        #69304e,
        #402035
    );

    border-color: #d58ba9;

}

.story-signature {

    margin-top: 25px;

    color: #f4b7cf;

    font-family: Georgia, serif;

    font-size: 20px;

    font-style: italic;

}


            /*RESPONSABLEE */

@media (max-width: 600px) {

    .timeline {

        padding-left: 40px;

    }

    .timeline-card {

        padding: 22px;

    }

    .timeline-card h3 {

        font-size: 20px;

    }

}


            /*FOTITOS DE RECUERDO*/

.gallery-section {

    padding: 100px 25px;

    background:
        radial-gradient(
            circle at top left,
            #f9dbe6,
            transparent 50%
        ),
        #f7e9ed;

    color: #61364b;

}


            /*ENCABEZADO*/

.gallery-header {

    text-align: center;

    margin-bottom: 65px;

}

.gallery-subtitle {

    color: #b66b89;

    font-size: 10px;

    letter-spacing: 4px;

    font-weight: bold;

}

.gallery-header h2 {

    margin: 20px 0;

    font-family: Georgia, serif;

    font-size: clamp(38px, 7vw, 58px);

    font-weight: normal;

    color: #8f4565;

}

.gallery-header p {

    color: #966e80;

    line-height: 1.8;

}


                /*DISTRIBUCION*/

.gallery-grid {

    max-width: 1050px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;

}


                    /*TARJETAS  AL PUTISIMO ESTILO POLAROID*/

.polaroid {

    background: #fffdf9;

    padding: 13px 13px 22px;

    box-shadow:
        0 8px 25px #68354c20;

    border: 1px solid #eee0df;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;

    opacity: 0;

    transform: translateY(35px);

}

.polaroid.visible {

    opacity: 1;

    transform: translateY(0);

}


            /*INCLINACIONES*/

.polaroid:nth-child(odd) {

    rotate: -2deg;

}

.polaroid:nth-child(even) {

    rotate: 2deg;

}


            /*EFECTO AL PASAR MAUS*/

.polaroid:hover {

    transform: translateY(-12px) scale(1.04);

    rotate: 0deg;

    box-shadow:
        0 18px 35px #68354c30;

    z-index: 2;

}


            /*FOTITOSSS*/

.polaroid-image {

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #eed3df;

}

.polaroid-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;

}

.polaroid:hover img {

    transform: scale(1.08);

}


         /*DESCRIPCIONES DE LAS FOTOS*/

.polaroid p {

    margin-top: 18px;

    text-align: center;

    color: #88566e;

    font-family: Georgia, serif;

    font-style: italic;

    font-size: 15px;

}


                /*EL FIN DE LAS FOTS*/

.gallery-footer {

    text-align: center;

    margin-top: 65px;

    color: #a05d7b;

}

.gallery-footer span {

    font-size: 35px;

}

.gallery-footer p {

    margin-top: 12px;

    font-family: Georgia, serif;

    font-style: italic;

    font-size: 17px;

}


            /*EL CORAZON*/

@media (max-width: 750px) {

    .gallery-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 20px;

    }

}

@media (max-width: 450px) {

    .gallery-grid {

        grid-template-columns: 1fr;

        max-width: 320px;

    }

}

            

.reasons-section{

    padding:120px 25px;

    background:
    radial-gradient(circle at center,#52243d,#26121f);

    text-align:center;

}

.reasons-header{

    max-width:700px;

    margin:auto auto 60px;

}

.reasons-subtitle{

    color:#e8aac1;

    font-size:10px;

    letter-spacing:4px;

    font-weight:bold;

}

.reasons-header h2{

    margin:20px 0;

    font-family:Georgia,serif;

    font-size:clamp(38px,7vw,58px);

    color:#ffeaf1;

    font-weight:normal;

}

.reasons-header p{

    color:#e6c8d5;

    line-height:1.8;

}

.reason-card{

    max-width:550px;

    margin:auto;

    padding:45px 35px;

    background:#45243a;

    border:1px solid #86506b;

    border-radius:18px;

    box-shadow:0 15px 40px #0003;

}

.big-heart{

    font-size:85px;

    color:#f4b7cf;

    cursor:pointer;

    user-select:none;

    transition:.3s;

}

.big-heart:hover{

    transform:scale(1.15);

    filter:drop-shadow(0 0 20px #f4b7cf88);

}

.big-heart:active{

    transform:scale(.92);

}

#reasonText{

    margin-top:30px;

    min-height:90px;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#ffe8f0;

    font-family:Georgia,serif;

    font-size:22px;

    line-height:1.7;

}

            /*CAJITA DE REGALO*/

.gift-section {
    padding: 110px 25px;
    text-align: center;
    background: #24121e;
    color: #ffeaf1;
}

.gift-subtitle {
    color: #e8aac1;
    letter-spacing: 4px;
    font-size: 11px;
}

.gift-section h2 {
    font-family: Georgia, serif;
    font-size: clamp(35px, 6vw, 52px);
    font-weight: normal;
    margin: 20px 0;
}

.gift-description,
.gift-instruction {
    color: #e6c8d5;
    line-height: 1.8;
}

.gift-box {
    position: relative;
    display: inline-block;
    margin: 55px auto 20px;
    cursor: pointer;
    transition: transform .3s ease;
}

.gift-box:hover {
    transform: translateY(-8px) scale(1.05);
}

.gift-body {
    font-size: 115px;
    filter: drop-shadow(0 10px 15px #0005);
}

.gift-bow {
    position: absolute;
    z-index: 2;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
}

.gift-lid {
    position: absolute;
    width: 100%;
    height: 15px;
    background: #e8aac1;
    top: 35px;
    border-radius: 5px;
    z-index: 1;
}

.secret-message {
    display: none;
    max-width: 600px;
    margin: 40px auto 0;
    padding: 35px;
    background: #49283d;
    border: 1px solid #bd7896;
    border-radius: 18px;
    line-height: 2;
    animation: giftReveal 1s ease;
}

.secret-message h3 {
    color: #ffc6dc;
    font-family: Georgia, serif;
    font-size: 28px;
}

.secret-message p {
    white-space: pre-line;
}

.secret-message span {
    display: block;
    margin-top: 25px;
    color: #ffc6dc;
    font-style: italic;
}

.secret-message.show {
    display: block;
}

@keyframes giftReveal {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

            /*CARTA SECRETA*/


.secret-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 5, 12, 0.92);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.secret-overlay.show {
    display: flex;
    animation: secretFade .5s ease;
}

.secret-letter {
    position: relative;
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 45px 35px;
    background: #fff0f4;
    color: #542b40;
    border-radius: 12px;
    box-shadow: 0 0 60px #e8aac155;
    text-align: center;
    animation: secretAppear .7s ease;
}

.secret-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: none;
    color: #8c526d;
    font-size: 22px;
    cursor: pointer;
}

.secret-heart {
    font-size: 55px;
    color: #d96b96;
    margin-bottom: 15px;
}

.secret-letter span {
    font-size: 10px;
    letter-spacing: 3px;
    color: #b46d8a;
}

.secret-letter h2 {
    font-family: Georgia, serif;
    font-size: 35px;
    font-weight: normal;
    margin: 20px 0;
}

.secret-letter p {
    white-space: pre-line;
    line-height: 2;
    font-size: 15px;
}

.secret-signature {
    margin-top: 30px;
    font-family: Georgia, serif;
    font-style: italic;
    color: #b45c80;
}

@keyframes secretFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes secretAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

            /*CORAZON EN CELU*/

.hidden-heart {
    display: block;
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 9000;

    width: 42px;
    height: 42px;

    border: 1px solid #e8aac155;
    border-radius: 50%;

    background: #542b40;
    color: #ffc6dc;

    font-size: 25px;
    cursor: pointer;

    opacity: 0.65;

    box-shadow: 0 0 15px #e8aac133;

    animation: secretPulse 2s infinite;
    -webkit-tap-highlight-color: transparent;
}

.hidden-heart:active {
    transform: scale(0.8);
}

@keyframes secretPulse {
    0%, 100% {
        box-shadow: 0 0 10px #e8aac133;
    }

    50% {
        box-shadow: 0 0 22px #e8aac188;
    }
}

        /*SE MUESTRA SOLO EN CELULARES*/


@media (max-width: 768px) {
    .hidden-heart {
        display: block;
    }

    .secret-letter {
        width: 100%;
        max-width: 550px;
        max-height: 82vh;
        padding: 40px 23px;
    }

    .secret-letter h2 {
        font-size: 29px;
    }

    .secret-letter p {
        font-size: 14px;
        line-height: 1.8;
    }

    .secret-close {
        padding: 10px;
    }
}