/**
 * Juros do Cartão - Stylesheet Principal
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 * Mobile-First Design
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   1. CSS RESET & BASE
   ======================================== */

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

:root {
    /* Cores Principais - Tema Azul SaaS Premium */
    --primary-color: #2563eb;    /* Blue 600 */
    --primary-dark: #1d4ed8;     /* Blue 700 */
    --primary-light: #60a5fa;    /* Blue 400 */
    
    --secondary-color: #0ea5e9;  /* Light Blue 500 */
    --secondary-dark: #0284c7;   /* Light Blue 600 */
    --secondary-light: #7dd3fc;  /* Light Blue 300 */
    
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    
    /* Cores de Superfície - Light Mode */
    --bg-color: #ffffff;
    --surface-color: #f8fafc;    /* Slate 50 */
    --surface-hover: #f1f5f9;    /* Slate 100 */
    --border-color: #e2e8f0;     /* Slate 200 */
    
    /* Cores de Texto - Light Mode */
    --text-color: #0f172a;       /* Slate 900 */
    --text-secondary: #475569;   /* Slate 600 */
    --text-muted: #94a3b8;       /* Slate 400 */
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Tipografia */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    /* Transições */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Header Height */
    --header-height: 60px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: #111827;
    --surface-color: #1f2937;
    --surface-hover: #374151;
    --border-color: #374151;
    
    --text-color: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

html {
    font-size: clamp(14px, 2.5vw, 16px);
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   2. HEADER FIXO
   ======================================== */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--surface-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-color);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    gap: var(--spacing-xs);
}

.nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--surface-hover);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* ========================================
   3. LAYOUT & CONTAINERS
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--surface-color);
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.page-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-color);
}

/* ========================================
   4. HERO SECTION
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.95) 100%), url('../img/hero_banner.png') center/cover no-repeat;
    color: white;
    padding: var(--spacing-2xl) 0;
    margin-top: 0;
    /* padding-top removed */
}

