@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700;800;900&display=swap');

/* ====================================================================
   1. Variáveis & Reset Global
   ==================================================================== */
* {
    font-family: 'Noto Sans', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cores */
    --color-primary: #0d40ff; /* Azul Principal */
    --color-primary-dark: #0033CC;
    --color-secondary: #57ffab; /* Verde Destaque/Neon */
    --color-secondary-dark: #0deb81;
    --color-dark: #171f6d;
    --color-text-light: #f3f3f3;
    --color-text-dark: #3c3c3b;
    --color-text-highlight: #00008B; /* Azul Marinho/Escuro */
    
    /* Sombras & Efeitos */
    --shadow-default: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-button: 0 10px 30px rgba(0, 255, 136, 0.3);
    --shadow-3d: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --glow-neon: 0 0 15px rgba(0, 255, 136, 0.5); /* Usado para borda/brilho */
    
    /* Gradientes */
    --gradient-hero: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark), #1a1a2e, #16213e);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark), #00c9a7, #00b4d8);
    
    /* Dimensões & Espaçamento */
    --radius-default: 0.5rem;
    --radius-card: 1.5rem;
    --radius-btn: 1.25rem;
    --spacing-sm: 1rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 5rem;
    --section-padding-base: 6.25rem;
    --header-height: 80px; /* Altura fixa do header */

    /* Tipografia */
    --font-size-title-sm: 2.2rem;
    --font-size-title-md: 4rem;
    --font-size-title-lg: 5rem;
    --font-size-subtitle: 1.5rem;
    --font-size-stats-base: 3rem;

    /* Transições & Filtros */
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --filter-glass: blur(10px) saturate(180%);
    --filter-neon: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 10px currentColor);

    /* Transições */
    --transition-fast: 220ms;
    --transition-medium: 380ms;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva de aceleração suave */

    /* Cores do Tema Escuro */
    --color-dark-bg: #0b1736;       /* Fundo principal da section (Deep Blue) */
    --color-card-bg: #1e3a8a;       /* Fundo dos cards (Blue 800) */
    --color-card-border: #3b82f630; /* Borda sutil */
    --color-text-light: #f3f4f6;    /* Texto principal */
    --color-text-secondary: #bfdbfe; /* Texto secundário (Blue 200) */
    
    /* Cores do Fluxo de Energia */
    --flow-color-1: #FACC15;    /* Amarelo - Engajamento */
    --flow-color-2: #34D399;    /* Verde - Sustentabilidade */
    --flow-color-3: #F87171;    /* Vermelho/Rosa - Impacto */
    
    /* Efeito Neon/Glow */
    --filter-glow-sm: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    --filter-glow-lg: drop-shadow(0 0 12px var(--flow-color-current)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));

}

body {
    background-color: var(--color-dark);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
    /* Adiciona padding-top ao body para compensar o header fixo */
    padding-top: var(--header-height);
}

/* --------------------------------------------------------------------
   2. Tipografia
   -------------------------------------------------------------------- */
.titulo-principal {
    font-size: var(--font-size-title-sm);
    font-weight: 900;
    line-height: 1.1;
    position: relative;
}

.titulo-principal::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.titulo-principal-md { font-size: var(--font-size-title-md); }
.titulo-principal-lg { font-size: var(--font-size-title-lg); }

.subtitulo {
    font-size: var(--font-size-subtitle);
}

.text-gradient-green {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.text-green {
    background: var(--color-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.text-blue {
    background: var(--color-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------
   3. Estrutura e Layout
   -------------------------------------------------------------------- */

/* --------------------------------------------------------------------
   3. Estrutura e Layout - AJUSTADO
   -------------------------------------------------------------------- */

.hero-gradient {
  background: var(--gradient-hero);
  position: relative;
  /* REMOVIDO: overflow: hidden; */ /* Isso impedia os efeitos :hover de aparecerem */
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 0;
  z-index: 0;
}

/* Se você tiver um contêiner específico para os elementos flutuantes, aplique overflow nele */
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.15) 0%, transparent 30%),
                radial-gradient(circle at 90% 80%, rgba(0, 71, 255, 0.15) 0%, transparent 30%);
    z-index: 1;
    pointer-events: none;
    /* Se necessário, adicione overflow: hidden aqui se o ::before conter elementos que devem ser cortados */
    /* overflow: hidden; */
}


.green-section {
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
    color: var(--color-text-highlight);
}

.section-padding {
    padding: var(--section-padding-base) 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------
   4. Navegação e Acessibilidade (Header/Menu)
   -------------------------------------------------------------------- */

/* --------------------------------------------------------------------
   5. Botões e Componentes Interativos
   -------------------------------------------------------------------- */

.btn {
    border-radius: var(--radius-btn);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    isolation: isolate;
    box-shadow: var(--shadow-button);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.7s ease-in-out;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: var(--shadow-3d), var(--glow-neon);
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--color-text-highlight);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-light);
    backdrop-filter: blur(5px);
    position: relative;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* --------------------------------------------------------------------
   6. Cards e Estatísticas
   -------------------------------------------------------------------- */

.stat-card {
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--filter-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-card), var(--shadow-inset);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-8px) rotateX(0) scale(1.02);
    box-shadow: var(--shadow-3d), var(--glow-neon);
    border-color: rgba(0, 255, 136, 0.3);
}

