/**
 * =============================================================================
 * styles.css — Braskit Segurança Eletrônica
 * =============================================================================
 * Folha de estilos principal do site. Cobre todas as páginas:
 * index.html, obrigado.html, politica-de-privacidade.html, termos-de-uso.html
 *
 * Índice de seções:
 *  01. Reset & Variáveis CSS
 *  02. Base / Body / Acessibilidade
 *  03. Navbar & Menu Hamburger
 *  04. Hero (vídeo background + sequência automática)
 *  05. Seção Sobre & Contadores Animados
 *  06. Seção de Vídeos (video cards + modal MP4)
 *  07. Seção de Serviços (cards + modais com YouTube)
 *  08. Seção FAQ (accordion)
 *  09. Seção de Contato (formulário)
 *  10. Footer (links, redes sociais, parceiros)
 *  11. Botão WhatsApp Flutuante (popover)
 *  12. Botão Scroll To Top
 *  13. Progress Bar de Leitura
 *  14. Toast Notifications
 *  15. Dark Mode Toggle (botão + variáveis)
 *  16. Animações & Transições
 *  17. Utilitários (skeleton, lazy-load, fade-in)
 *  18. Página de Agradecimento (obrigado.html)
 *  19. Páginas Legais (politica + termos)
 *  20. Dark Mode — overrides de todas as seções
 *  21. Responsivo (media queries mobile/tablet)
 *
 * Paleta de cores:
 *  --primary:    #0B2B4C  (azul profundo — confiança/segurança)
 *  --secondary:  #4A90E2  (azul médio — destaque moderno)
 *  --accent:     #F5F3E8  (creme suave — contraste elegante)
 *  --light-bg:   #F4F7FB  (cinza-azulado — fundo alternado)
 *  --text:       #222831  (quase preto — alta legibilidade)
 *  --text-light: #6B7280  (cinza médio — textos secundários)
 *
 * Tipografia:
 *  Inter (Google Fonts) → Segoe UI → Tahoma → Geneva → Verdana → sans-serif
 *
 * Autor: BMS Developer
 * Última atualização: Fevereiro 2026
 * =============================================================================
 */

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

:root {
    --primary: #0B2B4C;      /* azul profundo – confiança/segurança */
    --secondary: #4A90E2;    /* azul mais claro – destaque confiável e moderno */
    --accent: #F5F3E8;       /* “dourado” puxado para o branco – muito suave */
    --light-bg: #F4F7FB;     /* cinza-azulado bem claro – fundo leve e confiável */
    --text: #222831;         /* cinza bem escuro – menos duro que preto puro */
    --text-light: #6B7280;   /* cinza médio para textos secundários */
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle:focus-visible,
.nav-menu a:focus-visible,
.video-card:focus-visible,
.cta-primary:focus-visible,
.form-submit:focus-visible {
    outline: 3px solid rgba(245, 243, 232, 0.9);
    outline-offset: 3px;
}

/* Navbar */
nav {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    img {
        width: 200px;
    }
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-toggle i {
    font-size: 20px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.nav-toggle:hover i {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.25s ease;
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    background: radial-gradient(circle at top left, rgba(245, 243, 232, 0.35), transparent 55%),
    linear-gradient(135deg, #07192F 0%, var(--primary) 45%, #0E3B63 100%);
    color: white;
    padding: 3.5rem 2rem;
    text-align: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(245,243,232,0.2) 0%, transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(74,144,226,0.22) 0%, transparent 55%),
    linear-gradient(135deg, rgba(7, 25, 47, 0.7) 0%, rgba(11, 43, 76, 0.7) 45%, rgba(14, 59, 99, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeInUp 0.9s ease-out forwards;
    animation-delay: 0.2s;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(243, 244, 246, 0.95);
}

.cta-primary {
    background: var(--secondary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(5, 21, 37, 0.6);
}

.cta-primary::after {
    font-size: 1.1rem;
}

.cta-primary:hover {
    background: #2C5F9B;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(5, 21, 37, 0.75);
}

.section-lead {
    text-align: center;
    color: var(--text-light);
    margin: -2rem auto 2.5rem;
    max-width: 720px;
}

/* Container & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.4rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 999px;
}

/* About */
#about {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
}

.about-text p.about-secondary {
    margin-top: 1rem;
}

.about-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.highlight {
    text-align: center;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148,163,184,0.35);
}

.highlight-number {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: bold;
}

.highlight-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Videos */
#videos {
    background: #FFFFFF;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.video-card {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: #ffffff;
    padding: 0;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.video-card-media {
    width: 100%;
    height: 180px;
    border-radius: 0;
    background: #0b1a2c;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Transição suave quando o frame do vídeo aparece */
    transition: opacity 0.4s ease;
}

/* Wrapper relativo para posicionar o skeleton sobre o vídeo */
.video-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #0b1a2c;
}

/* Skeleton shimmer sobre o vídeo enquanto carrega */
.video-card-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #1a2a3a 0%,
        #243548 40%,
        #1a2a3a 80%
    );
    background-size: 200% 100%;
    animation: videoShimmer 1.6s ease-in-out infinite;
    z-index: 1;
    opacity: 1;
    border-radius: 0;
}

/* Ícone de play centralizado durante o skeleton */
.video-card-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

/* Quando o vídeo carregou: some com o skeleton suavemente */
.video-card-thumb.loaded::before {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: none;
}

.video-card-thumb.loaded::after {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@keyframes videoShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.video-card-title {
    margin-top: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.video-modal.is-open {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(2px);
    cursor: default;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 90%;
    max-height: 80vh;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 18px 40px rgba(15,23,42,0.5);
    overflow-y: auto;
    color: var(--text);
    cursor: default;
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal-content h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.video-modal-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.video-modal-player {
    width: 100%;
}

.video-modal-player h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.video-modal-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    background: #000000;
}

.video-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text);
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(148, 163, 184, 0.35);
}

/* FAQ */
#faq {
    background: #FFFFFF;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.faq-item:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
    border-color: rgba(74, 144, 226, 0.5);
}

