
body {
    cursor: url("cursor.png"), auto;
    

    margin: 0;

    min-height: 100vh;

    background-color: #ffe6f1;

    color: #9b496b;

    font-family: "Righteous", cursive;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    overflow: hidden;
}


/* CUADRO PRINCIPAL */

.tarjeta {
    width: 480px;

    padding: 45px 35px;

    background-color: #fff8fb;

    border: 3px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(180, 80, 120, 0.15);

    position: relative;

    z-index: 2;
}


/* GATO ENCIMA DEL CUADRO */

.gato-colgado {
    position: absolute;

    width: 100px;

    top: -10px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 10;
}


/* DECORACIONES */

.decoracion {
    position: fixed;

    color: #e58bad;

    font-size: 35px;

    z-index: 1;
}

.gato-izquierda {
    left: 15%;

    top: 25%;
}

.gato-derecha {
    right: 15%;

    bottom: 25%;
}


/* DECORACIÓN DEL CUADRO */

.adorno {
    color: #e58bad;

    font-size: 20px;

    letter-spacing: 4px;
}


/* TÍTULO */

h1 {
    color: #c95782;

    font-size: 48px;

    margin: 20px 0 15px;
}


/* MENSAJE */

.mensaje {
    font-size: 18px;

    line-height: 1.7;

    margin: 0 auto 15px;

    max-width: 400px;
}


/* GATO DENTRO DEL CUADRO */

.gato {
    width: 120px;

    height: auto;

    margin: 10px 0 15px;

    image-rendering: pixelated;
}


/* BOTÓN */

.entrar {
    display: inline-block;

    margin-top: 10px;

    padding: 12px 30px;

    background-color: #e88cac;

    color: white;

    text-decoration: none;

    border-radius: 30px;

    font-size: 17px;

    transition: 0.3s;
}


.entrar:hover {
    background-color: #d96f95;

    transform: scale(1.08);
}
.gato-derecha-abajo {
    position: fixed;

    width: 100px;

    right: 8%;
    bottom: 8%;

    z-index: 1;

    image-rendering: pixelated;
}
.contraseña {
    max-width: 480px;
}

.pista {
    color: #d96f95;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
}

input {
    width: 70%;

    padding: 12px;

    border: 2px solid #f3a9c5;

    border-radius: 20px;

    outline: none;

    text-align: center;

    font-family: "Righteous", cursive;

    font-size: 16px;

    color: #9b496b;

    background-color: #fff0f6;
}

input:focus {
    border-color: #d96f95;
}

.contraseña button {
    display: block;

    margin: 15px auto 0;

    border: none;

    padding: 12px 28px;

    border-radius: 30px;

    background-color: #e88cac;

    color: white;

    font-family: "Righteous", cursive;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

.contraseña button:hover {
    background-color: #d96f95;

    transform: scale(1.05);
}

#error {
    color: #c95782;

    font-size: 14px;

    min-height: 20px;

    margin-top: 15px;
}
/* =========================
   PARTE 1
   ========================= */
   
   /* =========================
   BASE Y CENTRADO (CORREGIDO) SOLO AFECTA A LA PARTE1
   ========================= */

html {
    margin: 0;
    padding: 0;
    overflow-y: auto; /* Permite el scroll vertical activamente */
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4b4ca;
    color: #9b496b;
    font-family: "Righteous", cursive;

    /* Configuración para permitir scroll y mantener el centrado */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    background-color: #ffe6f1;

    color: #9b496b;

    font-family: "Righteous", cursive;
}


/* =========================
   MENÚ - NUBES INDIVIDUALES
   ========================= */

.menu {
    width: 100%;

    margin: 30px auto 0;
    padding: 20px;

    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    box-sizing: border-box;

    background-color: transparent;

    font-family: "Silkscreen", monospace;

    font-size: 15px;

    text-align: center;
}


/* QUITAMOS LOS | */

.menu span {
    display: none;
}


/* CADA NUBE */

.menu a {
    position: relative;

    display: flex;

    justify-content: center;
    align-items: center;

    min-width: 110px;
    min-height: 55px;

    padding: 10px 20px;

    box-sizing: border-box;

    background-color: #fffafa;

    color: #9b496b;

    text-decoration: none;

    font-family: "Silkscreen", monospace;

    font-size: 15px;

    border: 3px solid #f3a9c5;

    border-radius: 50px;

    box-shadow:
        0 4px 0 #f3a9c5;
}


/* BURBUJAS DE LA NUBE */

.menu a::before,
.menu a::after {
    content: "";

    position: absolute;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    border-radius: 50%;

    z-index: -1;
}


/* BURBUJA IZQUIERDA */

.menu a::before {
    width: 30px;
    height: 30px;

    left: 8px;
    top: -15px;
}


/* BURBUJA DERECHA */

.menu a::after {
    width: 22px;
    height: 22px;

    right: 12px;
    bottom: -10px;
}


/* HOVER */

.menu a:hover {
    color: #e36f9b;

    background-color: #fff0f6;
}

/* =========================
   CONTENIDO
   ========================= */

main {
    width: 100%;

    margin: 0;

    padding: 0;
}


/* =========================
   BANNER / GIF
   ========================= */

.banner {
    width: 100%;

    margin: 30px auto 0;

    padding: 0;

    text-align: center;
}


.banner img {
    display: block;

    width: 460px;

    height: 250px;

    margin: 0 auto;
}


/* =========================
   BIENVENIDO
   ========================= */

#bienvenido {
    width: 90%;

    max-width: 1000px;

    margin: 20px auto 0;

    padding: 25px 30px;

    box-sizing: border-box;

    text-align: center;

    background-color: #fff0f6;

    background-image:
        linear-gradient(#f9d9e5 1px, transparent 1px),
        linear-gradient(90deg, #f9d9e5 1px, transparent 1px);

    background-size: 25px 25px;
}


#bienvenido h1 {
    margin: 0 0 20px;

    text-align: center;

    font-family: "Silkscreen", monospace;

    color: #c95782;
}


#bienvenido p {
    max-width: 650px;

    margin: 15px auto;

    text-align: center;

    line-height: 1.8;

    font-size: 17px;
}
/* =========================
   REPRODUCTOR DE MÚSICA
   ========================= */

.reproductor {
    position: fixed;

    right: 25px;
    bottom: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    z-index: 9999;
}


/* =========================
   DISCO
   ========================= */

#disco {
    width: 100px;
    height: 100px;

    object-fit: contain;

    image-rendering: pixelated;
}


/* =========================
   BOTONES
   ========================= */

.controles {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 5px;
}


/* =========================
   BOTONES PIXEL / VIDEOJUEGO
   ========================= */

.controles button {
    width: 32px;
    height: 32px;

    padding: 0;

    border: 2px solid #9b496b;

    border-radius: 0;

    background-color: #fff0f6;

    color: #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 11px;

    line-height: 1;

    cursor: pointer;

    box-shadow: 3px 3px 0 #9b496b;

    transition: none;
}


/* AL PASAR EL MOUSE */

.controles button:hover {
    background-color: #f4b4ca;
}


/* AL PRESIONAR */

.controles button:active {
    transform: translate(3px, 3px);

    box-shadow: none;
}


/* DISCO GIRANDO */

.girando {
    animation: girar 3s linear infinite;
}


@keyframes girar {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}
/* =========================
   NUEVA ZONA DE CARTAS
   ========================= */

.parte1 .zona-cartas {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 0;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: flex-start;

    gap: 25px;

    box-sizing: border-box;
}


/* CARTA GRANDE */

.parte1 .carta-grande {
    width: 68%;
    min-height: 900px;

    padding: 35px;

    background: #fffafa;

    box-sizing: border-box;

    color: #9b496b;
    text-align: center;

    border: 3px solid #f3a9c5;

    border-radius: 30px;

    box-shadow: 0 0 0 5px #fffafa,
                0 0 0 8px #f3a9c5;
}



/* CUADRO PEQUEÑO */

.parte1 .info-lateral {
    width: 27%;
    min-height: 250px;

    padding: 25px;

    background: #fff0f6;

    box-sizing: border-box;

    color: #9b496b;
    text-align: center;

    border: 3px solid #f3a9c5;

    border-radius: 15px;

    box-shadow: 5px 5px 0 #d982a0;
}



/* TÍTULOS */

.parte1 .carta-grande h2,
.parte1 .info-lateral h2 {
    color: #c95782;

    font-family: "Silkscreen", monospace;

    margin-top: 0;
}


/* TEXTO */

.parte1 .carta-grande p,
.parte1 .info-lateral p {
    line-height: 1.7;
}
/* =========================
   MARQUESINA "TE AMO"
   ========================= */

.marquesina-amor {
    width: 95%;
    max-width: 1000px;

    height: 45px;

    margin: 25px auto 0;

    overflow: hidden;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    box-shadow: 4px 4px 0 #d982a0;
}


/* TEXTO QUE SE MUEVE */

.texto-amor {
    display: inline-block;

    white-space: nowrap;

    color: #c95782;

    font-family: "Righteous", cursive;

    font-size: 16px;

    animation: moverAmor 12s linear infinite;
}


/* MOVIMIENTO */

@keyframes moverAmor {

    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }

}
.parte1 .gif-lateral {
    display: block;

    width: 100%;
    max-width: 180px;

    height: auto;

    margin: 0 auto 15px;
}
/* =========================
   BOTONES ROSAS
   ========================= */

.botones-laterales {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.botones-laterales button {
    width: 85%;
    height: 40px;

    border: none;
    border-radius: 25px;

    background-color: #e88cac;

    color: white;

    font-family: "Righteous", cursive;
    font-size: 12px;

    cursor: pointer;

    box-shadow: none;

    transition: 0.2s;
}

.botones-laterales button:hover {
    background-color: #d96f95;
    transform: scale(1.03);
}

.botones-laterales button:active {
    transform: scale(0.98);
}


/* =========================
   BOTÓN CANCIONES + LISTA
   ========================= */

.fila-canciones {
    position: relative;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;
}


/* =========================
   CANCIONES A LA IZQUIERDA
   ========================= */

#lista-canciones {

    display: none;

    position: absolute;

    right: calc(100% + 10px);

    top: 0;

    flex-direction: column;

    gap: 8px;

    width: 150px;
}


