/**
 * Tema Sebrae para Reveal.js
 * Baseado no design do Workshop "Brasil & Inovacao"
 *
 * Customizacao:
 * - Modifique as variaveis CSS abaixo para ajustar cores, fontes e efeitos
 * - Veja docs/apresentacao/tema-customizacao.md para documentacao completa
 */

/* ==========================================================================
   VARIAVEIS CSS CUSTOMIZAVEIS
   ========================================================================== */

:root {
    /* Gradiente de Fundo */
    --reveal-bg-start: #1a0a2e;        /* Roxo escuro */
    --reveal-bg-mid: #16213e;          /* Azul escuro */
    --reveal-bg-end: #0d4d4d;          /* Teal escuro */

    /* Cores de Destaque */
    --reveal-accent-gold: #d4a853;     /* Dourado/Ambar */
    --reveal-accent-orange: #EF7435;   /* Laranja Sebrae */
    --reveal-accent-teal: #2dd4bf;     /* Teal claro */
    --reveal-accent-blue: #3b82f6;     /* Azul */

    /* Texto */
    --reveal-text-primary: #ffffff;
    --reveal-text-secondary: #e2e8f0;
    --reveal-text-muted: #94a3b8;
    --reveal-text-dark: #1f2937;

    /* Efeitos de Glow */
    --reveal-glow-gold: 0 0 20px rgba(212, 168, 83, 0.5);
    --reveal-glow-teal: 0 0 20px rgba(45, 212, 191, 0.5);
    --reveal-glow-orange: 0 0 20px rgba(239, 116, 53, 0.5);

    /* Quadrantes da Matriz */
    --reveal-quadrant-quick-wins: #22c55e;
    --reveal-quadrant-strategic: #f97316;
    --reveal-quadrant-fill-in: #3b82f6;
    --reveal-quadrant-low-priority: #ef4444;

    /* Tipografia */
    --reveal-font-heading: 'Ubuntu', 'Inter', -apple-system, sans-serif;
    --reveal-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --reveal-font-mono: 'Fira Code', 'Consolas', monospace;

    /* Tamanhos de Fonte */
    --reveal-font-size-h1: 2.5em;
    --reveal-font-size-h2: 1.8em;
    --reveal-font-size-h3: 1.4em;
    --reveal-font-size-body: 1em;
    --reveal-font-size-small: 0.85em;

    /* Espacamento */
    --reveal-spacing-xs: 0.5rem;
    --reveal-spacing-sm: 1rem;
    --reveal-spacing-md: 1.5rem;
    --reveal-spacing-lg: 2rem;
    --reveal-spacing-xl: 3rem;

    /* Animacao */
    --reveal-anim-fast: 0.3s;
    --reveal-anim-normal: 0.6s;
    --reveal-anim-slow: 1.2s;

    /* Cards */
    --reveal-card-bg: rgba(255, 255, 255, 0.05);
    --reveal-card-border: rgba(255, 255, 255, 0.1);
    --reveal-card-hover-bg: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   ESTILOS BASE DO REVEAL.JS
   ========================================================================== */

/* Container principal - aplica o fundo ANTES do Reveal inicializar */
#reveal-container {
    background: linear-gradient(135deg,
        var(--reveal-bg-start) 0%,
        var(--reveal-bg-mid) 50%,
        var(--reveal-bg-end) 100%);
}

/* Fundo do viewport Reveal.js (após inicialização) */
.reveal-viewport {
    background: linear-gradient(135deg,
        var(--reveal-bg-start) 0%,
        var(--reveal-bg-mid) 50%,
        var(--reveal-bg-end) 100%);
}

/* Elemento .reveal - aplica estilos base independente de inicialização */
#reveal-presentation,
.reveal {
    font-family: var(--reveal-font-body);
    font-size: 38px;
    font-weight: normal;
    color: var(--reveal-text-primary);
    background: linear-gradient(135deg,
        var(--reveal-bg-start) 0%,
        var(--reveal-bg-mid) 50%,
        var(--reveal-bg-end) 100%);
    /* NÃO definir width/height aqui - deixar o Reveal.js controlar para escalonamento */
}

/* Container .slides - antes e depois da inicialização */
/* Background transparente para evitar retângulo visível */
/* NÃO forçar width/height para permitir que o Reveal.js aplique transform: scale() */
.slides {
    background: transparent;
    overflow: hidden;
    position: relative;
}

/* IMPORTANTE: Tornar fragmentos visíveis ANTES do Reveal.js inicializar completamente */
/* Reveal.js por padrão esconde .fragment com opacity:0 e visibility:hidden */
/* Quando .reveal.ready existe, o Reveal.js está pronto para gerenciar os fragmentos */
.reveal:not(.ready) .fragment {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Slides section - estilos básicos para antes do Reveal inicializar */
.slides > section {
    padding: var(--reveal-spacing-lg);
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Esconder todos os slides exceto o primeiro antes do Reveal inicializar */
.slides > section:not(:first-child) {
    display: none;
}

/* Quando Reveal inicializa, ele gerencia a visibilidade */
.reveal.ready .slides > section {
    display: flex;
}

.reveal .slides section {
    padding: var(--reveal-spacing-lg);
    /* Forçar background transparente para evitar retângulos visíveis */
    background: transparent !important;
}

/* Override Reveal.js default backgrounds para eliminar retângulos visíveis */
.reveal .slides,
.reveal .slide-content,
.reveal section,
.reveal .slides > section > section {
    background: transparent !important;
    background-image: none !important;
}

/* ==========================================================================
   SISTEMA DE POSICIONAMENTO FIXO PARA SLIDES
   Garante que todos os elementos tenham posição absoluta fixa,
   sem interferência entre eles quando o conteúdo é editado.

   IMPORTANTE: NÃO alterar position das sections - Reveal.js precisa controlar
   o posicionamento delas com position: absolute para empilhar slides.
   ========================================================================== */

/* ===== CLASSES UTILITÁRIAS PARA ELEMENTOS DE SLIDE ===== */

/**
 * .slide-element-fixed: Elemento com posição fixa absoluta
 * Use para qualquer elemento que não deve ser afetado por outros
 * Defina top/bottom/left/right inline ou com classes específicas
 */
.slide-element-fixed {
    position: absolute !important;
    /* Não define posição padrão - deve ser especificada por elemento */
}

/**
 * .slide-bg-element: Elemento de background (imagens, decorações)
 * Posicionado no fundo do slide, não afeta outros elementos
 */
.slide-bg-element {
    position: absolute !important;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/**
 * .slide-content-fixed: Container de conteúdo com posição fixa
 * Centralizado verticalmente, não empurra outros elementos
 */
.slide-content-fixed {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Permite cliques passarem para elementos abaixo */
}

/* Elementos dentro de slide-content-fixed devem receber eventos */
.slide-content-fixed > * {
    pointer-events: auto;
}

/**
 * .slide-footer-fixed: Footer fixo no bottom do slide
 * Sempre na mesma posição independente do conteúdo
 */
.slide-footer-fixed {
    position: absolute !important;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 50;
}

/**
 * .slide-overlay-element: Elemento de overlay entre background e conteúdo
 * Para caminhos, efeitos, decorações que ficam sobre o background
 */
.slide-overlay-element {
    position: absolute !important;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* ===== Z-INDEX HIERARCHY PARA SLIDES ===== */
/* z-index: 1  - Backgrounds (montanhas, imagens de fundo)
   z-index: 5  - Overlays (caminhos, efeitos decorativos)
   z-index: 10 - Conteúdo principal (texto, títulos)
   z-index: 50 - Footers e elementos sempre visíveis
   z-index: 100+ - Modais e elementos flutuantes */

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
    margin: 0 0 var(--reveal-spacing-md) 0;
    font-family: var(--reveal-font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--reveal-text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.reveal h1 {
    font-size: var(--reveal-font-size-h1);
}

.reveal h2 {
    font-size: var(--reveal-font-size-h2);
}

.reveal h3 {
    font-size: var(--reveal-font-size-h3);
}

.reveal p {
    margin: 0 0 var(--reveal-spacing-sm) 0;
    line-height: 1.6;
    color: var(--reveal-text-secondary);
}

/* Texto destacado */
.reveal strong,
.reveal .highlight {
    color: var(--reveal-accent-gold);
    font-weight: 600;
}

.reveal .highlight-orange {
    color: var(--reveal-accent-orange);
}

.reveal .highlight-teal {
    color: var(--reveal-accent-teal);
}

/* Texto com glow */
.reveal .glow {
    text-shadow: var(--reveal-glow-gold);
}

.reveal .glow-teal {
    text-shadow: var(--reveal-glow-teal);
}

/* ==========================================================================
   LINKS E BOTOES
   ========================================================================== */

.reveal a {
    color: var(--reveal-accent-teal);
    text-decoration: none;
    transition: all var(--reveal-anim-fast) ease;
}

.reveal a:hover {
    color: var(--reveal-accent-gold);
    text-decoration: underline;
}

.reveal .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--reveal-spacing-xs);
    padding: var(--reveal-spacing-xs) var(--reveal-spacing-md);
    border-radius: 0.5rem;
    font-size: var(--reveal-font-size-small);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--reveal-anim-fast) ease;
}

.reveal .btn-primary {
    background: var(--reveal-accent-gold);
    color: var(--reveal-bg-start);
}

.reveal .btn-primary:hover {
    background: var(--reveal-accent-orange);
    box-shadow: var(--reveal-glow-orange);
}

.reveal .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--reveal-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reveal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   CARDS E CONTAINERS
   ========================================================================== */

.reveal .card {
    background: var(--reveal-card-bg);
    border: 1px solid var(--reveal-card-border);
    border-radius: 1rem;
    padding: var(--reveal-spacing-md);
    backdrop-filter: blur(10px);
    transition: all var(--reveal-anim-fast) ease;
}

.reveal .card:hover {
    background: var(--reveal-card-hover-bg);
    transform: translateY(-2px);
}

.reveal .card-gold {
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.1);
}

.reveal .card-teal {
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.1);
}

