/* ========================================
   TRUSTED CLIENTS PAGE STYLES (v2 Premium)
   ======================================== */

.page-hero {
    position: relative;
    padding: 90px 0 100px;
    background: linear-gradient(135deg, #100F57 0%, #1a1980 50%, #0a92dd 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #ffffff;
}

.page-hero .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero .hero-subtitle {
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ========================================
   TRUST STATS BAR
   ======================================== */
.trust-stats-section {
    position: relative;
    z-index: 10;
    margin-top: -45px;
    padding-bottom: 20px;
}

.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #ffffff;
    padding: 24px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px -5px rgba(16, 15, 87, 0.12), 0 5px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.trust-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-right: 1px solid #f1f5f9;
}

.trust-stat-card:last-child {
    border-right: none;
}

.trust-stat-card .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 146, 221, 0.12) 0%, rgba(16, 15, 87, 0.08) 100%);
    color: #0a92dd;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.trust-stat-card .stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: #100f57;
    line-height: 1.15;
}

.trust-stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* ========================================
   TRUSTED CLIENTS MAIN SECTION
   ======================================== */
.trusted-clients-section {
    padding: 50px 0 80px;
    background: #f8fafc;
}

.client-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 146, 221, 0.1);
    color: #0a92dd;
    border: 1px solid rgba(10, 146, 221, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #100f57;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.5;
}

/* Controls Bar (Search + Filter Pills) */
.clients-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.client-search-wrap {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.client-search-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.client-search-wrap input {
    width: 100%;
    padding: 12px 20px 12px 46px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.92rem;
    color: #1e293b;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s;
}

.client-search-wrap input:focus {
    border-color: #0a92dd;
    box-shadow: 0 0 0 4px rgba(10, 146, 221, 0.15);
}

.client-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.client-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.client-filter-btn:hover {
    border-color: #0a92dd;
    color: #0a92dd;
    transform: translateY(-2px);
}

.client-filter-btn.active {
    background: linear-gradient(135deg, #100F57 0%, #0A92DD 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(10, 146, 221, 0.3);
    transform: translateY(-2px);
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

/* Client Card */
.client-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -8px rgba(10, 146, 221, 0.22), 0 10px 20px -4px rgba(16, 15, 87, 0.1);
    border-color: rgba(10, 146, 221, 0.45);
}

.card-cover {
    height: 105px;
    position: relative;
    overflow: hidden;
}

.card-cover-brand {
    background: linear-gradient(135deg, #100F57 0%, #1a1980 60%, #0A92DD 100%);
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 70%);
}

.partner-verified-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(16, 15, 87, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.partner-verified-badge i {
    color: #38bdf8;
}

/* Logo Pod */
.logo-container {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -48px;
    margin-bottom: 12px;
    z-index: 10;
}

.client-logo {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card:hover .client-logo {
    transform: scale(1.05);
    box-shadow: 0 14px 30px rgba(10, 146, 221, 0.25);
}

.logo-fallback {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: #ffffff;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #94a3b8;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Card Body */
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 22px;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #100f57;
    margin-bottom: 6px;
    line-height: 1.35;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.client-meta-tag i {
    color: #0a92dd;
}

.trust-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.trust-stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 0.88rem;
}

.rating-score {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

.client-services-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
}

.service-chip {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-chip i {
    color: #0a92dd;
    font-size: 0.7rem;
}

.client-card-action {
    margin-top: auto;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.view-partner-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0a92dd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.client-card:hover .view-partner-link {
    gap: 10px;
    color: #100f57;
}

/* ========================================
   TRUST PILLARS SECTION
   ======================================== */
.trust-pillars-section {
    padding: 70px 0 80px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.trust-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.pillar-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px 24px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    box-shadow: 0 16px 36px -6px rgba(10, 146, 221, 0.15);
    border-color: rgba(10, 146, 221, 0.3);
}

.pillar-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #100F57 0%, #0A92DD 100%);
    color: #ffffff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(10, 146, 221, 0.3);
}

.pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #100f57;
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #100F57 0%, #1a1980 50%, #0a92dd 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.25s;
}

.btn-cta-whatsapp:hover {
    background: #1ebc59;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.btn-cta-quote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #100f57 !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.25s;
}

.btn-cta-quote:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
}

/* ========================================
   CLIENT DETAIL MODAL
   ======================================== */
.client-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.client-modal.open {
    opacity: 1;
    visibility: visible;
}

.client-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(10px);
}

.client-modal-dialog {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 580px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.client-modal.open .client-modal-dialog {
    transform: scale(1) translateY(0);
}

.client-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.client-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.spotlight-header {
    background: linear-gradient(135deg, #100F57 0%, #1a1980 50%, #0a92dd 100%);
    padding: 36px 30px 24px;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spotlight-logo-box {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotlight-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.spotlight-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.spotlight-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
}

.spotlight-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.spotlight-body {
    padding: 26px 30px 30px;
}

.spotlight-info-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 22px;
}

.spotlight-info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #100f57;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotlight-info-card li {
    font-size: 0.88rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-info-card li i {
    color: #0a92dd;
    font-size: 0.8rem;
}

.btn-spotlight-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.25s;
}

.btn-spotlight-wa:hover {
    background: #1ebc59;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .trust-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .trust-stat-card {
        border-right: none;
    }
    .trust-stat-card:nth-child(1),
    .trust-stat-card:nth-child(2) {
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 14px;
    }
    .trust-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 1.9rem;
    }
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
    .trust-pillars-grid {
        grid-template-columns: 1fr;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 540px) {
    .trust-stats-grid {
        grid-template-columns: 1fr;
    }
    .clients-control-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .client-search-wrap {
        max-width: 100%;
    }
    .clients-grid {
        grid-template-columns: 1fr;
    }
}
