/*
 * IVV — Mejoras visuales del tema (antes inline en wp_head: ivv_inline_improvements_css()).
 * Logo, pulse dot, hero (animaciones y pilares), botón WhatsApp, badges y botón del dashboard.
 * Se imprime en wp_head con prioridad 99 (misma posición en la cascada que tenía el <style> inline).
 * La regla del fondo del hero depende de una opción del personalizador y sigue inline (front page).
 * Nota: 'Plus Jakarta Sans' y 'Space Grotesk' NO se cargan en el sitio; se conserva la declaración
 * tal cual (el navegador usa el fallback sans-serif). Ver docs/DECISIONES-PENDIENTES.md.
 */
/* === FUENTES FINTECH === */
.ivv-logo-main, .ivv-logo-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.iev-hero-stat-value,
.iev-metric-value.roi,
.ivv-stat-num {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* === LOGO MEJORADO === */
.ivv-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .625rem;
}
.ivv-logo-icon-new {
    font-size: 2rem;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    line-height: 1;
}
.ivv-logo-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--iev-primary);
    display: block;
    line-height: 1.1;
}
.ivv-logo-sub {
    font-size: .65rem;
    font-weight: 500;
    color: var(--iev-gold);
    letter-spacing: .04em;
    display: none;
}
@media(min-width:768px) { .ivv-logo-sub { display: block; } }

/* === PULSE DOT (botón registrarse / dashboard) === */
.ivv-register-btn, .ivv-dashboard-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.ivv-pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: ivvPulseDot 1.8s ease-in-out infinite;
}
@keyframes ivvPulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); opacity: 1; }
    50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); opacity: .8; }
}

/* === HERO ANIMACIONES DE ENTRADA === */
@keyframes ivvSlideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
.iev-hero-badge    { animation: ivvSlideUp .7s ease both; }
.iev-hero-title    { animation: ivvSlideUp .7s .15s ease both; }
.iev-hero-subtitle { animation: ivvSlideUp .7s .28s ease both; }
.iev-hero-actions  { animation: ivvSlideUp .7s .4s ease both; }
.iev-hero-stats    { animation: ivvSlideUp .7s .55s ease both; }

/* === HERO PILARES BADGE === */
.ivv-hero-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
    animation: ivvSlideUp .7s .7s ease both;
}
.ivv-hero-pillar {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    background: rgba(200,155,60,.1);
    border: 1px solid rgba(200,155,60,.28);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* === WHATSAPP FLOTANTE === */
.ivv-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    background: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: ivvWaPulse 2.2s infinite;
}
@keyframes ivvWaPulse {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
    50%      { box-shadow: 0 4px 36px rgba(37,211,102,.75); }
}
.ivv-wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.6); }

.ivv-btn-gold-lg {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--iev-gold), #D4A84A);
    color: #06271A;
    padding: .875rem 2rem;
    border-radius: 8px;
    font-size: .9375rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .25s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.ivv-btn-gold-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200,155,60,.4);
    text-decoration: none;
    color: #06271A;
}

/* === FOOTER MEJORAS === */
.ivv-back-top {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    transition: color .2s ease;
    cursor: pointer;
}
.ivv-back-top:hover { color: var(--iev-gold); }

/* === TARJETAS PROYECTO — Hot Badge === */
.ivv-hot-badge {
    position: absolute;
    top: .875rem;
    right: .875rem;
    background: rgba(239,68,68,.85);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 100px;
    letter-spacing: .03em;
    box-shadow: 0 2px 8px rgba(239,68,68,.4);
    backdrop-filter: blur(4px);
}

/* === DASHBOARD BTN en header cuando logueado === */
.ivv-dashboard-btn {
    background: linear-gradient(135deg, var(--iev-gold), #D4A84A) !important;
    border-color: transparent !important;
}
