/* ============================================================
   VisaMundial — HERO PREMIUM v1.4.2
   Cleaner H1 (no rotator), 2-col search, balanced layout, 100% responsive,
   no whitespace before footer.
   ============================================================ */

:root {
    --vm-ink: #0f172a;
    --vm-ink-soft: #334155;
    --vm-ink-muted: #64748b;
    --vm-bg: #ffffff;
    --vm-accent: #2563eb;
    --vm-accent-2: #7c3aed;
    --vm-accent-3: #06b6d4;
    --vm-accent-4: #f59e0b;
    --vm-glass: rgba(255, 255, 255, 0.78);
    --vm-glass-border: rgba(255, 255, 255, 0.5);
    --vm-shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .25);
    --vm-shadow-xl: 0 40px 80px -24px rgba(15, 23, 42, .35);
    --vm-radius-lg: 22px;
    --vm-radius-md: 14px;
    --vm-radius-sm: 10px;
    --vm-ease: cubic-bezier(.4,0,.2,1);
}

/* ============ Global fix: no white gap between final CTA and footer ============ */
.vg-home + .vg-site-footer,
.vg-cta-final + .vg-site-footer,
.vg-site-footer { margin-top: 0 !important; }
.vg-cta-final { padding: 4rem 20px !important; margin: 0 !important; }
.vg-cta-final + * { margin-top: 0; }
main.vg-home { margin-bottom: 0; padding-bottom: 0; }
body { margin: 0; }

/* ============ HERO CONTAINER ============ */
.vm-hero-premium {
    position: relative;
    min-height: auto;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 60%, #ffffff 100%);
    padding: clamp(40px, 4vw, 64px) 0 clamp(28px, 3vw, 44px);
    isolation: isolate;
}

.vm-mesh { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.vm-mesh-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.vm-mesh-orb-1 { top: -10%; left: -8%; width: 480px; height: 480px; background: radial-gradient(circle, #60a5fa 0%, transparent 70%); animation: vmFloatA 18s ease-in-out infinite; }
.vm-mesh-orb-2 { top: 20%; right: -10%; width: 420px; height: 420px; background: radial-gradient(circle, #a78bfa 0%, transparent 70%); animation: vmFloatB 22s ease-in-out infinite; }
.vm-mesh-orb-3 { bottom: -15%; left: 25%; width: 540px; height: 540px; background: radial-gradient(circle, #22d3ee 0%, transparent 70%); animation: vmFloatC 26s ease-in-out infinite; }
.vm-mesh-orb-4 { top: 45%; left: 50%; width: 360px; height: 360px; background: radial-gradient(circle, #fbbf24 0%, transparent 70%); animation: vmFloatD 20s ease-in-out infinite; opacity: .3; }
@keyframes vmFloatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.1); } }
@keyframes vmFloatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,60px) scale(0.95); } }
@keyframes vmFloatC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,-50px) scale(1.05); } }
@keyframes vmFloatD { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-60px,30px); } }

.vm-mesh-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; mix-blend-mode: overlay; }

.vm-mesh-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============ LAYOUT WRAPPER ============ */
.vm-hero-wrap {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 36px);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}
@media (max-width: 1024px) { .vm-hero-wrap { grid-template-columns: 1fr; } .vm-hero-visual { display: none; } }