.faq-item.is-open {
    border-color: rgba(74, 144, 226, 0.7);
    box-shadow: 0 8px 28px rgba(74, 144, 226, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s, background 0.2s;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-item.is-open .faq-question {
    color: var(--secondary);
}

.faq-icon {
    font-size: 0.85rem;
    color: var(--secondary);
    transition: transform 0.35s ease;
    flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.97rem;
    line-height: 1.7;
    padding-bottom: 1.25rem;
}

.faq-answer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
}

/* Services */
#services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.25s;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    border-color: rgba(74, 144, 226, 0.8);
}

.service-icon {
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #FAFBFC;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-content {
    padding: 1rem;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact */
#contact {
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding-bottom: 2rem;
}

.contact-info h3,
.contact-form-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form {
    padding-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.contact-details {
    color: var(--text-light);
}

.contact-details h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--text-light);
}

.contact-details-full {
    width: 100%;
}

/* ===== CONTACT MAP WRAPPER =====
   DESATIVADO: o mapa Google está comentado no HTML (index.html linha ~498).
   Para reativar, descomente o bloco do mapa no HTML.
.contact-map-wrapper {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-map-wrapper iframe {
    border: 0;
}
===== FIM CONTACT MAP WRAPPER ===== */

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #FFFFFF;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.22);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--secondary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.25s;
    width: 100%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.form-submit:hover {
    background: #2C5F9B;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
}

/* Footer */
footer {
    background: #061424;
    color: white;
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
}

footer h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #E5E7EB;
}

footer p {
    margin: 0.5rem 0;
    color: rgba(229,231,235,0.9);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.35rem;
}

footer ul li a {
    color: rgba(209,213,219,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
    transition: color 0.25s ease;
}

footer ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

footer ul li a:hover {
    color: var(--secondary);
    text-decoration: none;
    padding-left: 0;
}

footer ul li a:hover::after {
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: left;
    align-items: flex-start;
}

.footer-bottom {
    border-top: 1px solid rgba(148,163,184,0.35);
    margin-top: 2rem;
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.social-links a i {
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.1);
}

/* ===== FOOTER PARTNERS ===== */
.footer-partners-title {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: #E5E7EB;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.footer-partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
}

.footer-partner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-partner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
    padding: 0;
    border-radius: 50%;
}

.footer-partner-link:hover .footer-partner-img {
    transform: scale(1.08);
}

/* Botão flutuante */
/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */

/* Pulso suave do ícone em repouso — chama atenção periodicamente */
@keyframes wha-pulse {
    0%, 100% { transform: scale(1);   }
    40%       { transform: scale(1.18); }
    60%       { transform: scale(0.94); }
    80%       { transform: scale(1.08); }
}

/* Vibração do ícone ao expandir (hover) */
@keyframes wha-shake {
    0%   { transform: rotate(0deg)   scale(1);    }
    8%   { transform: rotate(-28deg) scale(1.1);  }
    16%  { transform: rotate(24deg)  scale(1.1);  }
    24%  { transform: rotate(-22deg) scale(1.05); }
    32%  { transform: rotate(20deg)  scale(1.05); }
    40%  { transform: rotate(-16deg) scale(1.0);  }
    48%  { transform: rotate(12deg)  scale(1.0);  }
    56%  { transform: rotate(-8deg)  scale(1.0);  }
    64%  { transform: rotate(6deg)   scale(1.0);  }
    72%  { transform: rotate(-3deg)  scale(1.0);  }
    80%  { transform: rotate(2deg)   scale(1.0);  }
    100% { transform: rotate(0deg)   scale(0.9);  }
}

