/* assets/style.css - Timeline Simple */
.tecnotron-historia-section {
    color: white;
    padding: 60px 0;
    font-family: Arial, sans-serif;
}

.tecnotron-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tecnotron-historia-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color, #8b5cf6);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tecnotron-content-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.tecnotron-text-content {
    flex: 2;
    font-size: 1.1rem;
    line-height: 1.8;
}

.tecnotron-text-content p {
    margin-bottom: 20px;
    text-indent: 0;
}

.tecnotron-text-content .highlight {
    color: var(--primary-color, #8b5cf6);
    font-weight: bold;
}

/* Carrusel de imágenes */
.tecnotron-carousel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    height: auto;
    background-color: transparent;
}

.tecnotron-carousel-track {
    display: flex;
    width: 100%;
    transition: none;
    position: relative;
}

.tecnotron-carousel-slide {
    min-width: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.tecnotron-carousel-slide.active {
    opacity: 1;
    position: relative;
}

.tecnotron-carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background-color: transparent;
}

/* Timeline Wrapper */
.tecnotron-timeline-wrapper {
    margin-top: 40px;
}

.tecnotron-timeline-track {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Timeline Items */
.tecnotron-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    flex: 1;
    max-width: 200px;
}

.tecnotron-timeline-year {
    background-color: var(--item-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 0;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    position: relative;
}

.tecnotron-timeline-year::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--item-color);
}

.tecnotron-timeline-image {
    background-color: white;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.tecnotron-timeline-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    object-position: center;
}

/* Responsive */
@media (max-width: 768px) {
    .tecnotron-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .tecnotron-text-content {
        text-align: left;
        padding: 0;
        margin: 0;
    }

    .tecnotron-carousel-container {
        height: 250px !important;
        min-height: 250px;
        width: 100%;
        margin: 0;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        order: 2;
    }

    .tecnotron-carousel-slide {
        height: 250px !important;
    }

    .tecnotron-carousel-slide img {
        height: 250px !important;
        object-fit: cover;
        border-radius: 10px;
    }

    .tecnotron-timeline-wrapper {
        order: 3;
    }

    .tecnotron-timeline-track {
        flex-direction: column;
        gap: 15px;
    }

    .tecnotron-timeline-item {
        min-width: 100%;
        max-width: 100%;
    }

    .tecnotron-timeline-year {
        font-size: 1.3rem;
        padding: 8px 16px;
    }

    .tecnotron-timeline-image {
        min-height: 140px;
        padding: 10px;
    }

    .tecnotron-timeline-image img {
        max-height: 120px;
    }

    .tecnotron-historia-title {
        font-size: 2.5rem;
    }

    .tecnotron-historia-section {
        padding: 40px 0;
    }
}

/* WP Bakery specific styles */
.vc_row .tecnotron-historia-section {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.vc_row .tecnotron-container {
    max-width: none;
    width: 100%;
    padding: 0 15px;
}