/* ============ BADGE ============ */
.vm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--vm-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--vm-glass-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vm-ink);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-8px);
    animation: vmFadeDown .7s var(--vm-ease) .15s forwards;
}
.vm-pulse-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 0 rgba(34, 197, 94, .65); animation: vmPulse 2s infinite; }
@keyframes vmPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.vm-badge-sep { color: #cbd5e1; }
.vm-badge-stat { color: var(--vm-accent); font-weight: 700; }

/* ============ TITLE ============ */
.vm-hero-title {
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--vm-ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: vmFadeUp .9s var(--vm-ease) .25s forwards;
}

.vm-shine {
    display: inline-block;
    background: linear-gradient(90deg, var(--vm-accent) 0%, var(--vm-accent-2) 50%, var(--vm-accent-3) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: vmShine 4.5s ease-in-out infinite;
    position: relative;
}
.vm-shine-2 {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: vmShine 4.5s ease-in-out infinite;
    animation-delay: .6s;
}
@keyframes vmShine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ============ LEDE ============ */
.vm-hero-lede {
    font-size: clamp(.98rem, 1.2vw, 1.1rem);
    line-height: 1.5;
    color: var(--vm-ink-soft);
    max-width: 580px;
    margin: 0 0 20px;
    opacity: 0;
    animation: vmFadeUp .9s var(--vm-ease) .55s forwards;
}
.vm-hero-lede strong { color: var(--vm-ink); font-weight: 700; }

@keyframes vmFadeDown { to { opacity: 1; transform: translateY(0); } }
@keyframes vmFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============ SEARCH CARD (glassmorphism) ============ */
.vm-search-card {
    background: var(--vm-glass);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--vm-glass-border);
    border-radius: var(--vm-radius-lg);
    padding: 18px;
    box-shadow: var(--vm-shadow-xl);
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(20px);
    animation: vmFadeUp 1s var(--vm-ease) .75s forwards;
    position: relative;
}
.vm-search-card.vm-glow { box-shadow: 0 40px 80px -24px rgba(37, 99, 235, .35), 0 0 0 3px rgba(37, 99, 235, .15); }

.vm-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
}
@media (max-width: 640px) { .vm-search-form { grid-template-columns: 1fr; } }

.vm-field-group { display: flex; flex-direction: column; gap: 6px; }
.vm-field-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: var(--vm-ink-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.vm-input-wrap { position: relative; }
.vm-input-wrap input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .92);
    border: 2px solid rgba(15, 23, 42, .08);
    border-radius: var(--vm-radius-md);
    font-size: 15px;
    color: var(--vm-ink);
    transition: all .25s var(--vm-ease);
    font-weight: 500;
    box-sizing: border-box;
}
.vm-input-wrap input[type="text"]::placeholder { color: #94a3b8; opacity: 1; }
.vm-input-wrap input[type="text"]:focus {
    outline: none;
    border-color: var(--vm-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.vm-input-wrap select { position: absolute; opacity: 0; pointer-events: none; left: 0; top: 0; width: 100%; height: 100%; }

.vm-cta-btn {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--vm-accent) 0%, #1e40af 100%);
    color: #fff;
    border: 0;
    border-radius: var(--vm-radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .55);
    transition: all .3s var(--vm-ease);
    position: relative;
    overflow: hidden;
    width: 100%;
}
.vm-cta-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .6s var(--vm-ease);
}
.vm-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(37, 99, 235, .7); }
.vm-cta-btn:hover::before { transform: translateX(100%); }
.vm-cta-btn:active { transform: translateY(0); }

