/* ========================================
   APRESENTACAO POLICARPO NETO
   Identidade Visual: Cafe Online
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dourado: #c9a86c;
    --dourado-claro: #e0c992;
    --dourado-escuro: #a8894d;
    --marrom-escuro: #1a0f0a;
    --marrom-medio: #2d1810;
    --branco: #ffffff;
    --branco-70: rgba(255, 255, 255, 0.7);
    --branco-50: rgba(255, 255, 255, 0.5);
    --branco-20: rgba(255, 255, 255, 0.2);
    --branco-10: rgba(255, 255, 255, 0.1);
    --branco-05: rgba(255, 255, 255, 0.05);
    --font-titulo: 'Playfair Display', serif;
    --font-corpo: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-corpo);
    background: linear-gradient(135deg, var(--marrom-escuro) 0%, var(--marrom-medio) 50%, var(--marrom-escuro) 100%);
    min-height: 100vh;
    color: var(--branco);
    overflow-x: hidden;
}

/* ========================================
   TELAS
   ======================================== */

.tela {
    min-height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.tela.ativa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* ========================================
   CAPA
   ======================================== */

#capa {
    background: radial-gradient(ellipse at center, var(--marrom-medio) 0%, var(--marrom-escuro) 70%);
    position: relative;
    overflow: hidden;
}

#capa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, var(--dourado) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--dourado) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    opacity: 0.1;
}

.capa-container {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.foto-moldura {
    position: relative;
    width: 200px;
    height: 260px;
    margin: 0 auto 30px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.foto-moldura:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(201, 168, 108, 0.3);
}

.foto-moldura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    filter: sepia(20%) contrast(1.1);
    transition: filter 0.4s ease;
}

.foto-moldura:hover img {
    filter: sepia(0%) contrast(1);
}

.moldura-borda {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--dourado);
    border-radius: 10px;
    pointer-events: none;
    box-shadow: inset 0 0 15px rgba(201, 168, 108, 0.2);
}

.nome-principal {
    font-family: var(--font-titulo);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dourado);
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitulo {
    font-size: 1rem;
    font-weight: 300;
    color: var(--branco-70);
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.instrucao {
    font-size: 0.85rem;
    color: var(--branco-50);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   TIMELINE
   ======================================== */

#timeline {
    padding: 40px 15px;
    background: linear-gradient(180deg, var(--marrom-escuro) 0%, var(--marrom-medio) 50%, var(--marrom-escuro) 100%);
}

#timeline.ativa {
    display: block;
    opacity: 1;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.timeline-header h2 {
    font-family: var(--font-titulo);
    font-size: 2rem;
    color: var(--dourado);
    margin-bottom: 8px;
}

.timeline-header p {
    font-size: 0.9rem;
    color: var(--branco-50);
}

.timeline-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--dourado) 10%, var(--dourado) 90%, transparent 100%);
}

/* ========================================
   TIMELINE ITEM
   ======================================== */

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--dourado);
    border-radius: 50%;
    border: 2px solid var(--marrom-escuro);
    box-shadow: 0 0 10px rgba(201, 168, 108, 0.5);
    z-index: 1;
}

.timeline-marker.estrela {
    background: var(--dourado-claro);
    box-shadow: 0 0 15px rgba(201, 168, 108, 0.8);
    animation: brilho 2s ease-in-out infinite;
}

@keyframes brilho {
    0%, 100% { box-shadow: 0 0 10px rgba(201, 168, 108, 0.5); }
    50% { box-shadow: 0 0 20px rgba(201, 168, 108, 1); }
}

/* ========================================
   TIMELINE CARD
   ======================================== */