/* Contadores */
.counter {
    display: inline-block;
    font-weight: 900;
    font-size: var(--font-size-stats-base);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.counter::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.counter:hover::after {
    transform: scaleX(1);
}

/* Classes para controlar o estado inicial/final da animação via JS */
.initial-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.initial-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------
   7. Elementos SVG (Faces)
   -------------------------------------------------------------------- */
/* === 1. BASE: Pílula Retangular === */
.face-pill-rect {
    fill: rgba(233, 245, 255, 0.9);
    stroke: rgba(11, 42, 98, 0.3);
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

/* === 2. HOVER: Pílula com Brilho === */
.face-item:hover .face-pill-rect,
.face-item:focus .face-pill-rect {
    fill: rgba(11, 95, 197, 1);
    stroke: var(--color-secondary);
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.5))
        drop-shadow(0 0 5px var(--color-secondary));
}

/* Texto da Pílula com efeito neon */
.face-item:hover .face-pill-text tspan,
.face-item:focus .face-pill-text tspan {
    fill: #ffffff; /* cor branca *//* mantém o efeito neon se desejar */
}


/* === 3. Bolha Numérica === */
.face-pill-bubble {
    fill: var(--color-dark);
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
    transition: fill 0.3s ease, filter 0.3s ease;
}

.face-pill-bubble-text {
    fill: #ffffff; /* cor branca */
}


.face-item:hover .face-pill-bubble-text,
.face-item:focus .face-pill-bubble-text {
    fill: var(--color-dark); /* ou outra cor de destaque */
}

.face-item:hover .face-pill-bubble,
.face-item:focus .face-pill-bubble {
    fill: var(--color-secondary);
    filter: var(--filter-neon);
}

/* === 4. Conector: Linha === */
.face-connector-line {
    stroke: var(--color-dark);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.svg-element:hover .face-connector-line,
.svg-element:focus-within .face-connector-line {
    stroke: var(--color-secondary);
    filter: drop-shadow(0 0 3px var(--color-secondary));
}

/* === 5. Conector: Ponto === */
.face-connector-dot {
    fill: var(--color-dark);
    stroke: var(--color-text-light);
    stroke-width: 2;
    transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

.svg-element:hover .face-connector-dot,
.svg-element:focus-within .face-connector-dot {
    fill: var(--color-secondary);
    filter: drop-shadow(0 0 4px var(--color-secondary));
}

/* === 6. Animação de Entrada via JS === */
.svg-element {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.svg-element.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
/* O restante das regras de hover de .face-item:hover .face-pill-rect, etc., permanece o mesmo */

/* Animação do SVG pelo JS */
.svg-element {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.svg-element.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
/* --------------------------------------------------------------------
   8. Animações e Efeitos Visuais
   -------------------------------------------------------------------- */

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-3d), var(--glow-neon);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Animações Keyframes */
@keyframes float-advanced {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-30px) translateX(10px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg) translateX(-100%);
    animation: shimmer 1.5s infinite linear;
}

/* --------------------------------------------------------------------
   9. Responsividade (Media Queries)
   -------------------------------------------------------------------- */

@media (min-width: 769px) {
    .titulo-principal { font-size: var(--font-size-title-sm); }
    .counter { font-size: var(--font-size-stats-base); }
    .section-padding { padding: var(--section-padding-base) 0; }
}

@media (min-width: 1280px) {
    .titulo-principal { font-size: 4rem; }
    .counter { font-size: var(--font-size-stats-base); }
}

@media (max-width: 768px) {
    :root {
        --font-size-title-sm: 2.2rem;
        --font-size-subtitle: 1.2rem;
        --section-padding-base: 4rem;
        --header-height: 60px; /* Header menor em mobile */
    }
    nav { height: var(--header-height); }
    /* Ajusta o padding do body para o novo tamanho do header */
    body { padding-top: var(--header-height); }
    /* Ajusta a altura do hero para compensar o novo padding do body */
    .hero-gradient { min-height: calc(100vh - var(--header-height)); }
    .floating-blob {
        width: 200px;
        height: 200px;
        bottom: -30px;
        filter: blur(40px);
    }
    .titulo-principal::after {
        width: 60px;
        bottom: -8px;
    }
    .face-pill-text { font-size: 14px; }
    .face-pill-bubble-text { font-size: 10px; }
    .section-padding { padding: var(--section-padding-base) var(--spacing-sm); }
}

@media (max-width: 480px) {
    :root {
        --font-size-title-sm: 1.8rem;
        --font-size-subtitle: 1rem;
        --font-size-stats-base: 2rem;
    }
    .titulo-principal { font-size: var(--font-size-title-sm); }
    .counter { font-size: var(--font-size-stats-base); }

    .face-item {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Correção para garantir que a navegação principal preencha o espaço e os itens sejam espaçados */
nav .container > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ... (seu CSS existente) ... */

/* 1. ESTADO INICIAL DOS ELEMENTOS INTERNOS */
section h1, 
section h2, 
section p, 
section button, 
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    /* Transição base que será ajustada pelo delay */
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0s; /* O default, será sobrescrito */
}

/* 2. STAGGERING: ATRASO NAS TRANSIÇÕES */
/* O .in-view é adicionado pelo JavaScript quando a seção entra na viewport */

/* Atraso 1: Títulos */
.in-view h1,
.in-view h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s; /* Entra primeiro */
}

/* Atraso 2: Parágrafos/Textos */
.in-view p,
.in-view li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s; 
}

/* Atraso 3: Cartões de Estatísticas (exemplo) */
.in-view .stat-card:nth-child(1) { transition-delay: 0.3s; }
.in-view .stat-card:nth-child(2) { transition-delay: 0.4s; }
.in-view .stat-card:nth-child(3) { transition-delay: 0.5s; }
/* Adicione mais se necessário */

/* Atraso 4: Botões */
.in-view button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s; /* Entra por último */
}