/* =========================
   RECTÁNGULOS DE CANCIONES
   ========================= */

.cancion-item {

    width: 150px;

    padding: 9px;

    box-sizing: border-box;

    background-color: #f4b4ca;

    border: none;

    border-radius: 20px;

    color: #9b496b;

    font-family: "Righteous", cursive;

    font-size: 10px;

    text-align: center;
}
/* =========================
   ESTRELLAS Y CORAZONES
   ========================= */

.decoraciones {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    overflow: hidden;

    z-index: 0;
}


.decoraciones span {

    position: absolute;

    color: #e88cac;

    font-size: 22px;

    animation: flotar 6s ease-in-out infinite;

    opacity: 0.7;
}


/* POSICIONES */

.decoraciones span:nth-child(1) {
    left: 5%;
    top: 15%;
    animation-delay: 0s;
}

.decoraciones span:nth-child(2) {
    left: 15%;
    top: 70%;
    animation-delay: 1s;
}

.decoraciones span:nth-child(3) {
    left: 25%;
    top: 35%;
    animation-delay: 2s;
}

.decoraciones span:nth-child(4) {
    left: 35%;
    top: 80%;
    animation-delay: 3s;
}

.decoraciones span:nth-child(5) {
    left: 45%;
    top: 20%;
    animation-delay: 1.5s;
}

.decoraciones span:nth-child(6) {
    left: 55%;
    top: 65%;
    animation-delay: 2.5s;
}

.decoraciones span:nth-child(7) {
    left: 65%;
    top: 30%;
    animation-delay: 0.5s;
}

.decoraciones span:nth-child(8) {
    left: 75%;
    top: 75%;
    animation-delay: 3.5s;
}

.decoraciones span:nth-child(9) {
    left: 85%;
    top: 18%;
    animation-delay: 2s;
}

.decoraciones span:nth-child(10) {
    left: 92%;
    top: 50%;
    animation-delay: 1s;
}

.decoraciones span:nth-child(11) {
    left: 10%;
    top: 45%;
    animation-delay: 4s;
}

.decoraciones span:nth-child(12) {
    left: 30%;
    top: 10%;
    animation-delay: 2s;
}

.decoraciones span:nth-child(13) {
    left: 70%;
    top: 55%;
    animation-delay: 4s;
}

.decoraciones span:nth-child(14) {
    left: 80%;
    top: 90%;
    animation-delay: 1s;
}

.decoraciones span:nth-child(15) {
    left: 50%;
    top: 90%;
    animation-delay: 3s;
}


/* MOVIMIENTO */

@keyframes flotar {

    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(8deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }

}

/* =========================
   BOTÓN PARA ABRIR PREGUNTA
   ========================= */

#abrir-pregunta {

    display: block;

    width: 90%;
    min-height: 55px;

    margin: 18px auto;

    padding: 12px 10px;

    box-sizing: border-box;

    background-color: #fff0f6;

    color: #9b496b;

    border: 3px solid #d98ba8;

    border-radius: 0;

    box-shadow: 4px 4px 0 #d98ba8;

    font-family: "Silkscreen", monospace;

    font-size: 10px;

    line-height: 1.6;

    text-align: center;

    cursor: pointer;

}


#abrir-pregunta:hover {

    background-color: #f8c8d9;

    color: #9b496b;

}


/* =========================
   VENTANA DE LA PREGUNTA
   ========================= */

#ventana-pregunta {

    display: none;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 320px;

    padding: 30px;

    box-sizing: border-box;

    background-color: #fff0f6;

    color: #9b496b;

    border: 4px solid #9b496b;

    border-radius: 0;

    box-shadow: 6px 6px 0 #9b496b;

    text-align: center;

    z-index: 99999;
}


/* CUANDO SE ABRE */

#ventana-pregunta.abierta {

    display: block;

}


/* =========================
   TÍTULO
   ========================= */

.titulo-pregunta {

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 14px;

    margin-bottom: 20px;

}


/* =========================
   TEXTO
   ========================= */

#ventana-pregunta p {

    color: #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    line-height: 1.7;

    margin: 0 0 20px 0;

}


/* =========================
   BOTONES SÍ / NO
   ========================= */

.opciones-amor {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

}


.opciones-amor button {

    width: 75px;

    height: 40px;

    padding: 0;

    background-color: #e88cac;

    color: white;

    border: 3px solid #9b496b;

    border-radius: 0;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    cursor: pointer;

    transition: transform 0.25s ease;

}


.opciones-amor button:hover {

    background-color: #f4b4ca;

    color: #9b496b;

}


/* =========================
   SÍ GIGANTE
   ========================= */

#si-amor.si-gigante {

    position: fixed !important;

    top: 0 !important;

    left: 0 !important;

    width: 100vw !important;

    height: 100vh !important;

    margin: 0 !important;

    padding: 0 !important;

    background-color: #e88cac !important;

    border: none !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    color: white !important;

    font-family: "Silkscreen", monospace;

    font-size: 30px !important;

    transform: none !important;

    z-index: 100001 !important;

}


/* =========================
   "INTÉNTALO DE NUEVO"
   ========================= */

#intentalo {

    position: fixed;

    bottom: 25px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 100002;

    color: #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 18px;

    pointer-events: none;

}


/* =========================
   MENSAJE FINAL
   ========================= */

#mensaje-amor {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100vw;

    height: 100vh;

    background-color: rgba(244, 180, 202, 0.92);

    align-items: center;

    justify-content: center;

    z-index: 100003;

}


/* RECTÁNGULO DEL MENSAJE */

.mensaje-final {

    width: 330px;

    padding: 35px 25px;

    box-sizing: border-box;

    background-color: #fff0f6;

    border: 4px solid #9b496b;

    border-radius: 0;

    box-shadow: 6px 6px 0 #9b496b;

    text-align: center;

}


.mensaje-final p {

    margin: 0;

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 16px;

    line-height: 1.7;

}


/* =========================
   TACHE
   ========================= */

#cerrar-amor {

    position: absolute;

    top: 20px;

    right: 25px;

    width: 42px;

    height: 42px;

    padding: 0;

    background-color: #e88cac;

    color: white;

    border: 3px solid #9b496b;

    border-radius: 0;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 20px;

    cursor: pointer;

}


#cerrar-amor:hover {

    background-color: #f4b4ca;

    color: #9b496b;

}
/* =================================
   GIF MEDIANO DENTRO DE LA CARTA
   ================================= */

.parte1 .carta-grande {
    position: relative !important;
}


/* GIF */

.parte1 .carta-grande .gif-carta {
    position: absolute !important;

    top: 20px !important;
    right: 20px !important;

   width: 150px;
height: 150px;

    max-width: 150px;
max-height: 150px;

    object-fit: contain !important;

    margin: 0 !important;
}


/* TEXTO */

.parte1 .carta-grande .texto-carta {
    width: calc(100% - 80px) !important;

    margin: 0 !important;

    text-align: left !important;
}


.parte1 .carta-grande .texto-carta h2 {
    margin: 0 0 15px 0 !important;
}


.parte1 .carta-grande .texto-carta p {
    margin: 0 !important;

    line-height: 1.8;
}
.gif-beso {
    display: block;

    width: 180px;
    height: auto;

    margin: 30px auto 0;
}
/* =========================
   CALENDARIO + GIF
   ========================= */

.recuerdo-agosto {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 35px;

    width: 100%;

    margin-top: 45px;
}


/* CALENDARIO */

.calendario {
    width: 240px;

    padding: 18px;

    box-sizing: border-box;

    background: #fff0f6;

    border: 3px solid #f3a9c5;

    border-radius: 20px;

    box-shadow: 4px 4px 0 #f3a9c5;
}


.calendario h3 {
    margin: 0 0 15px;

    color: #c95782;

    font-family: "Righteous", cursive;

    font-size: 16px;

    text-align: center;
}


/* DÍAS DE LA SEMANA */

.dias-semana,
.dias {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    text-align: center;

    gap: 7px;
}


.dias-semana {
    margin-bottom: 8px;

    color: #c95782;

    font-family: "Righteous", cursive;

    font-size: 9px;
}


.dias {
    color: #9b496b;

    font-family: "Righteous", cursive;

    font-size: 11px;
}


.dias span {
    min-height: 24px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================
   CORAZÓN DEL 25
   ========================= */

.dia-corazon {
    position: relative;

    color: white !important;

    z-index: 1;

    animation: palpitar 1s infinite;
}


.dia-corazon::before {
    content: "♥";

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    color: #e88cac;

    font-size: 31px;

    z-index: -1;
}


/* PALPITAR */

@keyframes palpitar {

    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.12);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================
   BESITO
   ========================= */

.gif-beso {
    width: 180px;

    height: auto;

    object-fit: contain;

    margin: 0;
}
.continuacion-carta {
    width: 90%;

    margin: 45px auto 20px;

    padding: 10px 20px;

    box-sizing: border-box;

    text-align: left;
}


.continuacion-carta p {
    margin: 0;

    color: #9b496b;

    font-family: "Righteous", cursive;

    font-size: 17px;

    line-height: 1.8;

    font-weight: normal;
}
.rowlet-contenedor {
    width: 90%;

    margin: 20px auto 0;

    text-align: left;
}

.rowlet {
    width: 120px;

    height: auto;

    display: block;
}
.gato-lengua {
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.gato-lengua img {
    width: 150px;
    height: auto;
    display: inline-block;
}
/* =========================
   BOTÓN DEL JUEGO
   ========================= */

#abrir-juego-corazones {

    display: block;

    width: 85%;

    margin: 15px auto 5px;

    padding: 12px 8px;

    box-sizing: border-box;

    background-color: #f4b4ca;

    color: #9b496b;

    border: 3px solid #9b496b;

    border-radius: 20px;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Righteous", cursive;

    font-size: 12px;

    cursor: pointer;

    transition: 0.2s;
}

#abrir-juego-corazones:hover {

    background-color: #e88cac;

    color: white;

    transform: scale(1.03);

}


