* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primario: #fff;
    --fondo: #ffebf2; 
    --fondo-sobre: #ffe3ed; 
    --solapa-sobre: #ffccd5; 
    --cuerpo-sobre: #ffc1d1; 
    --sombra: rgba(0, 0, 0, 0.2);
    --texto: #003049; 
    --corazon: #ff477e; 
}

body {
    background: var(--fondo);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
}

/* Estilos para la pregunta inicial */
.pregunta-container {
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.pregunta-titulo {
    font-family: "Marck Script", serif;
    font-size: 50px;
    color: #ff477e;
    margin-bottom: 40px;
    animation: bounce 0.8s ease-in-out;
    padding: 0 20px;
}

.botones-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.boton-respuesta {
    font-family: "Marck Script", serif;
    font-size: 30px;
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.boton-si {
    background: linear-gradient(135deg, #ff477e 0%, #ff6b9d 100%);
    color: white;
}

.boton-si:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 25px rgba(255, 71, 126, 0.4);
}

.boton-no {
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
    color: #666;
    position: relative;
}

.boton-no:hover {
    transform: scale(0.95);
}

.carta-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 1s ease-in;
}

/* Estilos para la pantalla de destinatario */
.destinatario-container {
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.destinatario-card {
    background: white;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 71, 126, 0.3);
    border: 3px solid #ff477e;
}

.destinatario-titulo {
    font-family: "Marck Script", serif;
    font-size: 40px;
    color: #ff477e;
    margin-bottom: 30px;
}

.destinatario-info {
    font-family: "Gill Sans", Calibri, sans-serif;
    font-size: 24px;
    color: #003049;
    margin-bottom: 30px;
    line-height: 2;
}

.destinatario-de,
.destinatario-para {
    margin: 10px 0;
    text-align: left;
}

.destinatario-info strong {
    color: #ff477e;
    margin-right: 10px;
}

.boton-continuar {
    font-family: "Marck Script", serif;
    font-size: 26px;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff477e 0%, #ff6b9d 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.boton-continuar:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 71, 126, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

h1 {
    font-family: "Marck Script", serif; 
    text-align: center;
    font-size: 60px;
    margin-bottom: 50px;
    color: #444;
}

.contenedor {
    width: 400px;
}

.envoltura-sobre {
    position: relative;
    background-color: var(--fondo-sobre);
    box-shadow: 0 0 40px var(--sombra);
    border-radius: 15px;
}

.sobre {
    position: relative;
    width: 400px;
    height: 300px;
}

.sobre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    border-top: 180px solid var(--solapa-sobre);
    border-right: 200px solid transparent;
    border-left: 200px solid transparent;
    transform-origin: top;
    transition: all 0.5s ease-in-out 0.7s;
    border-radius: 10px;
}

.solapa-derecha {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    background-color: var(--cuerpo-sobre);
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.solapa-izquierda {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    background-color: var(--cuerpo-sobre);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.carta {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primario);
    text-align: center;
    box-shadow: 0 0 5px var(--sombra);
    padding: 20px;
    border-radius: 10px;
    transition: transform .5s ease-in-out;
}

.contenido {
    font-family: "Gill Sans", Calibri, sans-serif;
    color: var(--texto);
    text-align: left;
    font-size: 12px;
    border: 3px dotted var(--texto);
    padding: 10px;
    height: 100%;
    line-height: 14px;
    cursor: pointer;
    overflow-Y: scroll;
}

.corazon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background-color: var(--corazon);
    transform: translate(-50%,0) rotate(45deg);
    transition: transform 0.5s ease-in-out 1s;
    z-index: 999;
    cursor: pointer;
}

.corazon::before,
.corazon::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--corazon);
    border-radius: 100%;

}

.corazon:before {
    top: -15px;
}

.corazon:after {
    right: 15px;
}

/*Agregar clases dinamicos*/
.abierto .sobre::before {
    transform: rotateX(180deg);
    z-index: 0;
}

.abierto .corazon {
    transform: rotate(90deg);
    transition-delay: 0.4s;
}

.carta.mostrar-carta {
    transform: translateY(-290px);
    transition: transform .5s ease-in-out;
}

.carta.cerrando-carta {
    transform: translateY(-290px);
    transition: transform .5s ease-in-out;
}

.carta.abierta {
    z-index: 10000;
}

.envoltura-sobre.desactivar-sobre .sobre::before {
    pointer-events: none;
}

/*Scroll personalizado*/

/*
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}


::-webkit-scrollbar-thumb {
    background-color: var(--cuerpo-sobre);
    border-radius: 4px;
}


::-webkit-scrollbar-thumb:hover {
    background-color: var(--corazon);
}
*/

/*Vista celular*/

@media screen and (max-width:400px) {
    .pregunta-titulo {
        font-size: 35px;
        margin-bottom: 30px;
    }

    .botones-container {
        gap: 20px;
        flex-direction: column;
    }

    .boton-respuesta {
        font-size: 24px;
        padding: 15px 40px;
        width: 80%;
        max-width: 250px;
    }

    .destinatario-card {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .destinatario-titulo {
        font-size: 32px;
    }

    .destinatario-info {
        font-size: 18px;
    }

    .boton-continuar {
        font-size: 22px;
        padding: 12px 30px;
    }

    .contenedor {
        width: 300px;
    }

    .sobre {
        width: 300px;
        height: 250px;
    }

    .sobre::before {
        border-top:150px solid var(--solapa-sobre) ;
        border-right: 150px solid transparent;
        border-left: 150px solid transparent;
    }

    h1 {
        font-size: 40px;
        margin-bottom: 30px;
        padding: 0 20px;
    }
}






