/* ================================================
   CONGRESSO SEUSAUDE® - CSS OTIMIZADO
   ================================================ */

:root {
    --bg: #0A0A0F;
    --bg-alt: #111116;
    --bg-card: #16161D;
    --purple: #7C3AED;
    --purple-light: #A78BFA;
    --teal: #14B8A6;
    --green: #25D366;
    --white: #FAFAFA;
    --gray-100: #E4E4E7;
    --gray-300: #A1A1AA;
    --gray-400: #71717A;
    --gray-500: #52525B;
    --border: rgba(255,255,255,0.08);
    --border-accent: rgba(124,58,237,0.3);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--gray-300); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Loading */
.loading {
    position: fixed; inset: 0; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity .4s, visibility .4s;
}
.loading.hidden { opacity: 0; visibility: hidden; }
.loading-spinner {
    width: 36px; height: 36px; border: 2px solid var(--border);
    border-top-color: var(--purple); border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Topbar */
.topbar {
    background: var(--purple); padding: 10px 20px;
    position: relative; z-index: 1001;
}
.topbar-content {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
}
.topbar-text { color: #fff; font-size: 13px; text-align: center; }
.topbar-btn {
    background: #fff; color: var(--purple); padding: 6px 16px;
    border-radius: 4px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
}
.topbar-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,.7);
    font-size: 22px; cursor: pointer;
}

/* Header */
.header {
    position: fixed; top: 41px; left: 0; right: 0;
    background: rgba(10,10,15,.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); z-index: 1000;
    transition: top .3s, background .3s;
}
.header.scrolled { top: 0; }
.header-container {
    max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
    height: 70px; display: flex; align-items: center; justify-content: space-between;
}

/* Logo MAIOR */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; border-left: 1px solid var(--border); padding-left: 12px; }
.logo-title { font-size: 16px; font-weight: 700; color: var(--white); line-height: 1.2; }
.logo-subtitle { font-size: 11px; color: var(--purple-light); text-transform: uppercase; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; color: var(--gray-400); transition: color .2s; }
.nav-link:hover { color: var(--white); }
.nav-btn {
    background: var(--purple); color: #fff; padding: 10px 20px;
    border-radius: var(--radius); font-size: 14px; font-weight: 600;
}
.nav-btn:hover { background: var(--purple-light); }

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--white); transition: .2s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 140px 20px 80px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(rgba(124,58,237,.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(124,58,237,.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
}
.hero::after {
    content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,.12), transparent 70%);
    pointer-events: none;
}
.hero-container { max-width: 900px; text-align: center; position: relative; z-index: 1; }

/* Logo grande no hero */
.hero-logo-big { margin-bottom: 28px; text-align: center; }
.hero-logo-big img { height: 58px; width: auto; object-fit: contain; display: block; margin: 0 auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 10px 20px; border-radius: 50px; margin-bottom: 24px;
    font-size: 12px; color: var(--gray-300); text-transform: uppercase; letter-spacing: .5px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title { font-size: clamp(30px, 5vw, 54px); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.hero-accent { background: linear-gradient(135deg, var(--purple-light), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-desc { font-size: 17px; color: var(--gray-400); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; }

.hero-info {
    display: inline-flex; align-items: center; gap: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 20px 32px; border-radius: 12px; margin-bottom: 36px;
    flex-wrap: wrap; justify-content: center;
}
.hero-info-item { text-align: left; }
.hero-info-label { font-size: 10px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; display: block; }
.hero-info-value { font-size: 16px; font-weight: 600; color: var(--white); }
.hero-price { color: var(--teal); font-size: 18px; }
.hero-info-sep { width: 1px; height: 40px; background: var(--border); }

.hero-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius);
    font-size: 15px; font-weight: 600; transition: .2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gray-300); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-card); color: var(--white); }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: #20bd5a; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; background: var(--green);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 999;
    transition: .3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

/* Countdown */
.countdown {
    background: var(--bg-alt); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding: 40px 20px;
}
.countdown-container { max-width: 650px; margin: 0 auto; text-align: center; }
.countdown-title { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.countdown-boxes { display: flex; justify-content: center; gap: 12px; }
.countdown-box {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 24px; min-width: 80px;
}
.countdown-num { display: block; font-size: 32px; font-weight: 700; color: var(--white); line-height: 1; }
.countdown-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; }

