/* Estilos Globais Megadoor Outdoor */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary: #1E2170;        /* Azul Megadoor Profundo Sofisticado */
    --accent: #E6C300;         /* Amarelo Dourado Ouro Metalizado */
    --bg-white: #FFFFFF;
    --text-dark: #1C1C24;      /* Grafite de Alta Costura */
    --text-muted: #6C7A89;
    --bg-light: #F8F9FC;       /* Off-white ultra moderno */
    --border-color: #E6ECF4;
    --success: #059669;
    --danger: #DC2626;
    --warning: #D97706;
    --info: #2563EB;
    
    /* Painel Administrativo Glassmorphism & Cyber Dark */
    --admin-bg: #090B18;       /* Azul Noite Profundo Espacial */
    --admin-card-bg: rgba(26, 27, 53, 0.55); /* Vidro translúcido */
    --admin-sidebar-bg: #0E0F24;
    --admin-text: #E2E8F0;
    --admin-border: rgba(42, 44, 84, 0.4); /* Borda fina semitransparente */
    --admin-primary: #2D31A6;
    
    --font-title-lux: 'Playfair Display', serif; /* Tipografia clássica de luxo */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Curva mais elegante */
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px rgba(30, 33, 112, 0.08);
    --radius: 16px;            /* Cantos mais suaves e modernos */
}

/* ==========================================================================
   ANIMAÇÕES E EFEITOS DE REVELAÇÃO (ESTILO REALIZE)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.gold-gradient-text {
    background: linear-gradient(135deg, #FFF200 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
}

/* ==========================================================================
   SITE PÚBLICO (LANDING PAGE)
   ========================================================================== */

header.lp-header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--accent);
}

nav.lp-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav.lp-nav a:not(.btn) {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

nav.lp-nav a:not(.btn):hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FFF200 0%, #E6C300 50%, #C6A300 100%);
    color: #0F1020;
    box-shadow: 0 4px 15px rgba(230, 195, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #FFFFFF;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25), 0 0 15px rgba(230, 195, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary);
    border-color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-dark {
    background-color: var(--primary);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-dark:hover {
    background: linear-gradient(135deg, #FFF200 0%, #E6C300 100%);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 195, 0, 0.2);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 75% 30%, rgba(230, 195, 0, 0.08) 0%, rgba(30, 33, 112, 0.3) 50%, rgba(9, 11, 24, 0) 80%), linear-gradient(135deg, #090B18 0%, #151745 60%, #080914 100%);
    color: var(--bg-white);
    padding: 10rem 5% 8rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
    position: relative;
    clip-path: ellipse(120% 100% at 50% 0%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 25px;
    width: fit-content;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent);
    animation: badge-pulse 1.8s infinite ease-in-out;
}

@keyframes badge-pulse {
    0% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px var(--accent); }
    100% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
}

.hero-content h1 {
    font-family: var(--font-title-lux);
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
}

.hero-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hero-img-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.1);
    height: 160px;
    transition: var(--transition);
}

.hero-img-item:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--accent);
}

.hero-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-item.large {
    grid-column: span 2;
    height: 200px;
}


/* Sections Base */
section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-title-lux);
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Diferenciais / Como Funciona */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.step-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(30, 33, 112, 0.08);
    position: relative;
    box-shadow: 0 8px 32px rgba(30, 33, 112, 0.03);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 33, 112, 0.1);
    border-color: var(--accent);
}

