/* ===========================================
   ConsórcioPlus - Main Stylesheet
   =========================================== */

:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --primary-dark: #0d1442;
    --accent: #ff6b35;
    --accent-light: #ff8a5c;
    --accent-dark: #e55a2b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--dark); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; transition: var(--transition); }

.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }

/* Buttons */
.btn { font-weight: 600; padding: 0.75rem 1.5rem; border-radius: var(--radius); transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); border: none; }
.btn-accent:hover { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-accent { border: 2px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline-accent:hover { background: var(--accent); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Top Bar */
.top-bar { background: var(--primary-dark); padding: 0.5rem 0; font-size: 0.875rem; }
.top-link { color: rgba(255, 255, 255, 0.8); display: inline-flex; align-items: center; gap: 0.375rem; }
.top-link:hover { color: var(--white); }

/* Navbar */
.navbar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 1rem 0; box-shadow: var(--shadow); }
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 800; color: var(--white) !important; }
.brand-icon { font-size: 1.75rem; color: var(--accent); }
.brand-text { color: var(--white); }
.navbar-nav .nav-link { color: rgba(255, 255, 255, 0.9) !important; font-weight: 500; padding: 0.5rem 1rem !important; border-radius: var(--radius); transition: var(--transition); }
.navbar-nav .nav-link:hover { color: var(--white) !important; background: rgba(255, 255, 255, 0.1); }
.dropdown-menu { border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 0.5rem; }
.dropdown-item { border-radius: 8px; padding: 0.75rem 1rem; font-weight: 500; }
.dropdown-item:hover { background: var(--gray-100); color: var(--accent); }

/* Hero Section */
.hero-section { position: relative; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); overflow: hidden; min-height: 100vh; }
.hero-bg { position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>'); background-size: 300px; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--white); margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; max-width: 540px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 0.75rem 1.25rem; border-radius: 50px; color: var(--white); font-weight: 500; font-size: 0.9rem; }
.hero-badge i { color: var(--accent); font-size: 1.25rem; }
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; height: 400px; }
.hero-card { position: absolute; background: var(--white); padding: 1.5rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; animation: float 3s ease-in-out infinite; }
.hero-card-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--white); }
.hero-card-content .label { display: block; font-size: 0.875rem; color: var(--gray-500); }
.hero-card-content .value { display: block; font-size: 1.75rem; font-weight: 800; color: var(--dark); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: 80px; fill: var(--white); }

/* Section Styles */
.section-header { margin-bottom: 3rem; }
.section-badge { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); padding: 0.375rem 1rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* Stats Section */
.stats-section { background: var(--gray-100); }
.stat-card { text-align: center; padding: 2rem 1rem; }
.stat-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; color: var(--white); }
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: var(--gray-500); font-weight: 500; }

/* Benefit Cards */
.benefit-card { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); height: 100%; transition: var(--transition); border: 1px solid var(--gray-200); }
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.benefit-icon { width: 70px; height: 70px; background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.2)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--accent); margin-bottom: 1.5rem; }
.benefit-card h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.benefit-card p { color: var(--gray-500); margin-bottom: 0; }

/* Plan Cards */
.plans-section { background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%); }
.plan-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; height: 100%; box-shadow: var(--shadow); border: 2px solid var(--gray-200); transition: var(--transition); position: relative; display: flex; flex-direction: column; }
.plan-card:hover { border-color: var(--accent); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); padding: 0.375rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.plan-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--white); margin: 0 auto 1.5rem; }
.plan-title { text-align: center; font-size: 1.25rem; margin-bottom: 0.5rem; }
.plan-desc { text-align: center; color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1.5rem; }
.plan-details { background: var(--gray-100); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; }
.plan-detail { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--gray-300); }
.plan-detail:last-child { border-bottom: none; }
.plan-detail .label { color: var(--gray-500); font-size: 0.875rem; }
.plan-detail .value { font-weight: 600; color: var(--dark); font-size: 0.875rem; }
.plan-benefits { list-style: none; padding: 0; margin-bottom: 1.5rem; flex-grow: 1; }
.plan-benefits li { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.9rem; color: var(--gray-600); }
.plan-benefits i { color: var(--success); margin-top: 0.2rem; }

/* How It Works */
.how-section { background: var(--gray-100); }
.step-card { text-align: center; padding: 2rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); height: 100%; position: relative; }
.step-number { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; }
.step-icon { width: 80px; height: 80px; background: var(--gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 1rem auto; font-size: 2rem; color: var(--primary); }
.step-card h5 { margin-bottom: 0.75rem; }
.step-card p { color: var(--gray-500); margin-bottom: 0; font-size: 0.9rem; }

/* CTA Section */
.simulator-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.cta-card { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: var(--radius-lg); padding: 3rem; color: var(--white); }
.cta-card h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.cta-card p { opacity: 0.9; margin-bottom: 0; }
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 4rem 0; }

