/* CloudPartner Blocks — logos, testimonials, CTA
   Namespaced under .cpb to avoid theme collisions. */

.cpb, .cpb *, .cpb *::before, .cpb *::after {
    box-sizing: border-box;
}

.cpb {
    --cpb-ink: #0f172a;
    --cpb-ink-soft: #475569;
    --cpb-muted: #94a3b8;
    --cpb-line: #e2e8f0;
    --cpb-bg: #ffffff;
    --cpb-bg-soft: #f8fafc;
    --cpb-blue: #2563eb;
    --cpb-blue-strong: #1d4ed8;
    --cpb-radius: 16px;
    --cpb-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    font-family: var(--cpb-font);
    color: var(--cpb-ink);
    -webkit-font-smoothing: antialiased;
}

.cpb-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

/* Logos */

.cpb-logos {
    padding: clamp(32px, 5vw, 64px) 0;
    background: transparent;
}

.cpb-logos__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: clamp(16px, 2.5vw, 32px);
}

.cpb-logos__item {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.cpb-logos__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.78;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.cpb-logos__link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.cpb-logos__link img {
    display: block;
    width: auto;
    object-fit: contain;
    filter: none;
    border: 0;
    box-shadow: none;
}

/* Size */
.cpb-logos--size-sm .cpb-logos__link img { height: 28px; max-width: 100px; }
.cpb-logos--size-md .cpb-logos__link img { height: 40px; max-width: 140px; }
.cpb-logos--size-lg .cpb-logos__link img { height: 56px; max-width: 180px; }

.cpb-logos--size-sm .cpb-logos__row { gap: clamp(14px, 2.5vw, 24px); }
.cpb-logos--size-lg .cpb-logos__row { gap: clamp(24px, 4vw, 48px); }

/* Style: plain (sin box) */
.cpb-logos--plain .cpb-logos__link {
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
}

/* Style: boxed (con box) */
.cpb-logos--boxed .cpb-logos__link {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 96px;
    min-height: 72px;
    box-shadow: none !important;
}

.cpb-logos--boxed.cpb-logos--size-sm .cpb-logos__link {
    padding: 10px 12px;
    min-width: 72px;
    min-height: 56px;
    border-radius: 12px;
}

.cpb-logos--boxed.cpb-logos--size-lg .cpb-logos__link {
    padding: 18px 22px;
    min-width: 120px;
    min-height: 88px;
    border-radius: 16px;
}

.cpb-logos--boxed .cpb-logos__link:hover {
    border-color: #c5d4e8;
}

/* Background */
.cpb-logos--bg-transparent { background: transparent; }
.cpb-logos--bg-soft { background: #f4f8fb; }
.cpb-logos--bg-white { background: #ffffff; }
.cpb-logos--bg-blue { background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); }
.cpb-logos--bg-dark { background: #0f172a; }
.cpb-logos--bg-dark .cpb-logos__link { opacity: 0.9; }
.cpb-logos--bg-dark.cpb-logos--boxed .cpb-logos__link {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

/* Marquee / deploy scroll */
.cpb-logos--marquee .cpb-container--full {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.cpb-logos__marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.cpb-logos__track {
    display: flex;
    width: max-content;
    animation: cpb-logos-marquee 35s linear infinite;
}

.cpb-logos__marquee:hover .cpb-logos__track {
    animation-play-state: paused;
}

.cpb-logos__row--track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    flex-shrink: 0;
    width: max-content;
    gap: clamp(32px, 5vw, 64px);
    padding-right: clamp(32px, 5vw, 64px);
}

.cpb-logos__row--track .cpb-logos__item {
    flex: 0 0 auto;
}

@keyframes cpb-logos-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .cpb-logos__track { animation: none; }
}

/* Testimonials */

.cpb-testimonials {
    padding: clamp(40px, 6vw, 80px) 0;
    background: var(--cpb-bg-soft);
}

.cpb-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.cpb-testimonial {
    background: var(--cpb-bg);
    border: 1px solid var(--cpb-line);
    border-radius: var(--cpb-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
}

.cpb-testimonial__quote {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--cpb-ink);
    font-weight: 500;
}

.cpb-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.cpb-testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: var(--cpb-line);
}

.cpb-testimonial__avatar--logo {
    object-fit: contain;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--cpb-line);
}

.cpb-testimonial__name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cpb-ink);
}

.cpb-testimonial__meta {
    font-size: 0.85rem;
    color: var(--cpb-ink-soft);
    margin-top: 2px;
}

/* CTA */

.cpb-cta {
    padding: clamp(40px, 6vw, 80px) 0;
}

.cpb-cta__eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cpb-blue);
}

.cpb-cta__title {
    margin: 0 0 12px;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--cpb-ink);
}