/* ===== WA POPOVER (botão flutuante) ===== */
.wa-popover {
    position: fixed;
    right: 24px;
    bottom: 98px;
    z-index: 121;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 16px 16px 12px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    transform: translateY(10px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.wa-popover.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.wa-popover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 22px;
    width: 16px;
    height: 8px;
    background: #ffffff;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.08));
}
.wa-popover-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.wa-popover-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #111827;
    background: #f9fafb;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wa-popover-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
    background: #fff;
}
.wa-popover-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.wa-popover-send {
    flex: 1;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.wa-popover-send:hover {
    background: #16a34a;
    transform: scale(1.02);
}
.wa-popover-cancel {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.wa-popover-cancel:hover {
    color: #374151;
    border-color: #9ca3af;
}
/* Dark mode popover */
html[data-theme="dark"] .wa-popover {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .wa-popover::after {
    background: #1e293b;
}
html[data-theme="dark"] .wa-popover-title {
    color: #94a3b8;
}
html[data-theme="dark"] .wa-popover-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
html[data-theme="dark"] .wa-popover-input:focus {
    border-color: #22c55e;
    background: #0f172a;
}
html[data-theme="dark"] .wa-popover-cancel {
    color: #64748b;
    border-color: #334155;
}
html[data-theme="dark"] .wa-popover-cancel:hover {
    color: #cbd5e1;
    border-color: #64748b;
}

.floating-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    background: #22c55e;
    color: #ffffff;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.30);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s ease,
                box-shadow 0.25s ease;
    white-space: nowrap;
}

/* Ícone — ocupa sempre os 60px do círculo, centralizado */
.floating-cta-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    /* Pulso suave a cada 3s, com 2s de pausa entre cada ciclo */
    animation: wha-pulse 1.2s ease-in-out 2s infinite;
    transition: font-size 0.25s ease;
}

/* Texto oculto por padrão */
.floating-cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.2;
    padding-right: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.22s ease 0.15s, transform 0.22s ease 0.15s;
    pointer-events: none;
}

.floating-cta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.floating-cta-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

/* Estado expandido ao hover — altura e posição NUNCA mudam */
.floating-cta:hover {
    width: 200px;
    height: 60px;
    background: #16a34a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Substitui o pulso contínuo pelo shake ao expandir */
.floating-cta:hover .floating-cta-icon {
    animation: wha-shake 0.75s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
    font-size: 1.5rem;
}

.floating-cta:hover .floating-cta-text {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Modais */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal-overlay.is-visible {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    max-width: 760px;
    width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 18px 40px rgba(15,23,42,0.5);
    overflow-y: auto;
    color: var(--text);
    position: relative;
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.modal-content h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--secondary);
    font-size: 1rem;
}

.modal-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text);
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(148, 163, 184, 0.35);
}

/* Página de agradecimento */
/* ===== THANKYOU PAGE ===== */
@keyframes ty-ring-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

@keyframes ty-check-pop {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
    80%  { transform: scale(0.92) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes ty-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ty-wa-shake {
    0%   { transform: rotate(0deg); }
    10%  { transform: rotate(-20deg); }
    20%  { transform: rotate(18deg); }
    30%  { transform: rotate(-14deg); }
    40%  { transform: rotate(10deg); }
    50%  { transform: rotate(-6deg); }
    60%  { transform: rotate(4deg); }
    70%  { transform: rotate(-2deg); }
    80%  { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

.thankyou-wrapper {
    min-height: calc(100vh - 300px);
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.thankyou-card {
    background: #FFFFFF;
    max-width: 560px;
    width: 100%;
    border-radius: 20px;
    padding: 3rem 2.5rem 2.5rem;
    box-shadow: 0 20px 60px rgba(11,43,76,0.12), 0 4px 16px rgba(11,43,76,0.06);
    text-align: center;
    animation: ty-fade-up 0.5s ease both;
}

/* --- Ícone animado --- */
.thankyou-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.thankyou-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.25);
    animation: ty-ring-pulse 1.8s ease-out 0.3s infinite;
}

.thankyou-icon {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
    animation: ty-check-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

/* --- Textos --- */
.thankyou-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
    animation: ty-fade-up 0.5s ease 0.2s both;
}

.thankyou-subtitle {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: ty-fade-up 0.5s ease 0.3s both;
}

.thankyou-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
    animation: ty-fade-up 0.5s ease 0.4s both;
}

/* --- Status row --- */
.thankyou-status-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
    animation: ty-fade-up 0.5s ease 0.5s both;
}

.thankyou-status-item {
    flex: 1;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(74,144,226,0.1);
}

.thankyou-status-item > i {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.1rem;
}

.thankyou-status-label {
    font-size: 0.68rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.thankyou-status-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.thankyou-status-received {
    color: #16a34a;
}

/* --- Divisor --- */
.thankyou-divider {
    position: relative;
    text-align: center;
    margin: 1.75rem 0 1.25rem;
    animation: ty-fade-up 0.5s ease 0.6s both;
}

.thankyou-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E2E8F0;
}

.thankyou-divider span {
    position: relative;
    background: #FFFFFF;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Botão WhatsApp --- */
.thankyou-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: ty-fade-up 0.5s ease 0.7s both;
    overflow: hidden;
    position: relative;
}

.thankyou-whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}

.ty-wa-icon {
    flex: 0 0 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.28);
    border-radius: 50%;
    font-size: 1.65rem;
    margin-right: 1rem;
    transition: transform 0.2s ease;
    color: #ffffff;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.ty-wa-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: 0.1rem;
}

