/* VisaMundial — header compacto + footer (mobile-first) */

.vm-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #e2e8f0;
}
.vm-header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: .65rem 1rem;
    display: flex; align-items: center; gap: 1rem;
    min-height: 58px;
}
.vm-logo {
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 800; color: #0f172a; text-decoration: none;
    font-size: 1.05rem; letter-spacing: -0.015em; flex-shrink: 0;
    margin-right: auto;
}
.vm-logo-mark { font-size: 1.35rem; line-height: 1; }
.vm-logo-text { font-weight: 800; }

.vm-nav { display: none; }

.vm-header-actions { display: flex; align-items: center; gap: .3rem; }
.vm-search-trigger, .vm-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: transparent; border: 0; border-radius: 10px;
    color: #1e293b; cursor: pointer; padding: 0;
    transition: background .15s;
}
.vm-search-trigger:hover, .vm-nav-toggle:hover { background: #f1f5f9; }

/* Mobile drawer menu */
.vm-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column;
}
.vm-menu li { display: block; }
.vm-menu a {
    display: block; padding: .9rem 1.25rem;
    color: #1e293b; text-decoration: none;
    font-weight: 600; font-size: 1rem;
    border-radius: 8px;
}
.vm-menu a:hover { background: #eff6ff; color: #2563eb; }
.vm-menu .current-menu-item > a, .vm-menu .current_page_item > a { color: #2563eb; }

/* Desktop */
@media (min-width: 860px) {
    .vm-header-inner { padding: .65rem 1.5rem; gap: 1.5rem; }
    .vm-logo { font-size: 1.15rem; margin-right: 1rem; }
    .vm-logo-mark { font-size: 1.5rem; }
    .vm-nav {
        display: flex; flex: 1;
        align-items: center; justify-content: center;
    }
    .vm-menu {
        flex-direction: row;
        gap: .15rem;
    }
    .vm-menu a {
        padding: .5rem .85rem;
        font-size: .92rem;
        border-radius: 7px;
        white-space: nowrap;
    }
    .vm-nav-toggle { display: none; }
}

/* Mobile open state: fixed drawer */
@media (max-width: 859px) {
    body.vm-nav-open .vm-nav {
        display: block !important;
        position: fixed; left: 0; right: 0; top: 58px;
        background: #fff; border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
        max-height: calc(100vh - 58px); overflow-y: auto;
        animation: vm-slide-down .2s ease;
    }
    @keyframes vm-slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
}

/* Search overlay */
.vm-search-overlay {
    position: fixed; inset: 0;
    display: none;
    z-index: 200;
}
.vm-search-overlay[aria-hidden="false"] { display: block; }
.vm-search-backdrop {
    position: absolute; inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(4px);
    animation: vm-fade-in .2s ease;
}
@keyframes vm-fade-in { from { opacity: 0; } to { opacity: 1; } }
.vm-search-overlay .vm-search-form {
    position: relative;
    max-width: 640px; margin: 15vh auto 0;
    padding: 0 1rem;
    display: flex; align-items: center;
    animation: vm-slide-up .25s ease;
}
@keyframes vm-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.vm-search-overlay .vm-search-form input {
    flex: 1; padding: 1.25rem 3rem;
    border: 0; border-radius: 14px;
    font-size: 1.1rem; font-weight: 500;
    background: #fff; color: #0f172a;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.vm-search-overlay .vm-search-form input:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
.vm-search-overlay .vm-search-icon { position: absolute; left: 2rem; color: #64748b; pointer-events: none; }
.vm-search-overlay .vm-search-close {
    position: absolute; right: 2rem;
    background: transparent; border: 0;
    font-size: 2rem; color: #64748b; cursor: pointer;
    line-height: 1; padding: 0 .5rem;
}

/* Footer */
.vg-site-footer {
    background: #0f172a; color: #cbd5e1;
    padding: 3.5rem 1rem 1.25rem; margin-top: 3rem;
}
.vg-site-footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.vg-footer-col h3 { color: #fff; font-size: 1.2rem; margin: 0 0 .65rem; font-weight: 800; }
.vg-footer-col h4 {
    color: #fff; font-size: .88rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin: 0 0 .75rem; font-weight: 700;
}
.vg-footer-col p { color: #94a3b8; font-size: .88rem; margin: 0 0 .75rem; line-height: 1.6; }
.vg-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.vg-footer-col a { color: #cbd5e1; text-decoration: none; font-size: .88rem; transition: color .15s; }
.vg-footer-col a:hover { color: #60a5fa; }
.vg-site-footer-bottom {
    max-width: 1200px; margin: 2.5rem auto 0;
    padding-top: 1.25rem; border-top: 1px solid #1e293b;
    text-align: center;
}
.vg-site-footer-bottom p { margin: 0; color: #64748b; font-size: .78rem; line-height: 1.5; }

/* Subscribe form */
.vm-subscribe {
    display: flex; gap: .5rem; margin-top: .75rem;
}
.vm-subscribe input {
    flex: 1; padding: .6rem .85rem;
    border: 1px solid #334155; border-radius: 8px;
    background: #1e293b; color: #fff; font-size: .88rem;
}
.vm-subscribe input::placeholder { color: #64748b; }
.vm-subscribe input:focus { outline: none; border-color: #2563eb; }
.vm-subscribe button {
    padding: .6rem 1rem;
    background: #2563eb; color: #fff;
    border: 0; border-radius: 8px;
    font-weight: 700; font-size: .85rem;
    cursor: pointer;
}
.vm-subscribe button:hover { background: #1d4ed8; }
.vm-subscribe-msg { font-size: .78rem; margin-top: .5rem; color: #10b981; }

/* Blog list */
.vg-blog-list {
    max-width: 1100px; margin: 2rem auto; padding: 0 1rem;
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.vg-post-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: all .2s;
}
.vg-post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,23,42,.1); border-color: #2563eb; }
.vg-post-card img { width: 100%; height: 180px; object-fit: cover; }
.vg-post-card h2 { font-size: 1.2rem; margin: 1rem 1.25rem .5rem; line-height: 1.3; }
.vg-post-card h2 a { color: #0f172a; text-decoration: none; }
.vg-post-card h2 a:hover { color: #2563eb; }
.vg-post-card .vg-meta { margin: 0 1.25rem; font-size: .82rem; color: #64748b; }
.vg-post-card p { padding: 0 1.25rem; color: #475569; flex: 1; font-size: .9rem; }
.vg-readmore { display: block; padding: .75rem 1.25rem 1.25rem; color: #2563eb; font-weight: 600; text-decoration: none; font-size: .9rem; }

@media (min-width: 680px) {
    .vg-blog-list { grid-template-columns: repeat(2, 1fr); }
    .vg-site-footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
}
@media (min-width: 960px) {
    .vg-blog-list { grid-template-columns: repeat(3, 1fr); }
}

/* ============ COMBOBOX header/legacy (scoped to .vm-combo to avoid colliding with .vm-combo-list dropdown of single-pais) ============ */
.vm-combo { position: relative; }
.vm-combo .vm-combo-input {
    width: 100%; padding: .9rem 2.5rem .9rem 1rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: #fff; font-size: 1rem; color: #0f172a;
    transition: all .15s;
}
.vm-combo .vm-combo-input:focus {
    outline: none; border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.vm-combo .vm-combo-arrow {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    width: 12px; height: 12px; color: #64748b; pointer-events: none;
}
.vm-combo .vm-combo-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    max-height: 280px; overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    z-index: 50; display: none;
}
.vm-combo .vm-combo-list[data-open="true"] { display: block; }
.vm-combo .vm-combo-option {
    display: flex; align-items: center; gap: .65rem;
    padding: .75rem 1rem; cursor: pointer;
    font-size: .95rem; color: #0f172a;
    transition: background .1s;
}
.vm-combo .vm-combo-option:hover, .vm-combo .vm-combo-option[aria-selected="true"] {
    background: #eff6ff; color: #2563eb;
}
.vm-combo .vm-combo-option-flag { font-size: 1.35rem; flex-shrink: 0; }
.vm-combo .vm-combo-empty {
    padding: 1rem; text-align: center;
    color: #64748b; font-size: .88rem;
}
.vm-combo .vm-combo-input::-webkit-search-cancel-button { display: none; }