/* =========================
   VENTANA DEL JUEGO
   ========================= */

#juego-corazones {

    display: none;

    position: fixed;

    inset: 0;

    background-color: rgba(244, 180, 202, 0.92);

    align-items: center;

    justify-content: center;

    z-index: 999999;
}


/* =========================
   CAJA DEL JUEGO
   ========================= */

.caja-juego {

    position: relative;

    width: 360px;

    padding: 25px;

    box-sizing: border-box;

    background-color: #fff0f6;

    border: 4px solid #9b496b;

    box-shadow: 6px 6px 0 #9b496b;

    text-align: center;
}


/* =========================
   TÍTULO
   ========================= */

.titulo-juego {

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 14px;

    margin-bottom: 10px;
}


/* =========================
   INSTRUCCIONES
   ========================= */

.instrucciones-juego {

    color: #9b496b;

    font-family: "Righteous", cursive;

    font-size: 14px;

    margin: 5px 0 15px;
}


/* =========================
   ZONA DEL JUEGO
   ========================= */

#zona-juego {

    position: relative;

    width: 100%;

    height: 220px;

    overflow: hidden;

    background-color: #fffafa;

    border: 3px dashed #f3a9c5;

    box-sizing: border-box;
}


/* =========================
   CORAZÓN
   ========================= */

#corazon-juego {

    position: absolute;

    left: 50px;

    top: 50px;

    width: 40px;

    height: 40px;

    padding: 0;

    border: none;

    background: transparent;

    color: #e88cac;

    font-size: 32px;

    cursor: pointer;

    animation: palpitar-juego 0.8s infinite;
}


@keyframes palpitar-juego {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================
   CONTADOR
   ========================= */

.contador-juego {

    margin-top: 12px;

    color: #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 11px;
}


/* =========================
   TACHE
   ========================= */

#cerrar-juego {

    position: absolute;

    top: 10px;

    right: 10px;

    width: 32px;

    height: 32px;

    padding: 0;

    background-color: #e88cac;

    color: white;

    border: 3px solid #9b496b;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 16px;

    cursor: pointer;
}
/* =========================
   GATITO AL HACER CLICK
   ========================= */

.gato-click {

    position: fixed;

    width: 50px;
    height: 50px;

    pointer-events: none;

    z-index: 999999;

    transform: translate(-50%, -50%);

    animation: aparecerGato 0.7s ease-out forwards;
}


@keyframes aparecerGato {

    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }

}

/* =========================
   BOTÓN CIRCULAR DE LA RULETA
   ========================= */

#abrir-ruleta {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 120px;
    height: 120px;

    margin: 20px auto;

    padding: 10px;

    box-sizing: border-box;

    background-color: #fff0f6;

    color: #9b496b;

    border: 4px solid #d98ba8;

    border-radius: 50%;

    box-shadow: 5px 5px 0 #d98ba8;

    font-family: "Righteous", cursive;

    font-size: 15px;

    line-height: 1.5;

    text-align: center;

    cursor: pointer;

    transition: transform 0.2s ease;
}


#abrir-ruleta:hover {

    background-color: #f8c8d9;

    color: #9b496b;

    transform: scale(1.05);

}


/* =========================
   VENTANA DE LA RULETA
   ========================= */

#ventana-ruleta {

    display: none;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 330px;

    padding: 30px;

    box-sizing: border-box;

    background-color: #fff0f6;

    color: #9b496b;

    border: 4px solid #9b496b;

    box-shadow: 6px 6px 0 #9b496b;

    text-align: center;

    z-index: 99999;

}


#ventana-ruleta.abierta {

    display: block;

}


/* =========================
   CAJA
   ========================= */

.caja-ruleta {

    position: relative;

}


/* =========================
   TÍTULO
   ========================= */

.titulo-ruleta {

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 14px;

    margin-bottom: 20px;

}


/* =========================
   TACHE
   ========================= */

#cerrar-ruleta {

    position: absolute;

    top: -20px;
    right: -20px;

    width: 35px;
    height: 35px;

    padding: 0;

    background-color: #e88cac;

    color: white;

    border: 3px solid #9b496b;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 18px;

    cursor: pointer;

}


#cerrar-ruleta:hover {

    background-color: #f4b4ca;

    color: #9b496b;

}


/* =========================
   CONTENEDOR
   ========================= */

.ruleta-contenedor {

    position: relative;

    width: 250px;
    height: 270px;

    margin: 10px auto;

}


/* =========================
   RULETA
   ========================= */

#ruleta {

    position: absolute;

    top: 20px;
    left: 50%;

    width: 220px;
    height: 220px;

    transform: translateX(-50%);

    border-radius: 50%;

    border: 5px solid #9b496b;

    box-shadow: 4px 4px 0 #d98ba8;

    background:

        conic-gradient(

            #e88cac 0deg 45deg,
            #fff0f6 45deg 90deg,

            #f4b4ca 90deg 135deg,
            #e88cac 135deg 180deg,

            #fff0f6 180deg 225deg,
            #f4b4ca 225deg 270deg,

            #e88cac 270deg 315deg,
            #fff0f6 315deg 360deg

        );

    overflow: hidden;

    transition:
        transform 6s cubic-bezier(0.12, 0.72, 0.18, 1);

}


/* =========================
   LÍNEAS DE LAS REBANADAS
   ========================= */

#ruleta::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:

        repeating-conic-gradient(

            transparent 0deg 43deg,

            #9b496b 43deg 45deg

        );

    opacity: .7;

    pointer-events: none;

}


/* =========================
   FLECHA ARRIBA DE LA RULETA
   ========================= */

.flecha-ruleta {

    position: absolute;

    top: 0px;
    left: 50%;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    color: #9b496b;

    font-size: 0;

    z-index: 50;

}


/* TRIÁNGULO DE LA FLECHA */

.flecha-ruleta::after {

    content: "▼";

    display: block;

    color: #9b496b;

    font-size: 28px;



    line-height: 1;

}


/* =========================
   TEXTO DENTRO DE CADA REBANADA
   ========================= */

.segmento {

    position: absolute;

    top: 50%;
    left: 50%;

    width: 65px;
    height: 30px;

    margin-left: -32.5px;
    margin-top: -15px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #9b496b;

    font-family: "Righteous", cursive;

    font-size: 7px;

    line-height: 1.1;

    text-align: center;

    z-index: 5;

    pointer-events: none;

}


/* =========================
   BESOS
   CENTRO DE SU REBANADA
   ========================= */

.segmento1 {

    transform:
        rotate(22.5deg)
        translateY(-72px);

}


/* =========================
   ABRAZOS
   ========================= */

.segmento2 {

    transform:
        rotate(67.5deg)
        translateY(-72px);

}


/* =========================
   ALGO BONITO
   ========================= */

.segmento3 {

    transform:
        rotate(112.5deg)
        translateY(-72px);

}


/* =========================
   CANCIÓN
   ========================= */

.segmento4 {

    transform:
        rotate(157.5deg)
        translateY(-72px);

}


/* =========================
   COMIDA
   ========================= */

.segmento5 {

    transform:
        rotate(202.5deg)
        translateY(-72px);

}


/* =========================
   FAVOR
   ========================= */

.segmento6 {

    transform:
        rotate(247.5deg)
        translateY(-72px);

}


/* =========================
   PREGUNTA
   ========================= */

.segmento7 {

    transform:
        rotate(292.5deg)
        translateY(-72px);

}


/* =========================
   TÚ ELIGES
   ========================= */

.segmento8 {

    transform:
        rotate(337.5deg)
        translateY(-72px);

}


/* =========================
   CENTRO DE LA RULETA
   ========================= */

#ruleta::after {

    content: "♡";

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: #fff0f6;

    color: #c95782;

    border: 4px solid #9b496b;

    border-radius: 50%;

    font-family: Arial, sans-serif;

    font-size: 24px;

    z-index: 20;

    box-sizing: border-box;

}


/* =========================
   BOTÓN GIRAR
   ========================= */

#girar-ruleta {

    width: 120px;

    height: 40px;

    margin-top: 5px;

    background-color: #e88cac;

    color: white;

    border: 3px solid #9b496b;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 10px;

    cursor: pointer;

}


#girar-ruleta:hover {

    background-color: #f4b4ca;

    color: #9b496b;

}


/* =========================
   RESULTADO
   ========================= */

#resultado-ruleta {

    min-height: 20px;

    margin-top: 15px;

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 13px;

}

/* =========================
   CONTADOR DE BESOS
   ========================= */

.contador-besos {

    width: 210px;

    margin: 20px auto;

    padding: 15px;

    box-sizing: border-box;

    background-color: #fff0f6;

    border: 4px solid #9b496b;

    box-shadow: 5px 5px 0 #d98ba8;

    text-align: center;

}


.titulo-besos {

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 13px;

    margin-bottom: 10px;

}


.texto-besos {

    color: #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 9px;

    line-height: 1.6;

}


#boton-beso {

    margin-top: 10px;

    padding: 10px 15px;

    background-color: #e88cac;

    color: white;

    border: 3px solid #9b496b;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 9px;

    cursor: pointer;

}


#boton-beso:hover {

    background-color: #f4b4ca;

    color: #9b496b;

}


#boton-beso:active {

    transform: translate(3px, 3px);

    box-shadow: none;

}


.cantidad-besos {

    margin-top: 15px;

    color: #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 9px;

}


#numero-besos {

    color: #c95782;

    font-size: 14px;

}

/* =========================
   SOBRE / BOTÓN
   ========================= */

.sobre-boton {

    width: 100%;

    margin: 20px auto;

    text-align: center;

}


#sobre-gif {

    width: 90px;

    height: auto;

    cursor: pointer;

    transition: transform 0.2s;

}


#sobre-gif:hover {

    transform: scale(1.08);

}