.ty-wa-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.ty-wa-main {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.ty-wa-arrow {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    transition: transform 0.2s ease;
}

.thankyou-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.thankyou-whatsapp-btn:hover .ty-wa-icon {
    animation: ty-wa-shake 0.7s ease forwards;
}

.thankyou-whatsapp-btn:hover .ty-wa-arrow {
    transform: translateX(4px);
}

/* --- Botão voltar --- */
.thankyou-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    animation: ty-fade-up 0.5s ease 0.8s both;
}

.thankyou-back-link:hover {
    color: var(--secondary);
}

/* --- Legados (mantidos por compatibilidade) --- */
/* ===== THANKYOU HIGHLIGHT =====
   DESATIVADO: classe não utilizada em obrigado.html.
.thankyou-highlight {
    font-weight: 600;
    color: var(--secondary);
}
===== FIM THANKYOU HIGHLIGHT ===== */

/* Otimização de imagens com lazy loading */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Suporte para imagens responsivas */
picture {
    display: block;
}

/* Otimização de iframes (YouTube) */
iframe {
    max-width: 100%;
    aspect-ratio: 16/9;
}

/* Animações otimizadas para performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsivo – tablet e abaixo */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        background: var(--primary);
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
        display: none;
        min-width: 220px;
        pointer-events: none;
    }

    .nav-menu.is-open {
        display: flex;
        pointer-events: auto;
    }

    .hero {
        padding: 3rem 1.5rem;
        min-height: 340px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .modal-content {
        max-width: 90%;
        padding: 1.5rem;
    }
}

/* Responsivo – mobile */
@media (max-width: 600px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        right: 1rem;
        width: calc(100% - 2rem);
    }

    .hero {
        padding: 2.5rem 1.2rem;
        min-height: 300px;
        text-align: left;
    }

    .hero-content {
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 0.98rem;
    }

    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .about-highlights {
        flex-direction: column;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-icon {
        height: 150px;
    }

    .contact-info {
        padding: 1.5rem 0;
    }

    .floating-cta {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

    .floating-cta-icon {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .floating-cta:hover {
        width: 180px;
        height: 52px;
    }

    .video-modal-content {
        padding: 2.35rem 1rem 1rem;
        border-radius: 12px;
    }

    .video-modal-close {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .modal-content {
        max-height: 85vh;
        padding: 1.25rem;
        border-radius: 12px;
    }

    .thankyou-card {
        padding: 2rem 1.25rem;
        margin: 0 0.5rem;
    }

    .thankyou-status-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .thankyou-status-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.6rem;
        padding: 0.7rem 1rem;
        text-align: left;
    }

    .thankyou-title {
        font-size: 1.5rem;
    }
}

/* ===== COOKIE CONSENT BANNER (LGPD) ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 43, 76, 0.98);
    backdrop-filter: blur(8px);
    border-top: 3px solid var(--secondary);
    padding: 1.5rem 2rem;
    display: none;
    animation: slideUp 0.4s ease-out;
}

.cookie-banner.visible {
    display: flex;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: white;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-accept {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.cookie-accept:hover {
    background: #2C5F9B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.6);
}

.cookie-reject {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsivo - tablet */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-text h3 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===== PÁGINAS LEGAIS (TERMOS E PRIVACIDADE) ===== */
.legal-page {
    padding: 4rem 0;
    background: #ffffff;
    min-height: calc(100vh - 300px);
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar de Navegação */
.legal-sidebar {
    width: 260px;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.legal-sidebar h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.legal-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-sidebar li {
    margin-bottom: 0.5rem;
}

.legal-sidebar a {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0;
    border-radius: 0;
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 2px;
}

.legal-sidebar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.legal-sidebar a:hover {
    color: var(--secondary);
    background: none;
    box-shadow: none;
}

.legal-sidebar a:hover::after {
    width: 100%;
}

.legal-sidebar a.active {
    color: var(--primary);
    font-weight: 600;
    background: none;
    transition: color 0.25s ease;
}

.legal-sidebar a.active::after {
    width: 100%;
    background: var(--primary);
    transition: width 0.35s ease;
}

/* Conteúdo Principal */
.legal-content {
    flex: 1;
    max-width: 900px;
    background: white;
}

.legal-content h1 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.legal-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 999px;
}

.legal-content .last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    display: block;
    text-align: center;
    font-style: italic;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    line-height: 1.3;
    text-align: left;
}

.legal-content h2::after {
    display: none;
}

.legal-content section > h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.legal-content h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-align: left;
}

.legal-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: var(--text);
    font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content li {
    margin-bottom: 0.875rem;
    line-height: 1.75;
    color: var(--text);
    padding-left: 0.5rem;
}

.legal-content li strong {
    color: var(--primary);
    font-weight: 600;
}

.legal-content code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
    color: #e63946;
}

.legal-content a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.legal-content a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Navegação entre páginas */
.legal-nav {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}

.legal-nav p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.legal-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
    transition: color 0.25s ease;
}

.legal-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.legal-nav a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.legal-nav a:hover::after {
    width: 100%;
}

