body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fdfd96 0%, #ffec8b 50%, #fdfd96 100%); /* Fondo degradado suave */
    color: #333;
    overflow: hidden;
}

.ramo-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
}

h1 {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #555;
}

.mensaje-final {
    font-style: italic;
    margin-top: 30px;
    color: #777;
    font-size: 1em;
}

.ramo {
    position: relative;
    width: 320px;
    height: 400px;
    margin: 40px auto;
    transform-origin: bottom center;
    animation: sway 8s ease-in-out infinite; /* Animación de balanceo */
}

/* --- Animación para el balanceo del ramo --- */
@keyframes sway {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

/* --- Tallos y Hojas --- */
.tallo {
    position: absolute;
    width: 8px;
    height: 200px;
    background: linear-gradient(to top, #6b8e23, #8fbc8f);
    border-radius: 4px;
    bottom: 0;
    z-index: 0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.tallo1 { left: 80px; transform: rotate(-10deg); height: 220px; }
.tallo2 { left: 150px; transform: rotate(5deg); height: 210px; }
.tallo3 { left: 220px; transform: rotate(15deg); height: 230px; }

.hoja {
    position: absolute;
    width: 35px;
    height: 60px;
    background: linear-gradient(to right, #708238, #8fbc8f);
    border-radius: 0 50% 50% 50% / 0 50% 50% 50%;
    z-index: 1;
    transform-origin: bottom center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.hoja1 { left: 65px; top: 220px; transform: rotate(-40deg); }
.hoja2 { left: 180px; top: 250px; transform: rotate(30deg); background: linear-gradient(to right, #8fbc8f, #708238); }
.hoja3 { left: 100px; top: 280px; transform: rotate(10deg); }

/* --- Flores Comunes --- */
.flor {
    position: absolute;
    z-index: 5;
    transform-origin: bottom center;
    animation: float 5s ease-in-out infinite; /* Animación de flotar */
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- Girasol --- */
.girasol {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.girasol .centro {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, #8b4513 0%, #a0522d 70%, #d2691e 100%);
    border-radius: 50%;
    position: absolute;
    z-index: 7;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}

.girasol .petalo {
    position: absolute;
    width: 25px;
    height: 45px;
    background-color: #ffd700;
    border-radius: 50%;
    transform-origin: bottom center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #ffd700, #ffec8b);
}

.girasol .p1 { transform: rotate(0deg) translateY(-25px); }
.girasol .p2 { transform: rotate(45deg) translateY(-25px); }
.girasol .p3 { transform: rotate(90deg) translateY(-25px); }
.girasol .p4 { transform: rotate(135deg) translateY(-25px); }
.girasol .p5 { transform: rotate(180deg) translateY(-25px); }
.girasol .p6 { transform: rotate(225deg) translateY(-25px); }
.girasol .p7 { transform: rotate(270deg) translateY(-25px); }
.girasol .p8 { transform: rotate(315deg) translateY(-25px); }

.girasol1 { top: 50px; left: 100px; transform: scale(1.1); }
.girasol2 { top: 150px; left: 200px; transform: scale(0.9); z-index: 4; }


/* --- Tulipán --- */
.tulipan {
    width: 50px;
    height: 70px;
    position: absolute;
    overflow: hidden;
}

.tulipan .petalo-t {
    width: 40px;
    height: 55px;
    background: linear-gradient(to top, #ffd700, #ffec8b);
    border-radius: 60% 60% 40% 40% / 100% 100% 0% 0%;
    position: absolute;
    bottom: 0;
    left: 5px;
    transform-origin: bottom center;
    box-shadow: inset 0 -5px 8px rgba(0,0,0,0.2);
}

.tulipan .pt1 { left: 0px; transform: rotate(-15deg); z-index: 2; }
.tulipan .pt2 { left: 10px; z-index: 3; }
.tulipan .pt3 { left: 20px; transform: rotate(15deg); z-index: 2; }

.tulipan1 { top: 80px; left: 40px; transform: rotate(-15deg); }
.tulipan2 { top: 180px; left: 90px; transform: rotate(10deg); z-index: 3; }

/* --- Otras Flores Amarillas --- */
.otra-flor {
    background: linear-gradient(to bottom right, #ffec8b, #fdfd96);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.otra-flor1 { top: 130px; left: 20px; z-index: 6; }
.otra-flor2 { top: 200px; left: 160px; z-index: 5; transform: scale(0.8); }

.otra-flor.ovalada {
    width: 60px;
    height: 40px;
    background: linear-gradient(to right, #ffe135, #ffec8b);
}

/* --- Lazo del Ramo --- */
.lazo {
    position: absolute;
    bottom: -15px; /* Un poco más abajo */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    z-index: 10;
}

.lazo .nudo {
    width: 35px;
    height: 35px;
    background-color: #ff8c00;
    border-radius: 50%;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 -3px 8px rgba(0,0,0,0.3);
}

.lazo .cola {
    position: absolute;
    width: 50px;
    height: 70px;
    background-color: #ffa500;
    top: 35px;
    border-radius: 0 0 50% 50%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.lazo .cola1 { left: 10px; transform: rotate(-25deg); }
.lazo .cola2 { right: 10px; transform: rotate(25deg); }