:root {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
    --primary-color: #0078d4;
    --primary-hover: #005ea6;
    --secondary-color: #00b4d8;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--light-bg);
    font-size: 16px;
    line-height: 1.6;
}

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navegación Superior */
.top-nav-container {
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Barra superior discreta con controles - TODO EN UNA LÍNEA */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    padding: 0.6rem 1.5rem;
    color: #666;
    position: relative;
    overflow: visible;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    min-height: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    gap: 1.5rem;
}

.top-bar > * {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Logo/Brand - Más grande y destacado */
.top-bar .brand-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.3rem 0.6rem;
    margin: -0.3rem -0.6rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.top-bar .brand-link:hover {
    color: var(--primary-color);
    background: rgba(0, 120, 212, 0.06);
    transform: translateX(2px);
}

.brand-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.15) 0%, rgba(0, 120, 212, 0.1) 100%);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.top-bar .brand-link:hover .brand-icon-wrapper::before {
    left: 100%;
}

.brand-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 3px rgba(0, 120, 212, 0.25));
}

.top-bar .brand-link:hover .brand-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.25) 0%, rgba(0, 120, 212, 0.18) 100%);
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 120, 212, 0.25);
}

.top-bar .brand-link:hover .brand-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 5px rgba(0, 120, 212, 0.35));
}

.brand-text {
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.top-bar .brand-link:hover .brand-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005ea6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Controles - Compactos y discretos */
.top-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin: 0 auto;
}

.control-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.4rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.control-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 120, 212, 0.08), transparent);
    transition: left 0.4s ease;
}

.control-wrapper:hover::before {
    left: 100%;
}

.control-wrapper:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 120, 212, 0.2);
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.12);
    transform: translateY(-1px);
}

.control-icon {
    width: 14px;
    height: 14px;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.control-wrapper:hover .control-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.control-select {
    background: transparent;
    border: none;
    color: #4b5563;
    padding: 0.1rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    min-width: 65px;
    max-width: 90px;
    height: 20px;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.2rem center;
    padding-right: 1.2rem;
}

.control-wrapper:hover .control-select {
    color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%230078d4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.control-select:focus {
    outline: none;
    color: var(--primary-color);
}

.control-select option {
    background: #ffffff;
    color: #1a1a1a;
    padding: 0.5rem;
}

/* Enlace al proyecto - Al final, discreto */
.top-bar .project-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    margin: -0.3rem -0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.top-bar .project-link:hover {
    color: var(--primary-color);
    background: rgba(0, 120, 212, 0.06);
}

.link-icon {
    width: 11px;
    height: 11px;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.top-bar .project-link:hover .link-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

/* Línea separadora */
.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 0;
}

/* Menú principal - Logo y menú en una línea */
.top-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 0.75rem 2rem;
    color: var(--white);
    position: relative;
    overflow: visible;
}

.top-nav > * {
    position: relative;
    z-index: 1;
}

.top-nav .dropdown {
    position: relative;
    z-index: 2;
}

/* Logo dentro del menú - TODO EN UNA LÍNEA HORIZONTAL - FORZADO */
.top-nav .brand-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.65rem !important;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1 !important;
    white-space: nowrap !important;
    height: auto !important;
}

.top-nav .brand-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.top-nav .brand-icon-wrapper {
    display: flex !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-direction: row !important;
}

.top-nav .brand-link:hover .brand-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(5deg) scale(1.05);
}

.top-nav .brand-icon {
    width: 18px !important;
    height: 18px !important;
    color: var(--white);
    transition: all 0.3s ease;
    display: block !important;
    flex-shrink: 0 !important;
}

.top-nav .brand-text {
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap !important;
    display: inline !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    vertical-align: baseline !important;
}

.top-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.top-nav .nav-links {
    align-items: center;
}

.top-nav li {
    list-style: none;
    position: relative;
}

.theme-selector {
    display: flex;
    align-items: center;
}


.theme-select option,
.language-select option {
    color: #000;
}

.language-selector {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--white) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-link-logout:hover {
    background: rgba(220, 53, 69, 0.2);
}

.nav-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Iconos SVG en el menú principal */
.nav-link svg.nav-icon,
.drop-toggle svg.nav-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    color: inherit;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
}

/* Asegurar que los SVG tengan color visible */
.nav-link svg,
.drop-toggle svg,
.nav-link svg path,
.drop-toggle svg path,
.nav-link svg rect,
.drop-toggle svg rect,
.nav-link svg circle,
.drop-toggle svg circle {
    stroke: currentColor !important;
    fill: none !important;
}

.nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-text {
    white-space: nowrap;
    text-transform: uppercase;
}