/* Responsivo – tablet */
@media (max-width: 1024px) {
    .legal-page {
        padding: 3rem 0;
    }

    .legal-container {
        flex-direction: column;
        gap: 2rem;
    }

    .legal-sidebar {
        width: 100%;
        position: static;
    }

    .legal-content {
        max-width: 100%;
    }

    .legal-content h1 {
        font-size: 2.25rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }
}

/* Responsivo – mobile */
@media (max-width: 600px) {
    .legal-page {
        padding: 2rem 0;
    }

    .legal-container {
        padding: 0 1.25rem;
    }

    .legal-sidebar {
        padding: 1.5rem 1rem;
    }

    .legal-content h1 {
        font-size: 1.875rem;
    }

    .legal-content h2 {
        font-size: 1.375rem;
        margin-top: 2rem;
    }

    .legal-content h3 {
        font-size: 1.125rem;
    }

    .legal-content ul,
    .legal-content ol {
        margin-left: 1.25rem;
    }

    .legal-content li {
        font-size: 0.9375rem;
    }

    .legal-content p {
        font-size: 0.9375rem;
    }

    .legal-nav {
        margin-top: 3rem;
        padding-top: 2rem;
    }
}

/* Estilos para impressão */
@media print {
    .legal-sidebar,
    nav,
    footer,
    .floating-cta,
    #cookie-banner {
        display: none !important;
    }

    .legal-page {
        background: white;
    }

    .legal-content {
        padding: 0;
        box-shadow: none;
        max-width: 100%;
    }

    .legal-content h1 {
        font-size: 24pt;
        page-break-after: avoid;
    }

    .legal-content h2 {
        font-size: 18pt;
        page-break-after: avoid;
        margin-top: 20pt;
    }

    .legal-content section {
        page-break-inside: avoid;
    }

    .legal-content a {
        color: var(--primary);
        text-decoration: underline;
    }
}

/* Scroll suave para toda a página */
html {
    scroll-behavior: smooth;
}

/* Melhorar contraste de foco para acessibilidade */
.legal-sidebar a:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.legal-content a:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== MELHORIAS DE UX/UI ===== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: calc(24px + 70px + 1rem);
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 119;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.35);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.scroll-to-top.show {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

.scroll-to-top:hover {
    background: #2C5F9B;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

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

/* Animação de fade-in ao scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Loader customizado para vídeos */
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10;
}

.video-loader.loading {
    display: block;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Efeitos hover melhorados para cards */
.service-card,
.video-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 43, 76, 0.15);
}

.video-card:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 16px 36px rgba(74, 144, 226, 0.25);
}

/* Melhorar transição dos botões CTA */
.cta-primary {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-primary:active::before {
    width: 300px;
    height: 300px;
}

/* Stagger animation para listas */
.services-grid .service-card,
.videos-grid .video-card {
    animation: staggerFadeIn 0.6s ease-out forwards;
}

.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.6s; }

.videos-grid .video-card:nth-child(1) { animation-delay: 0.1s; }
.videos-grid .video-card:nth-child(2) { animation-delay: 0.2s; }
.videos-grid .video-card:nth-child(3) { animation-delay: 0.3s; }
.videos-grid .video-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Melhorar interatividade de elementos focáveis */
.nav-menu a:focus-visible,
.cta-primary:focus-visible,
.service-card:focus-visible,
.video-card:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Transição suave em mudanças de tema (dark mode futuro) */
* {
    transition-property: background-color, color, border-color;
    transition-duration: 0.3s;
}

/* Desabilitar transição em elementos que não devem ter */
.loader-spinner,
.hero-video,
video {
    transition: none !important;
}

/* Garante que a transição do botão flutuante não seja sobrescrita */
.floating-cta {
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s ease,
                box-shadow 0.25s ease !important;
}

.floating-cta-icon {
    /* Não sobrescreve a animation com transition-property global */
    transition: font-size 0.25s ease !important;
}

.floating-cta-text {
    transition: opacity 0.22s ease 0.15s, transform 0.22s ease 0.15s !important;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    width: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
    transition: width 0.15s ease;
}


/* position: relative necessário para outras funcionalidades dessas seções */
.hero,
#about,
#videos {
    position: relative;
}

/* ===== ENHANCED SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* Adicionar efeito suave ao scroll em elementos */
body {
    scroll-padding-top: 80px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--secondary);
    animation: slideInToast 0.3s ease-out;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.info {
    border-left-color: var(--secondary);
}

.toast-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

.toast-message {
    flex: 1;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text);
}