/* Glass morphism */
.reveal .glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

/* ==========================================================================
   LISTAS
   ========================================================================== */

.reveal ul,
.reveal ol {
    display: block;
    text-align: left;
    margin: 0 0 var(--reveal-spacing-sm) 1em;
}

.reveal li {
    margin: var(--reveal-spacing-xs) 0;
    color: var(--reveal-text-secondary);
}

.reveal li::marker {
    color: var(--reveal-accent-gold);
}

/* ==========================================================================
   IMAGENS E LOGOS
   ========================================================================== */

.reveal img,
.reveal video,
.reveal iframe {
    max-width: 100%;
    max-height: 100%;
}

.reveal .logo-container {
    display: flex;
    align-items: center;
    gap: var(--reveal-spacing-md);
    padding: var(--reveal-spacing-sm);
}

.reveal .logo {
    height: 40px;
    width: auto;
    filter: brightness(1.1);
}

/* ==========================================================================
   ELEMENTOS DE DADOS / METRICAS
   ========================================================================== */

.reveal .metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--reveal-spacing-md);
}

.reveal .metric-value {
    font-size: 3em;
    font-weight: 700;
    color: var(--reveal-accent-gold);
    line-height: 1;
}

.reveal .metric-label {
    font-size: var(--reveal-font-size-small);
    color: var(--reveal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--reveal-spacing-xs);
}

/* Funil de dados */
.reveal .funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--reveal-spacing-sm);
}

.reveal .funnel-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--reveal-spacing-sm) var(--reveal-spacing-lg);
    background: linear-gradient(90deg,
        var(--reveal-accent-gold) 0%,
        var(--reveal-accent-orange) 100%);
    border-radius: 0.5rem;
    color: var(--reveal-bg-start);
    font-weight: 600;
    transition: all var(--reveal-anim-fast) ease;
}

.reveal .funnel-stage:nth-child(2) { width: 85%; opacity: 0.9; }
.reveal .funnel-stage:nth-child(3) { width: 70%; opacity: 0.8; }
.reveal .funnel-stage:nth-child(4) { width: 55%; opacity: 0.7; }
.reveal .funnel-stage:nth-child(5) { width: 40%; opacity: 0.6; }

/* Funil Horizontal */
.reveal .funnel-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 2rem 2rem;
    max-width: 88%;
    margin: 0 auto;
}

.reveal .funnel-h-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.1rem;
    min-width: 135px;
    max-width: 155px;
    height: 180px;
    background: linear-gradient(135deg,
        rgba(212, 168, 83, 0.2) 0%,
        rgba(45, 212, 191, 0.15) 100%);
    border: 2px solid var(--reveal-accent-gold);
    border-radius: 1rem;
    transition: all var(--reveal-anim-fast) ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
                0 4px 10px rgba(0, 0, 0, 0.2);
}

.reveal .funnel-h-stage .funnel-h-icon {
    font-size: 1.4em;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.reveal .funnel-h-stage:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg,
        rgba(212, 168, 83, 0.3) 0%,
        rgba(45, 212, 191, 0.25) 100%);
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.3);
}

.reveal .funnel-h-stage.funnel-h-final {
    background: linear-gradient(135deg,
        var(--reveal-accent-gold) 0%,
        var(--reveal-accent-orange) 100%);
    border-color: var(--reveal-accent-orange);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
                0 4px 10px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(249, 115, 22, 0.5),
                0 0 60px rgba(212, 168, 83, 0.3);
    position: relative;
}

.reveal .funnel-h-stage.funnel-h-final::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: radial-gradient(ellipse at center,
        rgba(249, 115, 22, 0.4) 0%,
        rgba(212, 168, 83, 0.2) 40%,
        transparent 70%);
    border-radius: 1.3rem;
    z-index: -1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.reveal .funnel-h-stage.funnel-h-final .funnel-h-value,
.reveal .funnel-h-stage.funnel-h-final .funnel-h-label {
    color: var(--reveal-bg-start);
}

.reveal .funnel-h-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--reveal-accent-gold);
    line-height: 1;
    text-shadow: 0 0 20px rgba(212, 168, 83, 0.5);
}

.reveal .funnel-h-label {
    font-size: 0.52em;
    color: var(--reveal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}

.reveal .funnel-h-connector {
    font-size: 1.5em;
    color: var(--reveal-accent-teal);
    opacity: 0.6;
    padding: 0 0.15rem;
}

.reveal .funnel-h-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reveal .funnel-h-step-header {
    margin-bottom: 0.75rem;
    text-align: center;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.reveal .funnel-h-connector-gradient {
    flex: 0 0 40px;
    height: 3px;
    background: linear-gradient(90deg,
        var(--reveal-accent-gold) 0%,
        var(--reveal-accent-teal) 100%);
    margin-top: 145px;
    align-self: flex-start;
    border-radius: 2px;
}

/* Responsividade do funil horizontal */
@media (max-width: 900px) {
    .reveal .funnel-horizontal {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .reveal .funnel-h-connector,
    .reveal .funnel-h-connector-gradient {
        display: none;
    }

    .reveal .funnel-h-stage {
        min-width: 80px;
        padding: 1rem 0.8rem;
    }

    .reveal .funnel-h-value {
        font-size: 1.8em;
    }
}

/* ==========================================================================
   MATRIZ 2x2
   ========================================================================== */

.reveal .matrix-container {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: auto 1fr 1fr;
    gap: var(--reveal-spacing-xs);
    max-width: 800px;
    margin: 0 auto;
}

.reveal .matrix-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--reveal-font-size-small);
    color: var(--reveal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reveal .matrix-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: var(--reveal-spacing-sm);
    border-radius: 0.75rem;
    min-height: 150px;
    align-content: flex-start;
}

.reveal .matrix-cell.quick-wins {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid var(--reveal-quadrant-quick-wins);
}

.reveal .matrix-cell.strategic {
    background: rgba(249, 115, 22, 0.15);
    border: 2px solid var(--reveal-quadrant-strategic);
}

.reveal .matrix-cell.fill-in {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid var(--reveal-quadrant-fill-in);
}

.reveal .matrix-cell.low-priority {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--reveal-quadrant-low-priority);
}

/* Pontos de falhas na matriz */
.reveal .failure-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--reveal-accent-gold);
    cursor: pointer;
    transition: all var(--reveal-anim-fast) ease;
    position: relative;
}

.reveal .failure-dot:hover {
    transform: scale(1.3);
    box-shadow: var(--reveal-glow-gold);
}

.reveal .failure-dot.prioritized {
    background: var(--reveal-accent-orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 116, 53, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(239, 116, 53, 0); }
}

/* Matrix Dot (Nova versão gráfica) */
.reveal .matrix-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--reveal-accent-gold);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reveal .matrix-dot:hover {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.6);
}

.reveal .matrix-dot.prioritized {
    background: var(--reveal-accent-orange);
    animation: matrixPulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.reveal .matrix-dot.clickable {
    cursor: pointer;
}

.reveal .matrix-dot.clickable:hover {
    transform: scale(1.5);
    box-shadow: 0 0 25px rgba(239, 116, 53, 0.8);
}

@keyframes matrixPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 116, 53, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 116, 53, 0), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Matrix Dot - Non-prioritized (smaller, different color, not clickable) */
.reveal .matrix-dot.non-prioritized {
    width: 16px;
    height: 16px;
    background: rgba(148, 163, 184, 0.7);  /* Gray-blue color */
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: default;
    animation: none;
}

.reveal .matrix-dot.non-prioritized:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.5);
    background: rgba(148, 163, 184, 0.9);
}

/* Matrix Graphic Container */
.reveal .matrix-graphic-container {
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   TIMELINE / ETAPAS
   ========================================================================== */

.reveal .timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--reveal-spacing-sm);
    padding: var(--reveal-spacing-lg) 0;
}

.reveal .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.reveal .timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--reveal-accent-gold), var(--reveal-accent-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--reveal-bg-start);
    margin-bottom: var(--reveal-spacing-sm);
    box-shadow: var(--reveal-glow-gold);
}

.reveal .timeline-connector {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg,
        var(--reveal-accent-gold) 0%,
        var(--reveal-accent-teal) 100%);
    margin-top: 30px;
    min-width: 40px;
}

.reveal .timeline-title {
    font-size: var(--reveal-font-size-small);
    font-weight: 600;
    color: var(--reveal-text-primary);
    margin-bottom: var(--reveal-spacing-xs);
}

.reveal .timeline-desc {
    font-size: 0.7em;
    color: var(--reveal-text-muted);
}

/* ==========================================================================
   GRID DE PROPOSTAS / TEMAS
   ========================================================================== */