/* =========================
   VENTANA DE CORREO
   ========================= */

#ventana-correo {

    display: none;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 350px;

    max-width: 90%;

    padding: 25px;

    box-sizing: border-box;

    background-color: #fff0f6;

    border: 4px solid #9b496b;

    box-shadow: 7px 7px 0 #9b496b;

    z-index: 99999;

}


/* CUANDO ESTÁ ABIERTA */

#ventana-correo.abierta {

    display: block;

}


/* =========================
   CAJA
   ========================= */

.caja-correo {

    position: relative;

}


/* =========================
   TÍTULO
   ========================= */

.titulo-correo {

    margin-bottom: 20px;

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 13px;

    text-align: center;

}


/* =========================
   BOTÓN CERRAR
   ========================= */

#cerrar-correo {

    position: absolute;

    top: -18px;

    right: -18px;

    width: 32px;

    height: 32px;

    padding: 0;

    background-color: #e88cac;

    color: white;

    border: 3px solid #9b496b;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Righteous", cursive;

    font-size: 17px;

    cursor: pointer;

}


#cerrar-correo:hover {

    background-color: #f4b4ca;

    color: #9b496b;

}


/* =========================
   LISTA DE CORREOS
   ========================= */

.correo-lista {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


/* =========================
   CADA CORREO
   ========================= */

.correo-item {

    padding: 12px;

    background-color: white;

    border: 3px solid #d98ba8;

    box-shadow: 3px 3px 0 #d98ba8;

    cursor: pointer;

}


.correo-item:hover {

    background-color: #f8d8e5;

}


/* REMITENTE */

.correo-remitente {

    color: #9b496b;

   font-family: "Righteous", cursive;

    font-size: 8px;

}


/* ASUNTO */

.correo-asunto {

    margin-top: 7px;

    color: #c95782;

    font-family: "Righteous", cursive;

    font-size: 10px;

}

/* =========================
   CARTAS INDIVIDUALES
   ========================= */

.carta-correo {

    display: none;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 420px;
    max-width: 90vw;

    min-height: 300px;

    padding: 35px;

    box-sizing: border-box;

    background-color: #fff0f6;

    color: #9b496b;

    border: 4px solid #9b496b;

    box-shadow: 7px 7px 0 #9b496b;

    text-align: center;

    z-index: 100000;

}


/* =========================
   CARTA ABIERTA
   ========================= */

.carta-correo.abierta {

    display: block;

}


/* =========================
   CONTENIDO DE LA CARTA
   ========================= */

.contenido-carta-correo {

    color: #9b496b;

    font-family: "Righteous", cursive; 

    font-size: 13px;

    line-height: 1.8;

    text-align: center;

}


/* =========================
   TÍTULO DE LA CARTA
   ========================= */

.contenido-carta-correo h2 {

    color: #c95782;

    font-family: "Righteous", cursive;

    font-size: 18px;

    margin-top: 10px;

    margin-bottom: 25px;

}


/* =========================
   BOTÓN X
   ========================= */

.cerrar-carta-correo {

    position: absolute;

    top: -15px;

    right: -15px;

    width: 35px;

    height: 35px;

    padding: 0;

    background-color: #e88cac;

    color: white;

    border: 3px solid #9b496b;

    box-shadow: 3px 3px 0 #9b496b;

    font-family: "Righteous", cursive;

    font-size: 18px;

    cursor: pointer;

}


/* =========================
   HOVER DE LA X
   ========================= */

.cerrar-carta-correo:hover {

    background-color: #f4b4ca;

    color: #9b496b;

}

.gato-hotcakes-boton {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gato-hotcakes {
    width: 400px !important;
    max-width: none !important;
    height: auto !important;
    transform: scale(0.40) !important;
    transform-origin: center center !important;
}




/* =========================
   VENTANA HOT CAKES
   ========================= */

#ventana-hotcakes {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

#ventana-hotcakes.abierta {
    display: flex;
}


/* NOTA */

.nota-hotcakes {
    position: relative;

    width: 400px;
    max-width: 85%;

    padding: 35px;

    background: #fff4d6;

    border: 4px solid #e8a9b8;

    box-shadow: 8px 8px 0px #c9899d;

    font-family: "Righteous", cursive;

    text-align: center;
}


.nota-hotcakes h2 {
    margin-top: 0;
}


.nota-hotcakes p {
    line-height: 1.6;
}


/* TACHE */

#cerrar-hotcakes {
    position: absolute;

    top: 8px;
    right: 10px;

    border: none;
    background: none;

    font-size: 25px;

    cursor: pointer;
}

/* =========================
   FINAL DE LA PÁGINA
   ========================= */

.rectangulo-inferior {
    width: 100%;
    max-width: 1100px;

    min-height: 150px;

    margin: 0 auto 40px;

    padding: 25px;

    box-sizing: border-box;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    border-radius: 25px;

    box-shadow:
        5px 5px 0 #d982a0;

    text-align: center;
}


/* CORAZONES */

.final-corazones {
    color: #e88cac;

    font-size: 22px;

    letter-spacing: 8px;

    margin-bottom: 10px;
}


/* TEXTO PRINCIPAL */

.final-pagina p {
    margin: 8px 0;

    color: #c95782;

    font-family: "Righteous", cursive;

    font-size: 16px;
}


/* TEXTO PEQUEÑO */

.final-pagina .final-pequeno {
    color: #9b496b;

    font-family: "Silkscreen", monospace;

    font-size: 9px;

    margin-top: 15px;
}

/* =========================
   PUSHEEN DEL FINAL
   ========================= */

.gif-final {
    display: block;

    width: 80px;
    height:80px;

    object-fit: contain;

    margin: 5px auto 10px;

    image-rendering: pixelated;
}

/* =========================
   PARTE 2 - GATOS
   ========================= */

.parte2 {
    width: 100%;
    min-height: 100vh;

    padding: 35px 30px 70px;

    box-sizing: border-box;

    text-align: center;
}


/* =========================
   BOTÓN VOLVER
   ========================= */

.boton-volver {
    display: inline-block;

    margin-bottom: 10px;

    padding: 9px 18px;

    background-color: #fffafa;

    color: #9b496b;

    text-decoration: none;

    font-family: "Silkscreen", monospace;

    font-size: 13px;

    border: 2px solid #f3a9c5;

    border-radius: 25px;

    box-shadow: 0 3px 0 #f3a9c5;

    transition: 0.2s;
}

.boton-volver:hover {
    background-color: #fff0f6;

    transform: translateY(-2px);
}


/* =========================
   TÍTULO
   ========================= */

.parte2 h1 {
    margin: 10px 0 5px;

    color: #c95782;

    font-size: 40px;
}


/* =========================
   TEXTO DEBAJO DEL TÍTULO
   ========================= */

.parte2 > p {
    margin: 0 auto 35px;

    color: #9b496b;

    font-size: 17px;
}


/* =========================
   COLLAGE
   ========================= */

.collage-gatos {
    width: 100%;

    margin: 45px auto 0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    box-sizing: border-box;
}


/* =========================
   FOTOS DE LOS GATOS
   ========================= */

.foto-gato {
    width: 175px;

    height: 210px;

    object-fit: cover;

    padding: 7px;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    box-shadow:
        0 7px 15px rgba(180, 80, 120, 0.20);

    box-sizing: border-box;

    cursor: url("cursor.png"), pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================
   INCLINACIÓN DE CADA GATO
   ========================= */

.gato1 {
    transform: rotate(-6deg);
}

.gato2 {
    transform: rotate(4deg);
}

.gato3 {
    transform: rotate(-3deg);
}

.gato4 {
    transform: rotate(5deg);
}

.gato5 {
    transform: rotate(-5deg);
}

.gato6 {
    transform: rotate(3deg);
}

.gato7 {
    transform: rotate(-6deg);
}


/* =========================
   EFECTO AL TOCAR / PASAR
   ========================= */

.foto-gato:hover {
    transform: scale(1.08) rotate(0deg);

    z-index: 5;

    box-shadow:
        0 10px 22px rgba(180, 80, 120, 0.28);
}


/* =========================
   TEXTO DE CADA GATO
   ========================= */

#texto-gato {

    width: 90%;

    max-width: 750px;

    min-height: 55px;

    margin: 50px auto 0;

    padding: 18px 25px;

    box-sizing: border-box;

    background-color: #fffafa;

    border: 2px solid #f3a9c5;

    border-radius: 25px;

    color: #9b496b;

    font-family: "Righteous", cursive;

    font-size: 17px;

    line-height: 1.5;

    box-shadow:
        0 5px 12px rgba(180, 80, 120, 0.15);

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* CUANDO APARECE EL MENSAJE */

#texto-gato.mostrar {

    opacity: 1;

    transform: translateY(0);
}


/* =========================
   TE AMO
   ========================= */

.te-amo {

    margin-top: 55px;

    color: #c95782;

    font-family: "Righteous", cursive;

    font-size: 42px;

    text-align: center;

    text-shadow:
        2px 2px 0 #fffafa;

    animation: latido 2s infinite ease-in-out;
}


/* ANIMACIÓN DEL TE AMO */

@keyframes latido {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

}


/* =========================
   PANTALLAS MEDIANAS
   ========================= */

@media (max-width: 1200px) {

    .collage-gatos {

        gap: 12px;
    }

    .foto-gato {

        width: 145px;

        height: 180px;
    }

}


/* =========================
   CELULARES
   ========================= */

@media (max-width: 800px) {

    .parte2 {

        padding-left: 20px;

        padding-right: 20px;
    }

    .parte2 h1 {

        font-size: 28px;
    }

    .collage-gatos {

        justify-content: center;

        flex-wrap: wrap;

        gap: 20px;
    }

    .foto-gato {

        width: 130px;

        height: 165px;
    }

    #texto-gato {

        width: 95%;

        font-size: 15px;
    }

    .te-amo {

        font-size: 35px;
    }

}

/* =========================
   PARTE 3 - CUADERNO
   ========================= */

