/* ── CRED SECTION ──────────────────────────────────────── */
.cred-section {
    background: linear-gradient(to bottom,
            #0b1222 0%,
            #1c294b 55%,
            #2f416b 75%,
            #ffffff 100%);
    font-family: 'Inter', sans-serif;
    padding-top: 50px;
    padding-bottom: 27px;
    overflow: hidden;
    position: relative;
}

/* textura solo en la zona blanca inferior */
.cred-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    /* zona donde ya es blanco */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232d4f95' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.cred-section-inner {
    max-width: 1300px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── HEADLINE ──────────────────────────────────────────── */
.cred-headline-block {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;

    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cred-headline-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cred-headline-left {
    flex-shrink: 0;
}

.cred-headline-overline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #b4935a;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cred-headline-overline::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: #b4935a;
    flex-shrink: 0;
}

.cred-headline-title {
    font-size: clamp(30px, 3.7vw, 45px);
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.5;
    letter-spacing: -3px;
    margin: 0;
}

.cred-headline-title em {
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
}

.cred-headline-body {
    font-size: 14px;
    line-height: 1.75;
    color: #ffffff;
    max-width: 380px;
    margin: 0;
    text-align: right;
    padding-bottom: 4px;
}

/* ── BADGES ROW ────────────────────────────────────────── */
.cred-badges-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-radius: 0px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.cred-badges-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cred-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    gap: 2px;
    white-space: nowrap;
}

.cred-pill:hover {
    transform: translateY(-2px);
}

.cred-pill-acronym {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #ffffff;
    line-height: 1;
}

.cred-pill-desc {
    font-size: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
}

.cred-pill--blue {
    background: linear-gradient(135deg, #1e3a6e, #2d4f95);
    box-shadow: 0 2px 10px rgba(45, 79, 149, 0.35);
}

.cred-pill--blue:hover {
    box-shadow: 0 6px 20px rgba(45, 79, 149, 0.5);
}

.cred-pill--red {
    background: linear-gradient(135deg, #b8102e, #d93d56);
    box-shadow: 0 2px 10px rgba(217, 61, 86, 0.35);
}

.cred-pill--red:hover {
    box-shadow: 0 6px 20px rgba(217, 61, 86, 0.5);
}

.cred-pill--outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 7px 14px;
    position: relative;
}

.cred-pill--outline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b4935a;
}

.cred-pill--outline {
    padding-left: 16px;
}

.cred-pill--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(180, 147, 90, 0.3);
}

/* ── DIVIDER ───────────────────────────────────────────── */
.cred-section-divider {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right,
            transparent,
            rgba(180, 147, 90, 0.3) 20%,
            rgb(255, 255, 255) 80%,
            transparent);
}

/* ── LOGOS CAROUSEL ────────────────────────────────────── */
.cred-logos-row {
    position: relative;
    overflow: hidden;
    opacity: 0;
    background-color: #ffffff;
    transition: opacity 0.6s ease 0.2s;

    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.531),
        0 1px 4px rgba(0, 0, 0, 0.634);
    padding: 8px 0;
}

.cred-logos-row.is-visible {
    opacity: 1;
}

.cred-carousel-mask {
    position: absolute;
    top: 0;
    z-index: 5;
    width: 120px;
    height: 100%;
    pointer-events: none;
}

.cred-carousel-mask--left {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.cred-carousel-mask--right {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.cred-carousel-track {
    display: flex;
    width: max-content;
    animation: credScroll 40s linear infinite;
}

.cred-carousel-track:hover {
    animation-play-state: paused;
}

.cred-logos-group {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 28px;
}

.cred-logo {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: filter 0.4s ease, transform 0.3s ease;
    cursor: pointer;
}

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

.cred-logo:hover {
    transform: scale(1.08) translateY(-2px);
}

@keyframes credScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cred-section {
        padding: 48px 40px;
    }

    .cred-headline-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cred-headline-body {
        text-align: left;
        max-width: 100%;
    }

    .cred-headline-title {
        font-size: clamp(32px, 6vw, 52px);
    }
}

@media (max-width: 640px) {
    .cred-section {
        padding: 40px 20px;
    }

    .cred-headline-title {
        font-size: 32px;
    }

    .cred-badges-row {
        gap: 8px;
    }
}