@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Bebas+Neue&family=Manrope:wght@400;500;700&display=swap');

:root {
    /* OFFICIAL NÚCLEO BRAND MANUAL COLORS */
    --primary: #003DA5;          /* Marca Sombrilla - Confianza */
    --primary-bright: #00A3E1;   /* Marca Sombrilla - Dinamismo */
    --accent-physical: #FF8200;  /* Línea Publicidad Física - Taller */
    
    /* DARK MODE & GLASSMORPHISM ADAPTATION */
    --bg-canvas: #050c1e;        /* Deep Midnight base */
    --bg-surface: #0e1726;       /* Deep slate panel */
    --bg-control: #1b263b;       /* Control active background */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Typography per manual */
    --font-display: 'Bebas Neue', cursive;
    --font-secondary: 'Poppins', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Vista Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, var(--primary) 0%, var(--bg-canvas) 70%);
}

.login-card {
    background: rgba(14, 23, 38, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.login-logo {
    max-height: 60px;
    margin-bottom: 24px;
    object-fit: contain;
}

/* Estructura Dashboard */
header.navbar {
    height: 75px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background: rgba(5, 12, 30, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    max-height: 45px;
    object-fit: contain;
}

.nav-search {
    background: var(--bg-control);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 16px;
    width: 320px;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.25s ease;
}

.nav-search:focus {
    border-color: var(--primary-bright);
    box-shadow: 0 0 10px rgba(0, 163, 225, 0.2);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    background: var(--bg-control);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 99px; /* Rounded pill style from brand website */
    font-family: var(--font-secondary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent-physical);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 15px rgba(255, 130, 0, 0.25);
}

.btn-accent:hover {
    background: #e07200;
    box-shadow: 0 8px 20px rgba(255, 130, 0, 0.35);
}

.btn-danger {
    background: var(--danger);
    border-color: transparent;
}

/* Tablero Kanban */
.kanban-board {
    display: flex;
    gap: 20px;
    padding: 24px 32px;
    overflow-x: auto;
    height: calc(100vh - 75px);
    align-items: flex-start;
}

.kanban-column {
    background: rgba(14, 23, 38, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 330px;
    min-width: 330px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.column-header {
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: 1.5rem; /* Large uppercase style like company catalog */
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 4px solid var(--primary-bright);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.column-count {
    background: var(--bg-control);
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

.cards-container {
    padding: 16px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tarjetas del Kanban */
.kanban-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.card-title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    margin-top: 12px;
    font-family: var(--font-secondary);
}

/* Modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 8, 20, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--danger);
}