.pagina-cuaderno {

    margin: 0;

    min-height: 100vh;

    background-color: #ffe6f1;

    font-family: "Righteous", cursive;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 35px;

    box-sizing: border-box;

}


/* =========================
   CUADERNO COMPLETO
   ========================= */

.cuaderno {

    position: relative;

    width: 1000px;

    max-width: 95vw;

    height: 720px;

    display: flex;

    align-items: stretch;

    filter:
        drop-shadow(
            0 12px 25px rgba(155, 73, 107, 0.20)
        );

}


/* =========================
   LAS DOS HOJAS
   ========================= */

.hoja {

    position: relative;

    width: 50%;

    height: 100%;

    box-sizing: border-box;

    background-color: #fffdf9;

    padding: 45px 55px;

    /* líneas */

    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 31px,
            #f3d1dc 32px
        );

}


/* =========================
   HOJA IZQUIERDA
   ========================= */

.hoja-izquierda {

    border-radius: 10px 0 0 10px;

    border-right: none;

}


/* =========================
   HOJA DERECHA
   ========================= */

.hoja-derecha {

    border-radius: 0 10px 10px 0;

    border-left: none;

}


/* =========================
   SOMBRA DEL CENTRO
   ========================= */

.cuaderno::before {

    content: "";

    position: absolute;

    z-index: 5;

    left: 50%;

    top: 0;

    transform: translateX(-50%);

    width: 18px;

    height: 100%;

    background:
        linear-gradient(
            to right,
            rgba(150, 80, 105, 0.15),
            rgba(255,255,255,0.7),
            rgba(150, 80, 105, 0.15)
        );

    pointer-events: none;

}


/* =========================
   ESPIRAL
   ========================= */

.espiral {

    position: absolute;

    z-index: 20;

    left: 50%;

    top: 0;

    transform: translateX(-50%);

    height: 100%;

    width: 38px;

    display: flex;

    flex-direction: column;

    justify-content: space-around;

    align-items: center;

    pointer-events: none;

}


/* CADA ARGOLLA */

.espiral span {

    width: 30px;

    height: 15px;

    box-sizing: border-box;

    background-color: #d96f95;

    border: 3px solid #c95782;

    border-radius: 50%;

    box-shadow:
        2px 2px 0 #f3a9c5;

}


/* =========================
   BOTÓN VOLVER
   ========================= */

.volver-cuaderno {

    display: inline-block;

    padding: 7px 13px;

    background-color: #fff0f6;

    color: #9b496b;

    text-decoration: none;

    font-family: "Silkscreen", monospace;

    font-size: 11px;

    border: 2px solid #f3a9c5;

    border-radius: 18px;

    box-shadow:
        0 3px 0 #f3a9c5;

    transition: 0.2s;

}


.volver-cuaderno:hover {

    background-color: #ffe4ef;

    transform: translateY(-2px);

}


/* =========================
   TÍTULO
   ========================= */

.hoja h1 {

    color: #c95782;

    font-size: 32px;

    text-align: center;

    margin: 25px 0 5px;

}


/* =========================
   SUBTÍTULO
   ========================= */

.subtitulo-cuaderno {

    color: #d96f95;

    font-family: "Silkscreen", monospace;

    font-size: 10px;

    text-align: center;

}


/* =========================
   DECORACIÓN
   ========================= */

.decoracion-cuaderno {

    color: #e58bad;

    text-align: center;

    font-size: 18px;

    letter-spacing: 5px;

    margin: 18px 0 30px;

}


/* =========================
   NOTA
   ========================= */

.nota {

    background-color: #fff0f6;

    border: 2px solid #f3a9c5;

    border-radius: 12px;

    padding: 15px 18px;

    box-shadow:
        3px 3px 0 #f3c1d4;

    margin-bottom: 25px;

}


.nota h2 {

    color: #c95782;

    font-size: 18px;

    margin-top: 0;

}


.nota p {

    color: #9b496b;

    font-size: 12px;

    line-height: 1.6;

}


/* =========================
   INSTRUCCIONES
   ========================= */

.instruccion {

    display: flex;

    gap: 15px;

    align-items: flex-start;

    padding: 12px 0 18px;

    margin-bottom: 15px;

    border-bottom: 2px dashed #efb3c9;

}


.numero {

    flex-shrink: 0;

    width: 40px;

    height: 40px;

    display: flex;

    justify-content: center;

    align-items: center;

    background-color: #e88cac;

    color: white;

    border-radius: 50%;

    font-family: "Silkscreen", monospace;

    font-size: 10px;

    box-shadow:
        2px 2px 0 #d96f95;

}


.instruccion h2 {

    margin: 0 0 5px;

    color: #c95782;

    font-size: 17px;

}


.instruccion p {

    margin: 4px 0;

    color: #9b496b;

    font-size: 12px;

    line-height: 1.6;

}


/* =========================
   FINAL
   ========================= */

.final-cuaderno {

    text-align: center;

    color: #c95782;

    font-size: 15px;

    margin-top: 25px;

}


.final-cuaderno span {

    font-size: 25px;

}


/* =========================
   MÓVIL
   ========================= */

@media (max-width: 750px) {

    .pagina-cuaderno {

        align-items: flex-start;

        padding: 20px 10px;

    }


    .cuaderno {

        height: auto;

        flex-direction: column;

    }


    .hoja {

        width: 100%;

        height: auto;

        min-height: 600px;

    }


    .hoja-izquierda {

        border-radius: 10px 10px 0 0;

    }


    .hoja-derecha {

        border-radius: 0 0 10px 10px;

    }


    .espiral {

        display: none;

    }


    .cuaderno::before {

        display: none;

    }

}

/* =========================
   PARTE 4 - TE AMO
   ========================= */


/* =========================
   PÁGINA
   ========================= */

.pagina-te-amo {

    margin: 0;

    min-height: 100vh;

    background-color: #ffe6f1;

    color: #9b496b;

    font-family: "Righteous", cursive;

    overflow: hidden;

}


/* =========================
   CONTENEDOR
   ========================= */

.te-amo-pagina {

    position: relative;

    width: 100%;

    height: 100vh;

    min-height: 600px;

    box-sizing: border-box;

    padding: 30px;

}


/* =========================
   BOTÓN VOLVER
   ========================= */

.boton-volver-amor {

    position: absolute;

    top: 25px;

    left: 25px;

    z-index: 20;

    display: inline-block;

    padding: 9px 16px;

    background-color: #fffafa;

    color: #9b496b;

    text-decoration: none;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    border: 2px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        0 3px 0 #f3a9c5;

    transition: 0.2s;

}


.boton-volver-amor:hover {

    background-color: #fff0f6;

    color: #d96f95;

    transform: translateY(-2px);

}


/* =========================
   TÍTULO
   ========================= */

.te-amo-pagina h1 {

    position: relative;

    z-index: 10;

    margin: 10px 0 20px;

    text-align: center;

    color: #c95782;

    font-size: 50px;

    text-shadow:
        2px 2px 0 #fff0f6;

}


/* =========================
   LLUVIA DE "TE AMO"
   ========================= */

.lluvia-amor {

    position: absolute;

    top: 100px;

    left: 25px;

    right: 25px;

    bottom: 25px;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-content: center;

    align-items: center;

    gap: 14px 18px;

    overflow: hidden;

}


/* =========================
   CADA TE AMO
   ========================= */

.amor {

    position: relative;

    display: inline-block;

    padding: 8px 14px;

    background-color: #fffafa;

    color: #c95782;

    border: 2px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        2px 3px 0 #e9a5bd;

    font-size: 15px;

    cursor: pointer;

    user-select: none;

    transition:
        transform 0.2s,
        background-color 0.2s;

}


/* HOVER */

.amor:hover {

    background-color: #fff0f6;

    color: #d96f95;

    transform:
        scale(1.12)
        rotate(-3deg);

}


/* =========================
   VARIACIONES
   ========================= */

.amor:nth-child(3n) {

    font-size: 19px;

    transform: rotate(-4deg);

}


.amor:nth-child(3n):hover {

    transform:
        scale(1.12)
        rotate(-4deg);

}


.amor:nth-child(4n) {

    background-color: #fff0f6;

    transform: rotate(4deg);

}


.amor:nth-child(4n):hover {

    transform:
        scale(1.12)
        rotate(4deg);

}


.amor:nth-child(5n) {

    font-size: 13px;

    transform: rotate(-2deg);

}


.amor:nth-child(5n):hover {

    transform:
        scale(1.12)
        rotate(-2deg);

}


.amor:nth-child(7n) {

    font-size: 17px;

}


/* =========================
   MENSAJE DEL CENTRO
   ========================= */

.mensaje-central-amor {

    position: absolute;

    z-index: 15;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 260px;

    padding: 30px 25px;

    box-sizing: border-box;

    text-align: center;

    background-color: #fffafa;

    border: 4px solid #f3a9c5;

    border-radius: 25px;

    box-shadow:
        7px 7px 0 #e99ab7;

}


/* CORAZONES DEL CENTRO */

.mensaje-central-amor div {

    color: #e58bad;

    font-size: 28px;

}


/* TEXTO */

.mensaje-central-amor p {

    margin: 8px 0;

    color: #c95782;

    font-size: 25px;

}


.mensaje-central-amor p:nth-child(3) {

    font-size: 18px;

}


/* =========================
   CORAZONES QUE APARECEN
   ========================= */

.corazon-volador {

    position: fixed;

    pointer-events: none;

    z-index: 9999;

    color: #e56f99;

    font-family: "Righteous", cursive;

    font-size: 22px;

    animation:
        corazonSube 1s ease-out forwards;

}


/* ANIMACIÓN */

@keyframes corazonSube {

    0% {

        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(0.4);

    }


    50% {

        opacity: 1;

        transform:
            translate(
                calc(-50% + var(--x)),
                calc(-50% + var(--y))
            )
            scale(1.2);

    }


    100% {

        opacity: 0;

        transform:
            translate(
                calc(-50% + var(--x)),
                calc(-50% + var(--y2))
            )
            scale(0.7);

    }

}


