/* Carrossel exclusivo do ecossistema. Sem seletores ou tokens globais. */
.pc-eco-section,
.pc-eco-section *,
.pc-eco-section *::before,
.pc-eco-section *::after { box-sizing: border-box; }
.pc-eco-section { --pc-eco-gap: 18px; --pc-eco-ink: #211c31; --pc-eco-muted: #655c70; position: relative; isolation: isolate; padding: clamp(36px, 4vw, 60px) 7%; color: var(--pc-eco-ink); background: radial-gradient(ellipse at 95% 0, #d9cce45c, transparent 55%), #f3ede7; border-block: 1px solid #bda07640; font: 14px/1.6 Arial, Helvetica, sans-serif; scroll-margin-top: 125px; }
.pc-eco-section::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: url('../derived/paper.webp'); opacity: .12; }
.pc-eco-section .pc-eco-inner { min-width: 0; max-width: 1320px; margin-inline: auto; }
.pc-eco-section .pc-eco-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 20px; }
.pc-eco-section .pc-eco-heading { min-width: 0; }
.pc-eco-section .pc-eco-eyebrow { margin: 0 0 10px; color: #815c30; font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pc-eco-section .pc-eco-title { margin: 0; color: var(--pc-eco-ink); font: 400 clamp(30px, 2.8vw, 42px)/1.12 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; text-transform: none; }
.pc-eco-section .pc-eco-emphasis { color: #735577; font-weight: 400; }
.pc-eco-section .pc-eco-intro { max-width: 43ch; margin: 0 0 2px; color: var(--pc-eco-muted); font-size: 13px; line-height: 1.75; }
.pc-eco-section .pc-eco-viewport { min-width: 0; width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-block: 6px 16px; }
.pc-eco-section .pc-eco-viewport::-webkit-scrollbar { display: none; }
.pc-eco-section .pc-eco-track { position: relative; display: grid; width: 100%; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--pc-eco-gap)) / 3); align-items: stretch; gap: var(--pc-eco-gap); }
.pc-eco-section .pc-eco-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid #c6b49d80; border-radius: 20px; background: linear-gradient(145deg, #fffdf7ed, #f4eee5eb); box-shadow: inset 0 1px 0 #fff9, 0 8px 18px #39284408; scroll-snap-align: start; scroll-snap-stop: always; overflow-wrap: break-word; transition: border-color .25s ease, box-shadow .25s ease; }
.pc-eco-section .pc-eco-card::before { content: ""; position: absolute; top: -1px; right: 24px; width: 38px; height: 2px; background: linear-gradient(90deg, transparent, #ad824f, transparent); pointer-events: none; }
.pc-eco-section .pc-eco-card--hermes-agent { color: #f5edf6; background: radial-gradient(ellipse at 100% 0, #59425d70, transparent 65%), #292334; border-color: #b4946a80; }
.pc-eco-section .pc-eco-card--n8n { background: linear-gradient(145deg, #eee4f0eb, #f7f0f3eb); }
.pc-eco-section .pc-eco-card--paperclip { background: linear-gradient(140deg, #f8efe0f0, #faf6eeeb); }
.pc-eco-section .pc-eco-brand { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; height: 88px; margin-bottom: 16px; padding: 12px; border: 1px solid #c8bca433; border-radius: 10px; background: #fffdfa99; }
.pc-eco-section .pc-eco-card--openclaw .pc-eco-brand { background: #fafafa; padding: 6px; }
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-brand { background: #141414; border-color: #cfb58b33; }
.pc-eco-section .pc-eco-logo { display: block; max-width: 100%; width: 230px; height: auto; max-height: 72px; object-fit: contain; }
.pc-eco-section .pc-eco-card--n8n .pc-eco-logo,
.pc-eco-section .pc-eco-card--paperclip .pc-eco-logo { width: 140px; }
.pc-eco-section .pc-eco-hermes-icon { flex: none; width: 48px; height: 48px; }
.pc-eco-section .pc-eco-name { margin: 0; color: inherit; font: 600 clamp(18px, 1.6vw, 23px)/1.2 Arial, Helvetica, sans-serif; letter-spacing: -.035em; }
.pc-eco-section .pc-eco-category { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #7b5635; font-size: 11px; font-weight: 600; line-height: 1.5; }
.pc-eco-section .pc-eco-category-dot { flex: 0 0 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pc-eco-section .pc-eco-description { margin: 0 0 14px; color: var(--pc-eco-muted); font-size: 13px; line-height: 1.65; }
.pc-eco-section .pc-eco-benefits { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.pc-eco-section .pc-eco-benefit { display: flex; align-items: flex-start; gap: 9px; color: #574d60; font-size: 12px; line-height: 1.6; }
.pc-eco-section .pc-eco-benefit-mark { flex: 0 0 5px; height: 5px; margin-top: 7px; border: 1px solid #9a794c; border-radius: 50%; }
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-category { color: #e1c395; }
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-description,
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-benefit { color: #e1d5e4; }
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-benefit-mark { border-color: #e1c395; }
.pc-eco-section .pc-eco-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid #bba68c50; }
.pc-eco-section .pc-eco-card-link { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: #4d365e; font-size: 11px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-card-link { color: #f0d2a7; }
.pc-eco-section .pc-eco-link-arrow { color: #947342; font-size: 17px; }
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-link-arrow { color: #f0d2a7; }
.pc-eco-section .pc-eco-index { flex: none; color: #746b7a; font: 9px/1.4 'Courier New', monospace; }
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-index { color: #cfbecf; }
.pc-eco-section .pc-eco-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 2px; }
.pc-eco-section .pc-eco-controls { display: flex; align-items: center; gap: 8px; }
.pc-eco-section .pc-eco-controls[hidden] { display: none; }
.pc-eco-section .pc-eco-arrow { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #bda78a80; border-radius: 50%; background: #fffaf275; color: #53405e; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.pc-eco-section .pc-eco-arrow-symbol { font: 20px/1 Arial, sans-serif; }
.pc-eco-section .pc-eco-autoplay-symbol { font: 14px/1 Arial, sans-serif; }
.pc-eco-section .pc-eco-arrow:disabled { opacity: .35; cursor: default; }
.pc-eco-section .pc-eco-pages { display: flex; }
.pc-eco-section .pc-eco-page { display: grid; place-items: center; width: 24px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pc-eco-section .pc-eco-page-dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: #b6a9be; transition: background .2s ease, transform .2s ease; }
.pc-eco-section .pc-eco-page[aria-current="true"] .pc-eco-page-dot { background: #765682; transform: scale(1.4); }
.pc-eco-section .pc-eco-count { margin-left: 6px; color: #6d6075; font-size: 10px; }
.pc-eco-section .pc-eco-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; min-height: 44px; padding: 12px 20px; border: 1px solid #c8bdce; border-radius: 999px; color: #fff; background: linear-gradient(100deg, #30243e, #66566c); font-size: 11px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; }
.pc-eco-section .pc-eco-cta-arrow { color: #f2c796; font-size: 17px; }
.pc-eco-section .pc-eco-viewport:focus-visible,
.pc-eco-section .pc-eco-arrow:focus-visible,
.pc-eco-section .pc-eco-page:focus-visible,
.pc-eco-section .pc-eco-card-link:focus-visible,
.pc-eco-section .pc-eco-cta:focus-visible { outline: 3px solid #896799; outline-offset: 3px; }
.pc-eco-section .pc-eco-card--hermes-agent .pc-eco-card-link:focus-visible { outline-color: #e8c69b; }
.pc-eco-section .pc-eco-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pc-eco-section .pc-eco-pending { font-size: 11px; color: #65586e; }
.pc-eco-preview-body { margin: 0; background: #f3ede7; }
.pc-eco-preview-notice { padding: 14px 7%; color: #32283d; background: #fff9eb; font: 12px/1.7 Arial, Helvetica, sans-serif; border-bottom: 1px solid #bda07666; }
@media (hover: hover) and (pointer: fine) {
    .pc-eco-section .pc-eco-card:hover { border-color: #a78858b3; box-shadow: inset 0 1px 0 #ffffff40, 0 9px 20px #39284412; }
    .pc-eco-section .pc-eco-arrow:not(:disabled):hover { background: #ede1eb; border-color: #9a7b9c; }
    .pc-eco-section .pc-eco-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
    .pc-eco-section .pc-eco-cta:hover { text-decoration: none; box-shadow: 0 5px 18px #30203e1c; }
}
@media (max-width: 1100px) { .pc-eco-section .pc-eco-track { grid-auto-columns: calc((100% - var(--pc-eco-gap)) / 2); } }
@media (max-width: 800px) {
    .pc-eco-section .pc-eco-header { align-items: flex-start; flex-direction: column; gap: 14px; }
    .pc-eco-section .pc-eco-intro { max-width: 56ch; }
}
@media (max-width: 620px) {
    .pc-eco-section { --pc-eco-gap: 14px; padding-inline: 6%; }
    .pc-eco-section .pc-eco-track { grid-auto-columns: 100%; }
    .pc-eco-section .pc-eco-card { padding: 20px; }
    .pc-eco-section .pc-eco-footer { justify-content: center; }
    .pc-eco-section .pc-eco-controls { justify-content: center; flex-basis: 100%; }
    .pc-eco-section .pc-eco-count { margin-left: 2px; }
    .pc-eco-section .pc-eco-cta { padding-inline: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
    .pc-eco-section.pc-eco-entered .pc-eco-header { animation: pc-eco-entrance .6s ease backwards; }
    @keyframes pc-eco-entrance { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
    .pc-eco-section .pc-eco-viewport { scroll-behavior: auto; }
    .pc-eco-section .pc-eco-card, .pc-eco-section .pc-eco-arrow, .pc-eco-section .pc-eco-page-dot { transition: none; }
}


/* PC-ECO-INTEGRATIONS-LAYOUT-FIX */

/* Permite exibir todas as integrações sem cortar os cards. */
.pc-eco-section .pc-eco-integrations {
    min-width: 0;
    width: 100%;
}

.pc-eco-section .pc-eco-apps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pc-eco-section .pc-eco-app {
    flex: 0 0 auto;
    max-width: 100%;
}

/* Mantém os cards completos e os rodapés alinhados. */
.pc-eco-section .pc-eco-track {
    align-items: stretch;
}

.pc-eco-section .pc-eco-card {
    height: auto;
    min-height: 0;
}

.pc-eco-section .pc-eco-card-footer {
    margin-top: auto;
}

/* Evita cortar conteúdo vertical do carrossel. */
.pc-eco-section .pc-eco-viewport {
    height: auto;
    max-height: none;
}

/* END PC-ECO-INTEGRATIONS-LAYOUT-FIX */
