/* ============================================================
   SmartMoney Blog — Shared Article Styles
   ============================================================ */
:root {
    --green: #059669;
    --green-light: #d1fae5;
    --green-mid: #10b981;
    --bg: #ffffff;
    --bg2: #f9fafb;
    --bg3: #f3f4f6;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --muted2: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* TOP BAR */
.topbar {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: .45rem 1rem;
    font-size: .8rem;
    font-weight: 500;
}

.topbar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

/* NAV */
nav {
    background: #fff;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 600;
}

.nav-main {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 60px;
}

.nav-logo {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo span {
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: 0 1rem;
    height: 60px;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}

.nav-item>a:hover,
.nav-item:hover>a {
    color: var(--green);
    border-bottom-color: var(--green);
}

.nav-item>a .arrow {
    font-size: .6rem;
    transition: transform .2s;
}

.nav-item:hover>a .arrow {
    transform: rotate(180deg);
}

.dropdown {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
    min-width: 560px;
    padding: 1.5rem;
    z-index: 300;
}

.nav-item:hover .dropdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dropdown-col h5 {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
    margin-bottom: .25rem;
}

.dropdown-link:hover {
    background: var(--bg2);
}

.dropdown-link-icon {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-link-text strong {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
}

.dropdown-link-text span {
    font-size: .78rem;
    color: var(--muted);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.search-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: .4rem .8rem;
    border-radius: 8px;
    font-size: .85rem;
    cursor: pointer;
}

.cta-nav {
    background: var(--green);
    color: #fff;
    border: none;
    padding: .5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}

.cta-nav:hover {
    background: #047857;
}

/* BREADCRUMB */
.breadcrumb {
    padding: 1rem 2rem;
    max-width: 90%;
    margin: 0 auto;
    font-size: .82rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.breadcrumb a:hover {
    color: var(--green);
}

.breadcrumb span {
    color: var(--green);
    margin: 0 .4rem;
}

/* ARTICLE LAYOUT */
.article-wrapper {
    max-width: 90%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
    align-items: start;
}

@media(max-width:900px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
}

/* CAT BADGE */
.cat-badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    border: 1px solid rgba(5, 150, 105, 0.25);
    padding: .3rem .9rem;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ARTICLE HEADER */
.article-header {
    margin-bottom: 2.5rem;
}

.article-header h1 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    margin: 1rem 0;
    letter-spacing: -0.01em;
    color: var(--text);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .85rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.author {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
}

.share-btns {
    display: flex;
    gap: .5rem;
    margin-left: auto;
}

.share-btn {
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: .35rem .8rem;
    border-radius: 6px;
    font-size: .78rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.share-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

/* ARTICLE BODY */
.article-body h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 .75rem;
    color: var(--green);
}

.article-body p {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1.2rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: .6rem;
    color: #374151;
    font-size: .97rem;
}

.article-body strong {
    color: var(--text);
}

/* PULL QUOTE */
.pull-quote {
    border-left: 3px solid var(--green);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg2);
    border-radius: 0 12px 12px 0;
}

.pull-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text);
    margin: 0;
    font-weight: 500;
}

/* TIP BOX */
.tip-box {
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.tip-box strong {
    color: var(--green);
    display: block;
    margin-bottom: .4rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tip-box p {
    color: #374151;
    font-size: .93rem;
    margin: 0;
}

/* STEP */
.step {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.step-num {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* INLINE CTA (AdSense position) */
.inline-cta {
    background: linear-gradient(135deg, #064e3b, #065f46);
    border-radius: 14px;
    padding: 1.75rem;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.inline-cta-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.inline-cta-text h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.inline-cta-text p {
    color: rgba(255, 255, 255, .75);
    font-size: .84rem;
}

.inline-cta a {
    background: #fff;
    color: var(--green);
    padding: .7rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    margin-left: auto;
    flex-shrink: 0;
}

.inline-cta a:hover {
    background: var(--green-light);
}

/* TABLE */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

th {
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: .75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--green);
}

td {
    border: 1px solid var(--border);
    padding: .7rem 1rem;
    color: #374151;
}

tr:nth-child(even) td {
    background: var(--bg2);
}

/* FINAL CTA (AdSense position) */
.final-cta {
    background: linear-gradient(135deg, #064e3b, #065f46);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
}

.final-cta h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: .75rem;
}

.final-cta p {
    color: rgba(255, 255, 255, .8);
    margin-bottom: 1.75rem;
}

.final-cta a {
    display: inline-block;
    background: #fff;
    color: var(--green);
    padding: .9rem 2rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    transition: all .2s;
}

.final-cta a:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}

.final-cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
}

.final-cta-features span::before {
    content: '✓ ';
}

/* SIDEBAR */
.article-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-card-body {
    padding: 1.25rem;
}

.sidebar-header {
    background: var(--text);
    color: #fff;
    padding: .65rem 1.25rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar-header.green {
    background: var(--green);
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    padding: .45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--green);
}

.app-promo-card {
    background: linear-gradient(160deg, #064e3b, #065f46);
    border: none;
}

.app-promo-card .sidebar-card-body {
    text-align: center;
    padding: 1.5rem;
}

.ap-badge {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .65rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: .75rem;
}

.app-promo-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .4rem;
}

.app-promo-card p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 1rem;
}

.app-icon {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    padding: 1rem;
    margin: .75rem 0;
    font-size: 2.5rem;
}

.app-btn {
    display: block;
    background: #fff;
    color: var(--green);
    font-weight: 700;
    font-size: .875rem;
    padding: .75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}

.app-btn:hover {
    background: var(--green-light);
}

.related-item {
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
}

.related-item:last-child {
    border-bottom: none;
}

.related-cat {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green);
}

.related-link {
    font-size: .84rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin: .2rem 0;
    line-height: 1.3;
}

.related-link:hover {
    color: var(--green);
}

.related-min {
    font-size: .75rem;
    color: var(--muted);
}

/* FOOTER */
footer {
    background: var(--text);
    color: rgba(255, 255, 255, .7);
    padding: 1.75rem;
    text-align: center;
    font-size: .85rem;
    margin-top: 3rem;
}

footer a {
    color: var(--green-mid);
    text-decoration: none;
}

/* ── Acordeón menú móvil ── */
.mobile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-radius: 10px;
    color: var(--text);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    user-select: none;
}

.mobile-section-header:hover {
    background: var(--bg3);
}

.mobile-section-header .acc-arrow {
    font-size: .65rem;
    transition: transform .3s;
}

.mobile-section-header.open .acc-arrow {
    transform: rotate(180deg);
}

.mobile-section-links {
    display: none;
    flex-direction: column;
    padding-left: .75rem;
    border-left: 2px solid var(--green-light);
    margin: 0 0 .25rem 1rem;
}

.mobile-section-links.open {
    display: flex;
}

.mobile-section-links a {
    padding: .55rem .85rem;
    font-size: .88rem;
    font-weight: 500;
}

/* ════════════════════════════════════════
   HAMBURGER & MOBILE MENU
════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 30px rgba(0, 0, 0, .15);
    z-index: 500;
    padding: 6.5rem 1.5rem 2rem;
    gap: .25rem;
    overflow-y: auto;
    transition: right .35s cubic-bezier(.4, 0, .2, 1);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    padding: .85rem 1rem;
    border-radius: 10px;
    color: var(--text);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.mobile-menu a:hover {
    background: var(--bg3);
}

.mobile-menu .mobile-cta {
    background: var(--green);
    color: #fff;
    text-align: center;
    margin-top: 1rem;
}

.mobile-menu .mobile-cta:hover {
    background: #047857;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 490;
}

.mobile-overlay.open {
    display: block;
}

/* ════════════════════════════════════════
   RESPONSIVE — max-width: 768px
════════════════════════════════════════ */
@media(max-width: 768px) {

    /* Topbar */
    .topbar {
        font-size: .72rem;
        padding: .5rem .75rem;
    }

    /* Nav */
    .nav-menu,
    .search-btn,
    .cta-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-main {
        gap: 0;
        padding: 0 1rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: .75rem 1rem;
        font-size: .78rem;
    }

    /* Article layout — single column */
    .article-wrapper {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem;
        gap: 2rem;
    }

    /* Article header */
    .article-header h1 {
        font-size: clamp(1.3rem, 6vw, 1.7rem);
    }

    .article-meta {
        gap: .75rem;
    }

    .share-btns {
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }

    /* Article body */
    .article-body h2 {
        font-size: 1.2rem;
        margin: 2rem 0 .75rem;
    }

    .article-body p,
    .article-body li {
        font-size: .95rem;
    }

    /* Inline CTA */
    .inline-cta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }

    .inline-cta a {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    /* Final CTA */
    .final-cta {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .final-cta h2 {
        font-size: 1.3rem;
    }

    .final-cta-features {
        gap: 1rem;
        font-size: .78rem;
    }

    /* Sidebar — baja al final en móvil */
    .article-sidebar {
        position: static;
    }

    /* Footer */
    footer {
        padding: 1.25rem 1rem;
        font-size: .8rem;
    }
}

@media(max-width: 480px) {
    .article-wrapper {
        padding: 1rem .85rem;
    }

    .share-btns .share-btn {
        flex: 1;
        text-align: center;
    }

    .step {
        padding: 1.1rem;
    }

    .pull-quote {
        padding: .85rem 1rem;
    }
}

/* ════════════════════════════════════════
   BILINGUAL — EN / ES
   blog-i18n.js adds .lang-en / .lang-es to body
════════════════════════════════════════ */

/* Hide content not matching current language */
body.lang-en [data-lang="es"] {
    display: none !important;
}

body.lang-es [data-lang="en"] {
    display: none !important;
}

/* Language toggle button */
.lang-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: .3rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-btn:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* Mobile lang button inside drawer */
.mobile-menu .lang-btn {
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .92rem;
    text-align: left;
    border: 1.5px solid var(--border);
    margin-top: .25rem;
}
/* ═══════════════════════════════════════
   WISE AFFILIATE BANNER — Blog Articles
   ═══════════════════════════════════════ */
.wise-blog-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    flex-wrap: wrap;
    text-decoration: none;
}
.wise-bb-left { display: flex; align-items: center; gap: .9rem; }
.wise-bb-emoji { font-size: 1.6rem; flex-shrink: 0; }
.wise-bb-title { font-weight: 700; font-size: .9rem; color: #064e3b; margin-bottom: .2rem; }
.wise-bb-sub { font-size: .76rem; color: #065f46; }
.wise-bb-cta {
    background: #059669;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    padding: .65rem 1.4rem;
    border-radius: 24px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .18s;
    flex-shrink: 0;
}
.wise-bb-cta:hover { background: #047857; box-shadow: 0 4px 16px rgba(5,150,105,.35); }
@media(max-width:600px) { .wise-blog-banner { flex-direction: column; } }