#ecossistema-motor {
    background-color: var(--color-dark-bg);
    padding: 6rem 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#ecossistema-motor .titulo-principal {
    color: var(--color-text-light);
}

#ecossistema-motor p.text-blue-200 {
    color: var(--color-text-secondary);
}

/* 2. CARD BASE E ENTRADA (Flow Card) */
.flow-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Sombra de profundidade sutil */
    transition: transform var(--transition-medium) var(--transition-smooth), 
                box-shadow var(--transition-medium) var(--transition-smooth);
    will-change: transform, opacity;
    position: relative;
    overflow: visible;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

/* Micro-Interação (Hover/Focus) */
.flow-card:hover,
.flow-card:focus-within {
    /* Elevação e Brilho no Focus */
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 
                0 0 20px var(--flow-color-current, rgba(255, 255, 255, 0.2)); /* Brilho suave */
    border-color: var(--flow-color-current, var(--color-card-border));
}

/* Cores do Hover (Variável dinâmica para o brilho) */
.flow-card.active-step-1 { --flow-color-current: var(--flow-color-1); }
.flow-card.active-step-2 { --flow-color-current: var(--flow-color-2); }
.flow-card.active-step-3 { --flow-color-current: var(--flow-color-3); }


/* 3. ÍCONE E TÍTULO */
.flow-card h3 {
    color: var(--color-text-light);
}

.flow-card p {
    color: var(--color-text-secondary);
    flex-grow: 1;
}

/* Icon badge */
.icon-circle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast) var(--transition-smooth);
}

/* Efeito Hover/Focus no Ícone */
.flow-card:hover .icon-circle,
.flow-card:focus-within .icon-circle {
    transform: scale(1.08); /* Aumenta o ícone */
    filter: drop-shadow(0 0 8px var(--flow-color-current)); /* Brilho da cor da face */
}

/* 4. CONECTORES E ANIMAÇÃO DE FLUXO (O Ponto Focal) */
@media (min-width: 768px) {
    /* Linha Base */
    .flow-line-connector {
        right: -6rem; /* Ajustado para espaçamento maior */
        width: 6rem;
        height: 3px;
        background-color: var(--color-card-border); /* Cor base escura */
        transition: background-color 0.4s ease, box-shadow 0.4s ease;
        overflow: hidden;
    }

    /* Seta Base */
    .flow-line-connector.right-arrow::before {
        border-right: 3px solid var(--color-card-border);
        border-top: 3px solid var(--color-card-border);
        width: 10px;
        height: 10px;
        transition: border-color 0.4s ease;
    }

    /* ANIMAÇÃO DE FLUXO - ACENDIMENTO */
    /* Cria um gradiente animado dentro do conector para simular o "fluxo" */
    
    /* Linha e seta acesas */
    .flow-card.visible .flow-line-connector,
    .flow-card.visible .flow-line-connector.right-arrow::before {
        background-color: var(--flow-color-current);
        border-color: var(--flow-color-current);
        box-shadow: 0 0 15px var(--flow-color-current);
    }
    .flow-card.visible .flow-line-connector.right-arrow::before {
        border-right-color: var(--flow-color-current);
        border-top-color: var(--flow-color-current);
    }
}


