.qh-section {
    padding: 100px 8%;
    position: relative;
    /* overflow: hidden; */ /* Removing hidden to allow overflow, but we must be careful with horizontal scroll */
    width: 100%;
}

.qh-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    cursor: default;
}

.qh-marquee-inner {
    display: flex;
    width: max-content;
    animation: qh-marquee var(--speed, 40s) linear infinite;
}

.qh-pause-on-hover .qh-marquee-inner:hover {
    animation-play-state: paused;
}

.qh-marquee-group {
    display: flex;
    gap: 80px;
    padding-right: 80px;
    flex-shrink: 0;
}

@keyframes qh-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); } /* Con 4 copias, retrocedemos 1/4 */
}

.qh-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
}

.qh-item-title {
    font-family: 'Rubik', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.1;
    color: #000;
    letter-spacing: -0.02em;
    white-space: normal;
}

.qh-item-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    max-width: 100%;
    margin: 0 auto;
    opacity: 0.8;
    white-space: normal;
}

@keyframes qhKibbleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.qh-floating-kibble {
    position: absolute;
    bottom: -50px; /* Overflowing desbordando */
    left: 10%;
    width: 100px;
    z-index: 5;
    pointer-events: none;
    animation: qhKibbleFloat 3s ease-in-out infinite;
}

.qh-floating-kibble img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* Response */
@media (max-width: 1200px) {
    .qh-item-title {
        font-size: 28px;
    }
    .qh-item-text {
        font-size: 14px;
    }
    .qh-item {
        max-width: 250px;
    }
    .qh-marquee-group {
        gap: 40px;
        padding-right: 40px;
    }
    @keyframes qh-marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-25%); }
    }
}

@media (max-width: 900px) {
    .qh-section {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .qh-item-title {
        font-size: 24px;
    }
    .qh-floating-kibble {
        width: 80px;
        left: 5%;
        bottom: -40px;
    }
}