.cpb-cta__desc {
    margin: 0 0 22px;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--cpb-ink-soft);
}

.cpb-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cpb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cpb-btn--primary {
    background: var(--cpb-blue);
    color: #fff;
}

.cpb-btn--primary:hover {
    background: var(--cpb-blue-strong);
    color: #fff;
}

.cpb-btn--ghost {
    background: transparent;
    color: var(--cpb-ink);
    border-color: var(--cpb-line);
}

.cpb-btn--ghost:hover {
    border-color: var(--cpb-blue);
    color: var(--cpb-blue);
}

.cpb-cta__media {
    min-width: 0;
}

.cpb-cta__img,
.cpb-cta__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: none !important;
}

/* Style 1 — Soft fill + box, centered */
.cpb-cta--style-1 {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.cpb-cta--style-1 .cpb-cta__box {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: none !important;
}

.cpb-cta--style-1 .cpb-cta__actions {
    justify-content: center;
}

/* Style 2 — Blue corporate fill (AlignUI CTA 01) */
.cpb-cta--style-2 .cpb-cta__banner {
    background: linear-gradient(125deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
    color: #fff;
    box-shadow: none !important;
}

.cpb-cta--style-2 .cpb-cta__copy {
    display: grid;
    gap: 12px 28px;
    align-items: center;
}

.cpb-cta--style-2 .cpb-cta__eyebrow { color: #bfdbfe; }
.cpb-cta--style-2 .cpb-cta__title { color: #fff; margin-bottom: 0; }
.cpb-cta--style-2 .cpb-cta__desc { color: rgba(255, 255, 255, 0.88); margin-bottom: 0; }

.cpb-cta--style-2 .cpb-btn--primary {
    background: #fff;
    color: #1d4ed8;
}

.cpb-cta--style-2 .cpb-btn--primary:hover {
    background: #eff6ff;
    color: #1e3a8a;
}

.cpb-cta--style-2 .cpb-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.cpb-cta--style-2 .cpb-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

@media (min-width: 768px) {
    .cpb-cta--style-2 .cpb-cta__copy {
        grid-template-columns: 1.35fr auto;
        text-align: left;
    }
    .cpb-cta--style-2 .cpb-cta__actions {
        justify-content: flex-end;
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: center;
    }
}

/* Style 3 — Dark fill banner */
.cpb-cta--style-3 .cpb-cta__banner {
    background: #0f172a;
    border-radius: 24px;
    padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
    color: #fff;
    box-shadow: none !important;
}

.cpb-cta--style-3 .cpb-cta__copy {
    display: grid;
    gap: 12px 28px;
    align-items: center;
}

.cpb-cta--style-3 .cpb-cta__eyebrow { color: #93c5fd; }
.cpb-cta--style-3 .cpb-cta__title { color: #fff; margin-bottom: 0; }
.cpb-cta--style-3 .cpb-cta__desc { color: #cbd5e1; margin-bottom: 0; }

.cpb-cta--style-3 .cpb-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.cpb-cta--style-3 .cpb-btn--ghost:hover {
    border-color: #fff;
    color: #fff;
}

@media (min-width: 768px) {
    .cpb-cta--style-3 .cpb-cta__copy {
        grid-template-columns: 1.35fr auto;
        text-align: left;
    }
    .cpb-cta--style-3 .cpb-cta__actions {
        justify-content: flex-end;
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: center;
    }
}

/* Style 4 — Plain / sin box */
.cpb-cta--style-4 {
    background: transparent;
}

.cpb-cta--style-4 .cpb-cta__plain {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none !important;
    padding: 0;
}

.cpb-cta--style-4 .cpb-cta__actions {
    justify-content: center;
}

/* Shared split layouts (5–7) */
.cpb-cta__split {
    display: grid;
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}

@media (min-width: 900px) {
    .cpb-cta__split {
        grid-template-columns: 1fr 1fr;
    }
}

.cpb-cta__split--box {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: none !important;
}

.cpb-cta__split--box .cpb-cta__img,
.cpb-cta__split--box .cpb-cta__media img {
    border-radius: 16px;
}

/* Style 5 — Image left + text */
.cpb-cta--style-5 {
    background: var(--cpb-bg-soft);
}

/* Style 6 — Text left + image right */
.cpb-cta--style-6 {
    background: var(--cpb-bg-soft);
}

/* Style 7 — Gradient fill */
.cpb-cta--style-7 .cpb-cta__split--fill {
    background: linear-gradient(125deg, #1e3a8a 0%, #2563eb 50%, #38bdf8 100%);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 40px);
    color: #fff;
    box-shadow: none !important;
}

.cpb-cta--style-7 .cpb-cta__eyebrow { color: #dbeafe; }
.cpb-cta--style-7 .cpb-cta__title { color: #fff; }
.cpb-cta--style-7 .cpb-cta__desc { color: rgba(255, 255, 255, 0.9); }

.cpb-cta--style-7 .cpb-btn--primary {
    background: #fff;
    color: #1d4ed8;
}

.cpb-cta--style-7 .cpb-btn--primary:hover {
    background: #eff6ff;
}

.cpb-cta--style-7 .cpb-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.cpb-cta--style-7 .cpb-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.cpb-cta--style-7 .cpb-cta__img,
.cpb-cta--style-7 .cpb-cta__media img {
    border: 2px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 767px) {
    .cpb-cta--style-2 .cpb-cta__actions,
    .cpb-cta--style-3 .cpb-cta__actions {
        justify-content: flex-start;
    }
}

/* Professional contact form */

.cpb-form {
    --cpb-form-accent: #1a73e8;
    padding: clamp(40px, 6vw, 80px) 0;
}

.cpb-form__grid {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.cpb-form--split .cpb-form__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
}

.cpb-form--compact .cpb-form__grid,
.cpb-form--form .cpb-form__grid {
    grid-template-columns: 1fr;
    max-width: 720px;
}

.cpb-form--compact {
    padding: clamp(16px, 3vw, 28px) 0;
}

.cpb-form--compact .cpb-form__title {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.cpb-form__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.2vw, 2.45rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cpb-form__desc,
.cpb-form__choose {
    margin: 0 0 18px;
    color: var(--cpb-ink-soft);
    line-height: 1.55;
    font-size: 0.98rem;
}

.cpb-form__choose {
    margin-top: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--cpb-ink);
}

.cpb-form__intents {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cpb-form__intent {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1.5px solid var(--cpb-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
    font: inherit;
    color: inherit;
}

.cpb-form__intent:hover {
    border-color: color-mix(in srgb, var(--intent-color, var(--cpb-form-accent)) 55%, #fff);
}

.cpb-form__intent.is-active {
    border-color: var(--intent-color, var(--cpb-form-accent));
    box-shadow: 0 0 0 1px var(--intent-color, var(--cpb-form-accent));
}

.cpb-form__intent-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--intent-color, var(--cpb-form-accent)) 16%, #fff);
    color: var(--intent-color, var(--cpb-form-accent));
}

.cpb-form__intent-label {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
}

.cpb-form__panel[hidden] {
    display: none !important;
}

.cpb-form__card {
    border: 2px solid var(--cpb-form-accent);
    border-radius: 18px;
    padding: clamp(20px, 3vw, 28px);
    background: #fff;
}

.cpb-form__card-title {
    margin: 0 0 18px;
    font-size: 1.2rem;
    font-weight: 700;
}

.cpb-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.cpb-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--cpb-ink-soft);
}

.cpb-form__row .cpb-form__field {
    margin-bottom: 0;
}

.cpb-form__field--full {
    margin-bottom: 14px;
}

.cpb-form__field input,
.cpb-form__field select,
.cpb-form__field textarea {
    width: 100%;
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    font-weight: 500;
    color: var(--cpb-ink);
    background: #fff;
}

.cpb-form__field input:focus,
.cpb-form__field select:focus,
.cpb-form__field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--cpb-form-accent) 35%, #fff);
    border-color: var(--cpb-form-accent);
}

.cpb-form__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 12px;
    font-size: 0.86rem;
    color: var(--cpb-ink-soft);
    font-weight: 500;
}

.cpb-form__check input {
    margin-top: 3px;
}

.cpb-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--cpb-form-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

.cpb-form__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Anti-spam honeypot — must stay invisible to humans */
.cpb-form__hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cpb-form__captcha {
    margin: 0.75rem 0 1rem;
}

.cpb-form__math-input {
    width: 100%;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    font: inherit;
}

.cpb-form__alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.cpb-form__alert--ok {
    background: #e6f4ea;
    color: #137333;
}

.cpb-form__alert--err {
    background: #fce8e6;
    color: #c5221f;
}

.cpb-form__info-media {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
}

.cpb-form__info-img {
    display: block;
    width: 100%;
    height: auto;
}

.cpb-form__info-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
}

.cpb-form__info-body {
    margin: 0 0 18px;
    color: var(--cpb-ink-soft);
    line-height: 1.55;
}

.cpb-form__info-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cpb-form__info-card {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #e8f0fe;
    color: #174ea6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.cpb-form__info-card:hover {
    background: #d2e3fc;
}

@media (max-width: 900px) {
    .cpb-form--split .cpb-form__grid {
        grid-template-columns: 1fr;
    }

    .cpb-form__row,
    .cpb-form__info-links {
        grid-template-columns: 1fr;
    }
}
