:root {
    --rosa-pastel: #fce4ec;
    --dorado-suave: #d4af37;
    --texto-oscuro: #5d4037;
    --rosa-fuerte: #d81b60;
}

/* --- BASE Y FIX SCROLL --- */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%) no-repeat center center fixed;
    background-size: cover;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
}

/* --- LAYOUT PRINCIPAL --- */
.layout-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    gap: 30px; 
}

/* AJUSTES MÓVIL */
@media (max-width: 900px) {
    .layout-principal {
        padding-top: 60px; 
        padding-bottom: 150px; /* Alargamos el fondo en la parte desbloqueada */
        gap: 20px; 
    }
    .foto-polaroid {
        margin-top: 50px; /* Más espacio entre texto y fotoDer */
        margin-bottom: 20px;
    }
}

/* AJUSTES ORDENADOR */
@media (min-width: 1024px) {
    .layout-principal {
        flex-direction: row;
        gap: 120px;
        padding: 0;
        height: 100vh;
        overflow: hidden;
    }
}

/* --- FOTO CORAZÓN CON MOVIMIENTO --- */
.foto-corazon {
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: path('M140,40 C140,40 130,0 70,0 C20,0 0,45 0,90 C0,150 70,210 140,260 C210,210 280,150 280,90 C280,45 260,0 210,0 C150,0 140,40 140,40 Z');
    -webkit-clip-path: path('M140,40 C140,40 130,0 70,0 C20,0 0,45 0,90 C0,150 70,210 140,260 C210,210 280,150 280,90 C280,45 260,0 210,0 C150,0 140,40 140,40 Z');
    animation: flotarCorazon 4.5s infinite ease-in-out;
}

.foto-corazon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- FOTO POLAROID --- */
.foto-polaroid { 
    animation: flotarPolaroid 4s infinite ease-in-out; 
}
.marco-polaroid {
    background: white; 
    padding: 12px 12px 35px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transform: rotate(5deg); 
    border: 1px solid #eee;
}
.marco-polaroid img { 
    width: 180px; 
    height: 180px; 
    object-fit: cover; 
    display: block; 
}

/* --- DEFINICIÓN DE ANIMACIONES --- */
@keyframes flotarCorazon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes flotarPolaroid {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-12px) rotate(7deg); }
}

/* --- EMOJIS ANIMADOS --- */
.emoji-sticker {
    position: fixed;
    width: 60px;
    height: auto;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    user-select: none;
}

@keyframes emojiVida {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    15% { transform: scale(1) rotate(10deg); opacity: 0.8; }
    85% { transform: scale(1) translateY(-40px) rotate(-10deg); opacity: 0.8; }
    100% { transform: scale(0.5) translateY(-60px); opacity: 0; }
}

/* --- CONTENEDOR CENTRAL --- */
#contenedor {
    z-index: 10;
    width: 85%;
    max-width: 380px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-align: center;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

/* --- EFECTOS VISUALES --- */
#capa-magica {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.destello {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: brillar 4s infinite;
}

@keyframes brillar {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.chispa {
    position: fixed;
    background: var(--dorado-suave);
    border-radius: 50%;
    z-index: 100;
    pointer-events: none;
}

/* --- TEXTOS --- */
.oculto { display: none !important; }
.titulo-romantico { font-family: 'Dancing Script', cursive; color: var(--rosa-fuerte); font-size: 2.2rem; margin-bottom: 15px; }
.espera-titulo { font-family: 'Dancing Script', cursive; color: var(--texto-oscuro); font-size: 1.8rem; }
.corazon-latido { font-size: 3.5rem; animation: latido 1.2s infinite; margin: 25px 0; }
.firma-amor { font-family: 'Dancing Script', cursive; color: var(--dorado-suave); font-size: 1.6rem; margin-top: 20px; }

@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* --- ESTILO EASTER EGG (WESNAMI) --- */
.easter-egg-wesnami {
    position: fixed;
    bottom: -100px; /* Empieza escondido abajo */
    right: 20px;
    width: 120px; /* Un poco más grande para que se lea el texto */
    height: auto;
    z-index: 100; /* Por encima de casi todo */
    pointer-events: none;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wesnami-activo {
    bottom: 20px; /* Se asoma */
}