/* FireMan — página inicial (dashboard) */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

.fireman-home {
    --fm-brand: #dc2626;
    --fm-brand-dark: #b91c1c;
    --fm-brand-soft: rgba(220, 38, 38, 0.08);
    --fm-ink: #0f172a;
    --fm-muted: #64748b;
    --fm-surface: #ffffff;
    --fm-border: #e2e8f0;
    --fm-radius: 12px;
    --fm-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    font-family: "Plus Jakarta Sans", var(--bs-font-sans-serif);
    color: var(--fm-ink);
    margin: -0.25rem 0 2rem;
    width: 100%;
}

/* Hero */
.fireman-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--fm-radius) + 2px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    color: #f8fafc;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--fm-shadow);
}

.fireman-home-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.35) 0%, transparent 68%);
    pointer-events: none;
}

.fireman-home-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.fireman-home-hero-inner {
    position: relative;
    z-index: 1;
}

.fireman-home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fca5a5;
    margin-bottom: 0.5rem;
}

.fireman-home-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.fireman-home-hero-lead {
    color: #cbd5e1;
    font-size: 0.9rem;
    max-width: 40rem;
    margin: 0 0 0.85rem;
    line-height: 1.5;
}

.fireman-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.fireman-home-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
}

/* Section spacing */
.fireman-home-section {
    margin-bottom: 1.25rem;
    margin-top: 0;
}

/* Actions widget */
.fireman-home-actions-widget {
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fireman-home-actions-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.15rem;
    background: linear-gradient(90deg, #fffbeb 0%, #fff 100%);
    border-bottom: 1px solid var(--fm-border);
}

.fireman-home-actions-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fireman-home-actions-widget .table {
    margin: 0;
    font-size: 0.82rem;
}

.fireman-home-actions-widget .table thead th {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fm-muted);
    border-bottom-width: 1px;
    background: #f8fafc;
}

.fireman-home-empty {
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: var(--fm-muted);
    font-size: 0.875rem;
}

/* Semáforo eSocial */
.fireman-home-semaforo {
    margin: 0 0 1.25rem;
}

.fireman-home-semaforo-card {
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    border-left: 4px solid #94a3b8;
}

.fireman-home-semaforo-card.tone-green { border-left-color: #198754; }
.fireman-home-semaforo-card.tone-yellow { border-left-color: #eab308; }
.fireman-home-semaforo-card.tone-red { border-left-color: #dc3545; }
.fireman-home-semaforo-card.tone-unknown { border-left-color: #94a3b8; }

.fireman-home-semaforo-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--fm-border);
    background: linear-gradient(90deg, #f8fafc 0%, #fff 100%);
}

.fireman-home-semaforo-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--fm-ink);
}

.fireman-home-semaforo-sub {
    font-size: 0.75rem;
    color: var(--fm-muted);
    margin-top: 0.15rem;
}

.fireman-home-semaforo-body {
    padding: 1rem 1.15rem 1.1rem;
}

.fireman-home-semaforo-message {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fm-ink);
    margin: 0;
    line-height: 1.35;
}

.fireman-home-semaforo-lights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.fireman-home-semaforo-light {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--fm-border);
    border-radius: 0.65rem;
    background: #fff;
}

.fireman-home-semaforo-dot {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.fireman-home-semaforo-dot.is-green { background: #22c55e; }
.fireman-home-semaforo-dot.is-yellow { background: #eab308; }
.fireman-home-semaforo-dot.is-red { background: #ef4444; }
.fireman-home-semaforo-dot.is-unknown { background: #cbd5e1; }

.fireman-home-semaforo-channel {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--fm-muted);
}

.fireman-home-semaforo-state {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--fm-ink);
}

.fireman-home-semaforo-meta {
    font-size: 0.72rem;
}
