/* ===========================================================================
   Panel de Auditorías — ajustes sobre la plantilla Volgh
   El aspecto lo da la plantilla (build/assets/app-*.css). Aquí solo:
   1) colores de marca ALOJALIA sobre las variables de Volgh,
   2) tamaño de los logotipos,
   3) pequeños estilos propios del panel y la impresión del informe.
   =========================================================================== */

/* --------------------------------------------------- 1. Colores de marca --- */
/* Azul ALOJALIA (#0083F7) como primario y rojo ALOJALIA (#FD384A) como
   secundario. Para volver al morado original de Volgh basta con borrar este
   bloque (Volgh usa --volgh-primary-rgb: 94, 45, 216). */
:root {
    --volgh-primary-rgb: 0, 131, 247;
    --volgh-primary-hover: #0070d6;
    --volgh-primary-border: #0083f7;
    --volgh-secondary-rgb: 253, 56, 74;
    --volgh-secondary-01: rgba(253, 56, 74, .1);
    --volgh-secondary-02: rgba(253, 56, 74, .2);
    --bs-link-color: #0083f7;
    --bs-link-color-rgb: 0, 131, 247;
    --bs-link-hover-color: #0070d6;
}

/* En Volgh «secondary» es un color de marca, pero las páginas del panel lo usan
   como gris neutro (Volver, Cancelar, copiar enlace…). Se devuelve a gris para
   que no parezcan acciones de peligro. */
.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #6c7a91;
    --bs-btn-border-color: #6c7a91;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5a6780;
    --bs-btn-hover-border-color: #5a6780;
    --bs-btn-disabled-bg: #9aa5b8;
    --bs-btn-disabled-border-color: #9aa5b8;
    background-color: var(--bs-btn-bg) !important;
    border-color: var(--bs-btn-border-color) !important;
    color: var(--bs-btn-color) !important;
}
.btn-outline-secondary {
    color: #5b6577 !important;
    border-color: #d3d8e2 !important;
    background-color: transparent !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary.active {
    color: #25252a !important;
    background-color: #eef0f6 !important;
    border-color: #c3c9d6 !important;
}
.bg-secondary, .badge.bg-secondary, .text-bg-secondary {
    background-color: #6c7a91 !important;
    color: #fff !important;
}
.text-secondary { color: #6c7a91 !important; }
.border-secondary { border-color: #c3c9d6 !important; }

/* ------------------------------------------------------- 2. Logotipos ------ */
.side-header .header-brand-img.light-logo1,
.side-header .header-brand-img.desktop-logo {
    height: 2.4rem;
    width: auto;
}
.side-header .header-brand-img.toggle-logo,
.side-header .header-brand-img.light-logo {
    height: 2.4rem;
    width: auto;
}
.logo-horizontal .header-brand-img {
    height: 2.1rem;
    width: auto;
}

/* Pantalla de acceso: el CSS compilado de Volgh apunta el fondo a 127.0.0.1 */
.login-img .bg-img { background-image: url(../../build/assets/images/media/55.jpg); }
.logo-acceso { height: 3.6rem; width: auto; }

/* Páginas públicas (firma de autorización y cuestionario del cliente) */
body.publico { background: var(--volgh-background, #f2f3f9); }
.publico-barra {
    background: #fff;
    border-bottom: 1px solid var(--volgh-default-border, #eaedf1);
    padding: .85rem 0;
    margin-bottom: 1.75rem;
}
.publico-logo { height: 2.4rem; width: auto; }

/* Avatar con iniciales del usuario en la cabecera */
.avatar-iniciales {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #fd384a 0%, #0083f7 100%);
}

/* --------------------------------------------- 3. Estilos propios del panel */
/* Cabecera de página (Volgh .page-header) con acciones a la derecha */
.page-header {
    gap: .75rem;
}
.page-header .page-title .bi {
    color: rgb(var(--volgh-primary-rgb));
    margin-inline-end: .35rem;
}

.tarjeta-kpi .icono { font-size: 2.2rem; opacity: .55; }

.tabla-acciones { white-space: nowrap; width: 1%; }

.puntuacion-circulo {
    width: 110px; height: 110px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; border: 6px solid currentColor; margin: 0 auto;
}

.progreso-fino { height: 6px; }

/* Las tarjetas del panel usan .card-header.bg-white: mantener el estilo de Volgh */
.card-header.bg-white { background-color: #00000008 !important; }

/* El panel no usa el menú horizontal de Volgh, pero su sidemenu.js mueve el
   margen del menú al redimensionar (flechas del modo horizontal) y podía
   dejarlo desplazado a la izquierda. Se fija para el menú vertical. */
.app-sidebar .side-menu { margin-left: 0 !important; margin-right: 0 !important; }

/* ------------------------------------------- Asistente del cuestionario --- */
.cuest.js-activo .cuest-paso { display: none; }
.cuest.js-activo .cuest-paso.activo { display: block; animation: cuest-entrar .25s ease; }
.cuest.js-activo .cuest-sin-js { display: none; }
.cuest:not(.js-activo) .cuest-nav,
.cuest:not(.js-activo) .cuest-mapa,
.cuest:not(.js-activo) .cuest-tecla { display: none !important; }
@keyframes cuest-entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cuest-opcion { cursor: pointer; padding: .8rem 1rem; display: flex; align-items: center; }
.cuest-opcion .form-check-input { margin-top: 0; flex-shrink: 0; }
.cuest-opcion.seleccionada {
    background: rgba(var(--volgh-primary-rgb), .08);
    border-color: rgba(var(--volgh-primary-rgb), .45);
    font-weight: 500;
    z-index: 1;
}
.cuest-tecla {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 1.5rem; height: 1.5rem; margin-right: .65rem;
    border: 1px solid #d3d8e2; border-radius: .35rem; font-size: .75rem; color: #6c7a91;
}
.cuest-opcion.seleccionada .cuest-tecla { border-color: rgb(var(--volgh-primary-rgb)); color: rgb(var(--volgh-primary-rgb)); }
.cuest-ir { min-width: 2.2rem; }
.cuest-ir.actual { outline: 2px solid rgb(var(--volgh-primary-rgb)); outline-offset: 1px; }
.cuest-progreso .progress-bar { transition: width .4s ease; }

/* Landing pública del cuestionario */
.cuest-landing-cabecera {
    background: linear-gradient(120deg, #0070d6 0%, #0083f7 45%, #00baf3 100%);
    position: relative;
}
.cuest-landing-cabecera::after {   /* toque del rojo-naranja de la marca */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, #fd384a, #f0952a);
}
.cuest-landing-dato {
    height: 100%; padding: 1rem; border: 1px solid var(--volgh-default-border, #eaedf1);
    border-radius: .6rem; display: flex; flex-direction: column; gap: .15rem;
}
.cuest-landing-dato i { font-size: 1.5rem; color: rgb(var(--volgh-primary-rgb)); margin-bottom: .35rem; }
.cuest-landing-dato span { color: #6c7a91; font-size: .875rem; }

/* ------------------------------------------------------------ Impresión --- */
@media print {
    .app-header, .app-sidebar, .app-sidebar__overlay, .footer,
    #back-to-top, #global-loader, .no-imprimir { display: none !important; }
    .app-content { margin: 0 !important; padding: 0 !important; }
    .side-app { padding: 0 !important; }
    body { background: #fff !important; }
    a { text-decoration: none; color: inherit; }
}
