.ajaxbuscando
{
	background-image: url("/intranet-images/ajax/ajax-loader.gif");
	background-repeat: no-repeat;
	opacity: 0.5;
}

/* Variables de color basadas en el logo */
:root {
    --color-primary: #153450; /* Azul Marino */
    --color-primary-light: #1e4a73;
    --color-accent: #d97626; /* Naranja */
    --color-bg-light: #f4f6f8;
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    --header-height: 60px;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    overflow-x: hidden;
}

/* --- Header --- */
.top-header {
    height: var(--header-height);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.menu-btn {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.menu-btn:hover {
    background-color: #bf651e;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title h1 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

.header-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: white; /* Fondo blanco si el logo es transparente */
    object-fit: contain;
}

/* --- Menú Lateral (Sidebar) --- */
.sidebar {
    position: fixed;
    top: 0;
    left: calc(var(--sidebar-width) * -1);
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    background-color: var(--color-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.close-btn:hover {
    text-decoration: underline;
}

.sidebar-content {
    padding: 30px 20px;
}

.sidebar-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
}

.menu-links {
    list-style: none;
}

.menu-links li {
    margin-bottom: 15px;
}

.menu-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.menu-links a:hover {
    color: var(--color-accent);
}

/* --- Capa de Fondo (Overlay) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 900;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Contenido Principal --- */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - var(--header-height));
    padding: 20px;
}

.logo-container {
    text-align: center;
}

.main-logo {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.1));
}

