/* Ecosystem Section Styles */

.ecosystem-section {
    background: linear-gradient(180deg, #00597D 0%, #00A2E3 100%);
    position: relative;
}

.ecosystem-bg-decoration {
    background-image: url('../../assets/world-ilu.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ecosystem Timeline */
.ecosystem-timeline {
    position: relative;
}

.ecosystem-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 205, 255, 0.3), rgba(0, 205, 255, 0.3));
    transform: translateX(-50%);
    display: none;
}

@media (min-width: 768px) {
    .ecosystem-timeline::before {
        display: block;
    }
}

/* Ecosystem Cards */
.ecosystem-card {
    position: relative;
}

.ecosystem-card-image {
    position: relative;
}

.ecosystem-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transform: rotate(-3deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(0, 205, 255, 0.3);
}

.ecosystem-card-right .ecosystem-image-wrapper {
    transform: rotate(3deg);
}

.ecosystem-image-wrapper:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 205, 255, 0.3);
}

.ecosystem-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 250px;
}

.ecosystem-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 205, 255, 0.1), rgba(0, 205, 255, 0.1));
    border-radius: 16px;
    border: 2px dashed rgba(0, 205, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 76, 96, 0.3);
}

.ecosystem-image-placeholder::after {
    content: 'Upload Image';
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
}

/* Ecosystem Cards - Rotación alternada */
.ecosystem-card:nth-child(odd) .ecosystem-image-placeholder,
.ecosystem-card:nth-child(odd) .ecosystem-image-wrapper {
    transform: rotate(-3deg);
}

.ecosystem-card:nth-child(even) .ecosystem-image-placeholder,
.ecosystem-card:nth-child(even) .ecosystem-image-wrapper {
    transform: rotate(3deg);
}

/* Reset de rotación en hover */
.ecosystem-card .ecosystem-image-wrapper:hover {
    transform: rotate(0deg) scale(1.05) !important;
}


/* Ecosystem Section Decorative Image */
.ecosystem-section-img {
    width: 50%;
    height: 50%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

/* ── Ecosystem Description Section (transparent bg) ── */
.ecosystem-desc-section {
    background: transparent;
}

.ecosystem-desc-section h2 {
    position: relative;
}

.ecosystem-desc-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent, #00c9a7);
    margin-top: 16px;
}

/* Responsive Ecosystem */
@media (max-width: 768px) {
    .ecosystem-image-wrapper {
        transform: rotate(0deg);
        max-width: 350px;
        margin: 0 auto;
    }
    
    .ecosystem-card-right .ecosystem-image-wrapper {
        transform: rotate(0deg);
    }
    
    .ecosystem-card {
        margin-bottom: 3rem !important;
    }
    
    .ecosystem-section-img {
        width: 70%;
        height: 40%;
    }
}

