/* =================================================================
   EMPRESAS - Portal de Gestión Empresarial v4
   Chile Roleplay Community - Premium Design
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════ */
:root {
    --emp-bg-page: #020617;
    --emp-bg-panel: #0f172a;
    --emp-bg-card: #1e293b;
    --emp-text-main: #f8fafc;
    --emp-text-muted: #94a3b8;
    --emp-border: rgba(255, 255, 255, 0.08);
    --emp-primary: #3b82f6;
    --emp-primary-hover: #2563eb;
    --emp-primary-glow: rgba(59, 130, 246, 0.25);
    --emp-primary-soft: rgba(59, 130, 246, 0.1);
    --emp-success: #10b981;
    --emp-success-glow: rgba(16, 185, 129, 0.2);
    --emp-danger: #ef4444;
    --emp-danger-glow: rgba(239, 68, 68, 0.2);
    --emp-warning: #f59e0b;
    --emp-warning-glow: rgba(245, 158, 11, 0.2);
    --emp-purple: #8b5cf6;
    --emp-purple-glow: rgba(139, 92, 246, 0.2);
    --emp-glass: rgba(15, 23, 42, 0.75);
    --emp-glass-border: rgba(255, 255, 255, 0.1);
    --emp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --emp-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --emp-shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
    --emp-shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.5);
    --emp-radius-sm: 12px;
    --emp-radius-md: 16px;
    --emp-radius-lg: 24px;
    --emp-radius-xl: 32px;
    --emp-font-sans: 'Inter', sans-serif;
    --emp-font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */
body.emp-page {
    margin: 0;
    padding: 0;
    background: var(--emp-bg-page);
    color: var(--emp-text-main);
    font-family: var(--emp-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

body.emp-page .container {
    width: min(1320px, 100% - 3rem);
    max-width: 1320px;
    margin-inline: auto;
}

.emp-page *, .emp-page *::before, .emp-page *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════════ */
.emp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.emp-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

.emp-bg-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ═══════════════════════════════════════════════════════════════
   TOPBAR / HEADER
   ═══════════════════════════════════════════════════════════════ */
.emp-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--emp-border);
}

.emp-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.emp-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--emp-text-main);
    transition: opacity 0.2s;
}

.emp-brand:hover { opacity: 0.85; }

.emp-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.emp-brand span {
    font-family: var(--emp-font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.emp-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.emp-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--emp-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.emp-nav-link:hover {
    color: var(--emp-text-main);
    background: rgba(255, 255, 255, 0.06);
}

.emp-nav-link.is-active {
    background: var(--emp-primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--emp-primary-glow);
}

.emp-nav-link i { font-size: 1.1rem; }

.emp-top-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.emp-user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 4px 14px 4px 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    border: 1px solid var(--emp-border);
    transition: border-color 0.2s;
}

.emp-user-pill:hover { border-color: rgba(255, 255, 255, 0.15); }
.emp-user-pill img { width: 30px; height: 30px; border-radius: 50%; }
.emp-user-pill span { font-size: 0.85rem; font-weight: 500; }

.emp-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--emp-border);
    background: transparent;
    color: var(--emp-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 1.1rem;
}

.emp-action-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--emp-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */
.emp-main {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 2rem 0 3rem;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.emp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.4rem;
    border-radius: var(--emp-radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--emp-font-sans);
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.emp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.emp-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px var(--emp-primary-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}

.emp-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--emp-primary-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}

.emp-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 14px var(--emp-success-glow);
}

.emp-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px var(--emp-danger-glow);
}

