body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: white;
    overflow: hidden;
}

/* APP BASE */
.app {
    width: 100%;
    height: 100dvh;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOADER */
.loader {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor-corazon {
    width: min(70vw, 400px);
    aspect-ratio: 1;
    position: relative;
}

#corazon {
    width: 100%;
    height: 100%;
    position: relative;
}

.porcentaje {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 600;
    color: #7b4b41;
}

/* PALABRAS */
.word {
    position: absolute;
    font-size: 8px;
    color: #7b4b41;

    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;

    transition: all 0.4s ease;
}

/* GLASS */
#glass {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 10;
}

#glass.show {
    opacity: 1;
}

/* ESCENA */
#escena {
    position: fixed;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 20px;
    padding: 20px;
    text-align: center;

    opacity: 0;
    z-index: 20;
}

#escena.show {
    opacity: 1;
}

/* TITULO */
.titulo {
    font-size: clamp(36px, 6vw, 80px);
    color: #7b4b41;

    opacity: 0;
    transform: translateY(-20px);
    transition: 1s;
}

/* PERSONAJE */
.personaje img {
    width: min(45vw, 260px);
    opacity: 0;
    transform: scale(0.9);
    transition: 1s;
}

/* VIDA */
.personaje.vivo img {
    animation: flotar 3s infinite ease-in-out;
}

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

/* ANIMACION LATERAL */
.animacion-lateral {
    position: absolute;
    bottom: 10%;
    width: 100%;
    height: 120px;
    pointer-events: none;
}

.gato {
    position: absolute;
    width: clamp(60px, 18vw, 90px);
    bottom: 0;
}

.chico {
    position: absolute;
    width: clamp(70px, 20vw, 110px);
    bottom: 0;
}

.gato, .chico {
    opacity: 0;
    transform: translateX(120vw);
}

.gato.run {
    opacity: 1;
    animation: gatoRun 3s linear forwards;
}

.chico.run {
    opacity: 1;
    animation: chicoRun 3s linear forwards;
}

@keyframes gatoRun {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-150vw); }
}

@keyframes chicoRun {
    from { transform: translateX(120vw); }
    to   { transform: translateX(-150vw); }
}

/* SWIPE */
.swipe {
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: 1s;
    user-select: none;
}

/* MOBILE FIX */
@media (max-width: 480px) {
    .titulo {
        letter-spacing: 1px;
    }
}