/* =========================
   DECORACIÓN SUPERIOR
   ========================= */

.pagina-te-amo::before {

    content:
        "♡   ♥   ♡   ♥   ♡   ♥   ♡";

    position: fixed;

    top: 7px;

    left: 0;

    width: 100%;

    text-align: center;

    color: #e58bad;

    font-size: 17px;

    letter-spacing: 7px;

    z-index: 5;

}


/* =========================
   DECORACIÓN INFERIOR
   ========================= */

.pagina-te-amo::after {

    content:
        "♡   ♥   ♡   ♥   ♡   ♥   ♡";

    position: fixed;

    bottom: 7px;

    left: 0;

    width: 100%;

    text-align: center;

    color: #e58bad;

    font-size: 17px;

    letter-spacing: 7px;

    z-index: 5;

}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 700px) {

    .te-amo-pagina {

        padding: 20px;

    }


    .te-amo-pagina h1 {

        font-size: 36px;

    }


    .lluvia-amor {

        top: 85px;

        left: 15px;

        right: 15px;

    }


    .amor {

        font-size: 12px;

        padding: 6px 10px;

    }


    .amor:nth-child(3n) {

        font-size: 15px;

    }


    .mensaje-central-amor {

        width: 210px;

        padding: 22px 18px;

    }


    .mensaje-central-amor p {

        font-size: 21px;

    }


    .mensaje-central-amor p:nth-child(3) {

        font-size: 16px;

    }

}

/* =========================
   PARTE 5 - NUESTRO TIEMPO
   ========================= */

.pagina-tiempo {

    margin: 0;

    min-height: 100vh;

    background-color: #ffe6f1;

    color: #9b496b;

    font-family: "Righteous", cursive;

    overflow: hidden;

}


/* =========================
   CONTENEDOR
   ========================= */

.tiempo-contenedor {

    position: relative;

    width: 100%;

    min-height: 100vh;

    box-sizing: border-box;

    padding: 35px 30px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}


/* =========================
   BOTÓN VOLVER
   ========================= */

.boton-volver-tiempo {

    position: absolute;

    top: 25px;

    left: 25px;

    z-index: 10;

    padding: 9px 16px;

    background-color: #fffafa;

    color: #9b496b;

    text-decoration: none;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    border: 2px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        0 3px 0 #f3a9c5;

    transition: 0.2s;

}


.boton-volver-tiempo:hover {

    background-color: #fff0f6;

    color: #d96f95;

    transform: translateY(-2px);

}


/* =========================
   TÍTULO
   ========================= */

.pagina-tiempo h1 {

    margin: 0 0 8px;

    color: #c95782;

    font-size: 48px;

    text-align: center;

    text-shadow:
        2px 2px 0 #fff0f6;

}


.subtitulo-tiempo {

    margin: 0 0 25px;

    color: #9b496b;

    font-size: 17px;

    text-align: center;

}


/* =========================
   FECHA
   ========================= */

.fecha-inicio {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    width: 260px;

    padding: 15px 20px;

    box-sizing: border-box;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    border-radius: 18px;

    box-shadow:
        4px 4px 0 #e99ab7;

    margin-bottom: 25px;

}


.fecha-inicio span {

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 16px;

}


.fecha-inicio small {

    margin-top: 8px;

    color: #d96f95;

    font-size: 12px;

}


/* =========================
   CONTADOR PRINCIPAL
   ========================= */

.contador-tiempo {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    padding: 20px 30px;

    background-color: #fffafa;

    border: 4px solid #f3a9c5;

    border-radius: 25px;

    box-shadow:
        7px 7px 0 #e99ab7;

}


/* =========================
   CADA UNIDAD
   ========================= */

.unidad-tiempo {

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 90px;

}


.unidad-tiempo span {

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 38px;

    line-height: 1;

}


.unidad-tiempo small {

    margin-top: 10px;

    color: #d96f95;

    font-size: 14px;

}


/* =========================
   SEPARADORES
   ========================= */

.separador {

    color: #e58bad;

    font-family: "Silkscreen", monospace;

    font-size: 30px;

    padding-bottom: 18px;

}


/* =========================
   HORAS / MINUTOS / SEGUNDOS
   ========================= */

.tiempo-pequeno {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 20px;

    font-family: "Silkscreen", monospace;

    font-size: 11px;

    color: #9b496b;

}


.tiempo-pequeno div {

    padding: 7px 12px;

    background-color: #fff0f6;

    border: 2px solid #f3a9c5;

    border-radius: 15px;

}


.tiempo-pequeno span {

    color: #c95782;

}


/* =========================
   MENSAJE
   ========================= */

.mensaje-tiempo {

    width: 390px;

    max-width: 90%;

    margin-top: 25px;

    padding: 18px 25px;

    box-sizing: border-box;

    text-align: center;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        4px 4px 0 #e99ab7;

}


.mensaje-tiempo p {

    margin: 7px 0;

    font-size: 16px;

    line-height: 1.5;

}


.mensaje-tiempo p:nth-child(2) {

    color: #c95782;

    font-size: 20px;

}


/* =========================
   CORAZONES
   ========================= */

.corazon-tiempo {

    color: #e58bad;

    font-size: 24px;

}


/* =========================
   FRASE FINAL
   ========================= */

.frase-tiempo {

    margin-top: 22px;

    color: #c95782;

    font-size: 14px;

    text-align: center;

}


.frase-tiempo strong {

    font-size: 25px;

}


/* =========================
   DECORACIONES
   ========================= */

.pagina-tiempo::before {

    content:
        "♡   ♥   ♡   ♥   ♡   ♥   ♡";

    position: fixed;

    top: 8px;

    left: 0;

    width: 100%;

    text-align: center;

    color: #e58bad;

    font-size: 17px;

    letter-spacing: 7px;

}


.pagina-tiempo::after {

    content:
        "♡   ♥   ♡   ♥   ♡   ♥   ♡";

    position: fixed;

    bottom: 8px;

    left: 0;

    width: 100%;

    text-align: center;

    color: #e58bad;

    font-size: 17px;

    letter-spacing: 7px;

}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 600px) {

    .tiempo-contenedor {

        padding: 30px 15px;

    }


    .pagina-tiempo h1 {

        font-size: 36px;

    }


    .subtitulo-tiempo {

        font-size: 14px;

    }


    .contador-tiempo {

        gap: 7px;

        padding: 16px 12px;

    }


    .unidad-tiempo {

        min-width: 65px;

    }


    .unidad-tiempo span {

        font-size: 27px;

    }


    .unidad-tiempo small {

        font-size: 11px;

    }


    .separador {

        font-size: 22px;

    }


    .tiempo-pequeno {

        gap: 5px;

        font-size: 8px;

    }


    .tiempo-pequeno div {

        padding: 6px 7px;

    }


    .mensaje-tiempo {

        width: 340px;

        padding: 15px;

    }

}

/* =====================================================
   PARTE 6 — NUESTRA CASITA
   ===================================================== */

.pagina-casita {

    margin: 0;

    min-height: 100vh;

    background-color: #ffe6f1;

    color: #9b496b;

    font-family: "Righteous", cursive;

    overflow: hidden;

}


/* =====================================================
   CONTENEDOR
   ===================================================== */

.casita-contenedor {

    position: relative;

    width: 100%;

    min-height: 100vh;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px;

}


/* =====================================================
   BOTÓN VOLVER
   ===================================================== */

.boton-volver-casita {

    position: absolute;

    top: 25px;

    left: 25px;

    padding: 9px 16px;

    background-color: #fffafa;

    color: #9b496b;

    text-decoration: none;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    border: 2px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        0 3px 0 #e99ab7;

    transition: 0.2s;

}


.boton-volver-casita:hover {

    background-color: #fff0f6;

    color: #d96f95;

    transform: translateY(-2px);

}


/* =====================================================
   TÍTULO
   ===================================================== */

.pagina-casita h1 {

    margin: 0 0 5px;

    color: #c95782;

    font-size: 45px;

    text-align: center;

    text-shadow:
        2px 2px 0 #fff0f6;

}


.subtitulo-casita {

    margin: 0 0 25px;

    font-size: 16px;

    text-align: center;

}


/* =====================================================
   CASITA
   ===================================================== */

.casa-futuro {

    position: relative;

    width: 430px;

    height: 300px;

    margin-top: 5px;

}


/* =====================================================
   CUERPO DE LA CASA
   ===================================================== */

.cuerpo-casa {

    position: absolute;

    left: 70px;

    bottom: 20px;

    width: 290px;

    height: 190px;

    background-color: #fffafa;

    border: 5px solid #d96f95;

    box-sizing: border-box;

    border-radius: 8px;

    box-shadow:
        8px 8px 0 #e99ab7;

}


/* =====================================================
   TECHO
   ===================================================== */