.reveal .proposals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--reveal-spacing-md);
    padding: var(--reveal-spacing-md);
}

.reveal .proposal-group {
    background: var(--reveal-card-bg);
    border: 1px solid var(--reveal-card-border);
    border-radius: 1rem;
    padding: var(--reveal-spacing-md);
    cursor: pointer;
    transition: all var(--reveal-anim-fast) ease;
}

.reveal .proposal-group:hover {
    background: var(--reveal-card-hover-bg);
    border-color: var(--reveal-accent-gold);
    transform: translateY(-4px);
}

.reveal .proposal-group-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--reveal-accent-gold);
    margin-bottom: var(--reveal-spacing-xs);
}

.reveal .proposal-group-count {
    font-size: var(--reveal-font-size-small);
    color: var(--reveal-text-muted);
}

/* Cards de propostas individuais */
.reveal .proposal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: var(--reveal-spacing-sm);
    font-size: var(--reveal-font-size-small);
    cursor: pointer;
    transition: all var(--reveal-anim-fast) ease;
}

.reveal .proposal-card:hover {
    background: rgba(212, 168, 83, 0.1);
    border-color: var(--reveal-accent-gold);
}

/* ==========================================================================
   CONTROLES DA APRESENTACAO
   ========================================================================== */

.reveal .controls {
    color: var(--reveal-accent-gold);
}

.reveal .controls button {
    color: var(--reveal-accent-gold);
}

.reveal .progress {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
}

.reveal .progress span {
    background: linear-gradient(90deg,
        var(--reveal-accent-gold),
        var(--reveal-accent-orange));
}

.reveal .slide-number {
    background: rgba(0, 0, 0, 0.4);
    color: var(--reveal-text-secondary);
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Barra de controles customizada */
.presentation-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.presentation-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.presentation-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.presentation-controls button.active {
    background: var(--reveal-accent-gold);
    color: var(--reveal-bg-start);
}

.presentation-controls .divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.presentation-controls select {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
}

/* ==========================================================================
   ANIMACOES
   ========================================================================== */

/* Fade in up */
.reveal .animate-fade-in-up {
    animation: fadeInUp var(--reveal-anim-normal) ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter cursor */
.reveal .typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--reveal-accent-gold);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scale in */
.reveal .animate-scale-in {
    animation: scaleIn var(--reveal-anim-normal) ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Count up (para numeros) - classe para GSAP */
.reveal .count-up {
    display: inline-block;
}

/* ==========================================================================
   SLIDES ESPECIFICOS
   ========================================================================== */

/* Slide do Manifesto - estilos base (antes de Reveal inicializar) */
/* Background removido - herda do container pai para evitar retângulo visível */
section#manifesto {
    text-align: center;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 2rem;
    background: transparent;
}

section#manifesto h1 {
    font-size: 1.8em;
    margin-bottom: 1rem;
    color: var(--reveal-accent-gold);
}

section#manifesto .manifesto-text,
section#manifesto .manifesto-content {
    font-size: 1em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: var(--reveal-text-secondary);
}

section#manifesto p {
    margin-bottom: 1rem;
    color: var(--reveal-text-secondary);
}

section#manifesto .manifesto-line {
    margin-bottom: var(--reveal-spacing-md);
}

/* Quando Reveal está inicializado */
.reveal section#manifesto {
    text-align: center;
}

.reveal section#manifesto h1 {
    font-size: 2em;
    margin-bottom: var(--reveal-spacing-lg);
}

.reveal section#manifesto .manifesto-text {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.reveal section#manifesto .manifesto-line {
    margin-bottom: var(--reveal-spacing-md);
}

/* Slide de Overview de Propostas */
.reveal section#proposals-overview .proposals-grid {
    font-size: 0.6em;
}

/* Slide de Funil */
.reveal section#data-funnel {
    text-align: center;
}

/* Slide de Matriz */
.reveal section#matrix-formation {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   FULLSCREEN MODE
   ========================================================================== */

/* Container principal em fullscreen - apenas posicionamento, NÃO forçar dimensões nos filhos */
#reveal-container:fullscreen,
#reveal-container:-webkit-full-screen,
#reveal-container:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(135deg,
        var(--reveal-bg-start) 0%,
        var(--reveal-bg-mid) 50%,
        var(--reveal-bg-end) 100%);
}

.reveal:-webkit-full-screen,
.reveal:-moz-full-screen,
.reveal:fullscreen {
    background: linear-gradient(135deg,
        var(--reveal-bg-start) 0%,
        var(--reveal-bg-mid) 50%,
        var(--reveal-bg-end) 100%);
}

/* Esconde elementos externos em fullscreen */
.reveal:fullscreen ~ *,
.reveal:-webkit-full-screen ~ *,
.reveal:-moz-full-screen ~ * {
    display: none !important;
}

/* Remover borda/outline do Slide 1 em modo fullscreen */
/* Fix: Quando entra em fullscreen, os elementos podem perder a classe editable-field
   mas manter foco/seleção temporária, causando outline do navegador */
#reveal-container:fullscreen #slide-1-title,
#reveal-container:fullscreen #slide-1-paragraph,
#reveal-container:-webkit-full-screen #slide-1-title,
#reveal-container:-webkit-full-screen #slide-1-paragraph,
#reveal-container:-moz-full-screen #slide-1-title,
#reveal-container:-moz-full-screen #slide-1-paragraph {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Também remover outline em estado de foco dentro de fullscreen */
#reveal-container:fullscreen #slide-1-title:focus,
#reveal-container:fullscreen #slide-1-paragraph:focus,
#reveal-container:-webkit-full-screen #slide-1-title:focus,
#reveal-container:-webkit-full-screen #slide-1-paragraph:focus,
#reveal-container:-moz-full-screen #slide-1-title:focus,
#reveal-container:-moz-full-screen #slide-1-paragraph:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remover estilo de seleção em fullscreen para elementos do slide 1 */
#reveal-container:fullscreen #slide-1-title::selection,
#reveal-container:fullscreen #slide-1-paragraph::selection,
#reveal-container:-webkit-full-screen #slide-1-title::selection,
#reveal-container:-webkit-full-screen #slide-1-paragraph::selection {
    background: transparent !important;
}

/* NÃO forçar dimensões nos .slides ou sections - deixar o Reveal.js controlar o escalonamento */

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media screen and (max-width: 1200px) {
    .reveal {
        font-size: 32px;
    }

    .reveal .proposals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .reveal {
        font-size: 24px;
    }

    .reveal .proposals-grid {
        grid-template-columns: 1fr;
    }

    .reveal .timeline {
        flex-direction: column;
    }

    .reveal .timeline-connector {
        width: 3px;
        height: 40px;
        margin: 0;
    }
}

/* ==========================================================================
   LOGOS FOOTER (Sebrae, ABGI, 10K Digital)
   ========================================================================== */

/* Estilos que funcionam mesmo antes do Reveal inicializar */
.logos-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none; /* Permite clicar em elementos por baixo se necessário */
}

