/* --- ESTILOS DEL DASHBOARD FRONTEND (MS MARKETING) --- */

.fw-dash-wrapper {
display: flex;
min-height: 80vh;
background-color: #f4f6f9;
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
border: 1px solid #e5e7eb;
border-radius: 8px;
overflow: hidden;
}

/* Sidebar */
.fw-sidebar { width: 260px; background: #fff; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.fw-brand { padding: 25px 20px; font-size: 20px; font-weight: bold; color: #2271b1; border-bottom: 1px solid #f0f0f0; display:flex; align-items:center; gap:10px; }
.fw-nav-title { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px; padding: 20px 20px 10px; font-weight: bold; }
.fw-nav { list-style: none; padding: 0; margin: 0; }
.fw-nav li { margin: 0; }
.fw-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #4b5563; text-decoration: none; font-size: 14px; font-weight: 500; border-left: 4px solid transparent; transition: all 0.2s; }
.fw-nav a:hover { background: #f9fafb; color: #2271b1; }
.fw-nav li.active a { background: #eff6ff; color: #2271b1; border-left-color: #2271b1; }

/* Main Content */
.fw-main { flex: 1; padding: 30px; overflow-y: auto; }
.fw-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.fw-header h2 { margin: 0; color: #1f2937; font-size: 24px; font-weight: 600; }

/* Cards & Tables */
.fw-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; }
.fw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fw-table th { background: #f9fafb; padding: 12px 15px; text-align: left; color: #6b7280; font-weight: 600; border-bottom: 1px solid #e5e7eb; }
.fw-table td { padding: 15px; border-bottom: 1px solid #e5e7eb; color: #374151; vertical-align: middle; }
.fw-table tr:last-child td { border-bottom: none; }

/* Utils */
.fw-btn { display: inline-block; padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; text-align:center; border: 1px solid transparent; }
.fw-btn-primary { background: #2271b1; color: #fff; }
.fw-btn-primary:hover { background: #135e96; color:#fff; }
.fw-btn-outline { background: #fff; color: #2271b1; border-color: #2271b1; }
.fw-badge { padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; text-transform: uppercase; background: #e5e7eb; color: #4b5563; }
.fw-badge.activa { background: #dcfce7; color: #166534; }

/* Form Grid */
.fw-form-group { margin-bottom: 15px; }
.fw-form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #374151; font-size: 14px; }
.fw-form-control { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 14px; box-sizing: border-box; }

/* Modals */
.fw-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:99999; align-items:center; justify-content:center; }
.fw-modal-content { background:#fff; padding:25px; border-radius:8px; box-shadow:0 10px 25px rgba(0,0,0,0.2); width:100%; max-width:500px; box-sizing:border-box; }

/* Responsive Mobile */
@media (max-width: 768px) {
.fw-dash-wrapper { flex-direction: column; min-height: auto; }
.fw-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e5e7eb; }
.fw-brand { justify-content: center; padding: 15px; }
.fw-nav-title { display: none; }
.fw-nav { display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 5px; }
.fw-nav li { flex: 0 0 auto; }
.fw-nav a { padding: 12px 20px; border-left: none; border-bottom: 3px solid transparent; flex-direction: column; gap: 5px; text-align: center; font-size: 12px; }
.fw-nav a i { font-size: 18px; margin: 0 auto; }
.fw-nav li.active a { background: transparent; border-left-color: transparent; border-bottom-color: #2271b1; }
.fw-main { padding: 15px; }
.fw-header { flex-direction: column; align-items: stretch; gap: 15px; }
.fw-header h2 { font-size: 20px; text-align: center; }
.fw-card { padding: 15px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fw-responsive-flex { flex-direction: column !important; gap: 10px !important; }
.fw-form-control { max-width: 100% !important; }
.fw-kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
.fw-kpi-grid .fw-card { padding: 10px; }
.fw-kpi-grid .fw-card div:first-child { font-size: 18px !important; }
}