/* 5. ANIMAÇÃO DE ENTRADA (Staggering JS) */
.flow-card {
    opacity: 0;
    transform: translateY(40px); /* Movimento mais perceptível na entrada */
}

/* A classe 'visible' é adicionada pelo JS, garantindo a transição */
.flow-card.visible {
    opacity: 1;
    transform: translateY(0);
    /* O delay é gerenciado no JS, mas a transição é definida aqui */
    transition: opacity 800ms var(--transition-smooth), transform 800ms var(--transition-smooth);
}

/* 6. ACESSIBILIDADE */
/* Outline claro e vibrante para navegação por teclado */
.flow-card:focus-within {
    outline: none;
    box-shadow: 0 0 0 4px var(--flow-color-current), 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Reduced Motion: Desativa todas as transições para usuários sensíveis */

/*
 * 1. Animações e Propriedades
 * Defina a animação de rolagem, garantindo que o loop seja suave.
 */
@keyframes scroll-right {
    from {
        transform: translateX(0);
    }
    to {
        /* Rola para a largura total do conteúdo duplicado (100% da lista) */
        transform: translateX(calc(-100% * 0.5)); 
    }
}

@keyframes scroll-left {
    from {
        transform: translateX(calc(-100% * 0.5));
    }
    to {
        transform: translateX(0);
    }
}

/* * 2. Estilos do Container Principal (scroller-x)
 * Aplicando a inclinação e o efeito visual.
 */
.scroller-x {
    /* Garante que o conteúdo que vaza (o loop) seja cortado */
    overflow: hidden; 
    
    /* Adiciona uma inclinação sutil ao container do carrossel */
    /* Ajuste o valor (-2deg) para mudar a intensidade da inclinação */
    transform: rotate(-2deg); 
    
    /* Um fundo mais escuro ou contrastante ajuda a destacar a inclinação */
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    
    /* Adiciona sombra para dar profundidade e destaque */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15[]);
    
    /* Aumenta o espaçamento interno para dar um 'respiro' */
    padding: 1.5rem 0; 
}

/* * 3. Estilos da Lista de Logos (scroller-x__list)
 * Configurando a largura para a animação infinita.
 */
.scroller-x__list {
    /* Impede quebras de linha */
    white-space: nowrap; 
    
    /* Garante que a lista ocupe o espaço necessário para o loop */
    width: max-content; 
    
    /* Remove a rotação interna dos logos para que pareçam retos dentro da barra inclinada */
    transform: rotate(2deg); 
    
    /* Garante que todos os itens estejam alinhados corretamente */
    display: flex;
    align-items: center;
}

/* * 4. Aplicação da Animação (scroller-x[data-animated="true"])
 */
.scroller-x[data-animated="true"] .scroller-x__list {
    /* Define a animação padrão para rolagem para a direita */
    animation: scroll-right 40s linear infinite; 
}

/* Inverte a direção para a segunda linha */
.scroller-x[data-animated="true"][data-direction="left"] .scroller-x__list {
    animation-name: scroll-left;
}

/* * 5. Estilos dos Logos Individuais (brand-btn)
 * Deixa os logos mais elegantes e interativos.
 */
.brand-btn {
    /* Efeito sutil de transição ao passar o mouse */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Deixa o fundo neutro um pouco mais destacado */
    background-color: #ffffff!important;
}

.brand-btn img {
    /* Deixa o logo em preto e branco */
    filter: grayscale(100%); 
    opacity: 1;
    /* Transição para o efeito de cor */
    transition: filter 0.5s ease, opacity 0.5s ease;
    /* Define a altura máxima para manter a consistência */
    max-height: 40px; 
    width: auto;
}

/* * 6. Efeito de "Fade-out" nas laterais (OPCIONAL, mas altamente recomendado)
 * Isso requer uma máscara para o container principal. Se você não tiver suporte a 
 * máscaras no seu navegador alvo, use uma div de sobreposição com degradê CSS.
 */
.scroller-x {
    /* Máscara para criar o efeito de que os logos desaparecem nas bordas */
    -webkit-mask-image: linear-gradient(to right, transparent 5%, rgb(140, 140, 140) 20%, rgb(125, 125, 125) 80%, transparent 95%);
    mask-image: linear-gradient(to right, transparent 5%, rgb(175, 175, 175) 20%, rgb(196, 196, 196) 80%, transparent 95%);
}


.logo-straight {
    /* Contra-rotação de 2 graus para anular o -rotate-2 do container pai */
    transform: rotate(2deg); 
}

/* Opcional: CSS para a textura de fundo, se estiver usando a classe bg-pattern-light */
.bg-pattern-light {
    background-image: url('https://www.transparenttextures.com/patterns/criss-cross-light.png'); 
    background-repeat: repeat;
}