.logos-footer .realizacao,
.logos-footer .apoio {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.logos-footer .apoio {
    gap: 20px;
}

.logos-footer .logo-label {
    color: var(--reveal-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logos-footer img,
.logos-footer .logo {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    opacity: 0.9;
}

/* Estilos específicos quando dentro do Reveal inicializado */
.reveal .logos-footer {
    font-size: 0.5em;
    /* Posição fixa no slide do Reveal.js */
    position: absolute !important;
    bottom: 30px !important;
    left: 0 !important;
    right: 0 !important;
}

.reveal .logos-footer .logo-label {
    font-size: 0.8em;
}

.reveal .logos-footer img {
    height: 30px;
    width: auto;
    opacity: 0.9;
}

/* Esconder logos-footer individuais dentro dos slides (usar o global) */
.reveal .slides .logos-footer {
    display: none !important;
}

/* Container .reveal precisa ter position relative para o footer global */
.reveal {
    position: relative !important;
}

/* Estilos para o logos-footer-global (fora do .slides) */
.reveal .logos-footer-global {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 40px !important;
    font-size: 14px !important;
    pointer-events: none;
}

.reveal .logos-footer-global .realizacao,
.reveal .logos-footer-global .apoio {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.reveal .logos-footer-global .apoio {
    gap: 20px;
}

.reveal .logos-footer-global .logo-label {
    color: rgba(148, 163, 184, 0.8);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.reveal .logos-footer-global img {
    height: 30px;
    width: auto;
    opacity: 0.9;
}

/* Garantir que slides têm espaço para o footer */
.reveal .slides section {
    padding-bottom: 80px !important;
    /* Forçar slides a ocuparem toda a altura disponível */
    min-height: 100% !important;
    box-sizing: border-box;
}

/* ========================================
   BOTÃO DE EDIÇÃO DE SLIDES
   ======================================== */

.slide-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(212, 168, 83, 0.9);
    color: #1a0a2e;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-edit-btn:hover {
    background: rgba(212, 168, 83, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slide-edit-btn:active {
    transform: translateY(0);
}

.slide-edit-btn svg {
    width: 14px;
    height: 14px;
}

/* Posição do botão dentro do Reveal */
.reveal section .slide-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ========================================
   EDIÇÃO INLINE NOS SLIDES
   ======================================== */

/* Campos editáveis - estado normal */
.reveal .editable-field {
    cursor: text;
    position: relative;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Indicador visual de que o campo é editável (apenas em modo escrita) */
.reveal .editable-field::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    border-bottom: 2px dashed rgba(212, 168, 83, 0.3);
    transition: all 0.2s ease;
}

.reveal .editable-field:hover::after {
    border-bottom-color: rgba(212, 168, 83, 0.6);
}

/* Remover outline padrão do navegador em elementos editáveis */
.reveal .editable-field {
    outline: none !important;
}

.reveal .editable-field:focus {
    outline: none !important;
}

.reveal [contenteditable]:focus {
    outline: none !important;
}

/* Campo em edição - NÃO usar padding para evitar shift de posição */
.reveal .editable-field.editing {
    outline: 2px solid var(--reveal-accent-gold) !important;
    outline-offset: 4px;
    background: rgba(212, 168, 83, 0.1);
    /* padding removido para evitar mudança de posição durante edição */
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
    /* Cursor visível durante edição */
    caret-color: #d4a853 !important;
}

/* Garantir cursor visível em elementos contenteditable */
.reveal [contenteditable="true"] {
    caret-color: #d4a853 !important;
    cursor: text !important;
}

/* Força cursor visível quando está editando */
.reveal .editable-field.editing:focus {
    caret-color: #d4a853 !important;
    outline: 2px solid var(--reveal-accent-gold) !important;
}

.reveal .editable-field.editing::after {
    display: none;
}

/* Dica de edição que aparece no hover */
.reveal .editable-field:not(.editing):hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Placeholder quando campo está vazio */
.reveal .editable-field:empty::before {
    content: 'Clique duas vezes para editar...';
    color: rgba(148, 163, 184, 0.5);
    font-style: italic;
}

/* Estilos específicos para campos de título */
.reveal h1.editable-field,
.reveal h2.editable-field {
    display: inline-block;
}

/* Remove seleção de texto padrão durante edição para visual mais limpo */
.reveal .editable-field.editing::selection {
    background: rgba(212, 168, 83, 0.3);
}

/* Tooltip de instrução */
.reveal .editable-field:not(.editing):hover::before {
    content: 'Duplo clique para editar';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.5em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.reveal .editable-field:not(.editing):hover:hover::before {
    opacity: 1;
}

/* ========================================
   SLIDE EDITOR TOOLBAR
   ======================================== */

.slide-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(212, 168, 83, 0.3);
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
}

.slide-editor-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.slide-editor-toolbar .toolbar-separator {
    width: 1px;
    height: 24px;
    background: rgba(148, 163, 184, 0.3);
    margin: 0 8px;
}

.slide-editor-toolbar .toolbar-spacer {
    flex: 1;
}

.slide-editor-toolbar .toolbar-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slide-editor-toolbar .toolbar-btn:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: rgba(212, 168, 83, 0.5);
}

.slide-editor-toolbar .toolbar-btn:active {
    background: rgba(212, 168, 83, 0.3);
}

.slide-editor-toolbar .toolbar-btn svg {
    width: 16px;
    height: 16px;
}

/* Botão Edite com IA - Estilo especial com gradiente */
.slide-editor-toolbar .toolbar-btn-ai {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.slide-editor-toolbar .toolbar-btn-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.slide-editor-toolbar .toolbar-btn-ai:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5) 0%, rgba(59, 130, 246, 0.5) 100%);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.slide-editor-toolbar .toolbar-btn-ai span {
    font-weight: 600;
    background: linear-gradient(135deg, #c4b5fd 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-editor-toolbar .toolbar-select {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 12px;
    cursor: pointer;
    min-width: 100px;
}

.slide-editor-toolbar .toolbar-select:hover {
    border-color: rgba(212, 168, 83, 0.5);
}

.slide-editor-toolbar .toolbar-select:focus {
    outline: none;
    border-color: #d4a853;
}

.slide-editor-toolbar .toolbar-select option {
    background: #1e293b;
    color: #e2e8f0;
}

.slide-editor-toolbar .toolbar-hint {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* Color Picker */
.slide-editor-toolbar .color-picker-wrapper {
    position: relative;
}

.slide-editor-toolbar .color-btn .color-indicator {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slide-editor-toolbar .color-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    padding: 12px;
    background: #1e293b;
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
    max-height: 400px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Grid de cores predefinidas */
.slide-editor-toolbar .color-picker-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 28px) !important;
    gap: 4px;
    max-height: 200px;
    min-height: 100px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.slide-editor-toolbar .color-picker-grid::-webkit-scrollbar {
    width: 4px;
}

.slide-editor-toolbar .color-picker-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.slide-editor-toolbar .color-picker-grid::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.5);
    border-radius: 2px;
}

.slide-editor-toolbar .color-option {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    display: block;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-shrink: 0;
}

.slide-editor-toolbar .color-option:hover {
    border-color: #fff;
    transform: scale(1.15);
    z-index: 1;
}

/* Seção de cor personalizada */
.slide-editor-toolbar .color-picker-custom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 10px;
}

.slide-editor-toolbar .color-picker-custom label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
}

.slide-editor-toolbar .custom-color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slide-editor-toolbar .custom-color-native {
    width: 36px;
    height: 32px;
    padding: 2px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.slide-editor-toolbar .custom-color-native::-webkit-color-swatch-wrapper {
    padding: 0;
}

.slide-editor-toolbar .custom-color-native::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

.slide-editor-toolbar .custom-color-hex {
    flex: 1;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 12px;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    transition: border-color 0.2s ease;
}

.slide-editor-toolbar .custom-color-hex::placeholder {
    color: #64748b;
    text-transform: none;
}

.slide-editor-toolbar .custom-color-hex:focus {
    outline: none;
    border-color: rgba(212, 168, 83, 0.5);
}

.slide-editor-toolbar .btn-apply-custom-color {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(212, 168, 83, 0.2);
    border: 1px solid rgba(212, 168, 83, 0.4);
    border-radius: 4px;
    color: #d4a853;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slide-editor-toolbar .btn-apply-custom-color:hover {
    background: rgba(212, 168, 83, 0.3);
    border-color: #d4a853;
}

/* ========================================
   ELEMENTOS EDITÁVEIS DO SLIDE
   ======================================== */

.slide-editable-element {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slide-editable-element:hover {
    outline: 1px dashed rgba(212, 168, 83, 0.5);
    outline-offset: 2px;
}

.slide-editable-element.selected {
    outline: 2px solid #d4a853 !important;
    outline-offset: 4px;
}

/* Elementos existentes selecionados para edição */
.slide-element-selected {
    outline: 2px solid #d4a853 !important;
    outline-offset: 4px;
    background: rgba(212, 168, 83, 0.1) !important;
    cursor: text !important;
    border-radius: 4px;
}

/* Indicador visual de elementos editáveis em modo escrita */
#reveal-container.editor-active .reveal section h1,
#reveal-container.editor-active .reveal section h2,
#reveal-container.editor-active .reveal section h3,
#reveal-container.editor-active .reveal section p,
#reveal-container.editor-active .reveal section .metric-value,
#reveal-container.editor-active .reveal section .metric-label {
    cursor: pointer;
    transition: outline 0.2s ease, background 0.2s ease;
}

#reveal-container.editor-active .reveal section h1:hover,
#reveal-container.editor-active .reveal section h2:hover,
#reveal-container.editor-active .reveal section h3:hover,
#reveal-container.editor-active .reveal section p:hover,
#reveal-container.editor-active .reveal section .metric-value:hover,
#reveal-container.editor-active .reveal section .metric-label:hover {
    outline: 1px dashed rgba(212, 168, 83, 0.5);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.03);
}

/* IMPORTANTE: Habilitar pointer-events em elementos editáveis quando o editor está ativo */
/* Isso sobrescreve regras de pointer-events: none em elementos de template como a montanha */
#reveal-container.editor-active .slide-editable-element,
#reveal-container.editor-active #slide-1-mountain,
#reveal-container.editor-active .slide-1-mountain-wrapper {
    pointer-events: auto !important;
    cursor: pointer;
}

#reveal-container.editor-active .slide-editable-element:hover,
#reveal-container.editor-active #slide-1-mountain:hover {
    outline: 1px dashed rgba(212, 168, 83, 0.5);
    outline-offset: 2px;
}

.slide-editable-element.dragging {
    opacity: 0.8;
    cursor: grabbing !important;
}

.slide-text-box {
    min-width: 100px;
    min-height: 30px;
}

.slide-text-box:focus {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.slide-image-box {
    display: inline-block;
}

.slide-image-box.selected {
    border: 2px solid #d4a853 !important;
    outline: 2px solid #d4a853 !important;
    outline-offset: 2px;
}

.slide-image-box img {
    pointer-events: none;
}

/* Seleção genérica para qualquer elemento editável (incluindo h1, h2, p, img sem classe) */
.reveal section .selected,
.reveal section [data-element-id].selected,
.reveal section h1.selected,
.reveal section h2.selected,
.reveal section h3.selected,
.reveal section p.selected,
.reveal section img.selected {
    outline: 2px solid #d4a853 !important;
    outline-offset: 4px;
}

/* ========================================
   IMAGEM DE FUNDO DO SLIDE
   ======================================== */

/* Container da imagem de fundo */
.slide-background-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    cursor: default !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

.slide-background-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    border-radius: 0 !important;
}

