:root {
    --bg-color: #0f172a; /* Azul oscuro elegante */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --primary-color: #3b82f6; 
    --primary-hover: #2563eb;
    --accent-color: #8b5cf6; /* Violeta */
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
}

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

html {
    /* overflow-x aquí (en html) NO rompe position:fixed en móvil */
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    /* padding compensa: header fijo (64px) + ticker fijo (38px) = 102px */
    padding-top: 102px;
}

/* Background Blobs for Glassmorphism Effect */
/* Los blobs son fixed para no causar overflow horizontal en móvil */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.shape1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
}

.shape2 {
    top: 40%;
    right: -150px;
    width: 500px;
    height: 500px;
    background: var(--accent-color);
}

.shape3 {
    bottom: -200px;
    left: 20%;
    width: 600px;
    height: 600px;
    background: #10b981;
    opacity: 0.4;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

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

/* Reducir blobs en móvil para evitar overflow */
@media (max-width: 640px) {
    .shape1 { width: 200px; height: 200px; }
    .shape2 { width: 250px; height: 250px; }
    .shape3 { width: 300px; height: 300px; }
}

.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-header {
    /* SIN backdrop-filter aquí — se usa ::before para evitar
       que el stacking context oscurezca el drawer en iOS/Android */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    transition: box-shadow 0.3s;
}

/* El blur de fondo va en ::before (no afecta a los hijos fixed) */
.glass-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
    z-index: -1;
}

.glass-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.glass-header.scrolled::before {
    background: rgba(8, 14, 32, 0.97);
}

.glass-footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: 4rem;
}

/* ═══ HEADER & NAV ═══════════════════════════════════════ */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    z-index: 110;
}

.logo i { color: var(--primary-color); }

/* ── Botón hamburguesa (oculto en desktop) ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 7px;
    z-index: 110;
    transition: background 0.2s;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6); /* Rebote elegante */
    transform-origin: center;
}

/* Animación a X cuando está abierto */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #60a5fa; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #8b5cf6; }

/* ── Nav links (desktop) ── */
.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }

/* Íconos del nav: ocultos en desktop, visibles en móvil */
.nav-links a i { display: none; }

/* Header del drawer: oculto en desktop */
.nav-drawer-header { display: none; }

.admin-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    /* Mostrar solo el ícono en desktop */
    font-size: 0 !important;
}
.admin-link i {
    display: inline-block !important;
    font-size: 0.9rem;
}

/* ── Menú móvil ── */
@media (max-width: 768px) {
    .nav-content { height: 60px; }
    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 82vw;
        max-width: 340px;
        height: 100%;
        height: 100dvh;
        /* Glassmorphism Ultra-Premium */
        background: rgba(8, 12, 25, 0.75);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        gap: 0;
        transform: translateX(105%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open { transform: translateX(0); }

    /* ─── Cabecera del drawer ─── */
    .nav-drawer-header {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 1.5rem 1.8rem;
        min-height: 80px;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.02));
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.3rem;
        font-weight: 800;
        color: white;
        flex-shrink: 0;
        letter-spacing: -0.02em;
    }

    .nav-drawer-header i {
        background: linear-gradient(to bottom right, #60a5fa, #3b82f6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.35rem;
        display: inline-block !important;
        width: auto;
    }

    /* ─── Links del drawer ─── */
    .nav-links a {
        width: 100%;
        padding: 1.15rem 1.8rem;
        font-size: 1.05rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.75);
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: flex;
        align-items: center;
        gap: 1.1rem;
        text-decoration: none;
        position: relative;
        transition: background 0.2s, color 0.2s;
        min-height: 58px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        letter-spacing: 0.01em;
    }

    /* Activar íconos neon en móvil */
    .nav-links a i {
        display: inline-block;
        width: 24px;
        text-align: center;
        background: linear-gradient(135deg, #93c5fd, #60a5fa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.15rem;
        flex-shrink: 0;
        opacity: 0.8;
        transition: opacity 0.2s, transform 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: white;
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, transparent 100%);
    }

    .nav-links a:hover i,
    .nav-links a.active i {
        opacity: 1;
        transform: scale(1.1);
        background: linear-gradient(135deg, #bfdbfe, #3b82f6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Barra lateral de color en activo */
    .nav-links a.active::before {
        content: '';
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, #3b82f6, #a855f7);
        border-radius: 0 4px 4px 0;
        box-shadow: 2px 0 10px rgba(59, 130, 246, 0.5);
    }

    .nav-links a:last-child { border-bottom: none; }

    /* ─── Admin link Pro Tier ─── */
    .admin-link {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(76, 29, 149, 0.08)) !important;
        color: #ddd6fe !important;
        margin: 1.5rem !important;
        border-radius: 12px !important;
        padding: 0.9rem 1.2rem !important;
        border: 1px solid rgba(139, 92, 246, 0.25) !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin-top: auto !important;
        min-height: auto !important;
        box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 4px 15px rgba(0,0,0,0.2) !important;
    }

    .admin-link i { 
        background: linear-gradient(135deg, #d8b4fe, #a855f7) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        opacity: 1 !important;
    }

    .admin-link:hover {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(76, 29, 149, 0.12)) !important;
        border-color: rgba(139, 92, 246, 0.4) !important;
    }

    /* Overlay — z-index 99 para que esté DEBAJO del header (100) */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 99; /* El header fijo tiene 100, así que esto queda debajo del menú */
        cursor: pointer;
    }
    .nav-overlay.open { display: block; }
}