.techo-casa {

    position: absolute;

    left: 45px;

    top: 15px;

    width: 0;

    height: 0;

    border-left: 170px solid transparent;

    border-right: 170px solid transparent;

    border-bottom: 120px solid #e88cac;

    z-index: 3;

    filter:
        drop-shadow(6px 6px 0 #c95782);

}


/* =====================================================
   CHIMENEA
   ===================================================== */

.chimenea-casa {

    position: absolute;

    top: 38px;

    right: 80px;

    width: 42px;

    height: 75px;

    background-color: #f3a9c5;

    border: 4px solid #c95782;

    box-sizing: border-box;

    z-index: 1;

}


.chimenea-casa span {

    position: absolute;

    top: -30px;

    left: 8px;

    color: #e58bad;

    font-size: 25px;

}


/* =====================================================
   OBJETOS CLICKEABLES
   ===================================================== */

.objeto-casa {

    position: absolute;

    border: none;

    background: transparent;

    cursor: pointer;

    z-index: 10;

    transition:
        transform 0.2s ease;

}


.objeto-casa:hover {

    transform:
        scale(1.18);

}


/* =====================================================
   VENTANAS
   ===================================================== */

.ventana-izquierda {

    left: 18px;

    top: 55px;

    font-size: 45px;

}


.ventana-derecha {

    right: 18px;

    top: 55px;

    font-size: 45px;

}


/* =====================================================
   PUERTA
   ===================================================== */

.puerta-casa {

    left: 111px;

    bottom: 0;

    font-size: 55px;

}


/* =====================================================
   GATITOS
   ===================================================== */

.gato-casa {

    font-size: 45px;

}


.gato-casa1 {

    left: 10px;

    bottom: 5px;

}


.gato-casa2 {

    right: 5px;

    bottom: 5px;

}


/* =====================================================
   PLANTAS
   ===================================================== */

.planta-casa {

    font-size: 40px;

}


.planta1 {

    left: 35px;

    bottom: 10px;

}


.planta2 {

    right: 45px;

    bottom: 10px;

}


/* =====================================================
   CORAZÓN
   ===================================================== */

.corazon-casa {

    right: 175px;

    top: 125px;

    color: #e36f9b;

    font-family: "Righteous", cursive;

    font-size: 32px;

}


/* =====================================================
   INSTRUCCIÓN
   ===================================================== */

.instruccion-casita {

    margin: 10px 0 0;

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 11px;

}


/* =====================================================
   FRASE FINAL
   ===================================================== */

.final-casita {

    margin-top: 15px;

    text-align: center;

    color: #9b496b;

    font-size: 14px;

    line-height: 1.5;

}


.final-casita strong {

    color: #c95782;

    font-size: 23px;

}


/* =====================================================
   VENTANA DE MENSAJE
   ===================================================== */

#ventana-casita {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    background-color:
        rgba(155, 73, 107, 0.25);

    z-index: 9999;

}


#ventana-casita.abierta {

    display: flex;

}


/* =====================================================
   CAJA DEL MENSAJE
   ===================================================== */

.caja-casita {

    position: relative;

    width: 390px;

    max-width: 85%;

    padding: 35px 30px;

    box-sizing: border-box;

    text-align: center;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    border-radius: 25px;

    box-shadow:
        7px 7px 0 #e99ab7;

    animation:
        aparecer-casita 0.3s ease;

}


@keyframes aparecer-casita {

    from {

        opacity: 0;

        transform:
            scale(0.8);

    }

    to {

        opacity: 1;

        transform:
            scale(1);

    }

}


/* =====================================================
   CERRAR
   ===================================================== */

#cerrar-casita {

    position: absolute;

    top: 10px;

    right: 13px;

    border: none;

    background: transparent;

    color: #c95782;

    font-size: 22px;

    cursor: pointer;

}


/* =====================================================
   ICONO
   ===================================================== */

.icono-casita {

    font-size: 45px;

    margin-bottom: 5px;

}


/* =====================================================
   TÍTULO DEL MENSAJE
   ===================================================== */

.caja-casita h2 {

    margin: 5px 0 15px;

    color: #c95782;

    font-size: 25px;

}


/* =====================================================
   TEXTO
   ===================================================== */

.caja-casita p {

    margin: 0;

    color: #9b496b;

    font-size: 17px;

    line-height: 1.6;

}


/* =====================================================
   DECORACIONES
   ===================================================== */

.pagina-casita::before {

    content:
        "♡   ♥   ♡   ♥   ♡   ♥   ♡";

    position: fixed;

    top: 8px;

    left: 0;

    width: 100%;

    text-align: center;

    color: #e58bad;

    font-size: 17px;

    letter-spacing: 7px;

}


.pagina-casita::after {

    content:
        "♡   ♥   ♡   ♥   ♡   ♥   ♡";

    position: fixed;

    bottom: 8px;

    left: 0;

    width: 100%;

    text-align: center;

    color: #e58bad;

    font-size: 17px;

    letter-spacing: 7px;

}


/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 600px) {

    .pagina-casita h1 {

        font-size: 34px;

    }


    .casa-futuro {

        transform:
            scale(0.8);

        margin-top: -10px;

        margin-bottom: -40px;

    }


    .subtitulo-casita {

        font-size: 13px;

    }


    .final-casita {

        font-size: 12px;

    }

}

/* =====================================================
   PARTE 7 — VIDEOJUEGO
   ===================================================== */

.pagina-juego {

    margin: 0;

    min-height: 100vh;

    background-color: #ffe6f1;

    color: #9b496b;

    font-family: "Righteous", cursive;

    overflow: hidden;

}


/* =====================================================
   CONTENEDOR
   ===================================================== */

.juego-contenedor {

    position: relative;

    width: 100%;

    min-height: 100vh;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px;

}


/* =====================================================
   VOLVER
   ===================================================== */

.boton-volver-juego {

    position: absolute;

    top: 25px;

    left: 25px;

    padding: 9px 16px;

    background-color: #fffafa;

    color: #9b496b;

    text-decoration: none;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    border: 2px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        0 3px 0 #e99ab7;

    transition: 0.2s;

}


.boton-volver-juego:hover {

    background-color: #fff0f6;

    color: #d96f95;

    transform: translateY(-2px);

}


/* =====================================================
   TÍTULO
   ===================================================== */

.pagina-juego h1 {

    margin: 0 0 5px;

    color: #c95782;

    font-size: 45px;

    text-align: center;

}


.subtitulo-juego {

    margin: 0 0 20px;

    font-size: 15px;

}


/* =====================================================
   INFORMACIÓN
   ===================================================== */

.info-juego {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

}


.info-juego div {

    min-width: 90px;

    padding: 8px 12px;

    box-sizing: border-box;

    text-align: center;

    background-color: #fffafa;

    border: 2px solid #f3a9c5;

    border-radius: 12px;

    font-family: "Silkscreen", monospace;

    font-size: 9px;

}


.info-juego span {

    display: block;

    margin-top: 5px;

    color: #c95782;

    font-size: 15px;

}


/* =====================================================
   ZONA DEL VIDEOJUEGO
   ===================================================== */

#zona-videojuego {

    position: relative;

    width: 600px;

    max-width: 90vw;

    height: 330px;

    max-height: 45vh;

    overflow: hidden;

    background-color: #fff0f6;

    border: 5px solid #c95782;

    border-radius: 15px;

    box-shadow:
        8px 8px 0 #e99ab7;

}


/* =====================================================
   GATITO DEL JUEGO
   ===================================================== */

.gatito-juego {

    position: absolute;

    width: 65px;

    height: 65px;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    z-index: 20;

    transition:
        transform 0.15s;

}


/* IMAGEN DEL GATO */

.gatito-juego img {

    width: 65px;

    height: 65px;

    object-fit: contain;

    display: block;

    pointer-events: none;

}


/* EFECTO AL PASAR EL CURSOR */

.gatito-juego:hover {

    transform: scale(1.2) rotate(-5deg);

}


/* EFECTO AL PRESIONAR */

.gatito-juego:active {

    transform: scale(0.9);

}


/* =====================================================
   DECORACIONES DEL JUEGO
   ===================================================== */

.decoracion-juego {

    position: absolute;

    color: #e58bad;

    font-size: 25px;

    pointer-events: none;

}


.d1 {

    top: 15%;

    left: 15%;

}


.d2 {

    top: 30%;

    right: 20%;

}


.d3 {

    bottom: 20%;

    left: 30%;

}


.d4 {

    bottom: 15%;

    right: 15%;

}


.d5 {

    top: 15%;

    right: 45%;

}


/* =====================================================
   MENSAJE
   ===================================================== */

.mensaje-juego {

    margin-top: 18px;

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    text-align: center;

}


/* =====================================================
   BOTÓN INICIAR
   ===================================================== */

.boton-iniciar-juego {

    margin-top: 15px;

    padding: 12px 25px;

    border: 3px solid #c95782;

    border-radius: 20px;

    background-color: #fffafa;

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    cursor: pointer;

    box-shadow:
        0 4px 0 #e99ab7;

    transition: 0.2s;

}


.boton-iniciar-juego:hover {

    background-color: #fff0f6;

    transform:
        translateY(-2px);

}


/* =====================================================
   VENTANA FINAL
   ===================================================== */

.ventana-final-juego {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    background-color:
        rgba(155, 73, 107, 0.3);

    z-index: 9999;

}


.ventana-final-juego.abierta {

    display: flex;

}


/* =====================================================
   CAJA FINAL
   ===================================================== */

.caja-final-juego {

    width: 420px;

    max-width: 85%;

    padding: 35px;

    box-sizing: border-box;

    text-align: center;

    background-color: #fffafa;

    border: 4px solid #f3a9c5;

    border-radius: 25px;

    box-shadow:
        8px 8px 0 #e99ab7;

    animation:
        aparecer-juego 0.35s ease;

}


@keyframes aparecer-juego {

    from {

        opacity: 0;

        transform:
            scale(0.7);

    }

    to {

        opacity: 1;

        transform:
            scale(1);

    }

}


/* =====================================================
   GATITO DE LA VENTANA FINAL
   ===================================================== */

.gatito-final {

    width: 90px;

    height: 90px;

    margin: 0 auto 10px;

}


.gatito-final img {

    width: 90px;

    height: 90px;

    object-fit: contain;

    display: block;

}


/* =====================================================
   TÍTULO FINAL
   ===================================================== */

.caja-final-juego h2 {

    margin: 5px 0 15px;

    color: #c95782;

    font-size: 30px;

}


.caja-final-juego p {

    color: #9b496b;

    font-size: 16px;

    line-height: 1.6;

}


.mensaje-final-juego strong {

    color: #c95782;

    font-size: 18px;

}


/* =====================================================
   CORAZONES
   ===================================================== */

.corazones-final {

    margin-top: 15px;

    color: #e58bad;

    font-size: 25px;

}


/* =====================================================
   ANIMACIÓN DEL GATO
   ===================================================== */

@keyframes gatito-saltar {

    0% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-8px);

    }

    100% {

        transform: translateY(0);

    }

}