/* Garantir que elementos de conteúdo fiquem acima da imagem de fundo */
.reveal section h1,
.reveal section h2,
.reveal section h3,
.reveal section h4,
.reveal section p,
.reveal section ul,
.reveal section ol,
.reveal section .manifesto-text,
.reveal section .stat-card,
.reveal section .timeline-item,
.reveal section .slide-editable-element:not(.slide-background-image) {
    position: relative;
    z-index: 10;
}

/* Overlay escuro sobre imagem de fundo (opcional, pode ser customizado) */
.slide-background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

/* ========================================
   RESIZE HANDLES - Redimensionamento
   ======================================== */

/* Handles base */
.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #d4a853;
    border: 2px solid #fff;
    border-radius: 2px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease, background 0.1s ease;
}

.resize-handle:hover {
    background: #EF7435;
    transform: scale(1.2);
}

/* Posições dos handles - posicionados dentro do elemento para evitar overflow:hidden do .slides */
.resize-handle-nw {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    cursor: nwse-resize;
}

.resize-handle-nw:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.resize-handle-n {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: ns-resize;
}

.resize-handle-n:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.resize-handle-ne {
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    cursor: nesw-resize;
}

.resize-handle-ne:hover {
    transform: translate(50%, -50%) scale(1.2);
}

.resize-handle-e {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    cursor: ew-resize;
}

.resize-handle-e:hover {
    transform: translate(50%, -50%) scale(1.2);
}

.resize-handle-se {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
    cursor: nwse-resize;
}

.resize-handle-se:hover {
    transform: translate(50%, 50%) scale(1.2);
}

.resize-handle-s {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    cursor: ns-resize;
}

.resize-handle-s:hover {
    transform: translate(-50%, 50%) scale(1.2);
}

.resize-handle-sw {
    bottom: 0;
    left: 0;
    transform: translate(-50%, 50%);
    cursor: nesw-resize;
}

.resize-handle-sw:hover {
    transform: translate(-50%, 50%) scale(1.2);
}

.resize-handle-w {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
}

.resize-handle-w:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Elemento durante redimensionamento */
.slide-editable-element.resizing {
    opacity: 0.9;
    outline: 2px dashed #EF7435 !important;
}

.slide-editable-element.resizing .resize-handle {
    background: #EF7435;
}

/* Classe para elementos arrastáveis */
.slide-editable-element.draggable {
    cursor: move;
}

.slide-editable-element.draggable:active {
    cursor: grabbing;
}

/* Container em modo de edição */
/* NOTA: Não usar overflow: visible pois quebra o layout do Reveal.js */
/* NOTA: Não usar position: relative nas sections pois interfere com posicionamento do Reveal.js */

/* ========================================
   PAINEL DE ANIMAÇÕES
   ======================================== */

.animations-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-left: 1px solid rgba(212, 168, 83, 0.3);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    font-family: var(--reveal-font-body);
}

.animations-panel.open {
    right: 0;
}

.animations-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(212, 168, 83, 0.1);
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.animations-panel-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4a853;
}

.animations-panel-header h3 svg {
    width: 20px;
    height: 20px;
}

.animations-panel-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.animations-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.animations-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Info do elemento selecionado */
.animations-element-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(212, 168, 83, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
}

.element-label {
    color: #94a3b8;
    font-size: 0.85rem;
}

.element-name {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Container da lista de animações */
.animations-list-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.animations-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.animations-list-header span {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-add-animation {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(212, 168, 83, 0.2);
    border: 1px solid rgba(212, 168, 83, 0.4);
    border-radius: 6px;
    color: #d4a853;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-animation:hover {
    background: rgba(212, 168, 83, 0.3);
    border-color: #d4a853;
}

.btn-add-animation svg {
    width: 14px;
    height: 14px;
}

/* Lista de animações */
.animations-list {
    max-height: 300px;
    overflow-y: auto;
}

.animations-empty {
    padding: 24px;
    text-align: center;
    color: #64748b;
}

.animations-empty p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.animations-empty .text-muted {
    font-size: 0.8rem;
    color: #475569;
}

/* Item de animação */
.animation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: grab;
}

.animation-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.animation-item.selected {
    background: rgba(212, 168, 83, 0.15);
    border-left: 3px solid #d4a853;
}

.animation-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.animation-item.drag-over-top {
    border-top: 2px solid #d4a853;
}

.animation-item.drag-over-bottom {
    border-bottom: 2px solid #d4a853;
}

.animation-item-order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(212, 168, 83, 0.2);
    border-radius: 4px;
    color: #d4a853;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.animation-item-info {
    flex: 1;
    min-width: 0;
}

.animation-item-name {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.animation-item-element {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.animation-item-trigger {
    display: flex;
    align-items: center;
}

.trigger-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.trigger-on-click {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.trigger-with-previous {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.trigger-after-previous {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.animation-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

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

.btn-icon.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Formulário de animação */
.animation-form {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.animation-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(212, 168, 83, 0.1);
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.animation-form-header span {
    color: #d4a853;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-cancel-animation {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.btn-cancel-animation:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.animation-form-body {
    padding: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-select,
.form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: rgba(212, 168, 83, 0.5);
}

.form-select option {
    background: #1e293b;
    color: #e2e8f0;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.75rem;
}

.animation-form-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-preview-animation,
.btn-save-animation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-preview-animation {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.btn-preview-animation:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-save-animation {
    background: rgba(212, 168, 83, 0.2);
    border: 1px solid rgba(212, 168, 83, 0.4);
    color: #d4a853;
}

.btn-save-animation:hover {
    background: rgba(212, 168, 83, 0.3);
    border-color: #d4a853;
}

.btn-preview-animation svg,
.btn-save-animation svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   ANIMAÇÕES CUSTOMIZADAS
   ======================================== */

/* Fragment base com duração customizável */
.reveal .fragment {
    transition-duration: var(--fragment-duration, 0.6s);
    transition-delay: var(--fragment-delay, 0s);
}

/* Animação: Deslizar da esquerda */
.reveal .fragment.custom-slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
}

.reveal .fragment.custom-slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animação: Deslizar da direita */
.reveal .fragment.custom-slide-in-right {
    opacity: 0;
    transform: translateX(100px);
}

.reveal .fragment.custom-slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animação: Quicar */
.reveal .fragment.custom-bounce {
    opacity: 0;
    transform: scale(0.3);
}

.reveal .fragment.custom-bounce.visible {
    opacity: 1;
    transform: scale(1);
    animation: bounceIn var(--fragment-duration, 0.6s) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animação: Rotacionar */
.reveal .fragment.custom-rotate {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

.reveal .fragment.custom-rotate.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Animação: Virar */
.reveal .fragment.custom-flip {
    opacity: 0;
    transform: perspective(400px) rotateY(-90deg);
}

.reveal .fragment.custom-flip.visible {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
}

/* Zoom In melhorado */
.reveal .fragment.zoom-in {
    opacity: 0;
    transform: scale(0);
}

.reveal .fragment.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   PAINEL DE MINIATURAS DOS SLIDES
   ======================================== */

.slide-thumbnails-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(212, 168, 83, 0.2);
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 168, 83, 0.5) transparent;
    flex-shrink: 0;
    min-height: 92px;
}

.slide-thumbnails-panel::-webkit-scrollbar {
    height: 6px;
}

.slide-thumbnails-panel::-webkit-scrollbar-track {
    background: transparent;
}

.slide-thumbnails-panel::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.5);
    border-radius: 3px;
}

.slide-thumbnails-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.7);
}

/* Container para miniatura + transição */
.thumbnail-item-container {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Miniatura do slide */
.slide-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0d4d4d 100%);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.slide-thumbnail:hover {
    border-color: rgba(212, 168, 83, 0.6);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-thumbnail.active {
    border-color: #d4a853;
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-thumbnail.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #d4a853;
    border-radius: 4px;
    pointer-events: none;
}

/* Drag and Drop - Estados de arrastar */
.slide-thumbnail.dragging {
    opacity: 0.5;
    cursor: grabbing !important;
    transform: scale(0.95);
}

.slide-thumbnail.drag-over {
    transform: scale(1.08);
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4), 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Indicador visual de posição - Inserir antes */
.slide-thumbnail.drag-above {
    box-shadow: -4px 0 0 0 #10b981, 0 0 0 3px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Indicador visual de posição - Inserir depois */
.slide-thumbnail.drag-below {
    box-shadow: 4px 0 0 0 #10b981, 0 0 0 3px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Conteúdo da miniatura */
.slide-thumbnail-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px;
    text-align: center;
}

.slide-thumbnail-number {
    font-size: 9px;
    font-weight: 600;
    color: rgba(212, 168, 83, 0.8);
    margin-bottom: 2px;
}

.slide-thumbnail-title {
    font-size: 8px;
    color: #e2e8f0;
    line-height: 1.2;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Sub-slides (verticais) */
.slide-thumbnail.has-subslides {
    position: relative;
}

.slide-thumbnail.has-subslides::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: rgba(45, 212, 191, 0.6);
    border-radius: 2px;
}

.slide-thumbnail-subslide-indicator {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 7px;
    color: #2dd4bf;
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 4px;
    border-radius: 2px;
}

/* ========================================
   CONTROLE DE TRANSIÇÃO ENTRE SLIDES
   ======================================== */

/* Container da transição entre miniaturas */
.transition-control-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 68px;
    position: relative;
    flex-shrink: 0;
}

/* Área clicável para adicionar transição (aparece no hover) */
.transition-add-zone {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.thumbnail-item-container:hover .transition-add-zone {
    opacity: 1;
}

.transition-add-zone:hover {
    opacity: 1;
}

/* Ícone de adicionar transição */
.transition-add-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.2);
    border: 2px dashed rgba(45, 212, 191, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4bf;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.transition-add-zone:hover .transition-add-icon {
    background: rgba(45, 212, 191, 0.3);
    border-color: #2dd4bf;
    transform: scale(1.1);
}

/* Transição existente */
.transition-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212, 168, 83, 0.2);
    border: 2px solid rgba(212, 168, 83, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.transition-indicator:hover {
    background: rgba(212, 168, 83, 0.3);
    border-color: #d4a853;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.4);
}

.transition-indicator svg {
    width: 14px;
    height: 14px;
    color: #d4a853;
}

/* Tipos de transição - ícones */
.transition-indicator.fade svg { opacity: 0.7; }
.transition-indicator.slide svg { transform: translateX(2px); }
.transition-indicator.zoom svg { transform: scale(0.9); }
.transition-indicator.convex svg { transform: perspective(100px) rotateY(5deg); }
.transition-indicator.concave svg { transform: perspective(100px) rotateY(-5deg); }

/* Tooltip de transição */
.transition-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 6px;
    font-size: 11px;
    color: #e2e8f0;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.transition-indicator:hover .transition-tooltip {
    opacity: 1;
}

/* ========================================
   MODAL DE EDIÇÃO DE TRANSIÇÃO
   ======================================== */

.transition-edit-dropdown {
    position: fixed;
    padding: 8px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    min-width: 140px;
}

.transition-edit-dropdown::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(212, 168, 83, 0.3);
}

.transition-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e2e8f0;
    font-size: 12px;
}

.transition-option:hover {
    background: rgba(212, 168, 83, 0.15);
}

.transition-option.active {
    background: rgba(212, 168, 83, 0.2);
    color: #d4a853;
}

.transition-option svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.transition-option.delete {
    color: #ef4444;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 4px;
    padding-top: 12px;
}

.transition-option.delete:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Animação de preview da transição */
@keyframes previewFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes previewSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes previewZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.85); }
}