/* Ajuste para garantir que os itens da lista sejam exibidos em linha */
.list-row {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center; /* Centraliza verticalmente */
  overflow: hidden; /* Esconde o overflow inicial */
}

.list-row .scroller-x__item {
  flex-shrink: 0; /* Impede que os itens encolham */
  display: block; /* Garante que o item seja um bloco */
}

/* Ajuste para padding e bordas arredondadas */


/* Estilo para o container do scroller */
.scroller-x {
  overflow: hidden;
  position: relative; /* Importante para a animação */
  width: 100%;
  /* --- ADICIONADO --- */
  border-radius: 160px; /* Ajuste o valor conforme necessário */
  background-color: #171F6D; /* Cor de fundo azul escura */
  padding: 16px 0; /* Adiciona um pouco de espaço interno */
  /* --- FIM DAS ADIÇÕES --- */
}

/* Estilo para a lista que será animada */
.scroller-x__list {
  display: flex;
  align-items: center;
  width: max-content; /* Ocupa apenas o espaço necessário */
  min-width: 200%; /* Garante que a lista seja pelo menos o dobro da largura do container para o loop */
  /* --- REMOVIDO --- */
  /* background-color: white; */ /* Removido se o fundo agora for do scroller-x */
  /* --- FIM DAS REMOÇÕES --- */
}


@keyframes scroll-right {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% * 0.5)); }
}
@keyframes scroll-left {
    from { transform: translateX(calc(-100% * 0.5)); }
    to { transform: translateX(0); }
}
.scroller-x {
    overflow: hidden;
    transform: rotate(-2deg); /* <-- PROBLEMA */
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #ffffff 100%); /* <-- PROBLEMA */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}
.scroller-x__list {
    white-space: nowrap;
    width: max-content;
    transform: rotate(2deg); /* <-- PROBLEMA */
    display: flex;
    align-items: center;
}
.scroller-x[data-animated="true"] .scroller-x__list { animation: scroll-right 40s linear infinite; }
.scroller-x[data-animated="true"][data-direction="left"] .scroller-x__list { animation-name: scroll-left; }
.brand-btn { transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: #171F6D !important; border-radius: 30px; } /* <-- PROBLEMA */
.brand-btn img { filter: grayscale(100%); opacity: 0.7; transition: filter 0.5s ease, opacity 0.5s ease; max-height: 50px; width: auto; }
.logo-straight { transform: rotate(2deg); }


/* NOVO CLIP-PATH PARA O CORTE DIAGONAL DO RASCUNHO */
.clip-diagonal {
    /* Corta a borda esquerda diagonalmente: 
       ponto 1: 15% da largura na parte superior (move para dentro)
       ponto 2: 100% da largura na parte superior
       ponto 3: 100% da largura na parte inferior
       ponto 4: 0% da largura na parte inferior (mantém na borda) */
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); 
}

/* CORREÇÃO DE ESPECIFICIDADE E FORÇAMENTO DA IMAGEM DE FUNDO */
#conferencia {
    /* *** VERIFIQUE ESTA URL: Certifique-se de que é o caminho CORRETO *** */
    background-image: url('https://i.postimg.cc/SKnhqxSp/Confer-ncia-4.png') !important; 
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important; /* Efeito Parallax */
    position: relative !important;
}


/* Gradiente para Simular o Fade Diagonal (A cor FFF deve ser a mesma cor do fundo do cartão) */
.fade-diagonal-overlay {
    /* O gradiente vai de transparente para o BRANCO (Fundo do Cartão) */
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.0) 0%,   /* Transparente no vídeo */
        rgba(255, 255, 255, 0.7) 15%,  /* Início do Fade */
        rgba(255, 255, 255, 0.9) 30%,  /* Meio do Fade */
        rgba(255, 255, 255, 1.0) 45%   /* Branco Opaco, cobrindo o corte */
    );
    
    /* Aplica a inclinação (skew) ao gradiente */
    transform: skewX(-10deg); 
    
    /* Posiciona o gradiente para cobrir a área de transição */
    transform-origin: top left;
    
    /* Move o gradiente para a esquerda para que o fade comece na posição correta do corte */
    margin-left: -5rem; /* Ajuste este valor se necessário */
}

/* Opcional: Se quiser um fade de outra cor (e.g., preto para vídeo escuro):
.fade-diagonal-overlay-dark {
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 1) 45%);
    transform: skewX(-10deg);
    transform-origin: top left;
    margin-left: -5rem; 
}
*/


/* ====================================================================
   VERSÃO MOBILE: TABS/CARDS INTERATIVOS (até 768px)
   ==================================================================== */