.hero-content {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-title {
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-emoji {
    display: inline-block;
    font-size: 1.2em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md); /* Reduzido de lg para md para não espremer o hero */
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ========================================
   5. BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background: var(--secondary-dark);
}

.btn-danger {
    background: var(--primary-color);
    color: white;
}

.btn-danger:hover {
    background: var(--primary-dark);
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
}

.btn-small {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Botões para fundos escuros/coloridos (Alto Contraste) */
.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   6. CARDS & GRIDS
   ======================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   7. EDUCATION CONTENT
   ======================================== */

.education-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.education-item {
    display: flex;
    gap: var(--spacing-lg);
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.education-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.education-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.education-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   8. FAQ SECTION
   ======================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--surface-hover);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer[hidden] {
    display: none;
}

/* ========================================
   9. FORMS
   ======================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

.form-help {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* ========================================
   10. SIMULATOR SPECIFIC
   ======================================== */

.simulator-layout {
    display: grid;
    gap: var(--spacing-xl);
}

.simulator-form-card,
.simulator-results {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 0; /* Impede que a tabela quebre o grid */
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.result-card {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.result-danger {
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid var(--primary-color);
}

.result-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--accent-color);
}

.result-info {
    background: rgba(5, 150, 105, 0.1);
    border: 2px solid var(--secondary-color);
}

.result-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.result-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-color);
    word-break: break-word;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.results-table-container {
    margin-top: var(--spacing-xl);
}

.table-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.table-responsive {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.results-table thead {
    background: var(--surface-hover);
}

.results-table th,
.results-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.results-table th {
    font-weight: 700;
    color: var(--text-color);
}

.results-table td {
    color: var(--text-secondary);
}

/* ========================================
   11. HISTORY SECTION
   ======================================== */

.history-section {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-xl);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.history-item {
    background: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* ========================================
   12. ALERTS
   ======================================== */

.alert-container {
    position: fixed;
    top: calc(var(--header-height) + var(--spacing-md));
    right: var(--spacing-md);
    z-index: 9999;
    max-width: 400px;
    pointer-events: none; /* Não bloqueia cliques na tela atrás do container */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-lg);
}

.alert-container .alert {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    pointer-events: auto; /* Permite interagir com o toast em si */
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.alert-success {
    background: var(--secondary-color);
    color: white;
}

.alert-danger {
    background: var(--primary-color);
    color: white;
}

.alert-warning {
    background: var(--accent-color);
    color: white;
}

.alert-info {
    background: #3b82f6;
    color: white;
}

/* ========================================
   13. FOOTER
   ======================================== */

.app-footer {
    background: var(--surface-color);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    margin: 0;
}

.b20-link {
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.b20-link:hover {
    color: var(--primary-color);
}

/* Estilo premium para o link www.b20.com.br */
.b20-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 1px solid rgba(220, 38, 38, 0.15);
    transition: all 0.3s ease;
}

.b20-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

[data-theme="dark"] .b20-badge {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .b20-badge:hover {
    background: var(--primary-color);
    color: white;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* Buttons Light */
.btn-light {
    background: white;
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-light:hover {
    background: #f8f9fa;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* ========================================
   14. CONTENT PAGES (Sobre, Contato, etc)
   ======================================== */

.content-layout {
    display: grid;
    gap: var(--spacing-xl);
}

.content-article {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.content-section {
    margin-bottom: var(--spacing-2xl);
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.content-list {
    list-style: none;
    padding-left: 0;
}

.content-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-box {
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.cta-text {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-card {
    background: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.sidebar-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.sidebar-list {
    list-style: none;
    padding-left: 0;
}

.sidebar-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* Contact Page */
.contact-layout {
    display: grid;
    gap: var(--spacing-xl);
}

.contact-form-card,
.contact-info-card {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-label {
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.contact-text,
.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-link:hover {
    color: var(--primary-color);
}

.info-box {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.info-box-primary {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.info-box-success {
    background: rgba(5, 150, 105, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.info-title {
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Legal Pages */
.legal-content {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.legal-section {
    margin-bottom: var(--spacing-2xl);
}

.legal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.legal-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-md);
}

.legal-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.legal-signature {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   15. RESPONSIVE - TABLET
   ======================================== */

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: row;
    }
    
    .results-actions {
        flex-direction: row;
    }
    
    .simulator-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .legal-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========================================
   16. RESPONSIVE - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-section {
        padding: calc(var(--spacing-2xl) * 1.5) 0;
    }
}

/* ========================================
   17. UTILITIES
   ======================================== */

.hidden {
    display: none !important;
}

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

/* ========================================
   18. ANIMATIONS
   ======================================== */

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ========================================
   19. PRINT STYLES
   ======================================== */

@media print {
    .app-header,
    .app-footer,
    .btn,
    .form-actions {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .results-table {
        page-break-inside: avoid;
    }
}

/* ========================================
   20. BOTTOM NAVIGATION (MOBILE)
   ======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-top: var(--spacing-xs);
    padding-bottom: calc(var(--spacing-xs) + env(safe-area-inset-bottom));
    transform: translateZ(0); /* Hardware acceleration para evitar flickering */
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    gap: 0;
    flex: 1;
    min-height: 50px;
    transition: color var(--transition-fast);
}

.bottom-nav-link .nav-icon {
    font-size: 1.25rem;
}

.bottom-nav-link .nav-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.bottom-nav-link.active,
.bottom-nav-link:hover {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

/* Lucide Icons Global Styles */
i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
    stroke-width: 2px;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.glass-panel .stat-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .glass-panel {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}


/* ========================================
   MOBILE OPTIMIZATIONS (HERO & TRUST BAR)
   ======================================== */
@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
    }

    .hero-actions .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .hero-stats .stat-card {
        padding: var(--spacing-md);
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .alert-container {
        top: auto;
        bottom: calc(80px + env(safe-area-inset-bottom) + var(--spacing-md));
        left: var(--spacing-md);
        right: var(--spacing-md);
        align-items: center;
        max-width: 100%;
    }
}