.transition-option:hover svg {
    animation: previewFade 1s ease infinite;
}

.transition-option[data-transition="slide"]:hover svg {
    animation: previewSlide 1s ease infinite;
}

.transition-option[data-transition="zoom"]:hover svg {
    animation: previewZoom 1s ease infinite;
}

/* ==========================================================================
   SAVE INDICATOR E UNDO/REDO
   ========================================================================== */

/* Indicador de status do auto-save */
.slide-save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-save-indicator.saving {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.slide-save-indicator.saved {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.slide-save-indicator.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* Spinner de salvando */
.saving-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

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

/* Check de salvo */
.save-check {
    font-size: 16px;
    font-weight: bold;
}

/* X de erro */
.save-error {
    font-size: 16px;
    font-weight: bold;
}

/* Botões de undo/redo desabilitados */
.slide-editor-toolbar .toolbar-btn.disabled,
.slide-editor-toolbar .toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.slide-editor-toolbar .toolbar-btn.disabled:hover,
.slide-editor-toolbar .toolbar-btn:disabled:hover {
    background: transparent;
    transform: none;
}

/* ========================================
   PAINEL DE ANIMAÇÕES (Português)
   ======================================== */

.animacoes-painel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border-left: 1px solid rgba(212, 168, 83, 0.3);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.animacoes-painel.open {
    right: 0;
}

.animacoes-painel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.animacoes-painel-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #d4a853;
}

.animacoes-painel-header h3 svg {
    width: 20px;
    height: 20px;
}

.animacoes-painel-fechar {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.animacoes-painel-fechar:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.animacoes-painel-corpo {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.animacoes-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.animacoes-vazio {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
    font-size: 13px;
}

.animacao-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.animacao-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 168, 83, 0.3);
}

.animacao-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.animacao-ordem {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.2);
    color: #d4a853;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.animacao-detalhes {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.animacao-nome {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 500;
}

.animacao-gatilho {
    color: #64748b;
    font-size: 11px;
}

.animacao-item-acoes {
    display: flex;
    gap: 4px;
}

.animacao-item-acoes button {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.animacao-item-acoes button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.animacao-item-acoes button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.animacao-item-acoes .btn-excluir:hover {
    color: #ef4444;
}

.btn-adicionar-animacao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px dashed rgba(212, 168, 83, 0.4);
    border-radius: 8px;
    color: #d4a853;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-adicionar-animacao:hover {
    background: rgba(212, 168, 83, 0.2);
    border-color: #d4a853;
}

.animacao-formulario {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.animacao-formulario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.animacao-formulario-header span {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 500;
}

.btn-cancelar-animacao {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.btn-cancelar-animacao:hover {
    color: #f8fafc;
}

.animacao-formulario-corpo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-grupo label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.form-grupo .form-select {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #f8fafc;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-grupo .form-select:hover {
    border-color: rgba(212, 168, 83, 0.4);
}

.form-grupo .form-select:focus {
    outline: none;
    border-color: #d4a853;
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.2);
}

.form-grupo .form-select option {
    background: #1a1a2e;
    color: #f8fafc;
}

.form-ajuda {
    color: #64748b;
    font-size: 11px;
    font-style: italic;
}

.animacao-formulario-acoes {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.animacao-formulario-acoes button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.animacao-formulario-acoes .btn-preview {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
}

.animacao-formulario-acoes .btn-preview:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.animacao-formulario-acoes .btn-salvar {
    background: rgba(212, 168, 83, 0.2);
    border-color: rgba(212, 168, 83, 0.4);
    color: #d4a853;
}

.animacao-formulario-acoes .btn-salvar:hover {
    background: rgba(212, 168, 83, 0.3);
    border-color: #d4a853;
}

/* ========================================
   BACKDROP DO PAINEL DE ANIMAÇÕES
   ======================================== */

.animacoes-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.animacoes-backdrop.open {
    opacity: 1;
}

/* ==========================================================================
   SLIDE 1 - ELEMENTOS DECORATIVOS SVG ANIMADOS
   ========================================================================== */

/* Container do fundo animado - escondido (usa o fundo nativo do Reveal.js) */
.slide-1-animated-bg {
    display: none;
}

/* Container dos elementos SVG decorativos */
.slide-1-svg-decorations {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 960px;
    min-height: 700px;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

/* Estilos base para SVGs decorativos - versão compacta e sutil */
.svg-decoration {
    position: absolute;
    opacity: 0.18;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
}

/* Circuito / Conexões - Canto superior esquerdo */
.svg-circuit {
    top: 2%;
    left: 1%;
    width: 120px;
    height: 120px;
    color: var(--reveal-accent-teal);
    animation: floatCircuit 30s ease-in-out infinite;
}

@keyframes floatCircuit {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translate(4px, 5px) rotate(2deg);
        opacity: 0.22;
    }
    50% {
        transform: translate(2px, 8px) rotate(-1deg);
        opacity: 0.18;
    }
    75% {
        transform: translate(-2px, 4px) rotate(1deg);
        opacity: 0.25;
    }
}

/* Lâmpada / Ideia - Canto superior direito */
.svg-lightbulb {
    top: 3%;
    right: 2%;
    width: 100px;
    height: 100px;
    color: var(--reveal-accent-gold);
    animation: pulseGlow 10s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.16;
        filter: drop-shadow(0 0 4px rgba(212, 168, 83, 0.2));
    }
    50% {
        transform: scale(1.03);
        opacity: 0.28;
        filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.3));
    }
}

/* Engrenagens - Canto inferior esquerdo */
.svg-gears {
    bottom: -2%;
    left: 0%;
    width: 200px;
    height: 200px;
    color: var(--reveal-accent-blue);
    animation: rotateGears 35s linear infinite;
}

@keyframes rotateGears {
    0% {
        transform: rotate(0deg);
        opacity: 0.30;
    }
    50% {
        opacity: 0.45;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.30;
    }
}

/* Engrenagem interna (rotação inversa) */
.svg-gears .gear-inner {
    transform-origin: center;
    animation: rotateGearsReverse 20s linear infinite;
}

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

/* Rede Neural / Conexões - Canto inferior direito */
.svg-network {
    bottom: 2%;
    right: 1%;
    width: 130px;
    height: 130px;
    color: var(--reveal-accent-teal);
    animation: networkPulse 18s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.15;
    }
    33% {
        transform: scale(1.01) translate(-2px, 2px);
        opacity: 0.22;
    }
    66% {
        transform: scale(0.99) translate(2px, -2px);
        opacity: 0.18;
    }
}

/* Nós da rede pulsando - mais sutil */
.svg-network .node {
    animation: nodePulse 4s ease-in-out infinite;
}

.svg-network .node:nth-child(2) { animation-delay: 0.5s; }
.svg-network .node:nth-child(3) { animation-delay: 1s; }
.svg-network .node:nth-child(4) { animation-delay: 1.5s; }
.svg-network .node:nth-child(5) { animation-delay: 2s; }

@keyframes nodePulse {
    0%, 100% {
        r: 3;
        opacity: 0.4;
    }
    50% {
        r: 5;
        opacity: 0.6;
    }
}

/* DNA / Hélice - Centro esquerdo */
.svg-dna {
    top: 50%;
    left: 1%;
    width: 60px;
    height: 150px;
    color: var(--reveal-accent-orange);
    transform: translateY(-50%);
    animation: dnaFloat 25s ease-in-out infinite;
}