/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 600px) {

    .juego-contenedor {

        padding: 20px;

    }


    .pagina-juego h1 {

        font-size: 34px;

    }


    .subtitulo-juego {

        font-size: 12px;

    }


    #zona-videojuego {

        width: 90vw;

        height: 280px;

    }


    .gatito-juego {

        width: 55px;

        height: 55px;

    }


    .gatito-juego img {

        width: 55px;

        height: 55px;

    }


    .info-juego {

        gap: 6px;

    }


    .info-juego div {

        min-width: 70px;

        font-size: 8px;

    }


    .info-juego span {

        font-size: 13px;

    }


    .caja-final-juego {

        width: 90%;

        padding: 25px;

    }


    .gatito-final {

        width: 75px;

        height: 75px;

    }


    .gatito-final img {

        width: 75px;

        height: 75px;

    }

}

/* =====================================================
   PARTE 8 — CARTA QUE SE ESCRIBE SOLA
   ===================================================== */

.pagina-carta-escrita {

    margin: 0;

    min-height: 100vh;

    background-color: #ffe6f1;

    color: #9b496b;

    font-family: "Righteous", cursive;

    overflow-y: auto;

}


/* =========================
   CONTENEDOR
   ========================= */

.carta-escrita {

    min-height: 100vh;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 35px 20px 50px;

    position: relative;

}


/* =========================
   VOLVER
   ========================= */

.volver-carta {

    position: absolute;

    top: 25px;

    left: 25px;

    padding: 9px 16px;

    background-color: #fffafa;

    color: #9b496b;

    text-decoration: none;

    font-family: "Silkscreen", monospace;

    font-size: 11px;

    border: 2px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        0 3px 0 #e99ab7;

}


.volver-carta:hover {

    background-color: #fff0f6;

    color: #d96f95;

}


/* =========================
   TÍTULO
   ========================= */

.carta-escrita h1 {

    margin: 15px 0 5px;

    color: #c95782;

    font-size: 42px;

    text-align: center;

}


.subtitulo-carta {

    margin: 0 0 20px;

    font-size: 14px;

    text-align: center;

}


/* =========================
   HOJA
   ========================= */

.hoja-carta {

    position: relative;

    width: 650px;

    max-width: 90vw;

    min-height: 560px;

    box-sizing: border-box;

    padding: 45px 55px;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    border-radius: 8px;

    box-shadow:
        8px 8px 0 #e99ab7;

    text-align: left;

}


/* =========================
   LÍNEAS DE LA HOJA
   ========================= */

.hoja-carta::before {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 30px,
            #f8d5e2 31px
        );

    opacity: 0.7;

    border-radius: 8px;

}


/* =========================
   ENCABEZADO
   ========================= */

.encabezado-carta {

    position: relative;

    z-index: 2;

    padding-bottom: 20px;

    margin-bottom: 15px;

    border-bottom: 2px dashed #f3a9c5;

    font-family: "Silkscreen", monospace;

    font-size: 10px;

    line-height: 2;

}


.encabezado-carta strong {

    color: #c95782;

}


/* =========================
   TEXTO
   ========================= */

.texto-escrito {

    position: relative;

    z-index: 2;

    white-space: pre-wrap;

    color: #8f4967;

    font-size: 16px;

    line-height: 1.9;

}


/* =========================
   CORAZÓN / CURSOR
   ========================= */

.cursor-escritura {

    position: relative;

    z-index: 2;

    color: #e36f9b;

    font-size: 15px;

    animation:
        parpadear 0.7s infinite;

}


@keyframes parpadear {

    0%,
    100% {

        opacity: 1;

    }

    50% {

        opacity: 0;

    }

}


/* =========================
   FINAL
   ========================= */

.final-carta {

    position: relative;

    z-index: 3;

    display: none;

    margin-top: 25px;

    padding-top: 15px;

    border-top: 2px dashed #f3a9c5;

    color: #c95782;

    text-align: center;

    font-size: 20px;

}


/* =========================
   BOTÓN REPETIR
   ========================= */

.boton-repetir-carta {

    margin-top: 25px;

    padding: 12px 25px;

    border: 3px solid #c95782;

    border-radius: 25px;

    background-color: #fffafa;

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 11px;

    cursor: pointer;

    box-shadow:
        0 4px 0 #e99ab7;

    transition: 0.2s;

}


.boton-repetir-carta:hover {

    background-color: #fff0f6;

    transform:
        translateY(-2px);

}


/* =========================
   MÓVIL
   ========================= */

@media (max-width: 700px) {

    .carta-escrita h1 {

        font-size: 30px;

        margin-top: 40px;

    }


    .hoja-carta {

        padding: 30px 25px;

        min-height: 500px;

    }


    .texto-escrito {

        font-size: 14px;

        line-height: 1.8;

    }

}

/* =====================================================
   ADOPTA UN GATO
   ===================================================== */

.pagina-gatos {

    margin: 0;

    min-height: 100vh;

    background-color: #ffe6f1;

    color: #9b496b;

    font-family: "Righteous", cursive;

    overflow-y: auto;

}


/* =========================
   CONTENEDOR
   ========================= */

.adopta-gatos {

    min-height: 100vh;

    box-sizing: border-box;

    padding: 35px 30px 70px;

    text-align: center;

}


/* =========================
   VOLVER
   ========================= */

.volver-adopta {

    position: absolute;

    top: 25px;

    left: 25px;

    padding: 9px 16px;

    background-color: #fffafa;

    color: #9b496b;

    border: 2px solid #f3a9c5;

    border-radius: 20px;

    box-shadow:
        0 3px 0 #e99ab7;

    font-family: "Silkscreen", monospace;

    font-size: 11px;

    cursor: pointer;

}


.volver-adopta:hover {

    background-color: #fff0f6;

    color: #d96f95;

}


/* =========================
   TÍTULO
   ========================= */

.adopta-gatos h1 {

    margin: 15px 0 5px;

    color: #c95782;

    font-size: 42px;

}


.texto-adopta {

    margin: 5px 0 8px;

    font-size: 16px;

}


.contador-adopta {

    color: #c95782;

    font-family: "Silkscreen", monospace;

    font-size: 12px;

    margin-bottom: 25px;

}


/* =========================
   GRID DE GATOS
   ========================= */

.lista-gatos {

    width: 100%;

    max-width: 950px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}


/* =========================
   TARJETA
   ========================= */

.gato-adopcion {

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    border-radius: 18px;

    padding: 12px;

    box-sizing: border-box;

    box-shadow:
        0 5px 0 #e99ab7;

    transition:
        0.25s;

}


.gato-adopcion:hover {

    transform:
        translateY(-5px);

}


/* =========================
   FOTO
   ========================= */

.gato-adopcion img {

    width: 100%;

    height: 145px;

    object-fit: cover;

    border-radius: 12px;

    border: 2px solid #f3a9c5;

    cursor: pointer;

}


/* =========================
   NOMBRE
   ========================= */

.gato-adopcion h2 {

    margin: 10px 0;

    color: #c95782;

    font-size: 17px;

}


/* =========================
   BOTÓN
   ========================= */

.boton-adoptar {

    border: none;

    padding: 9px 16px;

    border-radius: 20px;

    background-color: #e88cac;

    color: white;

    font-family: "Righteous", cursive;

    cursor: pointer;

    transition: 0.2s;

}


.boton-adoptar:hover {

    background-color: #d96f95;

    transform:
        scale(1.05);

}


/* =========================
   GATO ADOPTADO
   ========================= */

.gato-adopcion.adoptado {

    border-color: #c95782;

    background-color: #fff0f6;

    transform:
        translateY(-5px);

}


.gato-adopcion.adoptado img {

    border-color: #c95782;

}


.gato-adopcion.adoptado
.boton-adoptar {

    background-color: #c95782;

    cursor: default;

}


/* =========================
   MENSAJE
   ========================= */

.mensaje-gato-adopcion {

    width: 600px;

    max-width: 90%;

    min-height: 25px;

    margin: 25px auto;

    padding: 15px 20px;

    box-sizing: border-box;

    background-color: #fffafa;

    border: 2px dashed #f3a9c5;

    border-radius: 15px;

    color: #9b496b;

    font-size: 14px;

    opacity: 0;

    transform:
        translateY(10px);

    transition:
        0.3s;

}


.mensaje-gato-adopcion.mostrar-mensaje {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================
   FINAL
   ========================= */

.familia-final {

    width: 600px;

    max-width: 90%;

    margin: 35px auto 0;

    padding: 30px;

    box-sizing: border-box;

    background-color: #fffafa;

    border: 3px solid #f3a9c5;

    border-radius: 25px;

    box-shadow:
        0 7px 0 #e99ab7;

    opacity: 0;

    transform:
        scale(0.8);

    pointer-events: none;

    transition:
        0.5s;

}


.familia-final.mostrar-familia {

    opacity: 1;

    transform:
        scale(1);

    pointer-events: auto;

}


.familia-final h2 {

    color: #c95782;

    font-size: 27px;

    margin: 10px 0;

}


.familia-final p {

    font-size: 17px;

}


.pequeno-final {

    font-family: "Silkscreen", monospace;

    font-size: 10px !important;

    color: #d96f95;

}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 800px) {

    .lista-gatos {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 500px) {

    .lista-gatos {

        grid-template-columns:
            1fr;

        max-width: 300px;

    }


    .adopta-gatos h1 {

        font-size: 30px;

        margin-top: 50px;

    }

}

/* =========================
   ZONA DE ESCRITURA
   ========================= */

.zona-escritura {

    display: flex;

    align-items: flex-start;

    justify-content: center;

    gap: 25px;

    width: 100%;

    margin-top: 25px;

}


/* =========================
   TEXTO
   ========================= */

.zona-escritura .texto-escrito {

    flex: 1;

    text-align: left;

    white-space: pre-wrap;

}


/* =========================
   GATITO
   ========================= */

.gato-carta {

    width: 100px;

    height: 100px;

    object-fit: contain;

    flex-shrink: 0;

    margin-top: 15px;

    image-rendering: pixelated;

    animation: gatito-flota 2s ease-in-out infinite;

}


/* =========================
   ANIMACIÓN DEL GATITO
   ========================= */

@keyframes gatito-flota {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }

}