.emp-btn-ghost {
    background: transparent;
    color: var(--emp-text-muted);
    border: 1px solid var(--emp-border);
    padding: 0.6rem 1.3rem;
    border-radius: var(--emp-radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: var(--emp-font-sans);
    transition: all 0.2s;
}

.emp-btn-ghost:hover {
    color: var(--emp-text-main);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.emp-btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS / INPUTS
   ═══════════════════════════════════════════════════════════════ */
.emp-input, .emp-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--emp-border);
    border-radius: 10px;
    color: var(--emp-text-main);
    font-size: 0.85rem;
    font-family: var(--emp-font-sans);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.emp-input::placeholder { color: var(--emp-text-muted); opacity: 0.5; }

.emp-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.emp-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.76rem;
    color: var(--emp-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.emp-form-group { margin-bottom: 0.85rem; }

textarea.emp-input {
    resize: vertical;
    min-height: 70px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.emp-card {
    background: var(--emp-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--emp-border);
    border-radius: var(--emp-radius-md);
    padding: 1.4rem;
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.emp-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.emp-card h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--emp-font-display);
}

.emp-card h3 i { color: var(--emp-primary); font-size: 1.15rem; }

/* ═══════════════════════════════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════════════════════════════ */
.emp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.emp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
.emp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
    .emp-grid-2, .emp-grid-3 { grid-template-columns: 1fr; }
    .emp-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .emp-grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */
.emp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.emp-badge.verde, .emp-badge.activo, .emp-badge.pagada {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.emp-badge.rojo, .emp-badge.anulada {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.emp-badge.pendiente, .emp-badge.emitida {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.emp-badge.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.emp-badge.expirada {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════
   MARKET TAG (patente status)
   ═══════════════════════════════════════════════════════════════ */
.emp-market-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.emp-market-tag.positive {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.emp-market-tag.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.emp-market-tag.neutral {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD HEADER CARD
   ═══════════════════════════════════════════════════════════════ */
.emp-header-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--emp-glass-border);
    border-radius: var(--emp-radius-xl);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--emp-shadow-lg);
    position: relative;
    overflow: hidden;
}

.emp-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.emp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

.emp-header-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--emp-text-muted);
    font-weight: 600;
}

.emp-header-value {
    font-family: var(--emp-font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0.25rem 0;
    background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.emp-rendimiento {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 500;
    color: var(--emp-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.emp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
}

.emp-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--emp-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, border-color 0.2s;
}

.emp-stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.emp-stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.emp-stat-item:nth-child(1) .emp-stat-icon { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.emp-stat-item:nth-child(2) .emp-stat-icon { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.emp-stat-item:nth-child(3) .emp-stat-icon { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
.emp-stat-item:nth-child(4) .emp-stat-icon { background: rgba(245, 158, 11, 0.12); color: #fcd34d; }

.emp-stat-label {
    font-size: 0.68rem;
    color: var(--emp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.emp-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--emp-font-display);
    line-height: 1.2;
}

.emp-stat-val.green { color: #6ee7b7; }
.emp-stat-val.blue { color: #93c5fd; }

.emp-date {
    font-size: 0.78rem;
    color: var(--emp-text-muted);
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--emp-border);
    text-align: center;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION NAV (tabs)
   ═══════════════════════════════════════════════════════════════ */
.emp-section-nav {
    display: flex;
    gap: 4px;
    background: rgba(15, 23, 42, 0.6);
    padding: 5px;
    border-radius: var(--emp-radius-sm);
    border: 1px solid var(--emp-border);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    backdrop-filter: blur(8px);
}

.emp-section-nav::-webkit-scrollbar { display: none; }

.emp-nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.6rem 1.3rem;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emp-text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
    font-family: var(--emp-font-sans);
    transition: all 0.2s ease;
}

.emp-nav-item:hover {
    color: var(--emp-text-main);
    background: rgba(255, 255, 255, 0.05);
}

.emp-nav-item.is-active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px var(--emp-primary-glow);
}

.emp-nav-item i { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS - TAB CONTENT
   ═══════════════════════════════════════════════════════════════ */
.emp-section {
    display: none;
    animation: fadeSlideIn 0.3s ease;
}

.emp-section.active { display: block; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */
.emp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.emp-table th {
    text-align: left;
    padding: 0.6rem 0.85rem;
    color: var(--emp-text-muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--emp-border);
}

.emp-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.emp-table tr:last-child td { border-bottom: none; }

.emp-table tbody tr {
    transition: background 0.15s;
}

.emp-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ═══════════════════════════════════════════════════════════════
   FINANCE MINI STAT CARDS
   ═══════════════════════════════════════════════════════════════ */
.emp-stat-mini {
    text-align: center;
    padding: 1rem 0.75rem;
}

.emp-stat-mini .val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--emp-text-main);
    font-family: var(--emp-font-display);
    line-height: 1.2;
}

.emp-stat-mini .lbl {
    font-size: 0.7rem;
    color: var(--emp-text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   TRANSACTION LIST
   ═══════════════════════════════════════════════════════════════ */
.emp-tx-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.emp-tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
}

.emp-tx-item:last-child { border-bottom: none; }
.emp-tx-item .concepto { color: var(--emp-text-muted); flex: 1; margin-right: 0.75rem; }
.emp-tx-item .monto { font-weight: 700; white-space: nowrap; font-family: var(--emp-font-display); }
.emp-tx-item .monto.pos { color: #6ee7b7; }
.emp-tx-item .monto.neg { color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════════ */
.emp-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--emp-text-muted);
}

.emp-empty i {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
    opacity: 0.3;
}

.emp-empty p, .emp-empty span { font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════════════
   OFERTAS DE TRABAJO
   ═══════════════════════════════════════════════════════════════ */
.emp-oferta-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--emp-radius-sm);
    padding: 1rem 1.1rem;
    margin-bottom: 0.65rem;
    transition: border-color 0.2s;
}

.emp-oferta-card:hover { border-color: rgba(59, 130, 246, 0.3); }
.emp-oferta-card h4 { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 700; }
.emp-oferta-card .meta { color: var(--emp-text-muted); font-size: 0.82rem; }

.emp-oferta-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   LOCALES CARDS
   ═══════════════════════════════════════════════════════════════ */
.loc-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--emp-border);
    border-radius: var(--emp-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.loc-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.loc-card img.loc-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.loc-img-placeholder {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.8);
    font-size: 2.5rem;
    color: rgba(148, 163, 184, 0.3);
}

.loc-body {
    padding: 1rem;
    flex: 1;
}

.loc-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.loc-meta { font-size: 0.78rem; color: var(--emp-text-muted); }

.loc-price {
    font-weight: 800;
    color: var(--emp-primary);
    font-size: 1.15rem;
    margin-top: 0.6rem;
    font-family: var(--emp-font-display);
}

.loc-footer {
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--emp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE - HERO
   ═══════════════════════════════════════════════════════════════ */
.landing-hero {
    position: relative;
    padding: 4.5rem 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.landing-hero-content { flex: 1; max-width: 660px; }

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeSlideIn 0.5s ease;
}

.landing-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    font-family: var(--emp-font-display);
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 20%, #93c5fd 80%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideIn 0.6s ease;
}

.landing-hero-content > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--emp-text-muted);
    margin: 0 0 2rem;
    max-width: 530px;
    animation: fadeSlideIn 0.7s ease;
}

.landing-hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeSlideIn 0.8s ease;
}

.landing-cta {
    padding: 0.9rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: var(--emp-radius-sm) !important;
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.landing-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.45) !important;
}

.landing-cta-sec {
    padding: 0.9rem 1.6rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--emp-radius-sm) !important;
}

.landing-hero-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeSlideIn 0.9s ease;
}

.landing-stat-pill .lsp-num {
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    font-family: var(--emp-font-display);
}

.landing-stat-pill .lsp-lbl {
    font-size: 0.68rem;
    color: var(--emp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
    font-weight: 600;
}

.landing-stat-div {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual Orb */
.landing-hero-visual {
    flex-shrink: 0;
    position: relative;
    width: 260px;
    height: 260px;
    animation: fadeSlideIn 0.7s ease;
}

.landing-orb {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1) 50%, transparent 75%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.85; }
}

.landing-orb-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: floatIcon 3.5s ease-in-out infinite;
    backdrop-filter: blur(8px);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
    .landing-hero { flex-direction: column; padding-top: 2.5rem; text-align: center; }
    .landing-hero h1 { font-size: 2.2rem; }
    .landing-hero-content > p { margin-inline: auto; }
    .landing-hero-actions { justify-content: center; }
    .landing-hero-stats { justify-content: center; }
    .landing-hero-visual { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   LANDING - SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.landing-section { margin-top: 3.5rem; }

.landing-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.landing-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.15rem;
    font-family: var(--emp-font-display);
    letter-spacing: -0.02em;
}

.landing-section-subtitle {
    font-size: 0.85rem;
    color: var(--emp-text-muted);
    margin: 0;
}

/* Benefits Grid */
.landing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) { .landing-benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .landing-benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--emp-radius-md);
    padding: 1.5rem 1.25rem;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.benefit-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bi-blue { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.bi-green { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.bi-purple { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
.bi-amber { background: rgba(245, 158, 11, 0.12); color: #fcd34d; }

.benefit-card h4 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.benefit-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--emp-text-muted);
    line-height: 1.6;
}

/* Companies Grid */
.landing-empresas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) { .landing-empresas-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .landing-empresas-grid { grid-template-columns: 1fr; } }

.emp-biz-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--emp-radius-md);
    padding: 1.2rem;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.emp-biz-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.emp-biz-card .biz-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.7rem;
}

