/* Beneficios */
.benefit-card {
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    border-color: #6a52a2;
    box-shadow: 0 8px 25px rgba(106, 82, 162, 0.15);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* Reseñas */
.reviews-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    overflow: hidden;
}

.review-slider {
    display: flex;
    animation: slideReviews 40s infinite linear;
    gap: 2rem;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.review-text {
    height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

@keyframes slideReviews {
    0% { transform: translateX(0); webkit-transform: translateX(0); }
    100% { transform: translateX(-250%); webkit-transform: translateX(-250%); }
}

/* Sliders infinitos */
.payment-slider, .shipping-slider {
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem 0;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.payment-slider::before,
.payment-slider::after,
.shipping-slider::before,
.shipping-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.payment-track, .shipping-track {
    display: flex;
    animation: slidePaymentInfinite 50s infinite linear;
    gap: 1.5rem;
    width: max-content;
}

.shipping-track {
    animation: slideShippingInfinite 50s infinite linear !important;
}

.payment-item, .shipping-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(106, 82, 162, 0.1);
    border: 2px solid transparent;
    color: #6a52a2;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-item:hover, .shipping-item:hover {
    transform: translateY(-3px);
    border-color: #6a52a2;
    box-shadow: 0 8px 25px rgba(106, 82, 162, 0.2);
}

.payment-item img, .shipping-item img {
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.payment-item:hover img {
    filter: grayscale(0%);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .payment-item, .shipping-item {
        padding: 0.8rem 1rem;
        min-width: 100px;
    }

    .payment-item img {
        max-width: 150px;
    }

    .shipping-item img {
        max-width: 150px;
    }

    .payment-track, .shipping-track {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .payment-item img {
        max-width: 100px;
    }

    .shipping-item img {
        max-width: 100px;
    }
    
    .payment-item, .shipping-item {
        padding: 0.6rem 0.8rem;
        min-width: 80px;
    }
}

.titulo-seccion {
    color: #6a52a2;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    padding: 1rem 0;
}

.titulo-seccion::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6a52a2, #8b73c4);
    border-radius: 2px;
}

.titulo-seccion strong {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

@media (max-width: 768px) {
    .titulo-seccion {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .titulo-seccion {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .review-card {
        min-width: 250px;
    }

    .benefit-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .reviews-container {
        padding: 1rem;
    }
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding: 2rem 10rem 2rem 10rem;
    border-radius: 20px;
    overflow: hidden;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 90%;
    background: linear-gradient(to bottom, #6a52a2, #9575cd, #6a52a2);
    z-index: 1;
    border-radius: 2px;
}

/* Timeline Steps */
.timeline-step {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInTimeline 1s ease forwards;
    position: relative;
    z-index: 2;
}

.timeline-step:nth-child(1) { animation-delay: 0.2s; }
.timeline-step:nth-child(2) { animation-delay: 0.4s; }
.timeline-step:nth-child(3) { animation-delay: 0.6s; }
.timeline-step:nth-child(4) { animation-delay: 0.8s; }
.timeline-step:nth-child(5) { animation-delay: 1s; }

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(50px);
}

.timeline-step:last-child {
    margin-bottom: 0;
}

/* Timeline Icon */
.timeline-icon {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 3rem;
    position: relative;
    box-shadow: 
        0 15px 35px rgba(106, 82, 162, 0.2),
        0 5px 15px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.6);
    border: 3px solid #6a52a2;
    transition: all 0.3s ease;
}

.timeline-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 45px rgba(106, 82, 162, 0.3),
        0 10px 25px rgba(0,0,0,0.15);
}

.timeline-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6a52a2, #9575cd);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(106, 82, 162, 0.4);
    border: 2px solid white;
}

.timeline-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.timeline-icon:hover .timeline-img {
    transform: scale(1.1) rotate(5deg);
}

/* Timeline Content */
.timeline-content {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        0 1px 8px rgba(0,0,0,0.06);
    border-left: 5px solid #6a52a2;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid white;
}

.timeline-step:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid #6a52a2;
}

.timeline-step:nth-child(even) .timeline-content::before {
    left: auto;
    right: -15px;
    border-right: none;
    border-left: 15px solid white;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.08);
}

.timeline-content h5 {
    color: #6a52a2;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.timeline-content p {
    color: #5a6c7d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

/* Buttons */
.btn-timeline {
    background: linear-gradient(135deg, #6a52a2 0%, #9575cd 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(106, 82, 162, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-timeline:hover {
    background: linear-gradient(135deg, #5a4289 0%, #8561c5 100%);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 25px rgba(106, 82, 162, 0.4);
}

.btn-timeline-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20bf55 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-timeline-whatsapp:hover::before {
    left: 100%;
}

.btn-timeline-whatsapp:hover {
    background: linear-gradient(135deg, #1da851 0%, #1ea84e 100%);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Animations */
@keyframes fadeInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.timeline-icon {
    animation: float 3s ease-in-out infinite;
}

.timeline-step:nth-child(even) .timeline-icon {
    animation-delay: 1.5s;
}

/* Responsive Design */
@media (max-width: 991px) {
    .timeline-container {
        padding: 2rem 0rem 2rem 0rem;
    }
}
@media (max-width: 768px) {
    .timeline-container {
        padding: 1.5rem 1rem 4rem 1rem;

    }

    .timeline-container::before {
        display: none;
    }

    .timeline-step {
        flex-direction: column !important;
        text-align: center;
        transform: translateY(30px) !important;
        margin-bottom: 3rem;
    }

    .timeline-step:nth-child(even) {
        flex-direction: column !important;
        transform: translateY(30px) !important;
    }

    .timeline-icon {
        margin: 0 0 1.5rem 0;
        width: 160px;
        height: 160px;
    }

    .timeline-img {
        width: 110px;
        height: 110px;
    }

    .timeline-content {
        border-left: none !important;
        border-right: none !important;
        border-top: 5px solid #6a52a2;
        margin: 0 1rem;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-content h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .timeline-icon {
        width: 140px;
        height: 140px;
    }

    .timeline-img {
        width: 90px;
        height: 90px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .btn-timeline,
    .btn-timeline-whatsapp {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}