/* ══════════════════════════════════════════════════════════════════════
   OPERATIK — Mesa de Ayuda Corporativa (Design System v2.0)
   ══════════════════════════════════════════════════════════════════════ */

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

:root {
    --op-orange: #F26822;
    --op-orange-hover: #ff7c3b;
    --op-orange-glow: rgba(242, 104, 34, 0.35);
    --op-dark: #0A1628;
    --op-dark-deep: #050b15;
    --op-card-bg: rgba(10, 22, 40, 0.85);
    --op-card-hover: rgba(16, 32, 56, 0.95);
    --op-border: rgba(255, 255, 255, 0.08);
    --op-border-active: rgba(242, 104, 34, 0.5);
    --op-text-primary: #ffffff;
    --op-text-secondary: #cbd5e1;
    --op-text-muted: #64748b;
    --op-cyan: #06b6d4;
    --op-cyan-glow: rgba(6, 182, 212, 0.25);
    --op-success: #10b981;
    --op-warning: #f59e0b;
    --op-danger: #ef4444;
    --op-font-display: 'Outfit', sans-serif;
    --op-font-body: 'Inter', sans-serif;
}

body, html {
    font-family: var(--op-font-body) !important;
    background-color: var(--op-dark-deep) !important;
    color: var(--op-text-secondary) !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* { box-sizing: border-box; }

/* ── HEADER DE LA APP ── */
.app-header {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--op-border);
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.app-logo {
    max-height: 42px;
    max-width: 190px;
    object-fit: contain;
}

/* ── CONTENEDORES Y TARJETAS GLASS ── */
.ticket-card, .glass-card, .stat-card, .welcome-section, .admin-card, .admin-sidebar, .kanban-column {
    background: var(--op-card-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--op-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    color: var(--op-text-secondary) !important;
}

.ticket-card {
    padding: 18px !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ticket-card:hover {
    transform: translateY(-3px);
    border-color: var(--op-border-active) !important;
    box-shadow: 0 20px 45px rgba(242, 104, 34, 0.2) !important;
    background: var(--op-card-hover) !important;
}

.ticket-title, .admin-card h2, .welcome-title, .kanban-column h3, .stat-card .number {
    color: var(--op-text-primary) !important;
    font-family: var(--op-font-display) !important;
}

.stat-card {
    padding: 22px !important;
    text-align: center;
}

.stat-card h3 {
    color: var(--op-text-muted) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--op-font-display);
    font-weight: 700;
}

.stat-card .number {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    margin-top: 8px;
    color: var(--op-orange) !important;
}

/* ── TABLERO KANBAN ── */
.kanban-column {
    background: rgba(10, 22, 40, 0.6) !important;
    border: 1px dashed rgba(255, 255, 255, 0.12) !important;
    padding: 15px !important;
}

.kanban-column h3 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    border-bottom: 1px solid var(--op-border) !important;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* ── SIDEBAR DEL ADMIN ── */
.admin-sidebar {
    background: rgba(10, 22, 40, 0.9) !important;
    padding: 15px 0 !important;
}

.menu-item {
    color: var(--op-text-secondary) !important;
    font-family: var(--op-font-display);
    font-weight: 700 !important;
    padding: 14px 20px !important;
    border-left: 3px solid transparent !important;
    transition: all 0.2s ease;
}

.menu-item:hover, .menu-item.active {
    background: rgba(242, 104, 34, 0.1) !important;
    border-left: 3px solid var(--op-orange) !important;
    color: #ffffff !important;
}

/* ── BOTONES CTA ── */
.btn-cta-naranja, .btn-primary {
    font-family: var(--op-font-display) !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--op-orange) 0%, #ff7a36 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 11px 24px !important;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--op-orange-glow) !important;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cta-naranja:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(242, 104, 34, 0.45) !important;
    filter: brightness(1.08);
}

.btn-secondary, .btn-small {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--op-border) !important;
    color: var(--op-text-primary) !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-secondary:hover, .btn-small:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--op-orange) !important;
}

/* ── TABLAS ── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--op-text-secondary) !important;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
    font-family: var(--op-font-display);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--op-border);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

/* ── BADGES DE ESTADO ── */
.badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--op-font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-block;
}

.badge-abierto   { background: rgba(59, 130, 246, 0.15) !important; color: #60a5fa !important; border: 1px solid rgba(59, 130, 246, 0.3) !important; }
.badge-proceso   { background: rgba(245, 158, 11, 0.15) !important; color: #fbbf24 !important; border: 1px solid rgba(245, 158, 11, 0.3) !important; }
.badge-tercero   { background: rgba(148, 163, 184, 0.15) !important; color: #cbd5e1 !important; border: 1px solid rgba(148, 163, 184, 0.3) !important; }
.badge-resuelto  { background: rgba(16, 185, 129, 0.15) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.3) !important; }

/* ── FORMULARIOS & INPUTS ── */
.form-control, select.form-control, textarea.form-control {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--op-border) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: var(--op-font-body);
    font-size: 0.95rem;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-control:focus, select.form-control:focus, textarea.form-control:focus {
    border-color: var(--op-orange) !important;
    box-shadow: 0 0 0 3px rgba(242, 104, 34, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

select.form-control option {
    background-color: #0A1628 !important;
    color: #ffffff !important;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--op-text-secondary);
    margin-bottom: 6px;
    display: block;
    font-family: var(--op-font-display);
}

/* Modales */
.modal-overlay {
    background: rgba(5, 11, 21, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-card {
    background: #0A1628 !important;
    border: 1.5px solid var(--op-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 35px rgba(242, 104, 34, 0.2) !important;
}
