/* ===== HERO SECTION ===== */
.eco-testimonials-hero {
    padding: 40px 0 !important;
    margin-bottom: 50px !important;
    text-align: left !important;
}

.eco-testimonials-hero-title {
    font-size: 58px !important;
    font-weight: 700 !important;
    color: #0F1111 !important;
    margin: 0 0 5px 0 !important;
    line-height: 1.1 !important;
}

.eco-testimonials-hero-title .eco-highlight {
    color: #538038 !important;
    display: block !important;
    font-weight: 700 !important;
}

.eco-testimonials-hero-subtitle {
    font-size: 16px !important;
    color: #565959 !important;
    margin: 20px 0 0 0 !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.eco-testimonials-all-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== LAYOUT DOS COLUMNAS ===== */
.eco-testimonials-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== SIDEBAR IZQUIERDA ===== */
.eco-testimonials-sidebar {
    position: sticky;
    top: 20px;
}

.eco-filter-box {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 20px;
}

.eco-filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #0F1111;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #538038;
}

.eco-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eco-filter-list li {
    margin-bottom: 10px;
}

.eco-filter-list li:last-child {
    margin-bottom: 0;
}

.eco-filter-btn {
    display: block;
    padding: 10px 12px;
    background: #f7f7f7;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    color: #0F1111;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.eco-filter-btn:hover {
    background: #efefef;
    border-color: #538038;
    color: #538038;
}

.eco-filter-btn.active {
    background: #538038;
    color: #fff;
    border-color: #538038;
    font-weight: 600;
}

.eco-filter-count {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 4px;
}

/* ===== GRÁFICO DE PUNTUACIÓN ===== */
.eco-rating-stats {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.eco-rating-stats-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F1111;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7e7e7;
}

.eco-rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.eco-rating-number {
    font-size: 28px;
    font-weight: 700;
    color: #538038;
    line-height: 1;
}

.eco-rating-stars {
    font-size: 16px !important;
    color: #FFA41C !important;
    letter-spacing: 1px;
    display: inline-block;
}

.eco-rating-bar {
    width: 100%;
    height: 6px;
    background: #e7e7e7;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.eco-rating-bar-fill {
    height: 100%;
    background: #538038;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.eco-rating-info {
    text-align: left;
}

.eco-rating-label {
    font-size: 11px;
    color: #565959;
    font-weight: 500;
}

/* ===== CONTENIDO DERECHA ===== */
.eco-testimonials-main {
    width: 100%;
}

.eco-testimonials-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 600px;
}

/* ===== TARJETA DE TESTIMONIO ===== */
.eco-testimonial-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: translateY(0);
}

.eco-testimonial-card.show {
    animation: fadeIn 0.3s ease;
}

.eco-testimonial-card:hover {
    box-shadow: 0 4px 12px rgba(83, 128, 56, 0.1);
    border-color: #538038;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ENCABEZADO DE TARJETA ===== */
.eco-testimonial-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.eco-testimonial-avatar-large {
    flex-shrink: 0;
}

.eco-testimonial-avatar-large img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #538038;
}

.eco-avatar-placeholder-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #538038;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #538038;
    flex-shrink: 0;
}

.eco-testimonial-header-info {
    flex: 1;
}

.eco-testimonial-name-large {
    font-size: 15px;
    font-weight: 700;
    color: #0F1111;
    margin: 0 0 6px 0;
}

.eco-view-project-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #538038;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.eco-view-project-btn:hover {
    background: #f0f0f0;
    color: #6a9c47;
    transform: scale(1.1);
}

.eco-testimonial-rating-large {
    font-size: 16px !important;
    line-height: 1 !important;
    color: #FFA41C !important;
    letter-spacing: 1px !important;
    display: block;
    margin-top: 6px;
}

/* ===== METADATOS ===== */
.eco-testimonial-meta-card {
    font-size: 12px;
    color: #565959;
    margin-bottom: 15px;
    line-height: 1.6;
}

.eco-testimonial-empresa {
    font-weight: 700;
    color: #0F1111;
}

.eco-testimonial-verified {
    color: #007600;
    font-weight: 500;
}

.eco-testimonial-separator {
    color: #ddd;
    margin: 0 6px;
}

.eco-testimonial-fecha,
.eco-testimonial-ubicacion {
    color: #565959;
}

/* ===== TEXTO DEL TESTIMONIO ===== */
.eco-testimonial-text-card {
    font-size: 14px;
    line-height: 1.6;
    color: #0F1111;
    margin: 0;
}

.eco-testimonial-text-card p {
    margin: 0;
}

/* ===== LIGHTBOX ===== */
.eco-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.eco-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.eco-lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: cover;
}

.eco-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.eco-lightbox-close:hover {
    transform: scale(1.2);
}

/* ===== CARRUSEL HOME ===== */
.eco-testimonials-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.eco-testimonials-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eco-testimonials-title {
    font-size: 22px;
    font-weight: 700;
    color: #0F1111;
    margin: 0;
}

.eco-testimonials-controls {
    display: flex;
    gap: 10px;
}

