.home-description-box {
    max-height: 140px;
    overflow-y: auto;
    text-align: justify;
    line-height: 1.7;
    font-size: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    padding-right: 15px; /* Espacio para la barra de scroll en escritorio */
}

.home-description-box::-webkit-scrollbar {
    width: 4px;
}

.home-description-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.home-description-box::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Ajustes responsivos para la caja de descripción */
@media (max-width: 991.98px) { /* Debajo de pantallas grandes (tablets y móviles) */
    .home-description-box {
        text-align: center;
        padding-right: 0; /* No se necesita padding en móviles */
    }
}

.home-cta-button {
    min-width: 310px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 30px;
    padding-right: 15px;
}
.home-cta-button .button-text {
    flex: 1;
    text-align: left;
}
@media (max-width: 576px) {
    .home-cta-button {
        min-width: 0;
        width: 100%;
        max-width: 320px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.tech-stack-container {
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: techTicker 28s linear infinite;
}

.slider-wrapper:hover .slider-track {
    animation-play-state: paused;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding-right: 14px;
}

.tech-stack-item {
    width: 80px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.tech-stack-item:hover {
    opacity: 1;
    filter: grayscale(0);
}

.tech-stack-item i {
    line-height: 1;
}

.tech-stack-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.tech-js i { color: #F7DF1E; }
.tech-react i { color: #61DAFB; }
.tech-php i { color: #777BB4; }
.tech-wordpress i { color: #21759B; }
.tech-moodle i { color: #f98012; }
.tech-sql i { color: #a4c639; }
.tech-docker i { color: #2496ED; }
.tech-github i { color: #FFFFFF; }
.tech-jupyter i { color: #F37626; }
.tech-office i { color: #EB3C00; }

@keyframes techTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .slider-track {
        animation-duration: 22s;
    }

    .slider-group {
        gap: 10px;
        padding-right: 10px;
    }

    .tech-stack-item {
        width: 72px;
        height: 42px;
    }
}