/* ===========================================================
   Nuestros clientes — cinta de rubros + modal con cuadrícula
   Se apoya en los tokens de marca del index (--sepa-*)
   =========================================================== */

/* --- Cinta de rubros --- */
.sepa-rubros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 1120px;
    margin: 34px auto 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--sepa-line, #dfe8f6);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(8, 35, 84, .08);
}

.sepa-rubro {
    --chip: #0d5bff;
    --chip-soft: #e9f1ff;
    flex: 0 0 auto;
    width: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 6px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease, transform .2s ease;
}

.sepa-rubro:hover {
    background: var(--chip-soft);
    transform: translateY(-2px);
}

.sepa-rubro-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--chip-soft);
    color: var(--chip);
    font-size: 29px;
    transition: background .2s ease, color .2s ease;
}

.sepa-rubro:hover .sepa-rubro-icon {
    background: var(--chip);
    color: #fff;
}

.sepa-rubro-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #33405c;
}

.sepa-rubro:hover .sepa-rubro-label {
    color: var(--chip);
}

/* --- Modal --- */
body.sepa-modal-open {
    overflow: hidden;
}

.sepa-clients-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sepa-clients-modal.show {
    display: flex;
}

.sepa-clients-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 45, .55);
    backdrop-filter: blur(3px);
}

.sepa-clients-panel {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(6, 20, 45, .35);
    animation: sepaModalIn .25s ease;
}

@keyframes sepaModalIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.sepa-clients-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 24px;
    border-bottom: 1px solid var(--sepa-line, #eef2fb);
}

.sepa-clients-back,
.sepa-clients-change {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--sepa-line, #dfe8f6);
    border-radius: 999px;
    background: #fff;
    color: #33405c;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.sepa-clients-back:hover,
.sepa-clients-change:hover {
    border-color: var(--sepa-blue, #0d5bff);
    color: var(--sepa-blue, #0d5bff);
}

.sepa-clients-title {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}

.sepa-clients-title-icon {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #e9f1ff;
    color: #0d5bff;
}

.sepa-clients-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #071735;
}

.sepa-clients-title p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #5f6b85;
}

.sepa-clients-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sepa-clients-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--sepa-line, #dfe8f6);
    background: #fff;
    color: #5f6b85;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.sepa-clients-close:hover {
    background: #fdecec;
    color: #dc2626;
    border-color: #f6c9c6;
}

.sepa-clients-grid {
    padding: 24px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.sepa-client-card {
    --chip: #0d5bff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 12px;
    background: #fff;
    border: 1px solid var(--sepa-line, #eef2fb);
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sepa-client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(8, 35, 84, .10);
    border-color: var(--chip, #0d5bff);
}

.sepa-client-logo {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f9ff;
    border: 1px solid #eef2fb;
}

.sepa-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sepa-client-card h4 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #1f2a44;
}

.sepa-clients-empty {
    padding: 44px;
    text-align: center;
    color: #5f6b85;
    font-weight: 600;
}

.sepa-clients-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px 22px;
}

.sepa-clients-pager button {
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--sepa-line, #dfe8f6);
    background: #fff;
    color: #33405c;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.sepa-clients-pager button:hover:not(:disabled) {
    border-color: var(--sepa-blue, #0d5bff);
    color: var(--sepa-blue, #0d5bff);
}

.sepa-clients-pager button.active {
    background: var(--sepa-blue, #0d5bff);
    color: #fff;
    border-color: var(--sepa-blue, #0d5bff);
}

.sepa-clients-pager button:disabled {
    opacity: .4;
    cursor: default;
}

/* --- Detalle de cliente --- */
.sepa-client-detail {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: min(300px, 90%);
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--sepa-line, #eef2fb);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(6, 20, 45, .4);
    text-align: center;
}

.sepa-client-detail-logo {
    width: 84px;
    height: 84px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f9ff;
    border: 1px solid #eef2fb;
}

.sepa-client-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sepa-client-detail h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: #071735;
}

.sepa-client-detail p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #5f6b85;
}

.sepa-client-detail p[hidden] {
    display: none;
}

.sepa-client-detail .sepa-map-btn {
    margin-top: 12px;
    display: inline-flex;
}

.sepa-client-detail-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--sepa-line, #dfe8f6);
    background: #fff;
    color: #5f6b85;
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .sepa-clients-grid { grid-template-columns: repeat(3, 1fr); }
    .sepa-clients-title { order: 3; flex-basis: 100%; justify-content: flex-start; }
}

@media (max-width: 575px) {
    .sepa-clients-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; }
    .sepa-rubro { width: 84px; }
    .sepa-rubro-icon { width: 52px; height: 52px; font-size: 24px; }
    .sepa-client-logo { width: 74px; height: 74px; }
}

/* ===========================================================
   Testimonios
   =========================================================== */
.sepa-testimonios .sepa-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 38px;
}

.sepa-testi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--sepa-line, #eef2fb);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(8, 35, 84, .06);
}

.sepa-testi-quote {
    font-size: 22px;
    line-height: 1;
    color: var(--sepa-blue, #0d5bff);
    opacity: .35;
}

.sepa-testi-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
    color: #3a4763;
}

.sepa-testi-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--sepa-line, #eef2fb);
}

.sepa-testi-avatar {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    border: 1px solid #e3ecfb;
}

.sepa-testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sepa-testi-initials {
    font-size: 15px;
    font-weight: 800;
    color: var(--sepa-blue, #0d5bff);
}

.sepa-testi-name {
    font-size: 15px;
    font-weight: 800;
    color: #071735;
}

.sepa-testi-role {
    font-size: 12.5px;
    color: #5f6b85;
}

.sepa-testi-benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    background: #e9f8ef;
    color: #157a3c;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.sepa-testi-benefit i {
    margin-top: 2px;
}

@media (max-width: 991px) {
    .sepa-testimonios .sepa-testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .sepa-testimonios .sepa-testi-grid { grid-template-columns: 1fr; }
}
