/* Variables para colores */
:root {
    --pink-bg: #FFD1DC;
    --pink-btn: #ffb6c1;
    --pink-btn-hover: #ff69b4;
    --white: #fff;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    --shadow-btn: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
    --shadow-btn-hover: 0 0.8rem 2rem rgba(0, 0, 0, 0.3);
    --text-dark: #333;
}

/* Reset y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

/* Fondo y centrado */
body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--pink-bg);
}

/* Layout horizontal para los tres bloques principales */
.layout-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px; /* Espacio entre bloques */
    width: 100%;
}

/* Contenedor principal */
.container, .img-left, .img-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    gap: 30px;
    justify-content: center;
}

/* Centro optimizado */
.Center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 10px;
    width: 500px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.Center img {
    width: 300px;
    height: auto;
    border-radius: 10px;
}

.img-left img,
.img-right img {
    width: 250px;
    height: auto;
    gap: 60px;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    animation: float 2s ease-in-out infinite;
}

/* Animación flotante */
@keyframes float {
    0%   { transform: translateY(-10px); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(-10px); }
}

/* Título */
#title {
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
}

/* Títulos laterales */
.side-title {
    font-size: 22px;
    color: #b266b2; /* Morado suave */
    margin-bottom: 18px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(178, 102, 178, 0.2);
    position: relative;
    animation: float-title 2s ease-in-out infinite;
}

/* Decoración: línea inferior con gradiente */
.side-title::after {
    content: "";
    display: block;
    margin: 8px auto 0 auto;
    width: 60%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ffb6c1 0%, #ff69b4 100%);
}

/* Animación flotante para títulos */
@keyframes float-title {
    0%   { transform: translateY(-5px); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(-5px); }
}

/* Botón */
#btn {
    text-decoration: none;
    color: var(--white);
    background-color: var(--pink-btn);
    padding: 10px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-btn);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#btn:hover {
    background-color: var(--pink-btn-hover);
    box-shadow: var(--shadow-btn-hover);
}

/* Clase para ocultar elementos */
.hidden {
    display: none !important;
}

/* Estilos para el mensaje central */
.center-message {
    font-size: 22px;
    /* Gradiente en el texto */
    background: linear-gradient(90deg, #b266b2 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ff69b4; /* Fallback para navegadores sin soporte */
    margin-bottom: 18px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
    position: relative;
    animation: float-title 2s ease-in-out infinite;
}

/* Decoración: línea inferior con gradiente para el mensaje central */
.center-message::after {
    content: "";
    display: block;
    margin: 8px auto 0 auto;
    width: 60%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #b266b2 0%, #ffb6c1 100%);
}

/* Estilos y animaciones para los corazones */
.hearts {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.heart {
    position: absolute;
    font-size: 48px;
    color: #ff69b4;
    opacity: 0.8;
    animation: heart-float 2s infinite;
    will-change: transform, opacity;
}

/* Distribución de corazones en diferentes lugares de la pantalla */
.heart:nth-child(1) { left: 10vw; top: 80vh; animation-delay: 0s; }
.heart:nth-child(2) { left: 30vw; top: 60vh; animation-delay: 0.5s; }
.heart:nth-child(3) { left: 50vw; top: 40vh; animation-delay: 1s; }
.heart:nth-child(4) { left: 70vw; top: 20vh; animation-delay: 1.5s; }
.heart:nth-child(5) { left: 85vw; top: 70vh; animation-delay: 2s; }

@keyframes heart-float {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3) translateY(-40px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(-80px);
        opacity: 0;
    }
}

/* Responsive para pantallas pequeñas */
@media (max-width: 900px) {
    .layout-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .Center {
        width: 90vw;
    }
    .img-left img,
    .img-right img,
    .Center img {
        width: 90vw;
        max-width: 300px;
    }
}