.step-num {
    background: linear-gradient(135deg, var(--primary) 0%, #17184b 100%);
    color: var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 20px rgba(30, 33, 112, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card h3 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

/* Calendário Bi-semanas LP */
.bi-semana-section {
    background-color: var(--bg-light);
}

.bi-weeks-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bi-weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 25px;
}

.bi-week-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bi-week-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 12px rgba(30, 33, 112, 0.08);
}

.bi-week-card h4 {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.bi-week-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.bi-week-card.passada {
    opacity: 0.45;
    filter: grayscale(100%);
    background-color: #F8F9FC;
}

.bi-week-card.passada::after {
    content: "Encerrada";
    position: absolute;
    top: 5px;
    right: -20px;
    background-color: var(--text-muted);
    color: var(--bg-white);
    font-size: 0.42rem;
    font-weight: 700;
    padding: 1px 15px;
    transform: rotate(45deg);
    text-transform: uppercase;
}


/* Sobre a Empresa */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-family: var(--font-title-lux);
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Contato e Formulário LP */
.contact-section {
    background: radial-gradient(circle at 10% 20%, rgba(230, 195, 0, 0.04) 0%, rgba(30, 33, 112, 0.25) 50%, rgba(8, 9, 20, 0) 80%), linear-gradient(135deg, #090B18 0%, #15184B 100%);
    color: var(--bg-white);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    border-radius: var(--radius);
    padding: 5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h2 {
    font-family: var(--font-title-lux);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item svg {
    fill: var(--accent);
    width: 24px;
    height: 24px;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    padding: 3.5rem;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.4rem;
    border: 1px solid #D6E0EC;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #F4F7FB;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(230, 195, 0, 0.15);
}

/* Botão do WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--bg-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Rodapé LP */
footer.lp-footer {
    background-color: #111222;
    color: var(--bg-white);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer.lp-footer p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ==========================================================================
   TELA DE LOGIN
   ========================================================================== */

.login-body {
    background: linear-gradient(135deg, var(--admin-bg) 0%, #151630 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    padding: 3rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: var(--admin-text);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    color: var(--bg-white);
    font-size: 2.2rem;
    font-weight: 800;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.login-card label {
    color: var(--admin-text);
}

.login-card .form-control {
    background-color: var(--admin-bg);
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.login-card .form-control:focus {
    border-color: var(--accent);
}

.btn-admin {
    background-color: var(--accent);
    color: var(--text-dark);
    width: 100%;
    font-weight: 700;
    margin-top: 1rem;
}

.btn-admin:hover {
    background-color: var(--bg-white);
    color: var(--primary);
}

.login-profile-select {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--admin-border);
    text-align: center;
}

.login-profile-select p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.profile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-profile-shortcut {
    background-color: rgba(255,255,255,0.05);
    color: var(--admin-text);
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--admin-border);
    transition: var(--transition);
}

.btn-profile-shortcut:hover {
    background-color: var(--accent);
    color: var(--text-dark);
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO (GERAL)
   ========================================================================== */

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background-color: var(--admin-bg);
    color: var(--admin-text);
}

.admin-layout .form-group label {
    color: #E2E8F0;
}

/* Sidebar */
aside.admin-sidebar {
    background-color: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    height: 100vh;
    position: sticky;
    top: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.8rem 2rem;
}

.admin-nav {
    flex: 1;
    overflow-y: auto;
}

.admin-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: #A0AEC0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

.admin-nav a:hover, .admin-nav li.active a {
    color: var(--bg-white);
    background-color: var(--admin-primary);
}

.admin-nav a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sidebar-user {
    border-top: 1px solid var(--admin-border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--admin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bg-white);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    color: #FF6B6B;
}

/* Painel Main Area */
main.admin-main {
    padding: 2rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 1.5rem;
}

.admin-header-title h2 {
    font-size: 2rem;
    color: var(--bg-white);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Filtros Gerais */
.filter-bar {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-select, .admin-input {
    background-color: var(--admin-bg);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}

.admin-select:focus, .admin-input:focus {
    border-color: var(--accent);
}

/* Nova Interface de Acompanhamento de Processos por Abas (Sem Scroll Horizontal) */
.process-steps-container {
    margin-bottom: 2rem;
}

.process-steps-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    background-color: var(--admin-sidebar-bg);
    border: 1px solid var(--admin-border);
    padding: 8px;
    border-radius: var(--radius);
}

.step-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #A0AEC0;
    padding: 12px 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-transform: uppercase;
}

.step-tab-btn:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.02);
}

.step-tab-btn.active {
    color: var(--text-dark);
    background-color: var(--accent);
    border-color: var(--accent);
}

.step-tab-btn .step-count {
    font-size: 0.7rem;
    background-color: rgba(255,255,255,0.1);
    color: #FFF;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.step-tab-btn.active .step-count {
    background-color: var(--primary);
    color: var(--accent);
}

/* Lista Vertical de Cards de Campanhas */
.campaigns-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.campaign-vertical-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* layout horizontal no desktop */
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.campaign-vertical-card:hover {
    border-color: var(--admin-primary);
    box-shadow: var(--shadow);
}

.campaign-card-info h3 {
    font-size: 1.3rem;
    color: var(--bg-white);
    margin-bottom: 5px;
}

.campaign-card-info p {
    font-size: 0.9rem;
    color: #A0AEC0;
}

.campaign-card-details {
    font-size: 0.9rem;
    color: var(--admin-text);
}

.campaign-card-details strong {
    color: var(--accent);
}

.campaign-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Botões de Mover Etapa */
.btn-nav-step {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    cursor: pointer;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-nav-step:hover {
    background-color: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

.btn-nav-step.btn-next {
    background-color: var(--admin-primary);
    color: #FFF;
    border-color: var(--admin-primary);
}

.btn-nav-step.btn-next:hover {
    background-color: var(--success);
    color: #FFF;
    border-color: var(--success);
}

/* Responsividade do Dashboard em Abas */
@media(max-width: 768px) {
    .campaign-vertical-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .campaign-card-actions {
        justify-content: flex-start;
    }
    .process-steps-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 480px) {
    .process-steps-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Modais Administrativos */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.admin-modal {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--admin-text);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .admin-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--bg-white);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--admin-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 1.5rem;
    border-top: 1px solid var(--admin-border);
}

/* Tabelas Administrativas */
.table-container {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
    background-color: var(--admin-sidebar-bg);
    color: var(--bg-white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-table tr:hover {
    background-color: rgba(255,255,255,0.02);
}

/* Abas/Botões de Sessões */
.tab-container {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 1px;
    margin-bottom: 2rem;
}

.tab-btn {
    background-color: transparent;
    border: none;
    color: #A0AEC0;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Execução Operacional / Assinatura */
.webcam-container {
    width: 100%;
    height: 300px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#webcam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--bg-white);
    font-size: 0.8rem;
}

.captured-image-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    display: none;
    border: 2px solid var(--accent);
}

/* Cartões das Placas Cadastro */
.placas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.placa-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.placa-card:hover {
    border-color: var(--accent);
}

.placa-img {
    height: 180px;
    background-color: var(--admin-bg);
    position: relative;
}

.placa-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placa-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.placa-info {
    padding: 1.5rem;
}

.placa-info h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.placa-detail-line {
    font-size: 0.8rem;
    color: #A0AEC0;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

/* Novo layout de detalhes em stack (coluna) */
.placa-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 4px;
}

.placa-detail-row {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.placa-detail-label {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    min-width: 76px;
    flex-shrink: 0;
}

.placa-detail-value {
    color: #C8D0DC;
    flex: 1;
    word-break: break-word;
}

/* Módulo Financeiro Específico */
.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.finance-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.finance-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.finance-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-white);
    margin: 0.5rem 0;
}

.value-receitas { color: var(--success); }
.value-despesas { color: var(--danger); }

/* Relatório de Colagem Cliente (Impressão) */
.report-view {
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.report-header {
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-title {
    color: var(--primary);
    font-size: 1.8rem;
}

.report-body {
    font-size: 0.95rem;
}

.report-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 2rem;
}

.report-photo-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.report-photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.report-photo-desc {
    padding: 10px;
    background-color: var(--bg-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsividade Mobile */
@media(max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 6rem;
    }
    .about {
        grid-template-columns: 1fr;
    }
    .contact-section {
        grid-template-columns: 1fr;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    aside.admin-sidebar {
        display: none; /* Em ambiente real implementaríamos menu sanduíche */
    }
}

/* ==========================================================================
   CARROSSEL DE PLACAS DA LP
   ========================================================================== */
.portfolio-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 50px;
}

.carousel-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    
    /* Ocultar barra de rolagem */
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;  /* Firefox */
}

.carousel-viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 25px 0; /* Padding vertical para não cortar os cards ao expandirem com transform: scale */
}

/* No desktop, cada slide ocupa 1/3 do viewport menos o espaçamento */
.carousel-track .placa-card {
    flex: 0 0 calc(33.333% - 13.33px);
    flex-shrink: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Efeito de Escala apenas no Hover do Mouse (Desktop) */
@media(min-width: 769px) {
    .carousel-track .placa-card:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 20px rgba(46, 48, 146, 0.15);
        z-index: 2;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 242, 0, 0.4);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.carousel-btn.prev-btn {
    left: 0;
}

.carousel-btn.next-btn {
    right: 0;
}

/* Responsividade do Carrossel */
@media(max-width: 992px) {
    .carousel-track .placa-card {
        flex: 0 0 calc(50% - 10px); /* 2 por vez */
    }
}

@media(max-width: 576px) {
    .carousel-container {
        padding: 0 10px;
        gap: 10px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    .carousel-track .placa-card {
        flex: 0 0 100%; /* 1 por vez */
    }
    .carousel-btn.prev-btn {
        left: -5px;
    }
    .carousel-btn.next-btn {
        right: -5px;
    }
}

/* ==========================================================================
   PÁGINA DE PORTFÓLIO E DOWNLOAD DE PDF
   ========================================================================== */
.portfolio-page-header {
    background: radial-gradient(circle at 80% 20%, rgba(230, 195, 0, 0.06) 0%, rgba(30, 33, 112, 0.25) 65%, rgba(8, 9, 20, 0) 90%), linear-gradient(135deg, #090B18 0%, #1A1D54 60%, #0F1020 100%);
    color: var(--bg-white);
    padding: 6rem 5%;
    text-align: center;
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.portfolio-page-header h1 {
    font-family: var(--font-title-lux);
    font-size: 3.4rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
    font-weight: 700;
}

.portfolio-page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.pdf-download-bar {
    display: flex;
    justify-content: center;
    padding: 2rem 5%;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.pdf-btn {
    background-color: #EF4444; /* Vermelho estilo PDF */
    color: var(--bg-white);
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
    text-decoration: none;
}

.pdf-btn:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.4);
    color: var(--bg-white);
}

.pdf-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.portfolio-grid-section {
    padding: 4rem 5%;
    background-color: var(--bg-white);
}

.portfolio-public-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-public-grid .placa-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-public-grid .placa-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 25px rgba(30, 33, 112, 0.1);
}

.portfolio-public-grid .placa-card .placa-info h4 {
    color: var(--primary);
}

/* ==========================================================================
   ESTILOS GERAIS DO PORTFÓLIO PDF (Para html2pdf e Impressão)
   ========================================================================== */
#portfolio-pdf-print {
    display: none; /* Oculto na tela do site público */
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    color: #1C1C24;
    width: 794px; /* Largura A4 — elemento fica fora da tela via JS (position:fixed; left:-9999px) */
}

@media print {
    body * { visibility: hidden; }
    #portfolio-pdf-print, #portfolio-pdf-print * { visibility: visible; }
    #portfolio-pdf-print {
        display: block !important;
        position: absolute;
        left: 0; top: 0; width: 100%;
    }
}

/* -----------------------------------------------------------------------
   WRAPPER DE CADA SEÇÃO DO PDF (sem height fixo - fluxo natural)
   ----------------------------------------------------------------------- */
.pdf-page {
    width: 100%;
    padding: 32px 36px;
    box-sizing: border-box;
    background-color: #ffffff;
    position: relative;
}

/* Apenas as 2 primeiras páginas têm quebra forçada depois */
.pdf-page-break {
    page-break-after: always;
    break-after: page;
}

/* -----------------------------------------------------------------------
   CAPA DO PDF (Página 1)
   ----------------------------------------------------------------------- */
.pdf-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 900px;
    border: 8px double #1E2170;
    border-radius: 12px;
    padding: 48px 40px 36px;
    box-sizing: border-box;
    background: linear-gradient(160deg, #f8f9ff 0%, #ffffff 100%);
}

/* Logo com fundo azul para contraste */
.pdf-logo-bg-wrapper {
    background-color: #1E2170;
    padding: 22px 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(30, 33, 112, 0.2);
}

.pdf-cover-logo {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
}

.pdf-cover-logo span { color: #F0A500; }

.pdf-cover-title {
    font-size: 2.4rem;
    line-height: 1.25;
    color: #1E2170;
    margin-bottom: 16px;
    font-weight: 700;
}

.pdf-cover-subtitle {
    font-size: 1.1rem;
    color: #5a6070;
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.65;
}

.pdf-cover-footer {
    margin-top: 28px;
    font-size: 0.88rem;
    color: #8890a0;
    border-top: 1px solid #e0e4ef;
    width: 100%;
    padding-top: 16px;
}

/* -----------------------------------------------------------------------
   CABEÇALHO INTERNO DAS PÁGINAS
   ----------------------------------------------------------------------- */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #1E2170;
    padding-bottom: 14px;
    margin-bottom: 24px;
}

.pdf-header-logo-bg-wrapper {
    background-color: #1E2170;
    padding: 7px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdf-header-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
}

.pdf-header-logo span { color: #F0A500; }

.pdf-header-title {
    font-size: 0.88rem;
    color: #8890a0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* -----------------------------------------------------------------------
   TEXTOS DA APRESENTAÇÃO COMERCIAL (Página 2)
   ----------------------------------------------------------------------- */
.pdf-section-title {
    font-size: 2rem;
    color: #1E2170;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.pdf-commercial-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333340;
    margin-bottom: 14px;
    text-align: justify;
}

.pdf-differentials {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pdf-diff-card {
    background-color: #f4f6fb;
    padding: 16px 18px;
    border-radius: 8px;
    border-left: 4px solid #1E2170;
}

.pdf-diff-card h4 {
    color: #1E2170;
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.pdf-diff-card p {
    font-size: 0.82rem;
    color: #5a6070;
    line-height: 1.5;
}

/* Rodapé simples da página 2 (fluxo normal, não absolute) */
.pdf-footer-inline {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e0e4ef;
    padding-top: 10px;
    font-size: 0.78rem;
    color: #8890a0;
}

/* -----------------------------------------------------------------------
   CONTATO / WHATSAPP (Capa e Página 2)
   ----------------------------------------------------------------------- */
.pdf-contact-box {
    background-color: #f0faf4;
    border: 2px dashed #25D366;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    margin-top: 24px;
}

.pdf-contact-box h3 {
    color: #1a6e2e;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.pdf-contact-box p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #1C1C24;
}

.pdf-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white !important;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* -----------------------------------------------------------------------
   PLACAS - LISTA CONTÍNUA (Páginas 3+)
   ----------------------------------------------------------------------- */
.pdf-placas-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-top: 6px;
}

.pdf-placa-card-horizontal {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border: 1px solid #dde2ef;
    border-radius: 10px;
    overflow: hidden;
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.pdf-placa-img-horizontal {
    width: 240px;
    min-width: 240px;
    height: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: #f0f2f8;
}

.pdf-placa-img-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdf-placa-tag-horizontal {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #1E2170;
    color: #F0A500;
    padding: 3px 9px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-placa-info-horizontal {
    padding: 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdf-placa-info-horizontal h4 {
    color: #1E2170;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    border-bottom: 1px solid #e8eaf5;
    padding-bottom: 5px;
}

.pdf-placa-info-horizontal p {
    font-size: 0.8rem;
    color: #333340;
    margin-bottom: 4px;
    line-height: 1.4;
}

.pdf-placa-info-horizontal p strong {
    color: #1E2170;
    font-weight: 600;
}

.pdf-placa-info-horizontal .pdf-placa-desc {
    color: #7a8090;
    font-size: 0.72rem;
    font-style: italic;
    margin-top: 5px;
}

/* -----------------------------------------------------------------------
   RESPONSIVIDADE DA GRID PÚBLICA DO PORTFOLIO
   ----------------------------------------------------------------------- */
@media(max-width: 992px) {
    .portfolio-public-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 576px) {
    .portfolio-public-grid { grid-template-columns: 1fr; }
}





/* Configurações de Páginas */
.pdf-page {
    width: 210mm;
    height: 297mm; /* Altura exata da folha A4 */
    padding: 10mm;
    box-sizing: border-box;
    position: relative;
    background-color: #ffffff;
    page-break-after: always;
    break-after: always;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-page:last-child {
    page-break-after: avoid;
    break-after: avoid;
}

/* Capa do PDF */
.pdf-cover {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 10px double var(--primary);
    padding: 3rem;
    border-radius: var(--radius);
    background-color: #ffffff;
    position: relative;
    box-sizing: border-box;
}

/* Protetor do Logotipo da Capa */
.pdf-logo-bg-wrapper {
    background-color: #1E2170; /* Azul escuro corporativo para contraste */
    padding: 25px 45px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(30, 33, 112, 0.15);
}

.pdf-cover-logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
}

.pdf-cover-logo span {
    color: var(--accent);
}

.pdf-cover-title {
    font-family: var(--font-title-lux);
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.pdf-cover-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.pdf-cover-footer {
    margin-top: auto;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 1.5rem;
}

/* Seção Sobre / Apresentação */
.pdf-about-section {
    padding: 1.5rem 0;
    flex: 1;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

/* Protetor do Logotipo do Cabeçalho */
.pdf-header-logo-bg-wrapper {
    background-color: #1E2170;
    padding: 8px 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdf-header-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
}

.pdf-header-logo span {
    color: var(--accent);
}

.pdf-header-title {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.pdf-section-title {
    font-family: var(--font-title-lux);
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.pdf-commercial-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: #333340;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.pdf-differentials {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pdf-diff-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
    border: 1px solid var(--border-color);
}

.pdf-diff-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pdf-diff-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pdf-footer {
    position: absolute;
    bottom: 10mm;
    left: 10mm;
    right: 10mm;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contato / WhatsApp */
.pdf-contact-box {
    margin-top: 2.5rem;
    background-color: #EEF8F1;
    border: 2px dashed #25D366;
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
}

.pdf-contact-box h3 {
    color: #2E7D32;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.pdf-contact-box p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #1C1C24;
}

.pdf-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: var(--transition);
}

/* LAYOUT DE PLACAS CONTÍNUO (HORIZONTAL E PREMIUM) */
.pdf-placas-page {
    /* Esta página fluirá continuamente. O html2pdf cuidará de quebrar nos A4 */
    page-break-after: avoid !important;
    break-after: avoid !important;
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 10mm;
    overflow: visible !important;
}

.pdf-placas-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.pdf-placa-card-horizontal {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.pdf-placa-img-horizontal {
    width: 280px;
    min-width: 280px;
    height: 185px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
}

.pdf-placa-img-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-placa-tag-horizontal {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: var(--accent);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.pdf-placa-info-horizontal {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdf-placa-info-horizontal h4 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

.pdf-placa-info-horizontal p {
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.pdf-placa-info-horizontal p strong {
    color: var(--primary);
    font-weight: 600;
}

/* Ajustes gerais de responsividade da Grid de Portfólio */
@media(max-width: 992px) {
    .portfolio-public-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 576px) {
    .portfolio-public-grid {
        grid-template-columns: 1fr;
    }
}