@media (max-width: 768px) {
    /* OCULTA O SVG EM MOBILE */
    #faces-svg {
        display: none !important;
    }

    /* CONTAINER DAS TABS */
    .faces-mobile-container {
        display: block !important;
        max-width: 100%;
        padding: 0 1rem;
    }

    /* NAVEGAÇÃO DAS CATEGORIAS (TABS) */
    .faces-tabs-nav {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-secondary) transparent;
    }

    .faces-tabs-nav::-webkit-scrollbar {
        height: 4px;
    }

    .faces-tabs-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .faces-tabs-nav::-webkit-scrollbar-thumb {
        background: var(--color-secondary);
        border-radius: 10px;
    }

    /* BOTÕES DAS TABS */
    .faces-tab-btn {
        flex-shrink: 0;
        padding: 0.75rem 1.5rem;
        border: 2px solid rgba(11, 42, 98, 0.3);
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--color-dark);
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .faces-tab-btn.active {
        background: var(--color-dark);
        color: white;
        border-color: var(--color-secondary);
        box-shadow: 0 0 15px rgba(87, 255, 171, 0.4);
        transform: scale(1.05);
    }

    .faces-tab-btn:hover:not(.active) {
        background: rgba(11, 42, 98, 0.1);
        border-color: var(--color-dark);
    }

    /* CONTAINER DOS CARDS DAS FACES */
    .faces-cards-container {
        position: relative;
        min-height: 400px;
    }

    /* CADA CARD DE FACE (INICIALMENTE OCULTO) */
    .face-card-mobile {
        display: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .face-card-mobile.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
        animation: fadeInUp 0.5s ease;
    }

    /* LAYOUT DO CARD */
    .face-card-content {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(233, 245, 255, 0.9));
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--color-secondary);
        position: relative;
        overflow: hidden;
    }

    .face-card-content::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(87, 255, 171, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    /* CABEÇALHO DO CARD */
    .face-card-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .face-card-number {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--color-dark);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-size: 1.2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .face-card-title {
        flex: 1;
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--color-dark);
        margin: 0;
    }

    /* DESCRIÇÃO DO CARD */
    .face-card-description {
        color: var(--color-text-dark);
        line-height: 1.8;
        font-size: 1rem;
        position: relative;
        z-index: 1;
    }

    /* NAVEGAÇÃO COM SETAS (OPCIONAL) */
    .faces-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 2rem;
        gap: 1rem;
    }

    .faces-nav-btn {
        background: var(--color-dark);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .faces-nav-btn:hover:not(:disabled) {
        background: var(--color-secondary);
        color: var(--color-dark);
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(87, 255, 171, 0.5);
    }

    .faces-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .faces-counter {
        font-weight: 700;
        color: var(--color-dark);
        font-size: 0.95rem;
    }

    /* INDICADORES DE PROGRESSO (DOTS) */
    .faces-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .face-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(11, 42, 98, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .face-indicator.active {
        background: var(--color-dark);
        width: 24px;
        border-radius: 10px;
    }

    /* ANIMAÇÕES */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    /* BOTÃO "EXPLORE TODAS AS FACES" */
    #explore-faces-btn {
        margin-top: 2rem !important;
        width: 100%;
        max-width: 350px;
    }
}

/* ====================================================================
   VERSÃO TABLET (769px - 1024px): SVG AJUSTADO
   ==================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    /* Mantém o SVG mas com tamanho reduzido */
    #faces-svg {
        max-height: 500px;
    }

    /* Oculta a versão mobile */
    .faces-mobile-container {
        display: none !important;
    }

    /* Ajusta os pills para caber melhor */
    .face-pill-rect {
        /* O JS já ajusta, mas garantimos aqui */
    }

    .face-pill-text {
        font-size: 14px !important;
    }
}

/* ====================================================================
   VERSÃO DESKTOP (acima de 1024px): SVG COMPLETO
   ==================================================================== */

@media (min-width: 1025px) {
    /* Oculta a versão mobile */
    .faces-mobile-container {
        display: none !important;
    }

    /* SVG em tamanho completo */
    #faces-svg {
        display: block;
    }
}

/* ====================================================================
   ACESSIBILIDADE E MELHORIAS
   ==================================================================== */

/* Foco visível para navegação por teclado */
.faces-tab-btn:focus,
.faces-nav-btn:focus,
.face-indicator:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
}