/* ═══ HERO SECTION ════════════════════════════════════════ */
.hero {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-text {
    padding: 3rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero-text h1 span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

@media (max-width: 640px) {
    .hero { margin-top: 1.5rem; }
    .hero-text { padding: 2rem 1.5rem; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text p  { font-size: 0.97rem; }
}

/* ═══ BUTTONS ═════════════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Cards & Grid */
.section-block {
    margin-bottom: 3rem;
}

.section-block h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-block h2 i {
    color: var(--accent-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.badge {
    align-self: flex-start;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--text-main);
}

/* Sidebar & Tips - Tweet-style cards (sin página propia, anti Thin Content) */
.sticky-sidebar {
    position: sticky;
    /* header(64) + ticker(38) + gap(8) */
    top: 110px;
}

.tips-section {
    padding: 1.5rem;
}

.tips-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tips-section h2 i {
    color: #fbbf24; /* Amarillo para la bombilla */
}

/* Badge "En Vivo" con punto pulsante */
.tips-live-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 0.2rem 0.55rem 0.2rem 0.9rem;
    position: relative;
    white-space: nowrap;
}

.tips-live-badge::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50%       { opacity: 0.4; transform: translateY(-50%) scale(1.4); }
}

/* Contenedor de tips con scroll interno si hay muchos */
.tips-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.tips-container::-webkit-scrollbar {
    width: 4px;
}

.tips-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* Tarjeta tipo tweet */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    animation: fadeInUp 0.4s ease both;
    cursor: default;
}

.tip-card:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(3px);
}

.tip-icon-badge {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
    margin-top: 2px;
}

.tip-content {
    flex: 1;
    min-width: 0;
}

.tip-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.tip-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Estado vacío */
.tip-empty {
    text-align: center;
    padding: 1.5rem 0;
}

.tip-empty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tip-empty p {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}

/* Ad Spaces Placeholder */
.promo-space {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    border: 1px dashed rgba(255,255,255,0.2);
}

.promo-banner {
    width: 100%;
    height: 110px; /* Space for a 728x90 layout + padding */
    margin: 2rem auto;
}

.promo-sidebar {
    height: 270px; /* Space for a 300x250 ad + padding */
}

/* Footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-info h3 {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.copy p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════════════
   TICKER DE INDICADORES ECONÓMICOS
══════════════════════════════════════════════════════════ */
.indicators-bar {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.88);
    border-bottom: 1px solid var(--glass-border);
    height: 38px;
    overflow: hidden;
    /* FIJO: debajo del header fijo (64px) */
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 90;
    backdrop-filter: blur(10px);
}

