/* 
   Design System - cartaodecreditos.com 
   Theme: Premium Financial (Trust, Growth, Clarity)
*/

:root {
    /* Colors */
    --color-primary: #005f4b;
    /* Deep Green - Trust/Money */
    --color-primary-dark: #004a3a;
    --color-primary-light: #e6f2f0;

    --color-secondary: #0f172a;
    /* Navy Blue - Professionalism */
    --color-accent: #f59e0b;
    /* Gold/Amber - Attention/Value */

    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #f8fafc;

    --color-bg-body: #f8fafc;
    --color-bg-card: #ffffff;

    --color-success: #10b981;
    --color-danger: #ef4444;

    /* Typography */
    --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-family-heading: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

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

/* Components */

/* Cards */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-success {
    color: var(--color-success);
}

.text-danger {
    color: var(--color-danger);
}

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

.text-muted {
    color: var(--color-text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.icon-medium {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.badge-blue {
    background: #e0f2fe;
    color: #0284c7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: var(--spacing-md) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-light {
    background-color: var(--color-bg-body);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-height: 44px;
    /* Mobile accessibility */
}

.btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-accent:hover {
    background-color: #d97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

/* Cards */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Enhanced Product Card Elements */
.star-rating {
    color: #fbbf24;
    /* Gold */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.approval-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.badge-red {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-blue {
    background-color: #dbeafe;
    color: #2563eb;
}

.badge-green {
    background-color: #d1fae5;
    color: #059669;
}

.btn-pink {
    background-color: #ec4899;
    border-color: #ec4899;
}

.btn-blue {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.text-pink-500 {
    color: #ec4899;
}

.text-blue-500 {
    color: #3b82f6;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.icon-medium {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bg-light {
    background-color: #f8fafc;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.approval-high {
    background-color: #dcfce7;
    color: #166534;
}

.approval-medium {
    background-color: #fef9c3;
    color: #854d0e;
}

.card-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Compliance & Trust Elements */
.verified-badge {
    color: #1877F2;
    /* Facebook Blue */
    font-size: 0.9rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.compliance-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.75rem;
    line-height: 1.4;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    justify-content: center;
}

.security-notice i {
    color: var(--color-success);
}

/* Modern UI Enhancements */
.hero-modern {
    background: linear-gradient(135deg, #052e26 0%, var(--color-primary) 52%, var(--color-primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

.ai-widget-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.ai-skeleton {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.pulse {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

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

.card-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.icon-gradient {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.category-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.comparison-widget-container {
    min-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero-modern-small {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    padding: 4rem 0 6rem;
}

.badge-update {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.mt-neg-3 {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.comparison-widget-container-small {
    min-height: 400px;
    background: white;
    border-radius: 12px;
}

.tip-box {
    background: var(--color-primary-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.tip-box h4 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    padding: 4rem 0;
}

.hero-modern-loan {
    background: linear-gradient(135deg, #042f27 0%, var(--color-primary) 100%);
    color: white;
    padding: 4rem 0 6rem;
}

.badge-tag {
    background: var(--color-accent);
    color: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.comparison-widget-container-medium {
    min-height: 500px;
    background: white;
    border-radius: 12px;
}

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

.info-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.hero-modern-dark {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    padding: 4rem 0 6rem;
}

.hero-modern-global {
    background: linear-gradient(135deg, #0f766e 0%, #047857 100%);
    color: white;
    padding: 4rem 0 6rem;
}

.badge-world {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.fa-spin-slow {
    animation: fa-spin 10s infinite linear;
}

/* Comparison Table (Mobile Responsive) */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--spacing-lg) 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background-color: var(--color-bg-body);
    font-weight: 600;
    color: var(--color-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--spacing-md) 0;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large height */
    padding-bottom: var(--spacing-md);
}

/* Footer */
.site-footer {
    background-color: var(--color-secondary);
    color: #cbd5e1;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
}

.site-footer p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #cbd5e1;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: white;
}

.site-footer .disclaimer {
    font-size: 0.8rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 2rem auto 0;
    line-height: 1.5;
}

.site-footer .social-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.site-footer .social-links a {
    font-size: 2rem;
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .site-footer nav a {
        margin: 0;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 1.5rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 var(--spacing-md);
        line-height: 1.4;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid #e2e8f0;
        border-radius: var(--radius-md);
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .comparison-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f1f5f9;
        min-height: 2.5rem;
    }

    .comparison-table td:last-child {
        border-bottom: none;
    }

    .comparison-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--color-secondary);
    }

    .calculator-box {
        padding: 1.5rem;
    }

    .filter-nav {
        gap: 0.4rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        text-align: center;
    }

    .site-header {
        padding: 0.5rem 0;
    }

    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .site-header nav {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .site-header nav a:not(.btn) {
        margin-right: 0;
        font-size: 0.85rem;
    }

    .site-header .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: auto;
        min-height: 44px;
        /* Standard mobile tap target */
    }

    .site-header nav .btn.btn-outline {
        background-color: transparent;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-outline {
        background-color: rgba(0, 95, 75, 0.05);
    }

    .comparison-table td {
        padding-left: 40%;
    }

    .comparison-table td::before {
        width: 35%;
    }
}

/* Calculator Styles */
.calculator-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family-sans);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.contact-form-card {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form textarea.form-input {
    resize: vertical;
    min-height: 140px;
}

.result-box {
    background: var(--color-primary-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    text-align: center;
    display: none;
    /* Hidden by default */
}

.result-box.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-top: 0.5rem;
}

/* Filter Buttons */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--color-text-muted);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* Standardized Header */
.site-header {
    background: white;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

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

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.site-header nav > a:not(.btn) {
    font-weight: 500;
    color: var(--color-text-main);
    white-space: nowrap;
}

.site-header nav > a:not(.btn):hover {
    color: var(--color-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WordPress Blog Integration */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--color-secondary);
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-placeholder {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}

.blog-card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--color-secondary);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-footer {
    padding: var(--spacing-md);
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: auto;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Comparador estático */
.comparison-loaded.comparison-widget-container,
.comparison-loaded.comparison-widget-container-small,
.comparison-loaded.comparison-widget-container-medium {
    min-height: 0;
}

.comparison-table-wrap {
    padding: var(--spacing-md);
}

.table-disclaimer,
.table-legal {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 52rem;
}

.comparison-scroll {
    overflow-x: auto;
}

.btn-table {
    display: inline-block;
    padding: 0.45rem 1rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
}

.table-sub {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.comparison-error {
    padding: 2rem;
    text-align: center;
    color: var(--color-danger);
}

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

.negativado-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
}

.negativado-card h3 {
    color: var(--color-secondary);
    margin-bottom: 0.35rem;
}

.cat-pill {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.negativado-desc {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.mini-benefits {
    list-style: none;
    margin: 0 0 var(--spacing-md);
    padding: 0;
    font-size: 0.875rem;
    color: var(--color-text-main);
}

.mini-benefits li {
    margin-bottom: 0.35rem;
}

.mini-benefits i {
    margin-right: 0.35rem;
    color: var(--color-primary);
}

.mini-benefits .fa-triangle-exclamation {
    color: var(--color-accent);
}

.btn-block-neg {
    display: inline-block;
    width: 100%;
    text-align: center;
}

.loan-widget-hint {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #e2e8f0;
}

.loan-widget-hint a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Assistente (hero) — links sempre legíveis, sem azul em fundo azul */
.link-heading-more {
    font-weight: 700;
    color: var(--color-primary-dark);
}

.link-heading-more:hover {
    color: var(--color-accent);
}

.assistant-panel {
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assistant-log {
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.chat-bubble-user {
    background: rgba(245, 158, 11, 0.15);
}

.chat-bubble a {
    color: #fcd34d;
    text-decoration: underline;
}

.you-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.assistant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.assistant-chip {
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
}

.assistant-chip:hover {
    background: rgba(255, 255, 255, 0.08);
}

.assistant-input-row {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.assistant-input-row input {
    flex: 1;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 0.6rem 0.85rem;
    font-family: inherit;
}

.assistant-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.btn-assistant-send {
    padding: 0 1rem !important;
    flex-shrink: 0;
}

/* Artigos blog */
.article-prose {
    max-width: 760px;
}

.article-prose h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.article-prose h2 {
    margin-top: var(--spacing-lg);
}

.article-prose a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.article-prose a:hover {
    color: var(--color-accent);
}

.eeat-box {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-accent);
    background: #fffbeb;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

/* Evita texto azul difícil de ler em fundos frios (cards informativos) */
.info-card h4,
.info-card p {
    color: var(--color-text-main);
}

.info-card .text-primary,
.faq-card .text-primary {
    color: var(--color-primary-dark) !important;
}