@keyframes slideInToast {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.exiting {
    animation: slideOutToast 0.3s ease-in forwards;
}

@keyframes slideOutToast {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Responsivo para toast */
@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .toast {
        width: 100%;
    }
}

/* ===== DARK MODE STYLES ===== */
:root {
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: var(--light-bg);
    --color-text-primary: var(--text);
    --color-text-secondary: var(--text-light);
    --color-border: #E5E7EB;
    --color-shadow: rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] {
    --color-bg-primary: #1A1A1A;
    --color-bg-secondary: #2D2D2D;
    --color-text-primary: #E8E8E8;
    --color-text-secondary: #B0B0B0;
    --color-border: #404040;
    --color-shadow: rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
}

html[data-theme="dark"] nav {
    background: #0A1F35;
    box-shadow: 0 2px 10px var(--color-shadow);
}

html[data-theme="dark"] section {
    background-color: var(--color-bg-primary);
}

/* Sections alternando backgrounds no dark mode — espelha o padrão do modo claro */
/* Claro:  about=light-bg | videos=white | services=light-bg | contact=light-bg  */
/* Dark:   about=#242424  | videos=#1A1A1A | services=#242424 | contact=#242424  */
html[data-theme="dark"] #about {
    background: #242424;
}

html[data-theme="dark"] #videos {
    background: #1A1A1A;
}

html[data-theme="dark"] #services {
    background: #242424;
}

html[data-theme="dark"] #faq {
    background: #1A1A1A;
}

html[data-theme="dark"] #contact {
    background: #242424;
}

html[data-theme="dark"] .faq-item {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
    box-shadow: 0 4px 12px var(--color-shadow);
}