.timeline-card {
    background: var(--branco-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--branco-10);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* ========================================
   CARD FOTO - TAMANHO COMPACTO
   ======================================== */

.card-foto {
    width: 140px;
    min-width: 140px;
    height: 140px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-foto > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Video no card */
.card-video {
    width: 200px;
    min-width: 200px;
    height: 150px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid var(--dourado);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
}

.card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.card-video .foto-zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

/* Seção Especial - Café Online */
.cafe-especial {
    width: 100%;
    max-width: 800px;
}

.cafe-especial .timeline-marker {
    background: linear-gradient(135deg, #c9a86c 0%, #e0c992 100%);
}

.timeline-card-cafe {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--branco-05);
    border: 1px solid var(--branco-10);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    width: 100%;
}

.cafe-midia {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.cafe-foto-container {
    width: 220px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--dourado);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: rotate(-3deg);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.cafe-foto-container:hover {
    transform: rotate(-3deg) scale(1.02);
}

.cafe-foto-principal {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cafe-video-thumb {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--branco-20);
    cursor: pointer;
    position: relative;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.cafe-video-thumb:hover {
    border-color: var(--dourado);
}

.cafe-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: var(--branco);
    font-size: 0.65rem;
    text-align: center;
    padding: 2px;
}

.cafe-historia {
    flex: 1;
}

.cafe-historia .ano {
    display: inline-block;
    background: linear-gradient(135deg, var(--dourado) 0%, var(--dourado-claro) 100%);
    color: var(--marrom-escuro);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cafe-historia h3 {
    font-family: var(--font-titulo);
    font-size: 1.4rem;
    color: var(--branco);
    margin-bottom: 15px;
}

.cafe-texto p {
    color: var(--branco-70);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cafe-texto strong {
    color: var(--dourado);
}

.cafe-tempo {
    display: inline-block;
    margin-top: 10px;
    color: var(--dourado);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--dourado);
    padding: 6px 14px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .timeline-card-cafe {
        flex-direction: column;
        text-align: center;
    }

    .cafe-foto-container {
        width: 180px;
        height: 230px;
        transform: rotate(0);
    }

    .cafe-video-thumb {
        margin-left: 0;
    }

    .cafe-midia {
        align-items: center;
    }
}

.timeline-card:hover .card-foto > img {
    transform: scale(1.05);
}

/* ========================================
   CARROSSEL
   ======================================== */

.card-foto.carrossel {
    position: relative;
}

.carrossel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carrossel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carrossel-slide.ativo {
    opacity: 1;
}

.carrossel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botoes do Carrossel */
.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--dourado);
    color: var(--dourado);
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carrossel-btn.prev { left: 5px; }
.carrossel-btn.next { right: 5px; }

.carrossel-btn:hover {
    background: var(--dourado);
    color: var(--marrom-escuro);
}

/* Dots do Carrossel */
.carrossel-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.carrossel-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carrossel-dots .dot.ativo {
    background: var(--dourado);
}

/* ========================================
   FOTO CLICAVEL
   ======================================== */

.foto-clicavel {
    cursor: pointer;
}

.foto-zoom-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--dourado);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--dourado);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.foto-clicavel:hover .foto-zoom-icon {
    opacity: 1;
}

/* ========================================
   CARD INFO
   ======================================== */

.card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-info .ano {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dourado);
    background: rgba(201, 168, 108, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
    width: fit-content;
}

.card-info h3 {
    font-family: var(--font-titulo);
    font-size: 1.1rem;
    color: var(--branco);
    margin-bottom: 5px;
}

.card-info p {
    font-size: 0.8rem;
    color: var(--branco-70);
    line-height: 1.4;
}

/* Card especial (Alice) */
.timeline-item.especial .timeline-card {
    border-color: rgba(201, 168, 108, 0.3);
    background: linear-gradient(135deg, var(--branco-05) 0%, rgba(201, 168, 108, 0.05) 100%);
}

/* ========================================
   NAVEGACAO
   ======================================== */

.navegacao {
    text-align: center;
    padding: 40px 20px;
}

.btn-avancar {
    font-family: var(--font-corpo);
    font-size: 1rem;
    font-weight: 500;
    color: var(--marrom-escuro);
    background: linear-gradient(135deg, var(--dourado) 0%, var(--dourado-claro) 100%);
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-avancar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 168, 108, 0.3);
}

.btn-avancar .seta {
    transition: transform 0.3s ease;
}

.btn-avancar:hover .seta {
    transform: translateX(4px);
}

.btn-voltar {
    font-family: var(--font-corpo);
    font-size: 1rem;
    font-weight: 500;
    color: var(--branco-70);
    background: var(--branco-10);
    border: 1px solid var(--branco-20);
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-voltar:hover {
    background: var(--branco-20);
    color: var(--branco);
    transform: translateY(-2px);
}

.btn-voltar .seta {
    transition: transform 0.3s ease;
}

.btn-voltar:hover .seta {
    transform: translateX(-4px);
}

.navegacao {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FUTURO - Automações 2026
   ======================================== */

#futuro {
    justify-content: flex-start;
    padding: 40px 20px;
}

.futuro-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.futuro-header {
    text-align: center;
    margin-bottom: 40px;
}

.futuro-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--dourado) 0%, var(--dourado-claro) 100%);
    color: var(--marrom-escuro);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.futuro-header h2 {
    font-family: var(--font-titulo);
    font-size: 2.2rem;
    color: var(--branco);
    margin-bottom: 10px;
}