.emp-biz-card .biz-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--emp-primary);
}

.emp-biz-card .biz-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emp-biz-card .biz-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.15rem;
    line-height: 1.25;
}

.emp-biz-card .biz-giro {
    font-size: 0.75rem;
    color: var(--emp-text-muted);
}

.emp-biz-card .biz-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--emp-text-muted);
    margin-top: 0.5rem;
}

.emp-biz-card .biz-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.emp-biz-card .biz-lema {
    font-size: 0.78rem;
    color: var(--emp-text-muted);
    font-style: italic;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.45;
}

/* Locales Grid */
.landing-locales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

@media (max-width: 900px) { .landing-locales-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .landing-locales-grid { grid-template-columns: 1fr; } }

/* Landing Empty */
.landing-empty {
    text-align: center;
    padding: 3rem;
    color: var(--emp-text-muted);
}

.landing-empty i {
    font-size: 2.5rem;
    opacity: 0.2;
    margin-bottom: 0.7rem;
    display: block;
}

.landing-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.emp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalOverlayIn 0.2s ease;
}

@keyframes modalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.emp-modal {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.99), rgba(10, 16, 32, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--emp-radius-lg);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.emp-modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.8rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emp-modal-hd h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--emp-font-display);
    font-weight: 700;
}

.emp-modal-hd h2 i { color: var(--emp-primary); }