html[data-theme="dark"] .faq-item:hover,
html[data-theme="dark"] .faq-item.is-open {
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .faq-question {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .faq-question:hover,
html[data-theme="dark"] .faq-item.is-open .faq-question {
    color: var(--secondary);
}

html[data-theme="dark"] .faq-answer p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .light-bg {
    background-color: var(--color-bg-secondary);
}

html[data-theme="dark"] .service-card {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
    box-shadow: 0 4px 12px var(--color-shadow);
}

html[data-theme="dark"] .video-card {
    background: var(--color-bg-secondary);
    box-shadow: 0 4px 12px var(--color-shadow);
    border-color: var(--color-border);
}

html[data-theme="dark"] .video-card:hover {
    box-shadow: 0 6px 20px var(--color-shadow);
    transform: translateY(-5px);
}

html[data-theme="dark"] .video-card-thumb {
    background: #0d1b2a;
}

html[data-theme="dark"] .video-card-thumb::before {
    background: linear-gradient(
        90deg,
        #0d1b2a 0%,
        #152032 40%,
        #0d1b2a 80%
    );
    background-size: 200% 100%;
}

html[data-theme="dark"] .video-thumbnail {
    border-color: var(--color-border);
}

html[data-theme="dark"] .play-button {
    background: rgba(74, 144, 226, 0.9);
}

html[data-theme="dark"] .play-button:hover {
    background: rgba(74, 144, 226, 1);
}

html[data-theme="dark"] .video-title {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .video-description {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .modal-overlay {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(2px);
}

html[data-theme="dark"] .modal-content {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .modal-content h3 {
    color: var(--secondary);
}

html[data-theme="dark"] .modal-content h4 {
    color: var(--secondary);
}

html[data-theme="dark"] .modal-content p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .modal-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
    background-color: var(--color-bg-secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

html[data-theme="dark"] select option {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] label {
    color: var(--color-text-primary);
}

html[data-theme="dark"] hr,
html[data-theme="dark"] .divider {
    border-color: var(--color-border);
}

html[data-theme="dark"] .about-content,
html[data-theme="dark"] .contact-info {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .about-content h3,
html[data-theme="dark"] .contact-info h3 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .contact-info p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .contact-item a {
    color: var(--secondary);
}

html[data-theme="dark"] .contact-item a:hover {
    color: #6BA3F5;
}

html[data-theme="dark"] table {
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

html[data-theme="dark"] th {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

html[data-theme="dark"] td {
    border-color: var(--color-border);
}

html[data-theme="dark"] tr:nth-child(even) {
    background-color: var(--color-bg-secondary);
}

html[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0A1F35 0%, #0B2B4C 100%);
    color: white;
}

html[data-theme="dark"] .scroll-to-top {
    background: var(--secondary);
    color: white;
}

html[data-theme="dark"] .scroll-to-top:hover {
    background: #6BA3F5;
}

/* ===== DARK MODE: TYPOGRAPHY ===== */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: var(--color-text-primary);
}

/* Adorno abaixo dos títulos de seção — substitui o gradiente que usa --accent (bege, invisível no dark) */
html[data-theme="dark"] section h2::after {
    background: linear-gradient(90deg, var(--secondary), #93c5fd);
}

html[data-theme="dark"] p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] strong,
html[data-theme="dark"] b {
    color: var(--color-text-primary);
}

html[data-theme="dark"] em,
html[data-theme="dark"] i {
    color: inherit;
}

html[data-theme="dark"] code {
    background: var(--color-bg-primary);
    color: var(--secondary);
}

html[data-theme="dark"] ul,
html[data-theme="dark"] ol {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] li {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] a {
    color: var(--secondary);
}

html[data-theme="dark"] a:hover {
    color: #6BA3F5;
}

html[data-theme="dark"] i,
html[data-theme="dark"] .fa {
    color: inherit;
}

html[data-theme="dark"] .service-card i {
    color: var(--secondary);
}

html[data-theme="dark"] .contact-icon i {
    color: white;
}

/* ===== DARK MODE: FOOTER ===== */
html[data-theme="dark"] footer {
    background: #0A1F35;
    color: var(--color-text-primary);
}

html[data-theme="dark"] footer h4 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] footer p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] footer a {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] footer a:hover {
    color: var(--secondary);
}

html[data-theme="dark"] footer ul li a::after {
    background: var(--secondary);
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: var(--color-border);
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .social-links a {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

html[data-theme="dark"] .social-links a:hover {
    background: var(--secondary);
    color: white;
}


/* ===== DARK MODE: ABOUT SECTION ===== */
html[data-theme="dark"] .about-text h3 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .about-secondary {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .about-highlights {
    background: transparent;
}

html[data-theme="dark"] .highlight {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

html[data-theme="dark"] .highlight-number {
    color: var(--secondary);
}

html[data-theme="dark"] .highlight-text {
    color: var(--color-text-secondary);
}

/* ===== DARK MODE: CONTACT FORM ===== */
html[data-theme="dark"] .contact-form {
    background: #242424;
}

html[data-theme="dark"] .contact-form-title {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .contact-wrapper {
    background: transparent;
}

html[data-theme="dark"] .contact-item {
    background: #242424;
    border-color: var(--color-border);
}

html[data-theme="dark"] .contact-icon {
    background: #242424;
    color: white;
}

html[data-theme="dark"] .contact-details h4 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .contact-details p {
    color: var(--color-text-secondary);
}

/* ===== DARK MODE: SERVICE CARDS ===== */
html[data-theme="dark"] .service-content h3 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .service-content p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .service-card:hover {
    background: #3A3A3A;
    box-shadow: 0 6px 20px var(--color-shadow);
}

html[data-theme="dark"] .service-icon {
    background: var(--color-bg-primary);
    border: 2px solid var(--color-border);
}

html[data-theme="dark"] .service-icon img {
    opacity: 0.9;
}

html[data-theme="dark"] .service-card:hover .service-icon img {
    opacity: 1;
}

/* ===== DARK MODE: VIDEO MODAL ===== */
html[data-theme="dark"] .video-modal-content {
    background: var(--color-bg-secondary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .video-modal-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

html[data-theme="dark"] .video-modal-close,
html[data-theme="dark"] .modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #E8E8E8;
}

html[data-theme="dark"] .video-modal-close:hover,
html[data-theme="dark"] .modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* ===== DARK MODE: BUTTONS ===== */
html[data-theme="dark"] .cta-primary {
    background: var(--secondary);
    color: white;
}

html[data-theme="dark"] .cta-primary:hover {
    background: #6BA3F5;
    transform: translateY(-2px);
}

html[data-theme="dark"] .form-submit {
    background: var(--secondary);
    color: white;
}

html[data-theme="dark"] .form-submit:hover {
    background: #6BA3F5;
}

html[data-theme="dark"] .form-submit:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}


html[data-theme="dark"] button {
    color: inherit;
}

html[data-theme="dark"] .nav-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    background: transparent;
}

html[data-theme="dark"] .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .nav-toggle i {
    color: #ffffff;
}

/* ===== DARK MODE: FLOATING CTA ===== */
html[data-theme="dark"] .floating-cta {
    background: #22c55e;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .floating-cta:hover {
    background: #16a34a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .floating-cta-icon {
    color: #ffffff;
}

html[data-theme="dark"] .floating-cta-label {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .floating-cta-main {
    color: #ffffff;
}

/* ===== DARK MODE: COOKIE BANNER ===== */
html[data-theme="dark"] .cookie-banner {
    background: var(--color-bg-secondary);
    border-top-color: var(--color-border);
    box-shadow: 0 -4px 12px var(--color-shadow);
}

html[data-theme="dark"] .cookie-banner h3 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .cookie-banner p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .cookie-banner a {
    color: var(--secondary);
}

html[data-theme="dark"] .cookie-banner a:hover {
    color: #6BA3F5;
}

html[data-theme="dark"] .cookie-accept {
    background: var(--secondary);
    color: white;
}

html[data-theme="dark"] .cookie-accept:hover {
    background: #6BA3F5;
}

html[data-theme="dark"] .cookie-reject {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

html[data-theme="dark"] .cookie-reject:hover {
    background: var(--color-bg-secondary);
}

/* ===== DARK MODE: HERO SECTION ===== */
html[data-theme="dark"] .hero-content h1 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* ===== DARK MODE: NAVBAR MOBILE ===== */
html[data-theme="dark"] .nav-menu {
    background: #0A1F35;
}

html[data-theme="dark"] .nav-menu a {
    color: white;
}

html[data-theme="dark"] .nav-menu a:hover {
    color: var(--secondary);
    background: transparent;
}

/* ===== DARK MODE: LOADER ===== */
html[data-theme="dark"] .video-loader {
    background: var(--color-bg-primary);
}

html[data-theme="dark"] .loader-spinner {
    border-color: var(--color-border);
    border-top-color: var(--secondary);
}

/* ===== DARK MODE: SECTION SUBTITLE ===== */
html[data-theme="dark"] .section-subtitle {
    color: var(--color-text-secondary);
}

/* ===== THEME TOGGLE BUTTON STYLES ===== */
.theme-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-toggle:active {
    background: rgba(255, 255, 255, 0.15);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle.rotating i {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== TOAST STYLES FOR DARK MODE ===== */
html[data-theme="dark"] .toast {
    background: #2D2D2D;
    color: #E8E8E8;
    border: 1px solid #404040;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .toast-message {
    color: #E8E8E8;
}

html[data-theme="dark"] .toast.success {
    background: #1B3A2D;
    border: 1px solid #1B3A2D;
    border-left: 4px solid #10B981;
}

html[data-theme="dark"] .toast.success .toast-message {
    color: #E8E8E8;
}

html[data-theme="dark"] .toast.error {
    background: #3A1B1B;
    border: 1px solid #3A1B1B;
    border-left: 4px solid #EF4444;
}

html[data-theme="dark"] .toast.error .toast-message {
    color: #E8E8E8;
}

html[data-theme="dark"] .toast.info {
    background: #1B2D3A;
    border: 1px solid #1B2D3A;
    border-left: 4px solid var(--secondary);
}

html[data-theme="dark"] .toast.info .toast-message {
    color: #E8E8E8;
}

html[data-theme="dark"] .toast-close {
    color: #B0B0B0;
}

html[data-theme="dark"] .toast-close:hover {
    color: #E8E8E8;
}

/* ===== DARK MODE: LEGAL PAGES (POLÍTICA E TERMOS) ===== */
html[data-theme="dark"] .legal-page {
    background: #1A1A1A;
}

html[data-theme="dark"] .legal-sidebar {
    background: #242424;
    border-color: var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .legal-sidebar h3 {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .legal-sidebar a {
    color: rgba(209,213,219,0.9);
}

html[data-theme="dark"] .legal-sidebar a:hover {
    background: none;
    color: var(--secondary);
    box-shadow: none;
}

html[data-theme="dark"] .legal-sidebar a.active {
    background: none;
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.25s ease;
}

html[data-theme="dark"] .legal-sidebar a.active::after {
    width: 100%;
    background: var(--secondary);
    transition: width 0.35s ease;
}

html[data-theme="dark"] .legal-content {
    background: transparent;
    color: var(--color-text-primary);
}

html[data-theme="dark"] .legal-content h1 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .legal-content h1::after {
    background: linear-gradient(90deg, var(--secondary), #93c5fd);
}

html[data-theme="dark"] .legal-content .last-updated {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .legal-content section {
    background: transparent;
    border-color: var(--color-border);
}

html[data-theme="dark"] .legal-content h2 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .legal-content h3 {
    color: var(--secondary);
}

html[data-theme="dark"] .legal-content h4 {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .legal-content p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .legal-content ul,
html[data-theme="dark"] .legal-content ol {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .legal-content li {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .legal-content li strong {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .legal-content code {
    background: #2D2D2D;
    color: #93c5fd;
    border: 1px solid var(--color-border);
}

html[data-theme="dark"] .legal-content a {
    color: var(--secondary);
}

html[data-theme="dark"] .legal-content a:hover {
    color: #93c5fd;
}

html[data-theme="dark"] .legal-nav {
    border-top-color: var(--color-border);
}

html[data-theme="dark"] .legal-nav p {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .legal-nav a {
    color: rgba(209,213,219,0.9);
}

html[data-theme="dark"] .legal-nav a:hover {
    color: var(--secondary);
}

/* ===== DARK MODE: THANKYOU PAGE ===== */
html[data-theme="dark"] .thankyou-wrapper {
    background: var(--color-bg-primary);
}

html[data-theme="dark"] .thankyou-card {
    background: var(--color-bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .thankyou-title {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .thankyou-subtitle {
    color: var(--secondary);
}

html[data-theme="dark"] .thankyou-text {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .thankyou-status-item {
    background: var(--color-bg-primary);
    border-color: var(--color-border);
}

html[data-theme="dark"] .thankyou-status-value {
    color: var(--color-text-primary);
}

html[data-theme="dark"] .thankyou-status-received {
    color: #4ade80;
}

html[data-theme="dark"] .thankyou-divider::before {
    background: var(--color-border);
}

html[data-theme="dark"] .thankyou-divider span {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .thankyou-back-link {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .thankyou-back-link:hover {
    color: var(--secondary);
}

html[data-theme="dark"] .thankyou-whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #22c55e);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    border: 1px solid rgba(255,255,255,0.12);
}

html[data-theme="dark"] .ty-wa-icon {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}

html[data-theme="dark"] .ty-wa-label {
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .ty-wa-main {
    color: #ffffff;
    font-weight: 800;
}

html[data-theme="dark"] .ty-wa-arrow {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .thankyou-whatsapp-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.6);
}

/* ===== RESPONSIVE DARK MODE ===== */
@media (max-width: 768px) {
    .theme-toggle {
        position: absolute;
        top: 50%;
        right: 70px;
        left: auto;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