.futuro-subtitulo {
    color: var(--dourado);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Cards de Automação */
.automacao-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.automacao-card {
    background: var(--branco-05);
    border: 1px solid var(--branco-10);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.automacao-card:hover {
    transform: translateY(-5px);
    border-color: var(--dourado);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.automacao-icone {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--dourado) 0%, var(--dourado-escuro) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.automacao-icone span {
    font-size: 1.5rem;
}

.automacao-card h3 {
    font-family: var(--font-titulo);
    font-size: 1.2rem;
    color: var(--branco);
    margin-bottom: 8px;
}

.automacao-descricao {
    color: var(--branco-70);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.automacao-lista {
    list-style: none;
    margin-bottom: 15px;
}

.automacao-lista li {
    color: var(--branco-70);
    font-size: 0.8rem;
    padding: 4px 0;
    padding-left: 15px;
    position: relative;
}

.automacao-lista li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dourado);
    font-size: 0.7rem;
}

.automacao-exemplo {
    background: var(--branco-05);
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 3px solid var(--dourado);
}

.exemplo-label {
    display: block;
    font-size: 0.7rem;
    color: var(--dourado);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.exemplo-texto {
    font-size: 0.8rem;
    color: var(--branco-70);
    font-style: italic;
}

/* Mensagem Central */
.futuro-mensagem {
    margin-bottom: 40px;
}

.mensagem-destaque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.1) 0%, rgba(201, 168, 108, 0.05) 100%);
    border: 1px solid var(--dourado);
    border-radius: 16px;
    padding: 30px;
}

.mensagem-icone {
    font-size: 2rem;
}

.mensagem-destaque p {
    font-family: var(--font-titulo);
    font-size: 1.3rem;
    color: var(--branco);
}

.mensagem-igual {
    font-size: 1.5rem;
    color: var(--dourado);
    font-weight: bold;
}

/* Visão */
.futuro-visao {
    margin-bottom: 40px;
}

.futuro-visao h3 {
    font-family: var(--font-titulo);
    font-size: 1.4rem;
    color: var(--dourado);
    text-align: center;
    margin-bottom: 25px;
}

.visao-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.visao-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--branco-05);
    border: 1px solid var(--branco-10);
    border-radius: 12px;
    padding: 20px 25px;
    max-width: 320px;
}

.visao-numero {
    font-family: var(--font-titulo);
    font-size: 1.8rem;
    color: var(--dourado);
    font-weight: 700;
    opacity: 0.5;
}

.visao-item p {
    color: var(--branco-70);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Sistema Implementado */
.sistema-implementado {
    margin-bottom: 40px;
}

.sistema-implementado h3 {
    font-family: var(--font-titulo);
    font-size: 1.4rem;
    color: var(--dourado);
    text-align: center;
    margin-bottom: 20px;
}

.sistema-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', monospace;
}

.sistema-header {
    background: #161b22;
    padding: 12px 16px;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sistema-icon {
    font-size: 1.2rem;
}

.sistema-titulo {
    color: #58a6ff;
    font-weight: 600;
    font-size: 0.95rem;
}

.sistema-arquivos {
    padding: 16px;
}

.arquivo {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c9d1d9;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.arquivo:hover {
    background: #21262d;
}

.arquivo:last-child {
    margin-bottom: 0;
}

.arquivo-icon {
    font-size: 1rem;
}

.arquivo-desc {
    color: #8b949e;
    margin-left: auto;
    font-size: 0.75rem;
}

/* ========================================
   FAMÍLIA - Encerramento
   ======================================== */

#familia {
    background: radial-gradient(ellipse at center, var(--marrom-medio) 0%, var(--marrom-escuro) 70%);
}

.familia-container {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.familia-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.familia-foto {
    flex: 0 0 auto;
    width: 450px;
    max-width: 50%;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--dourado);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(201, 168, 108, 0.2);
}

.familia-foto img {
    width: 100%;
    height: auto;
    display: block;
}

.familia-texto {
    text-align: left;
}

.familia-texto h2 {
    font-family: var(--font-titulo);
    font-size: 3.5rem;
    color: var(--dourado);
    margin-bottom: 20px;
}

.familia-nome {
    font-family: var(--font-titulo);
    font-size: 2rem;
    color: var(--branco);
    margin-bottom: 8px;
}

.familia-cargo {
    color: var(--branco-70);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .familia-content {
        flex-direction: column;
        gap: 30px;
    }

    .familia-foto {
        width: 100%;
        max-width: 400px;
    }

    .familia-texto {
        text-align: center;
    }

    .familia-texto h2 {
        font-size: 2.5rem;
    }
}

/* ========================================
   PLACEHOLDER
   ======================================== */

.secao-placeholder {
    text-align: center;
    padding: 80px 20px;
}

.secao-placeholder h2 {
    font-family: var(--font-titulo);
    font-size: 1.8rem;
    color: var(--dourado);
    margin-bottom: 15px;
}

.secao-placeholder p {
    color: var(--branco-50);
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.ativo {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-content video {
    background: #000;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--dourado);
    color: var(--dourado);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--dourado);
    color: var(--marrom-escuro);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--branco-70);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 15px;
}

/* ========================================
   ANIMACOES
   ======================================== */

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* ========================================
   CASE DE SUCESSO
   ======================================== */

#profissional.ativa {
    display: block;
    opacity: 1;
}