.vm-trending-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(15, 23, 42, .1);
}
.vm-trending-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--vm-ink-muted);
    margin-right: 4px;
    width: 100%;
    text-align: center;
}
@media (min-width: 640px) {
    .vm-trending-row { justify-content: flex-start; }
    .vm-trending-label { width: auto; text-align: left; }
}
.vm-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    background: rgba(37, 99, 235, .08);
    color: var(--vm-accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s var(--vm-ease);
    border: 1px solid transparent;
    white-space: nowrap;
}
.vm-chip:hover { background: var(--vm-accent); color: #fff; transform: translateY(-1px); }

/* ============ STATS ROW ============ */
.vm-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    opacity: 0;
    animation: vmFadeUp .9s var(--vm-ease) 1s forwards;
}
.vm-stat { display: flex; flex-direction: column; gap: 3px; }
.vm-stat strong {
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    font-weight: 800;
    color: var(--vm-ink);
    line-height: 1;
    background: linear-gradient(135deg, var(--vm-accent), var(--vm-accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vm-stat span { font-size: 12px; color: var(--vm-ink-muted); font-weight: 500; }
@media (max-width: 600px) { .vm-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ============ TRUST ROW ============ */
.vm-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    opacity: 0;
    animation: vmFadeUp .9s var(--vm-ease) 1.15s forwards;
}
.vm-trust-label {
    font-size: 11px; font-weight: 700; color: var(--vm-ink-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.vm-trust-logo {
    font-size: 12px; font-weight: 700; color: var(--vm-ink-soft);
    padding: 4px 10px; background: rgba(15, 23, 42, .04); border-radius: 6px;
    transition: background .2s;
}
.vm-trust-logo:hover { background: rgba(37, 99, 235, .12); color: var(--vm-accent); }

/* ============ HERO VISUAL ============ */
.vm-hero-visual {
    position: relative;
    height: 380px;
    opacity: 0;
    transform: scale(.95);
    animation: vmVisualIn 1.4s cubic-bezier(.2,.7,.1,1) .4s forwards;
    align-self: center;
}
@keyframes vmVisualIn { to { opacity: 1; transform: scale(1); } }

.vm-globe-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vm-globe-orbit {
    position: absolute; width: 300px; height: 300px;
    border: 1.5px dashed rgba(37, 99, 235, .25); border-radius: 50%;
    animation: vmSpin 60s linear infinite;
}
.vm-globe-orbit-2 {
    width: 380px; height: 380px;
    border-color: rgba(124, 58, 237, .18);
    animation-direction: reverse; animation-duration: 80s;
}
@keyframes vmSpin { to { transform: rotate(360deg); } }

.vm-globe-core {
    position: relative;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #60a5fa 0%, #2563eb 50%, #1e40af 100%);
    box-shadow: inset -20px -20px 60px rgba(15, 23, 42, .4), 0 30px 80px -20px rgba(37, 99, 235, .65);
    display: flex; align-items: center; justify-content: center;
    animation: vmGlobeBob 8s ease-in-out infinite;
    z-index: 2;
}
.vm-globe-emoji { font-size: 90px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25)); }
@keyframes vmGlobeBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.vm-floating-flag {
    position: absolute;
    font-size: 32px;
    background: #fff;
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, .25);
    animation: vmFlagFloat 6s ease-in-out infinite;
    z-index: 3;
}
.vm-fflag-1 { top: 8%; left: 18%; animation-delay: 0s; }
.vm-fflag-2 { top: 16%; right: 14%; animation-delay: .5s; }
.vm-fflag-3 { bottom: 22%; left: 8%; animation-delay: 1s; }
.vm-fflag-4 { bottom: 14%; right: 18%; animation-delay: 1.5s; }
.vm-fflag-5 { top: 50%; left: 2%; animation-delay: 2s; }
.vm-fflag-6 { top: 48%; right: 2%; animation-delay: 2.5s; }
.vm-fflag-7 { top: 4%; left: 50%; transform: translateX(-50%); animation-delay: 3s; }
.vm-fflag-8 { bottom: 4%; left: 50%; transform: translateX(-50%); animation-delay: 3.5s; }
@keyframes vmFlagFloat { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(0, -10px); } }
.vm-fflag-7, .vm-fflag-8 { animation-name: vmFlagFloatX; }
@keyframes vmFlagFloatX { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }

.vm-floating-card {
    position: absolute;
    background: #fff;
    padding: 11px 15px;
    border-radius: 14px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, .2);
    border: 1px solid rgba(15, 23, 42, .04);
    z-index: 4;
    animation: vmCardFloat 7s ease-in-out infinite;
}
.vm-fcard-1 { top: 28%; left: -2%; animation-delay: .3s; }
.vm-fcard-2 { bottom: 30%; right: -4%; animation-delay: 1.3s; }
.vm-fcard-3 { top: 4%; right: 32%; animation-delay: 2.3s; }
.vm-fcard-icon { font-size: 20px; }
.vm-floating-card strong { display: block; font-size: 13px; color: var(--vm-ink); line-height: 1.1; }
.vm-floating-card span { font-size: 11px; color: var(--vm-ink-muted); }
@keyframes vmCardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ SCROLL CUE ============ */
.vm-scroll-cue {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid rgba(15, 23, 42, .25);
    border-radius: 999px;
    z-index: 3;
}
.vm-scroll-cue span {
    position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--vm-accent);
    border-radius: 999px;
    animation: vmScrollDown 1.8s ease-in-out infinite;
}
@keyframes vmScrollDown { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 24px; } }

