/* Repuestos Section - Rediseñada y Mejorada */
.parts-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
}

.parts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 30%, rgba(229, 57, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(255, 152, 0, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.parts-section .section-title h2 {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Imagen Mejorada */
.parts-image {
    background: linear-gradient(135deg, var(--card-color), var(--surface-color));
    border-radius: 24px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.parts-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.parts-image:hover::before {
    opacity: 1;
}

.parts-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(229, 57, 53, 0.1);
}

.parts-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(0.9) contrast(1.1);
}

.parts-image:hover img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

/* Efecto de marco decorativo */
.parts-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    pointer-events: none;
    transition: all 0.4s ease;
}

.parts-image:hover::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-color: rgba(229, 57, 53, 0.3);
}

/* Texto Mejorado */
.parts-text {
    padding: 20px;
}

.parts-text h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--text-primary-color);
    line-height: 1.2;
    position: relative;
}

.parts-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
}

.parts-text > p {
    color: var(--text-secondary-color);
    margin-bottom: 35px;
    line-height: 1.7;
    font-size: 1.2rem;
}

/* Lista de Características Mejorada */
.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    font-size: 1.1rem;
    padding: 15px 20px;
    background: var(--surface-color);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.features-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.05), transparent);
    transition: left 0.6s ease;
}

.features-list li:hover::before {
    left: 100%;
}

.features-list li:hover {
    background: var(--card-color);
    transform: translateX(10px);
    border-color: rgba(229, 57, 53, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.features-list i {
    color: var(--success);
    font-size: 1.4rem;
    margin-top: 2px;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.features-list li:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary);
}

/* Botón Mejorado */
.parts-text .btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.parts-text .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.parts-text .btn:hover::before {
    left: 100%;
}

.parts-text .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(229, 57, 53, 0.4),
        0 5px 15px rgba(229, 57, 53, 0.3);
}

/* Animaciones para scroll */
.parts-image.animate-on-scroll,
.parts-text.animate-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.parts-text.animate-on-scroll {
    transform: translateX(50px);
}

.parts-image.animate-on-scroll.animated,
.parts-text.animate-on-scroll.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Animación escalonada para los items de la lista */
.features-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.parts-text.animate-on-scroll.animated .features-list li:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.parts-text.animate-on-scroll.animated .features-list li:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.parts-text.animate-on-scroll.animated .features-list li:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.parts-text.animate-on-scroll.animated .features-list li:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.parts-text.animate-on-scroll.animated .features-list li:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* Elementos decorativos flotantes */
.parts-content::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
    z-index: -1;
}

.parts-content::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: -1;
}

/* Responsive Design Mejorado */
@media (max-width: 1200px) {
    .parts-content {
        gap: 50px;
    }
    
    .parts-image {
        height: 450px;
    }
    
    .parts-text h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .parts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .parts-image {
        height: 400px;
        order: -1;
    }
    
    .parts-text {
        text-align: center;
        padding: 0;
    }
    
    .parts-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .features-list li {
        text-align: left;
    }
}

/* REPUESTOS RESPONSIVE - CORREGIDO */
@media (max-width: 768px) {
    .parts-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }
    
    .parts-image {
        height: 300px;
        order: -1;
        margin: 0;
    }
    
    .parts-text {
        text-align: center;
        padding: 0;
    }
    
    .parts-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .parts-content {
        padding: 0 5px;
    }
    
    .parts-image {
        height: 250px;
        border-radius: 16px;
    }
    
    .parts-text h3 {
        font-size: 1.5rem;
    }
    
    .features-list li {
        padding: 12px 15px;
        margin-bottom: 12px;
        font-size: 0.95rem;
    }
}
/* Modo claro específico */
body.light-mode .parts-image {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.light-mode .parts-image:hover {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(229, 57, 53, 0.08);
}

body.light-mode .features-list li {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .features-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* Animación de flotación para elementos decorativos */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

