html {
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        body {
            position: relative;
            overflow-x: hidden;
            display: none;
        }

        .smooth-scroll {
            transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1.000);
        }

        /* Estilos para la barra de desplazamiento personalizada */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb {
            background: #007bff;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #0056b3;
        }

        /* Ocultar inicialmente el contenido */
        body {
            opacity: 0;
        }

        /* Estilos para el botón de ir arriba */
        #btn-back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background-color: #007bff;
            color: white;
            border: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            cursor: pointer;
            z-index: 9999;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            opacity: 0;
            transform: scale(0.8);
            display: none;
            padding: 0;
            outline: none !important;
        }

        #btn-back-to-top.show {
            opacity: 1;
            transform: scale(1);
        }

        #btn-back-to-top:hover {
            background-color: #0056b3;
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        #btn-back-to-top:active {
            transform: scale(0.95);
        }

        #btn-back-to-top i {
            font-size: 20px;
            line-height: 45px;
            width: 100%;
            text-align: center;
            display: block;
        }

        /* Estilos para el carrusel de proyectos */
        .infinite-carousel {
            position: relative;
            overflow: hidden;
            padding: 40px 0;
            background: #f8f9fa;
        }

        .project-carousel {
            display: flex;
            animation: scroll 60s linear infinite;
            gap: 20px;
            align-items: stretch;
            padding: 20px 0;
        }

        /* Estilos para el carrusel móvil */
        .owl-carousel .item {
            margin: 10px;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .owl-carousel .item img {
            width: 100%;
            height: auto;
            max-height: 250px;
            object-fit: contain;
            background-color: #f8f9fa;
            padding: 10px;
        }

        .owl-carousel .item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        /* Ajustes responsive */
        @media (max-width: 768px) {
            .project-card {
                min-width: 250px;
            }

            .project-image {
                max-height: 200px;
            }
        }

        .project-card {
            flex: 0 0 auto;
            width: auto;
            min-width: 300px;
            max-width: 400px;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            margin: 10px;
        }

        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .project-image {
            width: 100%;
            height: auto;
            max-height: 300px;
            object-fit: contain;
            background-color: #f8f9fa;
            transition: transform 0.3s ease;
        }

        .project-image:hover {
            transform: scale(1.05);
        }

        .project-info {
            padding: 20px;
        }

        .project-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: #333;
        }

        .project-description {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 15px;
        }

        .project-tech {
            font-size: 0.8rem;
            color: #007bff;
        }

        /* Estilos para la sección de testimonios */
        #testmonial .card {
            transition: all 0.3s ease;
            border-radius: 15px;
        }

        #testmonial .card:hover {
            transform: translateY(-10px);
        }

        .hover-shadow-lg {
            transition: all 0.3s ease;
        }

        .hover-shadow-lg:hover {
            box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
        }

        .transition-all {
            transition: all 0.3s ease;
        }

        #testmonial .text-primary {
            color: #007bff !important;
        }

        #testmonial .card-body {
            position: relative;
        }

        #testmonial .ti-quote-left {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            opacity: 0.1;
            font-size: 3rem;
            color: #007bff;
            transition: opacity 0.3s ease;
        }

        #testmonial .card:hover .ti-quote-left {
            opacity: 0.2;
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(calc(-300px * 6 - 180px)); /* Ajustar según el número de proyectos */
            }
        }

        .infinite-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.project-carousel {
    display: flex;
    gap: 20px;
    animation: scrollInfinite 40s linear infinite;
    width: max-content;
}

.project-card {
    flex: 0 0 auto;
    width: 300px; /* Ajusta según tu diseño */
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.project-image {
    width: 100%;
    height: 380px;
    object-fit: contain;
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Desvanecimiento en bordes */
.infinite-carousel:before,
.infinite-carousel:after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.infinite-carousel:before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.infinite-carousel:after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}