.emp-modal-x {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--emp-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.emp-modal-x:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.emp-modal-bd {
    padding: 1.5rem 1.8rem;
}

.emp-modal-ft {
    padding: 1rem 1.8rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.emp-modal-info {
    display: flex;
    gap: 0.75rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--emp-radius-sm);
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    color: #93c5fd;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.emp-modal-info i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.emp-modal-warn {
    display: flex;
    gap: 0.75rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--emp-radius-sm);
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    color: #fcd34d;
    line-height: 1.6;
    margin-top: 1.15rem;
}

.emp-modal-warn i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.emp-notifications {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
    max-width: 380px;
}

.emp-notification {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.85rem 1.15rem;
    border-radius: var(--emp-radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: notifSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--emp-border);
}

.emp-notification.success {
    border-left: 3px solid var(--emp-success);
}

.emp-notification.error {
    border-left: 3px solid var(--emp-danger);
}

.emp-notification.info {
    border-left: 3px solid var(--emp-primary);
}

.emp-notification .notif-icon { font-size: 1.1rem; flex-shrink: 0; }
.emp-notification.success .notif-icon { color: var(--emp-success); }
.emp-notification.error .notif-icon { color: var(--emp-danger); }
.emp-notification.info .notif-icon { color: var(--emp-primary); }

.emp-notification .notif-msg {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

.emp-notification .notif-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--emp-text-muted);
    font-size: 0.9rem;
    padding: 2px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.emp-notification .notif-close:hover { color: #f8fafc; }

@keyframes notifSlideIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.emp-notification.fade-out {
    animation: notifSlideOut 0.3s ease forwards;
}

@keyframes notifSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px) scale(0.95); }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.exp-footer {
    position: relative;
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid var(--emp-border);
    background: rgba(2, 6, 23, 0.5);
    z-index: 1;
}

.exp-footer-shell {
    text-align: center;
}

.exp-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.exp-footer-links a {
    color: var(--emp-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
}

.exp-footer-links a:hover { color: var(--emp-primary); }

.exp-footer-note {
    color: var(--emp-text-muted);
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
}

.exp-footer-strong { color: var(--emp-primary); font-weight: 600; }

.exp-footer-watermark {
    position: absolute;
    right: 2rem;
    bottom: 1rem;
    opacity: 0.04;
    pointer-events: none;
}

.exp-footer-watermark img { height: 60px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .emp-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .emp-topbar-inner { padding: 0 1rem; }

    .emp-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--emp-border);
        padding: 0.5rem;
        gap: 0;
        z-index: 200;
        display: flex;
        justify-content: space-around;
    }

    .emp-nav .emp-nav-link {
        flex-direction: column;
        padding: 0.5rem;
        font-size: 0.68rem;
        gap: 2px;
    }

    .emp-nav .emp-nav-link i { font-size: 1.2rem; }

    .emp-section-nav {
        border-radius: 10px;
    }

    .emp-header-card { padding: 1.5rem; border-radius: var(--emp-radius-lg); }
    .emp-header-value { font-size: 1.6rem; }
    .emp-stats-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

    .emp-main { padding-bottom: 90px; }
    .emp-user-pill span { display: none; }

    .emp-modal { border-radius: var(--emp-radius-md); }
    .emp-modal-hd, .emp-modal-bd, .emp-modal-ft { padding-left: 1.2rem; padding-right: 1.2rem; }
}

@media (max-width: 480px) {
    .emp-stats-row { grid-template-columns: 1fr; }
    .emp-header-card { padding: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   LOADING SPINNER
   ═══════════════════════════════════════════════════════════════ */
.emp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--emp-text-muted);
    font-size: 0.85rem;
    gap: 0.5rem;
}

.emp-loading i { font-size: 1.2rem; }

/* ═══════════════════════════════════════════════════════════════
   COMISION PREVIEW TEXT
   ═══════════════════════════════════════════════════════════════ */
#comision-preview {
    font-size: 0.73rem;
    color: var(--emp-text-muted);
    margin-top: 0.25rem;
    min-height: 1.1em;
}

/* ═══════════════════════════════════════════════════════════════
   PERMISSION GRID
   ═══════════════════════════════════════════════════════════════ */
.emp-perm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.emp-perm-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.emp-perm-item input[type="checkbox"] {
    accent-color: var(--emp-primary);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING
   ═══════════════════════════════════════════════════════════════ */
.emp-page ::-webkit-scrollbar { width: 6px; }
.emp-page ::-webkit-scrollbar-track { background: transparent; }
.emp-page ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.emp-page ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}