.ind-label-fixed {
    flex-shrink: 0;
    padding: 0 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #10b981;
    border-right: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.ind-ticker {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Scroll infinito */
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ind-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    gap: 0;
    will-change: transform;
}

.ind-track:hover { animation-play-state: paused; }

.ind-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    height: 38px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.ind-icon  { font-size: 0.9rem; }
.ind-label { color: var(--text-muted); }
.ind-value { color: var(--text-main); font-weight: 700; }
.ind-sep   { color: rgba(255,255,255,0.15); padding: 0 0.5rem; }

.ind-change { font-size: 0.75rem; font-weight: 700; margin-left: 0.25rem; }
.ind-up   { color: #10b981; }
.ind-down { color: #ef4444; }

/* ══════════════════════════════════════════════════════════
   NEWSLETTER — BANNER HOME (ancho completo)
══════════════════════════════════════════════════════════ */
.newsletter-widget {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(139, 92, 246, 0.12) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    padding: 2.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo */
.newsletter-widget::before {
    content: '✉';
    position: absolute;
    right: -20px; top: -20px;
    font-size: 10rem;
    opacity: 0.04;
    pointer-events: none;
    line-height: 1;
}

.nl-left {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    flex: 1;
    min-width: 280px;
}

.nl-icon-wrap {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.nl-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.nl-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.nl-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 300px;
    flex: 0 0 auto;
}

/* ── Campos de input newsletter ── */
.nl-input-wrap {
    position: relative;
    width: 100%;
}

.nl-input-icon {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.nl-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.nl-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.nl-btn {
    padding: 0.85rem 1.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* ── Estados del newsletter ── */
.newsletter-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    text-align: center;
}

.nl-success { color: #10b981; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); }
.nl-error   { color: #ef4444; background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.25); }
.nl-warn    { color: #f59e0b; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); }
.nl-loading { color: #60a5fa; }

/* ══════════════════════════════════════════════════════════
   NEWSLETTER — WIDGET DENTRO DEL ARTÍCULO
══════════════════════════════════════════════════════════ */
.newsletter-article-widget {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    text-align: center;
}

.nl-art-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.newsletter-article-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.newsletter-article-widget p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    /* Móvil: header(60px) + ticker(38px) = 98px */
    body { padding-top: 98px; }
    .indicators-bar { top: 60px; }
}

@media (max-width: 640px) {
    .newsletter-widget {
        padding: 1.5rem;
    }
    .nl-form { min-width: unset; width: 100%; }
    .nl-btn  { width: 100%; justify-content: center; }
    /* Reducir ticker en pantallas muy pequeñas */
    .indicators-bar { height: 32px; }
    /* header(60) + ticker(32) = 92px */
    body { padding-top: 92px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE GLOBAL MÓVIL — Ajuste fino de todos los componentes
══════════════════════════════════════════════════════════ */

/* ─── Contenedor ─── */
@media (max-width: 480px) {
    .container { width: 95%; }
}

/* ─── Cards y grids ─── */
@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-body { padding: 1.2rem; }
    .card-body h3 { font-size: 1.05rem; }

    .section-block { margin-bottom: 2rem; }
    .section-block h2 { font-size: 1.4rem; }

    /* Cubrimos el gap del promo-banner */
    .promo-banner { margin-bottom: 1rem; }
    .promo-space  { padding: 1rem; min-height: 60px; }
}

/* ─── Sidebar: en móvil va al final (ya lo hace el grid 1fr) ─── */
@media (max-width: 992px) {
    .sticky-sidebar {
        position: static; /* quita el sticky en móvil */
    }
    .sidebar {
        order: 2; /* debajo del main-content */
    }
    .main-content {
        order: 1;
    }
}

/* ─── Tips section en móvil ─── */
@media (max-width: 640px) {
    .tips-section { padding: 1.2rem; }
    .tips-container { max-height: 280px; }
    .tip-card { padding: 0.8rem; gap: 0.6rem; }
    .tip-icon-badge { width: 32px; height: 32px; font-size: 0.9rem; }
}

/* ─── Footer ─── */
@media (max-width: 640px) {
    .glass-footer { margin-top: 2rem; padding: 1.5rem 0; }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.2rem;
    }
}

/* ─── Indicadores ticker — texto más pequeño en móvil ─── */
@media (max-width: 480px) {
    .indicators-bar { height: 32px; }
    .ind-label-fixed { font-size: 0.6rem; padding: 0 0.6rem; }
    .ind-item { font-size: 0.72rem; padding: 0 0.8rem; }
    .ind-track { animation-duration: 20s; }
}

/* ─── Newsletter artículo — alineación ─── */
@media (max-width: 480px) {
    .newsletter-article-widget { padding: 1.4rem; }
    .newsletter-article-widget form > div {
        flex-direction: column;
    }
    .newsletter-article-widget .nl-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Calculadoras page ─── */
@media (max-width: 640px) {
    .calc-hero { padding: 2.5rem 0 1.5rem; }
    .calc-hero h1 { font-size: 1.9rem; }
    .calc-card { padding: 1.4rem; }
    .period-tabs { flex-wrap: wrap; }
    .period-btn { flex: 1 1 40%; min-width: 80px; }
    .cdt-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   SWEETALERT2 CUSTOM DARK THEME (FinTracker Style)
   ======================================================== */
.swal2-popup.swal-dark-theme {
    background: #1a1a1b !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    padding: 2rem !important;
}

.swal2-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
}

.swal2-html-container {
    font-family: 'Outfit', sans-serif !important;
    color: #cccccc !important;
    font-size: 1.1rem !important;
    margin-top: 1rem !important;
}

.swal2-confirm.swal-btn-confirm {
    background: linear-gradient(135deg, #ff4b6b 0%, #ff8c3a 100%) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 12px 30px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 75, 107, 0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
}

.swal2-confirm.swal-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 75, 107, 0.4) !important;
}

.swal2-icon.swal2-warning {
    border-color: #ffb86c !important;
    color: #ffb86c !important;
}

.swal2-icon.swal2-success {
    border-color: #50fa7b !important;
    color: #50fa7b !important;
}

.swal2-icon.swal2-error {
    border-color: #ff5555 !important;
    color: #ff5555 !important;
}

/* ========================================================
   UTILITIES & ADMIN PANEL CLASSES
   ======================================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.w-100 {
    width: 100%;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.glass-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select.glass-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
}

select.glass-input option {
    background: var(--primary-color);
    color: white;
}

/* Mensajes de estado */
.status-msg, .error-msg {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.error-msg, .status-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Admin Container */
.admin-container {
    margin-top: 6rem;
    margin-bottom: 5rem;
    max-width: 900px;
}

.login-box {
    max-width: 450px;
    margin: 0 auto;
}
