/* Reset CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #f9c1d9, #ffdab9, #c9a8e0);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Canvas de corazones como fondo */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Contenedor principal */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
}

/* Tarjeta glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    animation: fadeIn 1.5s ease forwards;
}

/* Flor SVG */
.flower-wrapper {
    margin-bottom: 20px;
}

.flower {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto;
}

.petals {
    transform-origin: center;
    animation: bloom 2s ease-in-out infinite alternate;
}

.petal {
    opacity: 0.85;
    transition: transform 0.3s;
}

.petal1 { animation: petalSway 3s ease-in-out infinite; }
.petal2 { animation: petalSway 3s ease-in-out infinite 0.6s; }
.petal3 { animation: petalSway 3s ease-in-out infinite 1.2s; }
.petal4 { animation: petalSway 3s ease-in-out infinite 1.8s; }
.petal5 { animation: petalSway 3s ease-in-out infinite 2.4s; }

@keyframes bloom {
    0% { transform: scale(0.8); }
    100% { transform: scale(1.1); }
}

@keyframes petalSway {
    0%, 100% { transform: rotate(0deg) translateX(0px); }
    25% { transform: rotate(5deg) translateX(5px); }
    75% { transform: rotate(-5deg) translateX(-5px); }
}

/* Título */
h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.8rem;
    color: #4a2c3a;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(255,255,255,0.5);
}

/* Firma */
.signature {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.2rem;
    color: #4a2c3a;
    letter-spacing: 1px;
    margin-top: 15px;
}

/* Animación fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }
    h1 {
        font-size: 1.4rem;
    }
    .flower {
        width: 120px;
        height: 120px;
    }
    .signature {
        font-size: 1rem;
    }
}
