/* =========================================================
   Miembros Slider Auto
   ========================================================= */

.cc-miembros-slider {
    --cc-ms-speed: 700ms;
    --cc-ms-radius: 16px;
    --cc-ms-orange: #f5a000;
    --cc-ms-text: #2f2f2f;
    --cc-ms-soft: #f1f1f1;
    --cc-ms-dot: #dedede;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    font-family: inherit;
    color: var(--cc-ms-text);
}

.cc-ms-viewport {
    width: 100%;
    overflow: hidden;
}

.cc-ms-track {
    display: flex;
    width: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition-property: transform;
    transition-duration: var(--cc-ms-speed);
    transition-timing-function: cubic-bezier(.22, .61, .36, 1);
}

.cc-miembros-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: stretch;
    padding: 4px;
    box-sizing: border-box;
}

.cc-ms-image-panel,
.cc-ms-content-panel {
    border-radius: var(--cc-ms-radius);
    box-shadow: none;
    min-height: 300px;
    box-sizing: border-box;
}

.cc-ms-image-panel {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.cc-ms-image-link {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cc-ms-image {
    display: block;
    width: 82%;
    max-width: 390px;
    max-height: 220px;
    height: auto;
    object-fit: contain;
}

.cc-ms-image-placeholder {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-weight: 700;
    font-size: 22px;
    color: #777;
    background: #fafafa;
    border-radius: 12px;
    box-sizing: border-box;
}

.cc-ms-content-panel {
    background: #E9E9E9;
    padding: clamp(28px, 4vw, 50px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.cc-ms-title {
    margin: 0 0 18px;
    padding: 0;
    color: var(--cc-ms-text);
    font-family: inherit;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.12;
    text-transform: none;
}

.cc-ms-excerpt {
    margin: 0 0 22px;
    padding: 0;
    color: #3f3f3f;
    font-size: 15px;
    line-height: 1.65;
}

.cc-ms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--cc-ms-orange);
    border-radius: 7px;
    color: #242424;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.cc-ms-button:hover,
.cc-ms-button:focus {
    background: var(--cc-ms-orange);
    color: #ffffff;
    transform: translateY(-1px);
}

.cc-ms-button-icon {
    font-size: 18px;
    line-height: 1;
}

.cc-ms-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.cc-ms-dot {
    appearance: none;
    -webkit-appearance: none;
    width: 30px;
    height: 4px;
    min-width: 30px;
    min-height: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--cc-ms-dot);
    cursor: pointer;
    transition: width 180ms ease, background-color 180ms ease;
}

.cc-ms-dot.is-active {
    width: 40px;
    background: var(--cc-ms-orange);
}

.cc-ms-dot:focus-visible {
    outline: 2px solid var(--cc-ms-orange);
    outline-offset: 4px;
}

.cc-miembros-slide.is-reversed .cc-ms-image-panel {
    order: 2;
}

.cc-miembros-slide.is-reversed .cc-ms-content-panel {
    order: 1;
}

.cc-ms-empty {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

/* Tablet */
@media (max-width: 900px) {
    .cc-miembros-slide {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .cc-ms-image-panel,
    .cc-ms-content-panel {
        min-height: 270px;
    }

    .cc-ms-image-panel {
        padding: 26px;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .cc-miembros-slide {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 2px;
    }

    .cc-ms-image-panel,
    .cc-ms-content-panel {
        min-height: auto;
    }

    .cc-ms-image-panel {
        padding: 28px 22px;
    }

    .cc-ms-image-link {
        min-height: 190px;
    }

    .cc-ms-image {
        width: 82%;
        max-height: 190px;
    }

    .cc-ms-content-panel {
        padding: 28px 24px;
    }

    .cc-miembros-slide.is-reversed .cc-ms-image-panel {
        order: 1;
    }

    .cc-miembros-slide.is-reversed .cc-ms-content-panel {
        order: 2;
    }

    .cc-ms-title {
        font-size: 25px;
    }

    .cc-ms-excerpt {
        font-size: 14px;
        line-height: 1.6;
    }

    .cc-ms-dots {
        margin-top: 20px;
        gap: 8px;
    }

    .cc-ms-dot {
        width: 22px;
        min-width: 22px;
    }

    .cc-ms-dot.is-active {
        width: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-ms-track,
    .cc-ms-button,
    .cc-ms-dot {
        transition: none !important;
    }
}