/* ============ Verificador result ============ */
.vg-verificador-result:not(:empty) {
    margin-top: 18px;
    padding: 16px 18px;
    background: rgba(34, 197, 94, .08);
    border: 1.5px solid rgba(34, 197, 94, .25);
    border-radius: var(--vm-radius-md);
    font-size: 14px; line-height: 1.55;
}

/* ============ Mobile / Tablet polish v1.5.3 — overflow-safe ============ */
.vm-hero-premium, .vm-hero-wrap, .vm-hero-content { min-width: 0; max-width: 100%; }
.vm-hero-content * { max-width: 100%; box-sizing: border-box; }
.vm-hero-title, .vm-hero-lede, .vm-hero-badge { word-wrap: break-word; overflow-wrap: anywhere; }

@media (max-width: 768px) {
    .vm-hero-premium { padding: 48px 0 32px; min-height: auto; }
    .vm-hero-wrap { padding: 0 14px; gap: 18px; }
    .vm-hero-badge { font-size: 11px; padding: 6px 12px; }
    .vm-hero-title { font-size: clamp(1.55rem, 6vw, 2.2rem); }
    .vm-hero-lede { font-size: 14.5px; }
    .vm-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .vm-trust-row { justify-content: center; gap: 8px; }
    .vm-search-card { padding: 16px; border-radius: 16px; }
    .vm-search-form { gap: 10px; }
    .vm-scroll-cue { display: none; }
    .vm-mesh-orb { opacity: .35 !important; }
    .vm-trending-row { justify-content: center; }
}
@media (max-width: 480px) {
    .vm-hero-premium { padding: 36px 0 24px; }
    .vm-hero-wrap { padding: 0 12px; gap: 14px; }
    .vm-hero-title { font-size: clamp(1.4rem, 7vw, 1.85rem); line-height: 1.15; }
    .vm-hero-lede { font-size: 13.5px; line-height: 1.45; }
    .vm-search-card { padding: 14px; border-radius: 14px; }
    .vm-input-wrap input[type="text"] { padding: 11px 13px; font-size: 14px; }
    .vm-cta-btn { padding: 13px 18px; font-size: 14.5px; }
    .vm-trust-row { gap: 5px; padding-top: 12px; }
    .vm-trust-logo { font-size: 10.5px; padding: 3px 7px; }
    .vm-hero-stats { gap: 8px; }
    .vm-stat strong { font-size: clamp(1rem, 5vw, 1.3rem); }
    .vm-chip { font-size: 12px; padding: 5px 10px; }
}
@media (max-width: 360px) {
    .vm-hero-title { font-size: 1.35rem; }
    .vm-hero-stats { grid-template-columns: 1fr 1fr; }
    .vm-hero-badge { font-size: 10px; }
}

/* ============ Reduce motion ============ */
@media (prefers-reduced-motion: reduce) {
    .vm-mesh-orb, .vm-pulse-dot, .vm-globe-core, .vm-floating-flag, .vm-floating-card, .vm-globe-orbit, .vm-shine, .vm-shine-2 {
        animation: none !important;
    }
    .vm-hero-title, .vm-hero-lede, .vm-search-card, .vm-hero-stats, .vm-trust-row, .vm-hero-visual, .vm-hero-badge {
        opacity: 1 !important; transform: none !important;
    }
}
