/* =========================================
   CAUCIONAR UI - ESTILOS
   ========================================= */

:root {
    --bg-dark: #0A1628; 
    --bg-panel: rgba(22, 45, 70, 0.7);
    --bg-panel-border: #254360;
    --text-main: #F0F4F8;
    --text-silver: #94A3B8;
    
    --cyan-mint: #00BFA6;
    --cyan-mint-glow: rgba(0, 191, 166, 0.2);
    --gold-amber: #F59E0B;
    
    --border-radius: 0.625rem;
    --font-family: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-family);
    min-height: 100vh; padding: 20px;
    background: radial-gradient(circle at 10% 20%, #0F2336 0%, #0A1628 100%);
}
h1, h2, h3, h4 { color: var(--text-main); font-weight: 600; }
p, span, small { color: var(--text-silver); font-size: 0.95rem; }

.cyan-text { color: var(--cyan-mint) !important; text-shadow: 0 0 10px var(--cyan-mint-glow); }
.gold-text { color: var(--gold-amber) !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.full-width { width: 100%; }
.full-height { height: 100%; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.hidden { display: none !important; }

.glass-panel {
    background: var(--bg-panel); backdrop-filter: blur(12px);
    border: 1px solid var(--bg-panel-border);
    border-radius: var(--border-radius); padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Modales */
.modal {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-content { width: 100%; max-width: 450px; text-align: center; }
.modal-content h2 { margin-bottom: 10px; }
.modal-content p { margin-bottom: 25px; }

/* Botones */
button { font-family: var(--font-family); cursor: pointer; border-radius: 8px; font-weight: 500; font-size: 0.95rem; transition: 0.3s; border: none; padding: 10px 20px; }
.btn-primary { background: var(--cyan-mint); color: #000; box-shadow: 0 0 15px var(--cyan-mint-glow); }
.btn-primary:hover { background: #00DfB2; box-shadow: 0 0 25px var(--cyan-mint-glow); }
.btn-outline { background: transparent; color: var(--cyan-mint); border: 1px solid var(--cyan-mint); }
.btn-outline:hover { background: var(--cyan-mint-glow); }
.btn-text { background: transparent; color: var(--text-silver); margin-top: 15px;}
.btn-text:hover { color: var(--text-main); }
.btn-icon { background: rgba(255,255,255,0.1); color: var(--text-main); padding: 8px; border-radius: 6px; }

/* ---------------------------------
   LANDING PAGE (PRE-LOGIN) 2/3 y 1/3 
--------------------------------- */
.landing-container { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.public-header h2 { display: flex; align-items: center; gap: 8px; }
.landing-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

/* ---------------------------------
   DASHBOARD (POST-LOGIN)
--------------------------------- */
.dashboard-container { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* Header & KPIs */
.profile-info h1 { font-size: 1.5rem; display: inline-block; margin-right: 15px; }
.badge.verified { background: rgba(0, 242, 195, 0.1); color: var(--cyan-mint); padding: 5px 10px; border-radius: 20px; font-size: 0.8rem;}
.bento-kpibar { justify-content: space-around; padding: 20px; }
.kpi-widget { text-align: center; }
.kpi-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.kpi-value { font-size: 2rem; }

/* Radial Capacity Indicator */
.radial-leverage {
    width: 60px; height: 60px; border-radius: 50%; margin: 0 auto;
    border: 4px solid var(--text-silver); border-top-color: var(--cyan-mint);
    display: flex; justify-content: center; align-items: center;
}
.radial-leverage span { font-size: 0.75rem; font-weight: bold; color: var(--text-main); }

.post-login-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; }

/* Listados RFX */
.opp-list { min-height: 65vh; display: flex; flex-direction: column; }
.search-filters { display: flex; gap: 10px; }
.search-filters input, .search-filters select {
    background: rgba(255,255,255,0.05); border: 1px solid var(--bg-panel-border);
    color: var(--text-main); padding: 8px 12px; border-radius: 6px; outline: none;
}
.scrollable-feed { margin-top: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; flex-grow: 1; padding-right: 5px; }
.expanded-feed { height: 75vh; }
.scrollable-feed::-webkit-scrollbar { width: 6px; }
.scrollable-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* Cartas RFX individuales */
.rfx-card {
    background: rgba(20,26,35, 0.8); padding: 15px; border-radius: 8px;
    display: flex; flex-direction: column; gap: 10px;
    border-left: 3px solid var(--bg-panel-border);
}
.rfx-card.unattended { border-left-color: var(--gold-amber); box-shadow: inset 2px 0 10px rgba(255, 215, 0, 0.05); }
.rfx-card .type-badge { font-size: 0.75rem; background: #2A313C; padding: 3px 8px; border-radius: 4px; color: var(--text-silver); }
.rfx-card .urgent-timer { color: var(--gold-amber); font-weight: bold; }
.rfx-money { display: flex; justify-content: space-between; margin-top: 10px;}
.rfx-money .paylock { color: var(--cyan-mint); font-weight: bold; font-size: 1.1rem; }
.rfx-money .yield { color: var(--text-main); font-weight: bold; font-size: 1.1rem;}

/* Panel Estadístico y CTA */
.stat-block { background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; }

/* Fondeo */
.funding-options { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.slider-container input[type="range"] { width: 100%; margin: 15px 0; accent-color: var(--cyan-mint); }
.funding-calculation { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; margin-top: 15px; }

/* Chat & IA */
.ai-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.ai-chat { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 8px; }
.ai-actions { display: flex; gap: 10px; margin-top: 15px;}
.ai-actions button { font-size: 0.8rem; padding: 8px; }
.ai-suggestion { margin-top: 15px; border-left: 2px solid var(--gold-amber); padding-left: 10px;}

.chat-thread { display: flex; flex-direction: column; gap: 10px; margin: 15px 0; }
.chat-message { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; }
.chat-message.anon { border-left: 2px solid var(--text-silver); }
.chat-message.host { border-left: 2px solid var(--cyan-mint); margin-left: 15px; }

.timeline { list-style: none; margin-top: 15px; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--bg-panel-border); font-size: 0.9rem; color: var(--text-silver); }
.timeline li i { margin-right: 8px; }

/* Responsive */
@media (max-width: 1024px) {
    .landing-grid { grid-template-columns: 1fr; }
    .post-login-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .post-login-grid { grid-template-columns: 1fr; }
    .bento-kpibar { flex-direction: column; gap: 20px; }
}
