/* Comparador de Billeteras Virtuales & Dólar Hoy - Estilos Modernos */

:root {
    --bg: #090e17;
    --surface: #111a2e;
    --surface-hover: #192540;
    --surface-border: #1e2c4d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --blue-accent: #38bdf8;
    --gold: #f59e0b;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: rgba(17, 26, 46, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1050px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 26px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-tag {
    background: #064e3b;
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

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

/* Main */
.main-wrap {
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    width: 100%;
    flex: 1;
}

.hero-section {
    text-align: center;
    margin-bottom: 35px;
}

.hero-section h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 15px;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Dólar Pizarra Grid */
.dolar-section {
    margin-bottom: 45px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh {
    background: #1e2c4d;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh:hover {
    background: #2a3c66;
}

.dolar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.dolar-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.dolar-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
}

.dolar-card.featured {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.dolar-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dolar-price {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 6px;
}

.dolar-sub {
    font-size: 11px;
    color: #64748b;
}

/* Calculadora Interactiva */
.calc-section {
    background: linear-gradient(145deg, #10192e, #0c1322);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    padding: 30px 24px;
    margin-bottom: 45px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.calc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.calc-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 130px;
}

.calc-input-wrap {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.calc-input-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 700;
}

.calc-input {
    width: 100%;
    background: #080d17;
    border: 1px solid #1e2c4d;
    border-radius: 10px;
    padding: 12px 14px 12px 32px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.calc-input:focus {
    border-color: var(--accent);
}

.quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-chip {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-chip:hover, .btn-chip.active {
    background: var(--accent);
    color: #052e16;
    border-color: var(--accent);
}

/* Term selector */
.term-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.term-btn {
    flex: 1;
    min-width: 80px;
    background: #0d1527;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.term-btn:hover {
    border-color: var(--blue-accent);
    color: var(--text-primary);
}

.term-btn.active {
    background: #1e3a8a;
    border-color: #38bdf8;
    color: #ffffff;
}

/* Tabla de Billeteras */
.billeteras-table-wrap {
    overflow-x: auto;
}

.billeteras-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.billeteras-table th {
    text-align: left;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.billeteras-table td {
    padding: 16px;
    background: var(--surface);
    font-size: 14px;
}

.billeteras-table tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.billeteras-table tr td:last-child {
    border-radius: 0 12px 12px 0;
}

.billeteras-table tr.top-1 td {
    background: #0f2420;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.billeteras-table tr.top-1 td:first-child {
    border-left: 1px solid rgba(16, 185, 129, 0.3);
}

.billeteras-table tr.top-1 td:last-child {
    border-right: 1px solid rgba(16, 185, 129, 0.3);
}

.wallet-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-icon {
    font-size: 24px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-title {
    font-weight: 800;
    color: #ffffff;
    display: block;
}

.wallet-type {
    font-size: 11px;
    color: var(--text-secondary);
}

.tna-cell {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
}

.gain-cell {
    font-size: 18px;
    font-weight: 900;
    color: #38bdf8;
}

.rank-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.rank-1 { background: #065f46; color: #a7f3d0; }
.rank-2 { background: #1e3a8a; color: #bfdbfe; }
.rank-3 { background: #78350f; color: #fde68a; }

/* Conversor Dólar */
.converter-box {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 45px;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
}

.conv-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conv-select {
    background: #080d17;
    border: 1px solid #1e2c4d;
    border-radius: 10px;
    padding: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

.conv-input {
    background: #080d17;
    border: 1px solid #1e2c4d;
    border-radius: 10px;
    padding: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    outline: none;
}

.conv-switch {
    background: #1e2c4d;
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 auto;
}

/* Cross-Sell Banner */
.cross-sell-banner {
    background: linear-gradient(135deg, #064e3b, #111a2e);
    border: 1px solid #10b981;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 45px;
}

.cross-sell-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.cross-sell-sub {
    font-size: 14px;
    color: #a7f3d0;
    margin-bottom: 18px;
}

.cross-sell-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cross-sell-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.cross-sell-btn:hover {
    background: #10b981;
    color: #064e3b;
    border-color: #10b981;
    transform: translateY(-2px);
}

/* FAQ */
.faq-section {
    margin-top: 30px;
}

.faq-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 14px;
}

.faq-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-accent);
    margin-bottom: 8px;
}

.faq-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: #05080f;
    border-top: 1px solid var(--surface-border);
    padding: 30px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 12px;
    color: #64748b;
}

.footer-copy a {
    color: var(--accent);
    text-decoration: none;
}

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