@keyframes dnaFloat {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
        opacity: 0.14;
    }
    50% {
        transform: translateY(-49%) rotate(4deg);
        opacity: 0.22;
    }
}

/* Átomo - Centro direito */
.svg-atom {
    top: 48%;
    right: 1%;
    width: 110px;
    height: 110px;
    color: var(--reveal-accent-gold);
    animation: atomSpin 40s linear infinite;
}

@keyframes atomSpin {
    0% {
        transform: rotate(0deg);
        opacity: 0.16;
    }
    50% {
        opacity: 0.24;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.16;
    }
}

.svg-atom .orbit {
    transform-origin: center;
}

.svg-atom .orbit-1 {
    animation: orbitSpin1 10s linear infinite;
}

.svg-atom .orbit-2 {
    animation: orbitSpin2 14s linear infinite reverse;
}

.svg-atom .orbit-3 {
    animation: orbitSpin3 12s linear infinite;
}

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

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

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

/* Partículas flutuantes de fundo - versão sutil */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat 22s ease-in-out infinite;
}

/* 4 partículas - posições distribuídas pelo slide */
.particle:nth-child(1) { top: 12%; left: 35%; animation-delay: 0s; animation-duration: 24s; }
.particle:nth-child(2) { top: 75%; left: 65%; animation-delay: 3s; animation-duration: 22s; }
.particle:nth-child(3) { top: 80%; left: 35%; animation-delay: 6s; animation-duration: 26s; }
.particle:nth-child(4) { top: 18%; left: 62%; animation-delay: 9s; animation-duration: 23s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translate(15px, -12px) scale(1.3);
        opacity: 0.45;
    }
    50% {
        transform: translate(-12px, -20px) scale(1.1);
        opacity: 0.35;
    }
    75% {
        transform: translate(8px, -6px) scale(1.2);
        opacity: 0.40;
    }
}

/* Conteúdo do slide 1 sobre o fundo */
/* CORRIGIDO: position absolute para não interferir na posição de elementos de background */
#manifesto .manifesto-content {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Elementos dentro de manifesto-content devem receber eventos de clique */
#manifesto .manifesto-content > * {
    pointer-events: auto;
}

/* Regra genérica para conteúdo de slides que não deve interferir em backgrounds */
/* Use a classe .manifesto-content em qualquer slide que precise de posicionamento fixo */
.manifesto-content {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   SLIDE 1 - INTERATIVIDADE COM MOUSE
   ========================================================================== */

/* Habilitar pointer-events para interação */
.slide-1-svg-decorations.interactive {
    pointer-events: auto;
}

/* Transição suave para todos os SVGs quando interativos */
.slide-1-svg-decorations.interactive .svg-decoration {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease,
                filter 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

/* Efeito hover nos SVGs - escala e brilho mais sutil */
.slide-1-svg-decorations.interactive .svg-decoration:hover {
    opacity: 0.55 !important;
    filter: drop-shadow(0 0 12px currentColor);
}

/* Estados específicos para cada SVG no hover */
.slide-1-svg-decorations.interactive .svg-circuit:hover {
    transform: translate(6px, 8px) rotate(4deg) scale(1.08) !important;
}

.slide-1-svg-decorations.interactive .svg-lightbulb:hover {
    transform: scale(1.12) !important;
    filter: drop-shadow(0 0 18px rgba(212, 168, 83, 0.6)) !important;
}

.slide-1-svg-decorations.interactive .svg-network:hover {
    transform: scale(1.08) translate(-4px, 4px) !important;
}

.slide-1-svg-decorations.interactive .svg-dna:hover {
    transform: translateY(-50%) rotate(8deg) scale(1.1) !important;
}

.slide-1-svg-decorations.interactive .svg-atom:hover {
    animation-play-state: paused;
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.5)) !important;
}

/* Partículas reagem ao mouse */
.slide-1-svg-decorations.interactive .particle {
    transition: transform 0.5s ease-out, opacity 0.3s ease;
    pointer-events: none;
}

/* Fundo interativo com gradiente que segue o mouse */
.slide-1-interactive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide-1-interactive-bg.active {
    opacity: 1;
}

/* Spotlight que segue o cursor */
.mouse-spotlight {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(212, 168, 83, 0.15) 0%,
        rgba(45, 212, 191, 0.08) 30%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* Ondas de energia do cursor */
.mouse-ripple {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(212, 168, 83, 0.3);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    opacity: 0;
}

.mouse-ripple.animate {
    animation: rippleExpand 1.5s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Classe para SVGs próximos ao cursor */
.svg-decoration.near-cursor {
    opacity: 0.7 !important;
    filter: drop-shadow(0 0 15px currentColor);
}

/* Efeito de atração/repulsão */
.svg-decoration.attracted {
    transition: transform 0.15s ease-out !important;
}

/* Gradiente de fundo animado que reage ao mouse */
.interactive-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(45, 212, 191, 0.12) 0%,
        rgba(212, 168, 83, 0.08) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.interactive-gradient-layer.active {
    opacity: 1;
}

/* ==========================================================================
   MONTANHA - SLIDE 1 (TRANSIÇÃO PARA SLIDE 2)
   ========================================================================== */

/* Container da montanha no slide 1 - elemento arrastável/redimensionável */
.slide-1-mountain {
    z-index: 5;
    cursor: move;
}

/* Quando não está sendo editado (modo leitura) */
.slide-1-mountain.pointer-events-none {
    pointer-events: none;
    cursor: default;
}

.slide-1-mountain img {
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    /* Animação sutil de "respiração" */
    animation: mountainBreath 8s ease-in-out infinite;
}

/* Animação suave de "respiração" da montanha */
@keyframes mountainBreath {
    0%, 100% {
        filter: drop-shadow(0 -10px 30px rgba(45, 212, 191, 0.2));
    }
    50% {
        filter: drop-shadow(0 -15px 40px rgba(212, 168, 83, 0.3));
    }
}

/* Glow na base da montanha - DESATIVADO para evitar bordas visíveis durante animação */
/* .slide-1-mountain::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
        to top,
        rgba(45, 212, 191, 0.15) 0%,
        transparent 100%
    );
    z-index: -1;
    pointer-events: none;
    animation: mountainGlow 4s ease-in-out infinite alternate;
} */

@keyframes mountainGlow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Estilos quando selecionado para edição */
.slide-1-mountain.slide-element-selected {
    outline: 2px dashed var(--reveal-accent-gold, #d4a853);
    outline-offset: 4px;
}

.slide-1-mountain.slide-element-selected img {
    animation-play-state: paused;
}

/* ==========================================================================
   ANIMAÇÃO DE TRANSIÇÃO DA MONTANHA - SLIDE 1 PARA SLIDE 2
   Transição customizada: montanha cresce enquanto outros elementos desaparecem
   ========================================================================== */

/* Elementos do Slide 1 que desaparecem em fade durante a transição */
.slide-1-fade-content {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-1-fade-content.fading-out {
    opacity: 0 !important;
    transform: translateY(-30px) scale(0.95);
    pointer-events: none;
}

/* Montanha do Slide 1 - Container wrapper para evitar problemas de overflow do Reveal.js */
/* AJUSTADO: z-index: 1 para ficar atrás do texto; posição inicial parcialmente fora do quadro */
.slide-1-mountain-wrapper {
    position: absolute !important;
    bottom: -8% !important; /* Parcialmente fora do quadro como no slide 2 */
    left: 0 !important;
    right: 0 !important;
    height: 25% !important;
    z-index: 1 !important; /* Atrás do texto */
    pointer-events: none; /* Removido !important para permitir override no modo editor */
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    /* Forçar visibilidade */
    opacity: 1 !important;
    visibility: visible !important;
    /* Sem background para evitar bordas visíveis na animação */
    background: transparent !important;
}

/* Habilitar interação com a montanha no modo editor */
#reveal-container.editor-active .slide-1-mountain-wrapper,
#reveal-container.editor-active #slide-1-mountain {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Montanha do Slide 1 - O elemento dentro do wrapper */
/* AJUSTADO: Tamanho reduzido 4x (de 55%/600px para 14%/150px) */
/* Posição inicial: parcialmente fora do quadro (translateY positivo empurra para baixo) */
#slide-1-mountain {
    width: 14% !important;
    max-width: 150px !important;
    /* Forçar visibilidade - combater qualquer override do Reveal.js */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    /* pointer-events definido dinamicamente via regra .editor-active acima */
    /* Transform origin para animação crescer do centro-base */
    transform-origin: center bottom !important;
    /* Posição inicial: 40% da altura da montanha abaixo do frame */
    transform: translateY(40%) !important;
}

/* Garantir visibilidade quando o Reveal.js estiver pronto */
.reveal.ready .slide-1-mountain-wrapper,
.reveal.ready #slide-1-mountain {
    opacity: 1 !important;
    visibility: visible !important;
}

.reveal.ready .slide-1-mountain-wrapper {
    display: flex !important;
}

.reveal.ready #slide-1-mountain {
    display: block !important;
}

/* Override específico para quando o slide está ativo */
.reveal .slides section.present .slide-1-mountain-wrapper,
.reveal .slides section.present #slide-1-mountain {
    opacity: 1 !important;
    visibility: visible !important;
}

