body{
    margin: 0;
    font-family: 'Cinzel', serif;
    text-align: center;
    background: linear-gradient(135deg,#c084fc,#f9a8d4,#ddd6fe);
    color: white;
    overflow-x: hidden;
    position: relative;
}

body::before{
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(#ffd700 1.5px, transparent 1.5px),
        radial-gradient(#ffef99 1.5px, transparent 1.5px);
    background-size: 50px 50px, 80px 80px;
    opacity: 0.45;
    animation: estrellas 10s linear infinite;
    z-index: -1;
}

@keyframes estrellas{
    from{
        transform: translateY(0);
    }
    to{
        transform: translateY(70px);
    }
}

header{
    background: linear-gradient(90deg,#c084fc,#f9a8d4,#c084fc);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

h1, h2{
    text-shadow: 0 0 12px rgba(255,255,255,0.5);
}

nav button{
    padding: 12px 22px;
    margin: 8px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg,#ffffff,#fce7f3);
    color: #9333ea;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255,255,255,0.3);
    transition: transform 0.3s;
}

nav button:hover{
    transform: scale(1.05);
}

#inicio{
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.02)
    );
}

#inicio h2{
    font-size: 42px;
    margin-bottom: 10px;
}

.frase{
    font-size: 20px;
    font-style: italic;
    margin-bottom: 10px;
}

.decoracion{
    font-size: 24px;
    margin-bottom: 20px;
}

input{
    padding: 14px;
    width: 280px;
    border-radius: 25px;
    border: 2px solid white;
    text-align: center;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

#btnBuscar{
    margin-top: 14px;
    padding: 12px 22px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg,#f472b6,#c084fc);
    color: white;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

#contenedor{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px;
}

.card{
    width: 230px;
    min-height: 380px;
    border-radius: 25px;
    padding: 18px;
    border: 10px solid #f9a8d4;
    cursor: pointer;
    background: linear-gradient(135deg,#c084fc,#f9a8d4,#ddd6fe);
    color: white;
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card:hover{
    transform: scale(1.04);
}

.card img{
    width: 180px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto 12px auto;
    border-radius: 15px;
    border: 3px solid white;
    background: rgba(255,255,255,0.2);
}

.info{
    display: none;
    margin-top: 10px;
    font-size: 14px;
}

.rapunzel-torre{
    position: fixed;
    bottom: 0;
    right: 0;
    width: 350px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.9;
    animation: flotar 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px gold);
}

@keyframes flotar{
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-10px);
    }
    100%{
        transform: translateY(0px);
    }
}

@media(max-width:768px){
    .card{
        width: 180px;
        min-height: 340px;
    }

    input{
        width: 180px;
    }

    nav button{
        margin: 4px;
        padding: 8px 14px;
    }

    #inicio h2{
        font-size: 30px;
    }

    .rapunzel-torre{
        width: 220px;
    }
}