/* Sections */
.section { padding: 80px 20px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: var(--max-w); margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-tag { font-size: 12px; color: var(--purple-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block; }
.section-title { font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--gray-400); max-width: 500px; margin: 0 auto; }

/* Speakers */
.speakers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.speaker {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; transition: .2s;
}
.speaker:hover { border-color: var(--border-accent); transform: translateY(-4px); }

.speaker-img { position: relative; padding-top: 100%; background: var(--bg-alt); overflow: hidden; }
.speaker-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.speaker-img.no-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-card));
}

.speaker-body { padding: 20px; }
.speaker-badge {
    display: inline-block; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    padding: 5px 12px; border-radius: 4px; margin-bottom: 10px;
}
.speaker-badge.confirmed { background: rgba(20,184,166,.15); color: var(--teal); }
.speaker-badge.pending { background: rgba(124,58,237,.15); color: var(--purple-light); }

.speaker-name { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.speaker-role { font-size: 13px; color: var(--gray-400); margin-bottom: 8px; }
.speaker-topic { font-size: 13px; font-weight: 500; color: var(--purple-light); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.speaker-bio { font-size: 13px; color: var(--gray-400); line-height: 1.5; margin-bottom: 12px; }
.speaker-social { display: flex; gap: 12px; }
.speaker-social a { font-size: 12px; color: var(--gray-500); transition: .2s; }
.speaker-social a:hover { color: var(--purple-light); }

/* Stats */
.stats {
    background: var(--bg-alt); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding: 48px 20px;
}
.stats-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg); padding: 28px 20px; text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--gray-400); text-transform: uppercase; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text h3 { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.about-text p { color: var(--gray-400); margin-bottom: 14px; line-height: 1.7; }
.about-contact { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.about-contact p { margin-bottom: 10px; }

.features { display: flex; flex-direction: column; gap: 14px; }
.feature {
    display: flex; gap: 14px; padding: 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: .2s;
}
.feature:hover { border-color: var(--border-accent); }
.feature-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: rgba(124,58,237,.15); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { color: var(--purple-light); }
.feature-text h4 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.feature-text p { font-size: 13px; color: var(--gray-400); margin: 0; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px; transition: .2s;
}
.topic:hover { border-color: var(--border-accent); }
.topic-icon {
    width: 44px; height: 44px; background: rgba(124,58,237,.15);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; margin-bottom: 18px;
}
.topic-icon svg { color: var(--purple-light); }
.topic h3 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.topic p { font-size: 14px; color: var(--gray-400); line-height: 1.6; }

/* Pricing */
.pricing {
    max-width: 440px; margin: 0 auto;
    background: var(--bg-card); border: 2px solid var(--border-accent);
    border-radius: 16px; padding: 40px; text-align: center;
    position: relative;
}
.pricing::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--teal));
    border-radius: 16px 16px 0 0;
}
.pricing-badge {
    display: inline-block; background: var(--purple); color: #fff;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    padding: 8px 18px; border-radius: 50px; margin-bottom: 20px;
}
.pricing-label { font-size: 14px; color: var(--gray-400); margin-bottom: 4px; }
.pricing-value { font-size: 48px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.pricing-cents { font-size: 24px; }
.pricing-note { font-size: 13px; color: var(--teal); margin-bottom: 28px; }
.pricing-list { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; font-size: 15px; color: var(--gray-300);
    border-bottom: 1px solid var(--border);
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list li::before {
    content: ''; width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314B8A6' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}
.pricing-whatsapp { margin-top: 16px; font-size: 13px; color: var(--gray-400); }
.pricing-whatsapp a { color: var(--green); font-weight: 600; }

/* Form */
.form-wrap { max-width: 500px; margin: 0 auto; }
.form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--gray-300); margin-bottom: 8px; }
.form-group input,
.form-group select {
    width: 100%; padding: 14px 16px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--white);
    font-size: 15px; font-family: var(--font); transition: .2s;
}
.form-group input::placeholder { color: var(--gray-500); }
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--purple); }
.form-group select {
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2371717A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.form-group select option { background: var(--bg-card); color: var(--white); }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.location-info h3 { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 20px; }
.location-card {
    display: flex; gap: 16px; padding: 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 14px;
    font-size: 14px; color: var(--gray-400); line-height: 1.6;
}
.location-card strong { display: block; color: var(--white); margin-bottom: 4px; }
.location-card a { color: var(--green); font-weight: 600; }
.location-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: rgba(124,58,237,.15); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
}
.location-icon svg { color: var(--purple-light); }
.location-map {
    border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.location-map iframe {
    width: 100%; height: 300px; display: block;
    filter: grayscale(100%) invert(92%) contrast(85%);
}

/* Footer */
.footer {
    background: var(--bg-alt); border-top: 1px solid var(--border);
    padding: 48px 20px 32px;
}
.footer-container { max-width: var(--max-w); margin: 0 auto; text-align: center; }

/* Logo MAIOR no footer */
.footer-logo-wrap { margin-bottom: 20px; }
.footer-logo { height: 52px; margin: 0 auto; }

.footer-text { font-size: 15px; color: var(--gray-400); margin-bottom: 24px; }
.footer-nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--gray-400); transition: .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { margin-bottom: 24px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.footer-social a {
    width: 40px; height: 40px; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; transition: .2s;
}
.footer-social a:hover { border-color: var(--purple); }
.footer-social svg { width: 18px; height: 18px; color: var(--gray-400); }
.footer-social a:hover svg { color: var(--purple-light); }
.footer-copy { font-size: 13px; color: var(--gray-500); padding-top: 24px; border-top: 1px solid var(--border); }

/* Modal */
.modal {
    position: fixed; inset: 0; background: rgba(10,10,15,.9);
    backdrop-filter: blur(8px); display: flex; align-items: center;
    justify-content: center; z-index: 10000; padding: 20px;
    opacity: 0; visibility: hidden; transition: .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 40px; max-width: 400px;
    width: 100%; text-align: center; position: relative;
    transform: scale(.95); transition: .3s;
}
.modal.open .modal-box { transform: scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: var(--gray-400);
    font-size: 24px; cursor: pointer;
}
.modal-icon {
    width: 64px; height: 64px; background: rgba(20,184,166,.15);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 20px;
}
.modal-icon svg { color: var(--teal); }
.modal-title { font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.modal-text { font-size: 15px; color: var(--gray-400); line-height: 1.6; }

/* ================================================
   RESPONSIVE - TABLET (768px - 1024px)
   ================================================ */
@media (max-width: 1024px) {
    .speakers { grid-template-columns: repeat(2, 1fr); }
    .topics { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; gap: 36px; }
    .location { grid-template-columns: 1fr; gap: 28px; }
    .hero-logo-big img { height: 50px; width: auto; }
}

/* ================================================
   RESPONSIVE - MOBILE (até 768px)
   ================================================ */
@media (max-width: 768px) {
    .section { padding: 60px 16px; }
    
    .topbar { padding: 12px 16px; }
    .topbar-content { flex-direction: column; gap: 10px; }
    .topbar-text { font-size: 12px; }
    
    .header { top: 80px; }
    .header-container { height: 64px; padding: 0 16px; }
    .logo-img { height: 36px; }
    .logo-text { display: none; }
    
    .nav {
        position: fixed; inset: 0; background: var(--bg);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 24px; transform: translateX(100%); transition: .3s; z-index: 998;
    }
    .nav.open { transform: translateX(0); }
    .nav-link { font-size: 20px; }
    .nav-btn { font-size: 18px; padding: 14px 32px; }
    
    .menu-toggle { display: flex; z-index: 1001; }
    
    .hero { padding: 140px 16px 60px; min-height: auto; }
    .hero-logo-big img { height: 44px; width: auto; }
    .hero-title { font-size: 28px; }
    .hero-desc { font-size: 15px; }
    
    .hero-info { flex-direction: column; gap: 16px; padding: 20px 24px; }
    .hero-info-sep { width: 100%; height: 1px; }
    .hero-info-item { text-align: center; width: 100%; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; padding: 16px; }
    
    .countdown-boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .countdown-box { min-width: auto; padding: 16px; }
    .countdown-num { font-size: 28px; }
    
    .speakers { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .topics { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-num { font-size: 30px; }
    
    .form { padding: 24px 20px; }
    .pricing { padding: 32px 24px; }
    .pricing-value { font-size: 40px; }
    
    .footer-logo { height: 44px; }
    .footer-nav { flex-direction: column; gap: 14px; }
    
    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* ================================================
   RESPONSIVE - SMALL MOBILE (até 480px)
   ================================================ */
@media (max-width: 480px) {
    .hero-title { font-size: 24px; }
    .hero-logo-big img { height: 38px; width: auto; }
    .section-title { font-size: 22px; }
    .countdown-num { font-size: 24px; }
    .stat-num { font-size: 26px; }
    .pricing-value { font-size: 36px; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* Performance */
img { content-visibility: auto; }