/* Suporte para prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .face-card-mobile,
    .faces-tab-btn,
    .faces-nav-btn,
    .face-card-content::before {
        animation: none !important;
        transition: none !important;
    }
}

/* Touch feedback para mobile */
@media (hover: none) {
    .faces-tab-btn:active,
    .faces-nav-btn:active {
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    /* OCULTA O SVG EM MOBILE */
    #faces-svg {
        display: none !important;
    }

    /* CONTAINER DAS TABS */
    .faces-mobile-container {
        display: block !important;
        max-width: 100%;
        padding: 0 1rem;
    }

    /* NAVEGAÇÃO DAS CATEGORIAS (TABS) */
    .faces-tabs-nav {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-secondary) transparent;
    }

    .faces-tabs-nav::-webkit-scrollbar {
        height: 4px;
    }

    .faces-tabs-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .faces-tabs-nav::-webkit-scrollbar-thumb {
        background: var(--color-secondary);
        border-radius: 10px;
    }

    /* BOTÕES DAS TABS */
    .faces-tab-btn {
        flex-shrink: 0;
        padding: 0.75rem 1.5rem;
        border: 2px solid rgba(11, 42, 98, 0.3);
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--color-dark);
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .faces-tab-btn.active {
        background: var(--color-dark);
        color: white;
        border-color: var(--color-secondary);
        box-shadow: 0 0 15px rgba(87, 255, 171, 0.4);
        transform: scale(1.05);
    }

    .faces-tab-btn:hover:not(.active) {
        background: rgba(11, 42, 98, 0.1);
        border-color: var(--color-dark);
    }

    /* CONTAINER DOS CARDS DAS FACES */
    .faces-cards-container {
        position: relative;
        min-height: 400px;
    }

    /* CADA CARD DE FACE (INICIALMENTE OCULTO) */
    .face-card-mobile {
        display: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .face-card-mobile.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
        animation: fadeInUp 0.5s ease;
    }

    /* LAYOUT DO CARD */
    .face-card-content {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(233, 245, 255, 0.9));
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--color-secondary);
        position: relative;
        overflow: hidden;
    }

    .face-card-content::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(87, 255, 171, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    /* CABEÇALHO DO CARD */
    .face-card-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .face-card-number {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--color-dark);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-size: 1.2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .face-card-title {
        flex: 1;
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--color-dark);
        margin: 0;
    }

    /* DESCRIÇÃO DO CARD */
    .face-card-description {
        color: var(--color-text-dark);
        line-height: 1.8;
        font-size: 1rem;
        position: relative;
        z-index: 1;
    }

    /* NAVEGAÇÃO COM SETAS */
    .faces-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 2rem;
        gap: 1rem;
    }

    .faces-nav-btn {
        background: var(--color-dark);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .faces-nav-btn:hover:not(:disabled) {
        background: var(--color-secondary);
        color: var(--color-dark);
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(87, 255, 171, 0.5);
    }

    .faces-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .faces-counter {
        font-weight: 700;
        color: var(--color-dark);
        font-size: 0.95rem;
    }

    /* ANIMAÇÕES */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
}


/* --------------------------------------------------------
   1. SVG - Ajustes para Telas Pequenas
   -------------------------------------------------------- */

@media (max-width: 768px) {
    /* Container do SVG */
    #faces-svg {
        max-width: 100%;
        height: auto;
        overflow: visible !important;
    }

    /* Pills (Retângulos) - Reduz tamanho e ajusta texto */
    .face-pill-rect {
        stroke-width: 1.5;
    }

    /* Texto das Pills - Reduz fonte e ajusta espaçamento */
    .face-pill-text {
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    .face-pill-text tspan {
        font-size: 11px !important;
    }

    /* Bolha numérica - Ajusta tamanho */
    .face-pill-bubble {
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    }

    .face-pill-bubble-text {
        font-size: 9px !important;
        font-weight: 800 !important;
    }

    /* Conectores - Ajusta espessura */
    .face-connector-line {
        stroke-width: 2;
    }

    .face-connector-dot {
        stroke-width: 1.5;
    }
}

@media (max-width: 480px) {
    /* Texto ainda menor para telas muito pequenas */
    .face-pill-text {
        font-size: 9px !important;
        font-weight: 700 !important;
    }

    .face-pill-text tspan {
        font-size: 9px !important;
    }

    .face-pill-bubble-text {
        font-size: 7px !important;
    }
}

/* --------------------------------------------------------
   2. INTERFACE MOBILE (TABS/CARDS)
   -------------------------------------------------------- */