.case-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.case-header {
    text-align: center;
    margin-bottom: 40px;
}

.case-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dourado);
    background: rgba(201, 168, 108, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-header h2 {
    font-family: var(--font-titulo);
    font-size: 2rem;
    color: var(--dourado);
    margin-bottom: 8px;
}

.case-header p {
    font-size: 0.9rem;
    color: var(--branco-50);
}

/* Cards de Métricas */
.metricas-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.metrica-card {
    background: var(--branco-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--branco-10);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.metrica-card:hover {
    transform: translateY(-3px);
}

.metrica-card.positivo {
    border-top: 3px solid #51cf66;
}

.metrica-card.positivo-invertido {
    border-top: 3px solid #51cf66;
}

.metrica-card.neutro {
    border-top: 3px solid var(--dourado);
}

.metrica-valor {
    display: block;
    font-family: var(--font-titulo);
    font-size: 2rem;
    font-weight: 700;
    color: var(--branco);
    margin-bottom: 5px;
}

.metrica-card.positivo .metrica-valor,
.metrica-card.positivo-invertido .metrica-valor {
    color: #51cf66;
}

.metrica-label {
    display: block;
    font-size: 0.85rem;
    color: var(--branco-70);
    margin-bottom: 5px;
}

.metrica-detalhe {
    display: block;
    font-size: 0.7rem;
    color: var(--branco-50);
}

/* Gráfico de Barras */
.grafico-container {
    background: var(--branco-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--branco-10);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.grafico-container h3 {
    font-family: var(--font-titulo);
    font-size: 1.1rem;
    color: var(--dourado);
    margin-bottom: 20px;
    text-align: center;
}

.grafico-linha {
    margin-bottom: 20px;
}

.grafico-linha:last-child {
    margin-bottom: 0;
}

.grafico-label {
    display: block;
    font-size: 0.8rem;
    color: var(--branco-70);
    margin-bottom: 8px;
}

.grafico-barras-dupla {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.barra-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.barra {
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    min-width: 60px;
    transition: width 0.8s ease;
}

.barra span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--branco);
}

.barra.antes {
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
}

.barra.depois {
    background: linear-gradient(90deg, var(--dourado) 0%, var(--dourado-claro) 100%);
}

.barra.depois.melhor {
    background: linear-gradient(90deg, #51cf66 0%, #40c057 100%);
}

.barra-legenda {
    font-size: 0.65rem;
    color: var(--branco-50);
    min-width: 50px;
}

/* Tabela Comparativa */
.tabela-comparativa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.tabela-coluna {
    background: var(--branco-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--branco-10);
    border-radius: 12px;
    padding: 20px;
}

.tabela-coluna.antes {
    border-top: 3px solid #6c757d;
}

.tabela-coluna.depois {
    border-top: 3px solid var(--dourado);
}

.tabela-coluna h4 {
    font-family: var(--font-titulo);
    font-size: 0.95rem;
    color: var(--branco);
    margin-bottom: 15px;
    text-align: center;
}

.tabela-coluna ul {
    list-style: none;
}

.tabela-coluna li {
    font-size: 0.8rem;
    color: var(--branco-70);
    padding: 8px 0;
    border-bottom: 1px solid var(--branco-10);
}

.tabela-coluna li:last-child {
    border-bottom: none;
}

.tabela-coluna li strong {
    color: var(--branco);
    font-weight: 600;
}

/* Melhores CPLs */
.melhores-cpls {
    margin-bottom: 40px;
}

.melhores-cpls h3 {
    font-family: var(--font-titulo);
    font-size: 1.1rem;
    color: var(--dourado);
    margin-bottom: 15px;
    text-align: center;
}

.cpls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cpl-item {
    background: var(--branco-05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--branco-10);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpl-cidade {
    font-size: 0.8rem;
    color: var(--branco-70);
}

.cpl-valor {
    font-size: 0.85rem;
    font-weight: 600;
    color: #51cf66;
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (min-width: 600px) {
    .metricas-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .cpls-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .timeline-card {
        flex-direction: column;
    }

    .card-foto {
        width: 100%;
        height: 180px;
    }

    .nome-principal {
        font-size: 2rem;
    }

    .foto-moldura {
        width: 160px;
        height: 210px;
    }
}
