body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-image: url('./images/fondo.jpg'); /* Ruta de tu imagen */
    background-size: cover;
    background-position: center;
}

header {
    position: relative;
    z-index: 10; /* Asegura que el header quede delante */
}

.hace-click {
    width: 100%;
    height: auto;
    background-color: white;
}

.wrapper-infinitescroll {
    flex: 1;
    overflow-y: auto;
}

.infinitescroll {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    position: absolute;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    animation: popIn 0.5s ease-out forwards;
    z-index: -1; /* Asegura que las imágenes queden detrás del header */
    width: auto;
    height: auto;
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
    animation: liquidWaves 3s ease-in-out infinite alternate;
}

.image-container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10%; /* Bordes ligeramente redondeados */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

.scroll-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

.scroll-content.clone {
    position: absolute;
    top: 0;
    left: 100%;
}

.footer-line {
    width: 94%;
    background-color: #AAAAAA;
    height: 2.94px;
    margin: 0 auto;
}

.Estrella-gris {
    width: 52px;
    height: 52px;
    vertical-align: middle;
    margin-left: 15px;
}

.click-p {
    font-size: 32px;
    line-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    color: #AAA;
        text-align: center;
        font-family: "Roboto";
        font-size: 32px;
        font-style: italic;
        font-weight: 300;
        line-height: 120%;
        /* 38.4px */
        letter-spacing: 3.47px;
}

.scroll-content .Estrella-gris {
    margin-left: 10px;
}

@keyframes scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes scroll-mobile {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animación de olas líquidas en los bordes */
@keyframes liquidWaves {
    0% {
        transform: scale(1);
        border-radius: 50%; /* Inicia como un círculo */
    }
    25% {
        transform: scale(1.1) rotate(-10deg);
        border-radius: 30% 50% 50% 30%; /* Bordes con onda hacia un lado */
    }
    50% {
        transform: scale(1.05) rotate(10deg);
        border-radius: 50% 30% 30% 50%; /* Onda hacia el otro lado */
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
        border-radius: 40% 50% 50% 40%; /* Bordes más ondulados */
    }
    100% {
        transform: scale(1);
        border-radius: 50%; /* Vuelve a ser un círculo */
    }
}

@media (max-width: 768px) {
    .image-container {
        max-width: 180px;  /* Agrandamos el tamaño de la imagen */
        max-height: 180px; /* Ajustamos también la altura para mantener la proporción */
        border-radius: 50%;
        z-index: 1;
    }

    .scroll-content {
        animation: scroll-mobile 20s linear infinite;
    }

    .click-p {
        font-size: 24px;
        line-height: 36px;
    }

    .Estrella-gris {
        width: 32px;
        height: 32px;
    }

    .scroll-content p:first-child .Estrella-gris {
        margin-left: 5px;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .image-container {
        max-width: 200px;
        max-height: 200px;
        border-radius: 50%;
    }
}