/* Aplicar mayúsculas a todos los textos del menú */
.nav-link .nav-text,
.dropdown-link span:not(.dropdown-icon):not(.submenu-arrow),
.drop-toggle .nav-text {
    text-transform: uppercase !important;
}

.drop-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.drop-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.drop-toggle:hover::before {
    left: 100%;
}

.drop-toggle::after {
    content: "▾";
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.drop-toggle:hover,
.dropdown:focus-within .drop-toggle {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown.open > .drop-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100% !important;
    left: 0;
    background: #ffffff !important;
    color: #1a1a1a !important;
    min-width: 260px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.1) !important;
    padding: 0.5rem;
    z-index: 10000;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
    margin-top: 0 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #ffffff !important;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transform: rotate(45deg);
    z-index: 10001;
}

.dropdown:not(.open) .dropdown-menu {
    display: none;
}

.dropdown.open > .drop-toggle {
    background: rgba(255,255,255,0.2);
}

.dropdown-menu li {
    width: 100%;
    margin: 0.15rem 0;
}

.dropdown-link {
    color: #1a1a1a !important;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    background: transparent !important;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

.dropdown-link:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: #667eea !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.dropdown-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Iconos SVG en dropdowns - Asegurar visibilidad */
.dropdown-link svg.dropdown-icon,
.submenu .dropdown-link svg.dropdown-icon,
.dropdown-menu a svg.dropdown-icon,
.dropdown-menu .dropdown-link svg.dropdown-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    color: inherit;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Asegurar que todos los SVG en dropdowns sean visibles - INCLUYENDO HyperLink de ASP.NET */
.dropdown-link svg,
.submenu .dropdown-link svg,
.dropdown-menu svg,
.dropdown-menu a svg,
.dropdown-menu li svg,
li a svg.dropdown-icon,
li .dropdown-link svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    width: 18px !important;
    height: 18px !important;
}

/* Asegurar que los SVG en dropdowns tengan color visible */
.dropdown-link svg path,
.dropdown-link svg rect,
.dropdown-link svg circle,
.submenu .dropdown-link svg path,
.submenu .dropdown-link svg rect,
.submenu .dropdown-link svg circle,
.dropdown-menu svg path,
.dropdown-menu svg rect,
.dropdown-menu svg circle,
.dropdown-menu a svg path,
.dropdown-menu a svg rect,
.dropdown-menu a svg circle {
    stroke: currentColor !important;
    fill: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dropdown-link:hover .dropdown-icon {
    transform: scale(1.2);
}

.dropdown-menu a:hover {
    background: rgba(0,120,212,0.12);
    color: var(--primary-color) !important;
}

/* Submenús anidados */
.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    justify-content: space-between !important;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

.submenu-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.submenu {
    display: none !important;
    list-style: none;
    padding: 0.5rem 0 !important;
    margin: 0;
    margin-left: 0 !important;
    background: #ffffff !important;
    border-left: 2px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 0 8px 8px 0;
    padding-left: 0.5rem;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.1) !important;
    animation: slideInRight 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mostrar submenú SOLO cuando está abierto - evita superposiciones */
.dropdown-submenu:hover > .submenu,
.dropdown-submenu.open > .submenu {
    display: block !important;
}

/* Conectar visualmente el submenú con su padre - eliminar espacio muerto */
.dropdown-submenu::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    bottom: 0;
    width: 10px;
    z-index: 10000;
    pointer-events: auto;
    background: transparent;
}

/* Asegurar que solo un submenú esté abierto a la vez */
.dropdown-submenu:not(:hover):not(.open) > .submenu {
    display: none !important;
}

.dropdown-submenu:hover > .submenu-toggle .submenu-arrow,
.dropdown-submenu.open > .submenu-toggle .submenu-arrow {
    transform: rotate(90deg);
}

.submenu .dropdown-link {
    padding-left: 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    color: #333 !important;
    background: transparent !important;
}

.submenu .dropdown-link:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: flex;
}