/* Testimonials */
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; height: 100%; box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: var(--transition); }
.testimonial-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: var(--warning); margin-bottom: 1rem; }
.testimonial-text { font-style: italic; color: var(--gray-600); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { font-size: 2.5rem; color: var(--gray-400); }
.testimonial-info strong { display: block; color: var(--dark); }
.testimonial-info span { font-size: 0.8rem; color: var(--gray-500); }

/* FAQ Section */
.faq-section { background: var(--gray-100); }
.accordion-item { border: none; margin-bottom: 1rem; border-radius: var(--radius) !important; overflow: hidden; box-shadow: var(--shadow); }
.accordion-button { font-weight: 600; padding: 1.25rem 1.5rem; background: var(--white); color: var(--dark); }
.accordion-button:not(.collapsed) { background: var(--white); color: var(--accent); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-button::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff6b35'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.accordion-body { padding: 0 1.5rem 1.5rem; color: var(--gray-600); line-height: 1.8; }

/* Newsletter */
.newsletter-card { background: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.newsletter-form .form-control { padding: 1rem 1.5rem; border-radius: var(--radius) 0 0 var(--radius); border: 2px solid var(--gray-200); }
.newsletter-form .form-control:focus { border-color: var(--accent); box-shadow: none; }
.newsletter-form .btn { border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.5rem; }

/* Footer */
.footer { background: var(--primary-dark); color: var(--white); padding: 4rem 0 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 800; }
.footer-title { color: var(--white); font-weight: 700; margin-bottom: 1.25rem; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.footer-contact i { color: var(--accent); margin-top: 0.2rem; }
.footer-contact a { color: rgba(255, 255, 255, 0.7); }
.footer-contact a:hover { color: var(--accent); }
.social-links { display: flex; gap: 0.75rem; }
.social-link { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.125rem; transition: var(--transition); }
.social-link:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.footer hr { border-color: rgba(255, 255, 255, 0.1); }

/* Floating Buttons */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25d366; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; box-shadow: var(--shadow-lg); z-index: 1000; transition: var(--transition); }
.whatsapp-float:hover { background: #128c7e; color: var(--white); transform: scale(1.1); }
.back-to-top { position: fixed; bottom: 100px; right: 30px; width: 45px; height: 45px; background: var(--primary); color: var(--white); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: var(--shadow); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); cursor: pointer; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); }

/* Page Header */
.page-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 6rem 0 3rem; color: var(--white); }
.page-header .breadcrumb { margin-bottom: 1rem; }
.page-header .breadcrumb-item a { color: rgba(255, 255, 255, 0.7); }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.5); }
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; margin-bottom: 0; }

/* Simulator Page */
.simulator-card { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tipo-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.tipo-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; }
.tipo-btn i { font-size: 1.5rem; }
.btn-check:checked + .tipo-btn { background: var(--accent); color: var(--white); border-color: var(--accent); }
.result-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.result-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 1.5rem; color: var(--white); }
.result-body { padding: 2rem; }
.result-main { text-align: center; padding: 1.5rem; background: var(--gray-100); border-radius: var(--radius); margin-bottom: 1.5rem; }
.result-label { display: block; font-size: 0.9rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.result-value { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.result-details { margin-bottom: 1.5rem; }
.result-item { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); }
.result-item.total { border-bottom: none; padding-top: 1rem; margin-top: 0.5rem; border-top: 2px solid var(--gray-200); }
.result-item span { color: var(--gray-500); }
.result-item strong { color: var(--dark); }
.info-card { background: var(--white); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.info-card i { font-size: 1.5rem; }
.info-card span { font-size: 0.85rem; font-weight: 600; color: var(--gray-600); }

/* Contact Page */
.contact-info-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); padding: 2rem; border-radius: var(--radius-lg); height: 100%; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 45px; height: 45px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-text strong { display: block; margin-bottom: 0.25rem; }
.contact-text p, .contact-text a { color: rgba(255, 255, 255, 0.8); margin-bottom: 0; }
.contact-text a:hover { color: var(--accent); }
.contact-form-card { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Cartas Contempladas */
.carta-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); position: relative; }
.carta-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.carta-badge { position: absolute; top: 1rem; right: 1rem; background: var(--primary); color: var(--white); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.carta-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 2rem; color: var(--white); text-align: center; }
.carta-header i { font-size: 3rem; margin-bottom: 0.5rem; display: block; }
.carta-header span { font-size: 0.9rem; opacity: 0.8; }
.carta-body { padding: 1.5rem; }
.carta-value { text-align: center; margin-bottom: 1.5rem; }
.carta-value .label { display: block; font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.carta-value .value { font-size: 1.75rem; font-weight: 800; color: var(--accent); }
.carta-details { background: var(--gray-100); border-radius: var(--radius); padding: 1rem; }
.carta-details .detail { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--gray-300); }
.carta-details .detail:last-child { border-bottom: none; }
.carta-details span { color: var(--gray-500); font-size: 0.85rem; }
.carta-details strong { color: var(--dark); font-size: 0.85rem; }
.carta-footer { padding: 0 1.5rem 1.5rem; }

/* Responsive */
@media (max-width: 991px) { .tipo-options { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .hero-section { min-height: auto; padding: 4rem 0; } .hero-title { font-size: 2rem; } .stat-value { font-size: 1.75rem; } .cta-card { padding: 2rem; } .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; } .back-to-top { bottom: 85px; right: 20px; } }