@media (max-width: 768px) {
    /* OCULTA O SVG EM MOBILE */
    #faces-svg {
        display: none !important;
    }

    /* CONTAINER DAS TABS */
    .faces-mobile-container {
        display: block !important;
        max-width: 100%;
        padding: 0 1rem;
        margin-top: 2rem;
    }

    /* NAVEGAÇÃO DAS CATEGORIAS (TABS) */
    .faces-tabs-nav {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-secondary) transparent;
        white-space: nowrap;
    }

    .faces-tabs-nav::-webkit-scrollbar {
        height: 4px;
    }

    .faces-tabs-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .faces-tabs-nav::-webkit-scrollbar-thumb {
        background: var(--color-secondary);
        border-radius: 10px;
    }

    /* BOTÕES DAS TABS */
    .faces-tab-btn {
        flex-shrink: 0;
        padding: 0.75rem 1.25rem;
        border: 2px solid rgba(11, 42, 98, 0.3);
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--color-dark);
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        min-width: auto;
    }

    .faces-tab-btn.active {
        background: var(--color-dark);
        color: white;
        border-color: var(--color-secondary);
        box-shadow: 0 0 15px rgba(87, 255, 171, 0.4);
        transform: scale(1.05);
    }

    .faces-tab-btn:hover:not(.active) {
        background: rgba(11, 42, 98, 0.1);
        border-color: var(--color-dark);
    }

    /* CONTAINER DOS CARDS DAS FACES */
    .faces-cards-container {
        position: relative;
        min-height: 300px;
        width: 100%;
    }

    /* CADA CARD DE FACE */
    .face-card-mobile {
        display: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        width: 100%;
    }

    .face-card-mobile.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
        animation: fadeInUp 0.5s ease;
    }

    /* LAYOUT DO CARD */
    .face-card-content {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 245, 255, 0.95));
        border-radius: 20px;
        padding: 1.75rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--color-secondary);
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 250px;
    }

    .face-card-content::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(87, 255, 171, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
        pointer-events: none;
    }

    /* CABEÇALHO DO CARD */
    .face-card-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .face-card-number {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--color-dark);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-size: 1.1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .face-card-title {
        flex: 1;
        font-size: 1.35rem;
        font-weight: 900;
        color: var(--color-dark);
        margin: 0;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* DESCRIÇÃO DO CARD */
    .face-card-description {
        color: var(--color-text-dark);
        line-height: 1.7;
        font-size: 0.95rem;
        position: relative;
        z-index: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* NAVEGAÇÃO COM SETAS */
    .faces-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 2rem;
        gap: 1rem;
        width: 100%;
    }

    .faces-nav-btn {
        background: var(--color-dark);
        color: white;
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        flex-shrink: 0;
    }

    .faces-nav-btn:hover:not(:disabled) {
        background: var(--color-secondary);
        color: var(--color-dark);
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(87, 255, 171, 0.5);
    }

    .faces-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .faces-counter {
        font-weight: 700;
        color: var(--color-dark);
        font-size: 0.95rem;
        text-align: center;
        flex-shrink: 0;
    }


    /* ANIMAÇÃO DE FADE IN */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    /* AJUSTE DO BOTÃO "EXPLORE TODAS AS FACES" */
    #explore-faces-btn {
        margin-top: 3rem;
        width: 100%;
        max-width: 100%;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
}

/* --------------------------------------------------------
   3. TELAS EXTRA PEQUENAS (< 480px)
   -------------------------------------------------------- */

@media (max-width: 480px) {
    .faces-mobile-container {
        padding: 0 0.75rem;
    }

    .faces-tabs-nav {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }

    .faces-tab-btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }

    .face-card-content {
        padding: 1.5rem;
        min-height: 220px;
    }

    .face-card-number {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .face-card-title {
        font-size: 1.2rem;
    }

    .face-card-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .faces-nav-btn {
        width: 44px;
        height: 44px;
    }

    .faces-counter {
        font-size: 0.9rem;
    }

    .face-indicator {
        width: 8px;
        height: 8px;
    }

    .face-indicator.active {
        width: 24px;
    }
}

/* --------------------------------------------------------
   4. TELAS MUITO PEQUENAS (< 360px)
   -------------------------------------------------------- */

@media (max-width: 360px) {
    .face-card-content {
        padding: 1.25rem;
        min-height: 200px;
    }

    .face-card-header {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .face-card-number {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .face-card-title {
        font-size: 1.1rem;
    }

    .face-card-description {
        font-size: 0.85rem;
    }

    .faces-tabs-nav {
        gap: 0.3rem;
    }

    .faces-tab-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.75rem;
    }
}

/* --------------------------------------------------------
   5. MELHORIAS DE ACESSIBILIDADE
   -------------------------------------------------------- */

/* Foco visível para navegação por teclado */
.faces-tab-btn:focus,
.faces-nav-btn:focus,
.face-indicator:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
}

/* Reduz movimento para usuários com preferência */
@media (prefers-reduced-motion: reduce) {
    .face-card-mobile,
    .faces-tab-btn,
    .faces-nav-btn,
    .face-indicator {
        animation: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------
   6. SEÇÃO FACES - AJUSTES GERAIS
   -------------------------------------------------------- */

@media (max-width: 768px) {
    #faces {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    #faces .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #faces .titulo-principal {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    #faces .titulo-principal span {
        display: inline;
    }

    #faces p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Ajusta o padding do container para evitar overflow */
    .max-w-6xl {
        max-width: 100%;
        width: 100%;
    }
}