.top-nav a, .top-nav .aspNetDisabled {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.nav-links > .nav-item > a,
.nav-links > .nav-item > .drop-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-links > .nav-item > a:hover {
    background: rgba(255,255,255,0.2);
}

/* Contenido Principal */
/* Barra de Acceso Rápido - Diseño Moderno Compacto */
.quick-access-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.quick-access-bar::-webkit-scrollbar {
    height: 3px;
}

.quick-access-bar::-webkit-scrollbar-track {
    background: transparent;
}

.quick-access-bar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.quick-access-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.quick-access-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color, #3b82f6) 20%, 
        var(--secondary-color, #00b4d8) 50%, 
        var(--primary-color, #3b82f6) 80%, 
        transparent 100%);
    opacity: 0.6;
}

.quick-access-group {
    display: flex;
    gap: 0.375rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.375rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 0;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    min-width: 36px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* Eliminado el efecto de brillo animado que causaba problemas */

.quick-access-btn:hover {
    background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, var(--secondary-color, #00b4d8) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35), 0 4px 8px rgba(59, 130, 246, 0.2);
}

.quick-access-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.quick-access-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
    transition: transform 0.2s ease;
    display: block;
}

.quick-access-btn:hover .quick-access-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.quick-access-label {
    display: none !important;
    font-size: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Tooltip simplificado para los botones - sin usar ::before y ::after para evitar conflictos */
.quick-access-btn {
    position: relative;
}

.quick-access-btn[title] {
    cursor: pointer;
}

/* Usar un elemento separado para el tooltip en lugar de ::after para evitar problemas de hover */
.quick-access-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.6rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.quick-access-btn:hover .quick-access-tooltip {
    opacity: 1;
    visibility: visible;
}

.quick-access-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(0, 0, 0, 0.9);
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Separador visual entre grupos */
.quick-access-group:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quick-access-bar {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
        justify-content: flex-start;
    }
    
    .quick-access-group {
        gap: 0.5rem;
    }
    
    .quick-access-group:not(:last-child)::after {
        display: none;
    }
    
    .quick-access-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .quick-access-label {
        display: none;
    }
    
    .quick-access-icon {
        font-size: 1.25rem;
        margin: 0;
    }
    
    .quick-access-btn {
        gap: 0;
        min-width: 44px;
        justify-content: center;
    }
}

.content {
    padding: 2rem;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 120, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.content > * {
    position: relative;
    z-index: 1;
}

/* Cards y Secciones */
.card, section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before,
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover,
section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card:hover::before,
section:hover::before {
    opacity: 1;
}

.card-sub {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.card h2, .card h3, section h2, section h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Grid Dashboard */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Tablas */
.grid {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.grid th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.grid td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.task-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.task-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.task-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    flex: 1;
    margin: 0;
}

.task-card__actions .btn {
    margin-left: 0.5rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
}

.task-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.3rem;
    font-size: 0.9rem;
}

.task-card__meta span {
    background: rgba(0,0,0,0.03);
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
}

.task-card__asignados {
    font-size: 0.9rem;
    line-height: 1.4;
}

.task-card__asignados strong {
    display: inline-block;
    margin-right: 0.5rem;
}

.assign-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.assign-item span {
    flex: 1;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.filters > div {
    flex: 1;
    min-width: 200px;
}

.select2-container .select2-selection--single {
    height: 42px;
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 10px;
}

.select2-dropdown {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.filters label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filters__actions {
    display: flex;
    gap: 0.5rem;
    min-width: 200px;
}

.align-end {
    display: flex;
    align-items: flex-end;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.checkbox-inline input {
    margin: 0;
}

.grid tr:hover {
    background: rgba(0, 120, 212, 0.08);
}

.grid tr:last-child td {
    border-bottom: none;
}

/* Formularios */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input, select, textarea {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,120,212,0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select[multiple], .listbox-multiple {
    min-height: 150px;
    padding: 0.5rem;
}

/* Botones */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1.4rem;
    min-width: 140px;
    min-height: 44px;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--white);
    background: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn:hover,
.btn:focus {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-secondary {
    background: #5f6b7a;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #4d5662;
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover,
.btn-danger:focus {
    background: #c82333;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover,
.btn-success:focus {
    background: #218838;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-action {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 1rem;
    font-size: 0.92rem;
    justify-content: center;
}

.actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
}

.editor-full {
    width: 100%;
    min-height: 900px;
}

.link-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.link-box {
    flex: 1;
    min-width: 220px;
}

.link-copy-btn {
    white-space: nowrap;
}

.workspace-container {
    max-width: 100%;
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-header h2 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
}

.tool-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.diagram-wrapper {
    width: 100%;
    min-height: 80vh;
}

.diagram-frame {
    width: 100%;
    min-height: 78vh;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    background: #fff;
}

.inline-group {
    max-width: 420px;
}

.inline-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}

/* Kanban board - Rediseño moderno y amplio */
.kanban-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.kanban-header > div:first-child h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kanban-header > div:first-child p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.kanban-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.kanban-actions .btn {
    white-space: nowrap;
    min-width: auto;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kanban-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    padding: 1rem 1rem 2rem 1rem;
    position: relative;
    min-height: calc(100vh - 250px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.kanban-board::-webkit-scrollbar {
    height: 12px;
}

.kanban-board::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.kanban-board--loading {
    opacity: 0.6;
    pointer-events: none;
}

.kanban-board--loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.kanban-board--empty::after {
    content: "No hay tareas para mostrar.";
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    pointer-events: none;
}

.kanban-column {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.15rem;
    min-width: 360px;
    width: 360px;
    max-width: 360px;
    flex: 0 0 360px;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 220px);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.kanban-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
}

.kanban-column__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.kanban-column__header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kanban-column__counter {
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.kanban-column__body {
    flex: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
    min-height: 300px;
    border-radius: 12px;
    transition: background 0.3s ease, border 0.3s ease;
    width: 100%;
}

.kanban-column__body--over {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    outline: 3px dashed var(--primary-color);
    outline-offset: -6px;
    border-radius: 12px;
}

.kanban-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    cursor: grab;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
}

.kanban-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kanban-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.kanban-card:hover::before {
    opacity: 1;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card--dragging {
    opacity: 0.5;
    transform: rotate(3deg);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.kanban-card--readonly {
    cursor: default;
    opacity: 0.9;
    background: #f8f9fa;
}

.kanban-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex-shrink: 0;
}

.kanban-card__description {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.kanban-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.kanban-card__meta span {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    white-space: nowrap;
}

.kanban-card__assign {
    font-size: 0.8rem;
    color: #444;
    padding: 0.4rem 0.65rem;
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
    margin-top: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 0;
    line-height: 1.4;
}

.kanban-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 0.4rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}

.kanban-card__status {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0.3rem 0.6rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: visible;
}

.kanban-card__footer .btn {
    white-space: nowrap;
    min-width: 75px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    flex: 0 0 auto;
    transition: all 0.2s ease;
    overflow: visible;
    text-overflow: ellipsis;
}

.kanban-card__footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kanban-card__footer .btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    min-width: 70px;
}

.kanban-empty {
    width: 100%;
    text-align: center;
    padding: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.kanban-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(33, 37, 41, 0.9);
    color: var(--white);
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
}

.kanban-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.kanban-toast--success {
    background: rgba(40, 167, 69, 0.95);
}

.kanban-toast--danger {
    background: rgba(220, 53, 69, 0.95);
}

.kanban-toast--info {
    background: rgba(0, 120, 212, 0.95);
}

.kanban-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.kanban-modal--open {
    display: flex;
}

.kanban-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.kanban-modal__dialog {
    position: relative;
    width: min(960px, 95vw);
    height: min(90vh, 720px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.kanban-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: rgba(0,0,0,0.1);
    color: #111;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.kanban-modal__close:hover {
    background: rgba(0,0,0,0.2);
}

.kanban-modal__frame {
    border: none;
    flex: 1;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

.calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    min-height: 650px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Login */
.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem;
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-stack .alert {
    margin-bottom: 0;
}

.text-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.report-panel {
    align-items: flex-end;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* File Upload */
input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--primary-color);
    background: #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .top-nav ul {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        display: none;
    }

    .dropdown-menu a {
        color: var(--white);
    }

    .dropdown.open .dropdown-menu {
        display: flex;
    }

    .dropdown.open .dropdown-menu {
        display: flex;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dash-grid {
        grid-template-columns: 1fr;
    }
    
    .card, section {
        padding: 1.5rem;
    }
    
    .grid {
        font-size: 0.9rem;
    }
    
    .grid th, .grid td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .top-nav .brand {
        font-size: 1.2rem;
    }
    
    .top-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Footer */
.app-footer {
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    flex-shrink: 0;
    min-height: 50px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
    position: relative;
}

.footer-controls {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-brand {
    position: absolute;
    right: 2rem;
    display: flex;
    align-items: center;
}

.footer-brand-link {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-brand-link:hover {
    color: var(--primary-color);
}

.footer-powered-by {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.7;
    font-style: italic;
}

.footer-control-wrapper {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.4rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-control-wrapper:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 120, 212, 0.2);
}

.footer-control-icon {
    width: 12px;
    height: 12px;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.footer-control-wrapper:hover .footer-control-icon {
    color: var(--primary-color);
}

.footer-control-select {
    background: transparent;
    border: none;
    color: #4b5563;
    padding: 0.1rem 0.2rem;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    min-width: 60px;
    max-width: 85px;
    height: 18px;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4.5 4L8 1' stroke='%236b7280' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.2rem center;
    padding-right: 1rem;
}

.footer-control-wrapper:hover .footer-control-select {
    color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4.5 4L8 1' stroke='%230078d4' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.footer-control-select:focus {
    outline: none;
    color: var(--primary-color);
}

.footer-control-select option {
    background: #ffffff;
    color: #1a1a1a;
    padding: 0.5rem;
}