#slide-1-mountain img {
    width: 100%;
    height: auto;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Montanha no Slide 2 - Elemento de background (grande desde o início) */
.slide-2-mountain-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    /* Transição rápida para aparecer instantaneamente quando slide 2 é exibido */
    transition: opacity 0.1s ease-out;
}

.slide-2-mountain-bg img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* AJUSTADO: Glow mais alto (vertical -80px) e maior blur (150px)
       para aparecer mais no centro onde caminho encontra montanha */
    filter: drop-shadow(0 -80px 150px rgba(45, 212, 191, 0.5));
}

/* Estado inicial da montanha no slide 2 - invisível, posicionada grande */
.slide-2-mountain-bg.mountain-initial {
    transform: translateX(-50%) scale(1);
    bottom: 0;
    opacity: 0;
}

/* Estado visível - montanha grande */
.slide-2-mountain-bg.mountain-visible {
    transform: translateX(-50%) scale(1);
    bottom: 0;
    opacity: 1;
}

/* FALLBACK: Garantir montanha visível quando slide 2 está ativo */
#caminho-claro.present .slide-2-mountain-bg,
#caminho-claro:not(.past):not(.future) .slide-2-mountain-bg {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Conteúdo do slide 2 sobre a montanha */
/* CORRIGIDO: position absolute para não interferir na posição da montanha */
.slide-2-content {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 20%;
    pointer-events: none; /* Permite cliques passarem para elementos abaixo */
}

/* Elementos dentro de slide-2-content devem receber eventos de clique */
.slide-2-content > * {
    pointer-events: auto;
}

/* Título do slide 2 - estado inicial invisível */
.slide-2-title-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

/* Quando a classe title-visible é adicionada via JS */
.slide-2-title-animate.title-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* FALLBACK CRÍTICO: Forçar título visível quando slide 2 está ativo
   Usa transição CSS direta baseada na classe .present do Reveal.js */
#caminho-claro.present .slide-2-title-animate,
#caminho-claro:not(.past):not(.future) .slide-2-title-animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

@keyframes mountainGlowPulse {
    0% {
        filter: drop-shadow(0 -10px 30px rgba(212, 168, 83, 0.3));
    }
    50% {
        filter: drop-shadow(0 -30px 80px rgba(212, 168, 83, 0.7));
    }
    100% {
        filter: drop-shadow(0 -20px 60px rgba(45, 212, 191, 0.3));
    }
}

/* ============================================================================
   CAMINHO DIGITAL SOBRE A MONTANHA - SLIDE 2
   Animação de revelação de baixo para cima com efeito glow

   VARIÁVEIS DE AJUSTE (edite para calibrar posicionamento):
   --path-bottom: distância da base (5% = rente ao chão)
   --path-right: distância da direita (15% = centro-direita da montanha)
   --path-width: largura do container (40% = proporcional à encosta)
   --path-height: altura do container (65% = sobe até 2/3 da montanha)
   ============================================================================ */

/* Container do caminho - posicionado sobre a montanha (agora relativo à section) */
/* AJUSTADO: Mesmo tamanho da montanha (100% / max-width 1400px) */
.mountain-path-container {
    /* Variáveis ajustáveis para calibração do posicionamento */
    /* AJUSTADO: Mesmo tamanho da montanha do slide 2 */
    --path-bottom: 0;
    --path-left: 50%;
    --path-translate-x: -50%;
    --path-width: 100%;
    --path-max-width: 1400px;
    --path-height: auto;

    position: absolute;
    bottom: var(--path-bottom);
    left: var(--path-left);
    max-width: var(--path-max-width);
    transform: translateX(var(--path-translate-x));
    width: var(--path-width);
    height: var(--path-height);
    z-index: 5; /* Entre montanha (z:1) e texto (z:10) */
    pointer-events: none;
    /* Estado inicial: escondido */
    opacity: 0;
    /* Debug: descomentar para ver bounding box */
    /* border: 2px dashed rgba(255,0,0,0.5); background: rgba(255,0,0,0.1); */
}

/* Container visível quando animação começa */
.mountain-path-container.path-animating {
    opacity: 1;
}

/* Imagem do caminho digital */
/* AJUSTADO: Posição relativa para que a imagem defina o tamanho do container */
.mountain-path-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    /* Animação de revelação de baixo para cima usando clip-path */
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0s;
}

/* Animação do caminho sendo revelado */
.mountain-path-container.path-animating .mountain-path-image {
    animation: pathRevealBottomUp 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    /* Delay controlado via JavaScript para sincronizar com texto */
}

/* Efeito de glow circular que aparece no final do caminho revelado */
/* AJUSTADO: Movido para baixo (top 18%) e levemente para direita (left 54%)
   para alinhar com o pico da montanha */
.mountain-path-glow-effect {
    position: absolute;
    /* Posição ajustada: mais para baixo e levemente à direita para alinhar com pico */
    top: 18%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(
        circle,
        rgba(212, 168, 83, 1) 0%,
        rgba(212, 168, 83, 0.7) 25%,
        rgba(45, 212, 191, 0.4) 50%,
        transparent 75%
    );
    border-radius: 50%;
    opacity: 0;
    filter: blur(15px);
    pointer-events: none;
}

/* Glow aparece no final da animação do caminho */
.mountain-path-container.path-animating .mountain-path-glow-effect {
    animation: pathGlowAppear 1s ease-out 2.5s forwards,
               pathGlowPulse 2s ease-in-out 3.5s infinite;
}

/* FALLBACK: Forçar visibilidade quando a classe está presente (backup para JavaScript inline styles) */
.mountain-path-container.path-animating {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* FALLBACK: Garantir que a imagem está visível após animação (animação pode falhar em alguns browsers) */
.mountain-path-container.path-animating .mountain-path-image {
    opacity: 1 !important;
    visibility: visible !important;
}

/* DEBUG: Classe para forçar visibilidade imediata sem animação (use quando debug for necessário) */
.mountain-path-container.path-force-visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.mountain-path-container.path-force-visible .mountain-path-image {
    clip-path: inset(0% 0 0 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

/* ==========================================================================
   REVEAL.JS .present BASED VISIBILITY
   Quando o slide 2 (caminho-claro) está ativo, Reveal.js adiciona .present
   Use isso como trigger confiável para mostrar o caminho
   ========================================================================== */

/* Quando slide 2 está ativo (.present), garantir container visível */
#caminho-claro.present .mountain-path-container {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 5 !important;
}

/* Garantir que o container também funciona sem a classe .present (para navegação direta) */
#caminho-claro:not(.past):not(.future) .mountain-path-container {
    opacity: 1 !important;
    visibility: visible !important;
}

/* PURE CSS ANIMATION: Quando slide 2 está ativo, animar a imagem do caminho
   Não depende de JavaScript para funcionar - usa apenas .present do Reveal.js */
#caminho-claro.present .mountain-path-container .mountain-path-image {
    animation: pathRevealBottomUp 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Se JavaScript adicionou path-animating, garantir que a animação continua */
#caminho-claro.present .mountain-path-container.path-animating .mountain-path-image {
    animation: pathRevealBottomUp 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* FALLBACK FINAL: Classe path-force-visible desabilita animação e mostra imediatamente
   Esta classe é adicionada pelo JavaScript após 3s se a animação não funcionou */
#caminho-claro.present .mountain-path-container.path-force-visible .mountain-path-image {
    clip-path: inset(0% 0 0 0) !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* FALLBACK CRÍTICO: Forçar visibilidade TOTAL da imagem do caminho quando slide está presente */
#caminho-claro.present .mountain-path-image,
#caminho-claro:not(.past):not(.future) .mountain-path-image {
    clip-path: inset(0% 0 0 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* Animação opcional - o importante é que fique visível */
    animation: pathRevealBottomUp 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

/* FALLBACK: Garantir glow effect visível quando slide está presente */
#caminho-claro.present .mountain-path-glow-effect,
#caminho-claro:not(.past):not(.future) .mountain-path-glow-effect {
    opacity: 1 !important;
    animation: pathGlowPulse 2s ease-in-out 3s infinite;
}

@keyframes pathFallbackVisible {
    to {
        clip-path: inset(0% 0 0 0);
        opacity: 1;
        visibility: visible;
    }
}

/* Keyframes: Revela o caminho de baixo para cima */
@keyframes pathRevealBottomUp {
    0% {
        clip-path: inset(100% 0 0 0);
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
    100% {
        clip-path: inset(0% 0 0 0);
        filter: brightness(1) drop-shadow(0 0 15px rgba(212, 168, 83, 0.6));
    }
}

/* Keyframes: Glow aparece no final */
@keyframes pathGlowAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* Keyframes: Glow pulsa continuamente */
@keyframes pathGlowPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
        filter: blur(8px);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.3);
        filter: blur(12px);
    }
}

/* ============================================================================
   ESTILOS LEGADOS (mantidos para compatibilidade)
   ============================================================================ */

/* Caminho dourado antigo - mantido para fallback */
.mountain-path-glow-legacy {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(to top,
        transparent 0%,
        rgba(212, 168, 83, 0.8) 50%,
        rgba(212, 168, 83, 0.3) 100%
    );
    border-radius: 2px;
    z-index: 2;
    opacity: 0;
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.5);
}

@keyframes pathClimbMountain {
    0% {
        height: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        height: 40%;
        opacity: 0.6;
    }
}