.eco-carousel-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.eco-carousel-btn:hover {
    background: #f7f7f7;
    border-color: #888;
}

.eco-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.eco-carousel-btn:disabled:hover {
    background: #fff;
    border-color: #ddd;
}

.eco-testimonials-wrapper {
    overflow: hidden;
    position: relative;
    height: auto;
}

.eco-testimonials-container {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.eco-testimonial-item {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #e7e7e7;
    flex-shrink: 0;
}

.eco-testimonial-avatar {
    flex-shrink: 0;
    padding-top: 2px;
}

.eco-testimonial-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #538038;
}

.eco-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #538038;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.eco-testimonial-body {
    flex: 1;
    min-width: 0;
}

.eco-testimonial-header-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.eco-testimonial-name {
    font-size: 13px;
    font-weight: 700;
    color: #0F1111;
    margin: 0;
}

.eco-testimonial-rating {
    font-size: 16px !important;
    line-height: 1 !important;
    color: #FFA41C !important;
    letter-spacing: 1px !important;
}

.eco-testimonial-title-line {
    font-size: 13px;
    font-weight: 700;
    color: #0F1111;
    margin: 4px 0 6px 0;
}

.eco-testimonial-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #565959;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.eco-testimonial-text {
    font-size: 14px;
    line-height: 1.5;
    color: #0F1111;
    margin: 0;
}

.eco-testimonial-location {
    font-size: 12px;
    color: #565959;
    margin-top: 8px;
}

.eco-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.eco-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eco-carousel-dot.active {
    background: #538038;
    width: 24px;
    border-radius: 4px;
}

.eco-no-testimonials {
    text-align: center;
    padding: 40px;
    color: #565959;
    font-size: 16px;
}

/* ===== PAGINACIÓN ===== */
.eco-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 30px 20px 0 20px;
    border-top: 2px solid #e7e7e7;
    flex-wrap: wrap;
}

.eco-page-link {
    display: inline-block;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #538038;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

.eco-page-link:hover {
    background: #f0f0f0;
    border-color: #538038;
    color: #6a9c47;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(83, 128, 56, 0.1);
}

.eco-page-current {
    background: #538038 !important;
    color: #fff !important;
    border-color: #538038 !important;
    cursor: default !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(83, 128, 56, 0.2);
}

.eco-page-current:hover {
    background: #538038 !important;
    color: #fff !important;
    transform: none;
}

.eco-page-prev,
.eco-page-next {
    font-weight: 600;
    padding: 12px 18px;
    background: #f7f7f7;
    border-color: #ddd;
}

.eco-page-prev:hover,
.eco-page-next:hover {
    background: #538038;
    color: #fff;
    border-color: #538038;
}

.eco-page-prev::before {
    content: '‹ ';
    margin-right: 4px;
    font-size: 16px;
}

.eco-page-next::after {
    content: ' ›';
    margin-left: 4px;
    font-size: 16px;
}

/* ===== FOOTER BUTTON ===== */
.eco-testimonials-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.eco-btn-all-testimonials {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #47702a;
    color: #47702a;
    text-decoration: none;
    border-radius: 4px;
    transition: all .3s ease;
    font-weight: 500;
}

.eco-btn-all-testimonials:hover {
    background-color: #47702a;
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .eco-testimonials-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .eco-testimonials-sidebar {
        position: static;
    }

    .eco-filter-box {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 15px;
        flex-wrap: wrap;
    }

    .eco-filter-title {
        display: none;
    }

    .eco-filter-list {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .eco-filter-list li {
        margin-bottom: 0;
    }

    .eco-filter-btn {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .eco-testimonials-content {
        min-height: auto;
    }

    .eco-testimonial-card {
        padding: 15px;
    }

    .eco-testimonial-card-header {
        gap: 12px;
    }

    .eco-testimonial-avatar-large img,
    .eco-avatar-placeholder-large {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .eco-testimonial-name-large {
        font-size: 14px;
    }

    .eco-testimonial-text-card {
        font-size: 13px;
    }

    .eco-testimonials-hero-title {
        font-size: 32px !important;
    }

    .eco-testimonials-section {
        padding: 0 15px;
    }

    .eco-testimonials-title {
        font-size: 20px;
    }

    .eco-testimonials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .eco-testimonial-item {
        padding: 15px 0;
        gap: 10px;
    }

    .eco-testimonial-avatar img,
    .eco-avatar-placeholder {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .eco-testimonial-name {
        font-size: 12px;
    }

    .eco-testimonial-title-line {
        font-size: 12px;
    }

    .eco-testimonial-text {
        font-size: 13px;
    }

    .eco-testimonial-meta-line {
        font-size: 11px;
    }

    .eco-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .eco-pagination {
        gap: 6px;
        margin-top: 30px;
        padding: 20px 10px 0 10px;
    }

    .eco-page-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .eco-page-prev,
    .eco-page-next {
        padding: 10px 14px;
        font-size: 12px;
    }

    .eco-page-prev::before,
    .eco-page-next::after {
        display: none;
    }
}