/* ==============================================================
   DGAIA HOSTELERÍA
   TEMA AURUM CONSOLIDADO V1
   Generado: 17/07/2026 16:03:04
   Orden preservado:
   1. Aurum base
   2. Cierre visual
   3. Ajuste sobre elementos reales
   ============================================================== */

/* ==============================================================
   CAPA 1 · AURUM BASE
   ============================================================== */

/* ==============================================================
   DGAIA HOSTELERÍA
   TEMA AURUM · DIRECCIÓN, COCINA Y SALA
   ============================================================== */

body[data-dgaia-screen="owner"],
body[data-dgaia-screen="kitchen"],
body[data-dgaia-screen="waiter"] {
    --aurum-fondo: #07111f;
    --aurum-fondo-profundo: #040a13;
    --aurum-superficie: #0d1a2b;
    --aurum-superficie-alta: #122238;
    --aurum-superficie-suave: #162942;
    --aurum-borde: rgba(216, 179, 90, .28);
    --aurum-borde-fuerte: rgba(226, 193, 110, .58);
    --aurum-oro: #d8b35a;
    --aurum-oro-claro: #f0d48d;
    --aurum-oro-palido: #fff0bd;
    --aurum-texto: #f7f3e8;
    --aurum-texto-secundario: #b9c4d2;
    --aurum-verde: #35c987;
    --aurum-verde-oscuro: #116847;
    --aurum-ambar: #eca83e;
    --aurum-rojo: #ee6a70;
    --aurum-azul: #55a7e8;
    --aurum-sombra:
        0 16px 45px rgba(0, 0, 0, .28);
    --aurum-resplandor:
        0 0 0 1px rgba(216, 179, 90, .08),
        0 12px 38px rgba(0, 0, 0, .22);

    background:
        radial-gradient(
            circle at 18% 0%,
            rgba(216, 179, 90, .08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 12%,
            rgba(47, 103, 160, .08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            var(--aurum-fondo-profundo),
            var(--aurum-fondo)
        ) !important;

    color: var(--aurum-texto) !important;
    min-height: 100vh;
}

/* Fondo general */
body[data-dgaia-screen="owner"] main,
body[data-dgaia-screen="kitchen"] main,
body[data-dgaia-screen="waiter"] main {
    background: transparent !important;
}

/* Cabeceras */
body[data-dgaia-screen="owner"] header,
body[data-dgaia-screen="kitchen"] header,
body[data-dgaia-screen="waiter"] header {
    background:
        linear-gradient(
            90deg,
            rgba(7, 17, 31, .98),
            rgba(13, 29, 48, .98)
        ) !important;

    border-bottom:
        1px solid var(--aurum-borde) !important;

    box-shadow:
        0 8px 26px rgba(0, 0, 0, .22) !important;

    color: var(--aurum-texto) !important;
}

/* Logo: conservar colores y mejorar presencia */
body[data-dgaia-screen="owner"] header img,
body[data-dgaia-screen="kitchen"] header img,
body[data-dgaia-screen="waiter"] header img {
    background: rgba(255, 255, 255, .96);
    border-radius: 10px;
    padding: 5px 8px;
    box-shadow:
        0 0 0 1px rgba(216, 179, 90, .25);
}

/* Textos */
body[data-dgaia-screen="owner"] h1,
body[data-dgaia-screen="owner"] h2,
body[data-dgaia-screen="owner"] h3,
body[data-dgaia-screen="owner"] h4,
body[data-dgaia-screen="kitchen"] h1,
body[data-dgaia-screen="kitchen"] h2,
body[data-dgaia-screen="kitchen"] h3,
body[data-dgaia-screen="kitchen"] h4,
body[data-dgaia-screen="waiter"] h1,
body[data-dgaia-screen="waiter"] h2,
body[data-dgaia-screen="waiter"] h3,
body[data-dgaia-screen="waiter"] h4 {
    color: var(--aurum-texto) !important;
}

body[data-dgaia-screen="owner"] p,
body[data-dgaia-screen="owner"] label,
body[data-dgaia-screen="owner"] small,
body[data-dgaia-screen="owner"] li,
body[data-dgaia-screen="kitchen"] p,
body[data-dgaia-screen="kitchen"] label,
body[data-dgaia-screen="kitchen"] small,
body[data-dgaia-screen="kitchen"] li,
body[data-dgaia-screen="waiter"] p,
body[data-dgaia-screen="waiter"] label,
body[data-dgaia-screen="waiter"] small,
body[data-dgaia-screen="waiter"] li {
    color: var(--aurum-texto-secundario) !important;
}

/* Enlaces superiores */
body[data-dgaia-screen="owner"] header a,
body[data-dgaia-screen="kitchen"] header a,
body[data-dgaia-screen="waiter"] header a {
    color: var(--aurum-texto) !important;
}

body[data-dgaia-screen="owner"] header nav a,
body[data-dgaia-screen="owner"] header .dgaia-commercial-nav a,
body[data-dgaia-screen="kitchen"] header nav a,
body[data-dgaia-screen="kitchen"] header .dgaia-commercial-nav a,
body[data-dgaia-screen="waiter"] header nav a,
body[data-dgaia-screen="waiter"] header .dgaia-commercial-nav a {
    background:
        rgba(255, 255, 255, .035) !important;

    color: var(--aurum-texto) !important;

    border:
        1px solid rgba(216, 179, 90, .25) !important;

    box-shadow: none !important;
}

body[data-dgaia-screen="owner"] header nav a:hover,
body[data-dgaia-screen="owner"] header .dgaia-commercial-nav a:hover,
body[data-dgaia-screen="kitchen"] header nav a:hover,
body[data-dgaia-screen="kitchen"] header .dgaia-commercial-nav a:hover,
body[data-dgaia-screen="waiter"] header nav a:hover,
body[data-dgaia-screen="waiter"] header .dgaia-commercial-nav a:hover {
    background:
        rgba(216, 179, 90, .13) !important;

    border-color:
        var(--aurum-borde-fuerte) !important;

    color:
        var(--aurum-oro-palido) !important;
}

body[data-dgaia-screen="owner"] header a[aria-current="page"],
body[data-dgaia-screen="kitchen"] header a[aria-current="page"],
body[data-dgaia-screen="waiter"] header a[aria-current="page"] {
    background:
        linear-gradient(
            135deg,
            #b78a30,
            var(--aurum-oro)
        ) !important;

    border-color:
        var(--aurum-oro-claro) !important;

    color:
        #10131a !important;
}

/* Marca y subtítulo */
body[data-dgaia-screen="owner"] .dgaia-commercial-brand-text strong,
body[data-dgaia-screen="kitchen"] .dgaia-commercial-brand-text strong,
body[data-dgaia-screen="waiter"] .dgaia-commercial-brand-text strong {
    color: var(--aurum-oro-claro) !important;
}

body[data-dgaia-screen="owner"] .dgaia-commercial-brand-text span,
body[data-dgaia-screen="kitchen"] .dgaia-commercial-brand-text span,
body[data-dgaia-screen="waiter"] .dgaia-commercial-brand-text span {
    color: var(--aurum-texto-secundario) !important;
}

/* Paneles y tarjetas */
body[data-dgaia-screen="owner"] main section,
body[data-dgaia-screen="owner"] main article,
body[data-dgaia-screen="owner"] main .card,
body[data-dgaia-screen="owner"] main .panel,
body[data-dgaia-screen="owner"] .dgaia-panel-unificado,
body[data-dgaia-screen="kitchen"] main section,
body[data-dgaia-screen="kitchen"] main article,
body[data-dgaia-screen="kitchen"] main .card,
body[data-dgaia-screen="kitchen"] main .panel,
body[data-dgaia-screen="kitchen"] .dgaia-panel-unificado,
body[data-dgaia-screen="waiter"] main section,
body[data-dgaia-screen="waiter"] main article,
body[data-dgaia-screen="waiter"] main .card,
body[data-dgaia-screen="waiter"] main .panel,
body[data-dgaia-screen="waiter"] .dgaia-panel-unificado {
    background:
        linear-gradient(
            145deg,
            rgba(17, 34, 56, .98),
            rgba(11, 25, 42, .98)
        ) !important;

    color: var(--aurum-texto) !important;

    border:
        1px solid var(--aurum-borde) !important;

    box-shadow:
        var(--aurum-resplandor) !important;
}

/* No convertir contenedores inválidos en tarjetas */
body[data-dgaia-screen="owner"] .dgaia-panel-invalido,
body[data-dgaia-screen="kitchen"] .dgaia-panel-invalido,
body[data-dgaia-screen="waiter"] .dgaia-panel-invalido {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Etiquetas */
body[data-dgaia-screen="owner"] [class*="tag"],
body[data-dgaia-screen="owner"] [class*="badge"],
body[data-dgaia-screen="owner"] [class*="pill"],
body[data-dgaia-screen="kitchen"] [class*="tag"],
body[data-dgaia-screen="kitchen"] [class*="badge"],
body[data-dgaia-screen="kitchen"] [class*="pill"],
body[data-dgaia-screen="waiter"] [class*="tag"],
body[data-dgaia-screen="waiter"] [class*="badge"],
body[data-dgaia-screen="waiter"] [class*="pill"] {
    background:
        rgba(216, 179, 90, .12) !important;

    color:
        var(--aurum-oro-claro) !important;

    border:
        1px solid rgba(216, 179, 90, .27) !important;
}

/* Botones principales */
body[data-dgaia-screen="owner"] button,
body[data-dgaia-screen="owner"] .btn,
body[data-dgaia-screen="owner"] .button,
body[data-dgaia-screen="owner"] a[role="button"],
body[data-dgaia-screen="kitchen"] button,
body[data-dgaia-screen="kitchen"] .btn,
body[data-dgaia-screen="kitchen"] .button,
body[data-dgaia-screen="kitchen"] a[role="button"],
body[data-dgaia-screen="waiter"] button,
body[data-dgaia-screen="waiter"] .btn,
body[data-dgaia-screen="waiter"] .button,
body[data-dgaia-screen="waiter"] a[role="button"] {
    background:
        linear-gradient(
            135deg,
            #c69b43,
            var(--aurum-oro)
        ) !important;

    color:
        #10131a !important;

    border:
        1px solid var(--aurum-oro-claro) !important;

    box-shadow:
        0 7px 18px rgba(170, 125, 35, .18) !important;
}

body[data-dgaia-screen="owner"] button:hover,
body[data-dgaia-screen="owner"] .btn:hover,
body[data-dgaia-screen="owner"] .button:hover,
body[data-dgaia-screen="kitchen"] button:hover,
body[data-dgaia-screen="kitchen"] .btn:hover,
body[data-dgaia-screen="kitchen"] .button:hover,
body[data-dgaia-screen="waiter"] button:hover,
body[data-dgaia-screen="waiter"] .btn:hover,
body[data-dgaia-screen="waiter"] .button:hover {
    background:
        linear-gradient(
            135deg,
            var(--aurum-oro-claro),
            var(--aurum-oro)
        ) !important;

    color:
        #080b10 !important;
}

/* Botones verdes operativos */
body[data-dgaia-screen="owner"] .dgaia-accion-operativa,
body[data-dgaia-screen="kitchen"] .dgaia-accion-operativa,
body[data-dgaia-screen="waiter"] .dgaia-accion-operativa {
    background:
        linear-gradient(
            135deg,
            #18845c,
            var(--aurum-verde)
        ) !important;

    border-color:
        #59dfa4 !important;

    color:
        #ffffff !important;
}

/* Salir */
body[data-dgaia-screen="owner"] .dgaia-boton-salir,
body[data-dgaia-screen="kitchen"] .dgaia-boton-salir,
body[data-dgaia-screen="waiter"] .dgaia-boton-salir {
    background:
        rgba(238, 106, 112, .11) !important;

    color:
        #ffabb0 !important;

    border:
        1px solid rgba(238, 106, 112, .48) !important;

    box-shadow: none !important;
}

/* Entradas */
body[data-dgaia-screen="owner"] input,
body[data-dgaia-screen="owner"] select,
body[data-dgaia-screen="owner"] textarea,
body[data-dgaia-screen="kitchen"] input,
body[data-dgaia-screen="kitchen"] select,
body[data-dgaia-screen="kitchen"] textarea,
body[data-dgaia-screen="waiter"] input,
body[data-dgaia-screen="waiter"] select,
body[data-dgaia-screen="waiter"] textarea {
    background:
        rgba(4, 12, 22, .72) !important;

    color:
        var(--aurum-texto) !important;

    border:
        1px solid rgba(216, 179, 90, .28) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}

body[data-dgaia-screen="owner"] input::placeholder,
body[data-dgaia-screen="owner"] textarea::placeholder,
body[data-dgaia-screen="kitchen"] input::placeholder,
body[data-dgaia-screen="kitchen"] textarea::placeholder,
body[data-dgaia-screen="waiter"] input::placeholder,
body[data-dgaia-screen="waiter"] textarea::placeholder {
    color: #8494a8 !important;
}

body[data-dgaia-screen="owner"] option,
body[data-dgaia-screen="kitchen"] option,
body[data-dgaia-screen="waiter"] option {
    background: #0d1a2b;
    color: var(--aurum-texto);
}

/* Dirección: informe ejecutivo */
body[data-dgaia-screen="owner"] .dgaia-informe-aurum {
    background:
        linear-gradient(
            115deg,
            rgba(16, 34, 55, .98),
            rgba(8, 21, 37, .98)
        ) !important;

    border:
        1px solid var(--aurum-borde-fuerte) !important;

    box-shadow:
        var(--aurum-sombra) !important;
}

body[data-dgaia-screen="owner"] .dgaia-informe-aurum::before {
    content: "";
    display: block;
    width: 82px;
    height: 3px;
    margin-bottom: 22px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--aurum-oro),
            transparent
        );
}

/* Dirección: KPI */
body[data-dgaia-screen="owner"] .dgaia-kpi-grid-corregida {
    background:
        rgba(6, 16, 28, .72) !important;

    border:
        1px solid var(--aurum-borde) !important;

    box-shadow:
        var(--aurum-sombra) !important;
}

body[data-dgaia-screen="owner"] .dgaia-kpi-corregida {
    background:
        linear-gradient(
            145deg,
            rgba(20, 40, 64, .98),
            rgba(11, 26, 44, .98)
        ) !important;

    border:
        1px solid rgba(216, 179, 90, .22) !important;

    border-left:
        4px solid var(--aurum-oro) !important;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, .17) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-kpi-corregida-label {
    color:
        var(--aurum-oro-claro) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-kpi-corregida-valor {
    color:
        var(--aurum-texto) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-kpi-corregida-detalle {
    color:
        var(--aurum-texto-secundario) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-kpi-corregida-ok {
    border-left-color:
        var(--aurum-verde) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-kpi-corregida-atencion {
    border-left-color:
        var(--aurum-ambar) !important;
}

/* Cocina: planificación */
body[data-dgaia-screen="kitchen"]
.dgaia-titulo-planificacion {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-dgaia-screen="kitchen"]
.dgaia-titulo-planificacion h1,
body[data-dgaia-screen="kitchen"]
.dgaia-titulo-planificacion h2,
body[data-dgaia-screen="kitchen"]
.dgaia-titulo-planificacion h3 {
    color:
        var(--aurum-oro-claro) !important;
}

/* Cocina: disponibilidad */
body[data-dgaia-screen="kitchen"]
[class*="disponible"],
body[data-dgaia-screen="kitchen"]
[class*="available"] {
    color:
        #9df0c1 !important;
}

/* Sala: conservar cabecera operativa pero llevarla a Aurum */
body[data-dgaia-screen="waiter"]
.dgaia-page-intro,
body[data-dgaia-screen="waiter"]
main > [class*="hero"] {
    background:
        linear-gradient(
            110deg,
            #081321,
            #132640
        ) !important;

    border-bottom:
        1px solid var(--aurum-borde) !important;

    box-shadow:
        inset 0 -1px 0 rgba(216, 179, 90, .08) !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-page-intro h1 {
    color:
        var(--aurum-oro-palido) !important;
}

/* Sala: mensaje de identificación */
body[data-dgaia-screen="waiter"]
.dgaia-user-message {
    background:
        rgba(216, 179, 90, .08) !important;

    color:
        var(--aurum-texto-secundario) !important;

    border:
        1px solid rgba(216, 179, 90, .26) !important;

    border-left:
        4px solid var(--aurum-oro) !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-user-message strong {
    color:
        var(--aurum-oro-claro) !important;
}

/* Líneas y divisores */
body[data-dgaia-screen="owner"] hr,
body[data-dgaia-screen="kitchen"] hr,
body[data-dgaia-screen="waiter"] hr {
    border-color:
        rgba(216, 179, 90, .16) !important;
}

/* Barras de desplazamiento */
body[data-dgaia-screen="owner"] *,
body[data-dgaia-screen="kitchen"] *,
body[data-dgaia-screen="waiter"] * {
    scrollbar-color:
        var(--aurum-oro)
        var(--aurum-fondo-profundo);
}

body[data-dgaia-screen="owner"] *::-webkit-scrollbar,
body[data-dgaia-screen="kitchen"] *::-webkit-scrollbar,
body[data-dgaia-screen="waiter"] *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body[data-dgaia-screen="owner"] *::-webkit-scrollbar-track,
body[data-dgaia-screen="kitchen"] *::-webkit-scrollbar-track,
body[data-dgaia-screen="waiter"] *::-webkit-scrollbar-track {
    background:
        var(--aurum-fondo-profundo);
}

body[data-dgaia-screen="owner"] *::-webkit-scrollbar-thumb,
body[data-dgaia-screen="kitchen"] *::-webkit-scrollbar-thumb,
body[data-dgaia-screen="waiter"] *::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            var(--aurum-oro),
            #9a7025
        );

    border-radius: 999px;
    border: 2px solid var(--aurum-fondo-profundo);
}

/* Adaptación móvil */
@media (max-width: 720px) {
    body[data-dgaia-screen="owner"],
    body[data-dgaia-screen="kitchen"],
    body[data-dgaia-screen="waiter"] {
        background:
            linear-gradient(
                180deg,
                var(--aurum-fondo-profundo),
                var(--aurum-fondo)
            ) !important;
    }
}

body[data-dgaia-theme="aurum"]
.dgaia-superficie-aurum-forzada {
    background:
        linear-gradient(
            145deg,
            rgba(17, 34, 56, .98),
            rgba(11, 25, 42, .98)
        ) !important;

    color:
        var(--aurum-texto) !important;

    border-color:
        var(--aurum-borde) !important;
}


/* ==============================================================
   CAPA 2 · CIERRE VISUAL
   ============================================================== */

/* ==============================================================
   DGAIA HOSTELERÍA
   CIERRE VISUAL AURUM
   DIRECCIÓN · COCINA · SALA
   ============================================================== */

html:has(body[data-dgaia-theme="aurum"]) {
    background: #050c15 !important;
}

body[data-dgaia-theme="aurum"] {
    --aurum-cierre-fondo: #060e18;
    --aurum-cierre-cabecera: #071423;
    --aurum-cierre-panel: #102239;
    --aurum-cierre-panel-alto: #142842;
    --aurum-cierre-oro: #ddb85b;
    --aurum-cierre-oro-claro: #f2d98e;
    --aurum-cierre-texto: #f7f3e9;
    --aurum-cierre-secundario: #c0cad7;
    --aurum-cierre-apagado: #9eacbc;
    --aurum-cierre-verde: #2ec481;
    --aurum-cierre-verde-oscuro: #16845a;
    --aurum-cierre-rojo: #ff949e;
    --aurum-cierre-borde: rgba(221, 184, 91, .31);
    --aurum-cierre-borde-fuerte: rgba(242, 217, 142, .58);

    background:
        radial-gradient(
            circle at 16% 0%,
            rgba(221, 184, 91, .055),
            transparent 29%
        ),
        linear-gradient(
            180deg,
            #050b13,
            var(--aurum-cierre-fondo)
        ) !important;
}

/* ==============================================================
   1. CABECERA ÚNICA Y OSCURA
   ============================================================== */

body[data-dgaia-theme="aurum"] > header,
body[data-dgaia-theme="aurum"] header,
body[data-dgaia-theme="aurum"] header > div,
body[data-dgaia-theme="aurum"] header > section,
body[data-dgaia-theme="aurum"] header > nav,
body[data-dgaia-theme="aurum"] .topbar,
body[data-dgaia-theme="aurum"] .navbar,
body[data-dgaia-theme="aurum"] .app-header,
body[data-dgaia-theme="aurum"] .main-header {
    background:
        linear-gradient(
            90deg,
            #06111f,
            var(--aurum-cierre-cabecera)
        ) !important;

    color:
        var(--aurum-cierre-texto) !important;

    border-color:
        var(--aurum-cierre-borde) !important;
}

body[data-dgaia-theme="aurum"] > header,
body[data-dgaia-theme="aurum"] header {
    border-bottom:
        1px solid var(--aurum-cierre-borde) !important;

    box-shadow:
        0 9px 28px rgba(0, 0, 0, .28) !important;
}

body[data-dgaia-theme="aurum"] header strong,
body[data-dgaia-theme="aurum"] header span,
body[data-dgaia-theme="aurum"] header p {
    color:
        var(--aurum-cierre-texto) !important;
}

body[data-dgaia-theme="aurum"]
header .dgaia-commercial-brand-text strong {
    color:
        var(--aurum-cierre-oro-claro) !important;
}

body[data-dgaia-theme="aurum"]
header .dgaia-commercial-brand-text span {
    color:
        var(--aurum-cierre-secundario) !important;
}

/* El logotipo conserva fondo claro para no destruir su identidad */
body[data-dgaia-theme="aurum"] header img {
    background:
        rgba(255, 255, 255, .97) !important;

    padding:
        5px 8px !important;

    border-radius:
        9px !important;

    box-shadow:
        0 0 0 1px rgba(221, 184, 91, .30) !important;
}

/* Enlaces simples de Cocina y Sala */
body[data-dgaia-theme="aurum"] header a:not([role="button"]) {
    color:
        var(--aurum-cierre-texto) !important;

    opacity:
        1 !important;
}

body[data-dgaia-theme="aurum"] header a:not([role="button"]):hover {
    color:
        var(--aurum-cierre-oro-claro) !important;
}

/* ==============================================================
   2. JERARQUÍA DE ACCIONES
   ============================================================== */

/* Navegación: oro */
body[data-dgaia-theme="aurum"]
header nav a,
body[data-dgaia-theme="aurum"]
header .dgaia-commercial-nav a {
    background:
        linear-gradient(
            135deg,
            #bd9138,
            var(--aurum-cierre-oro)
        ) !important;

    color:
        #11151b !important;

    border:
        1px solid var(--aurum-cierre-oro-claro) !important;

    box-shadow:
        0 6px 16px rgba(155, 112, 31, .18) !important;
}

body[data-dgaia-theme="aurum"]
header nav a:hover,
body[data-dgaia-theme="aurum"]
header .dgaia-commercial-nav a:hover {
    background:
        linear-gradient(
            135deg,
            var(--aurum-cierre-oro-claro),
            var(--aurum-cierre-oro)
        ) !important;

    color:
        #080b0f !important;
}

/* Acciones operativas: verde */
body[data-dgaia-theme="aurum"]
.dgaia-accion-operativa,
body[data-dgaia-theme="aurum"]
button.dgaia-accion-operativa,
body[data-dgaia-theme="aurum"]
a.dgaia-accion-operativa {
    background:
        linear-gradient(
            135deg,
            var(--aurum-cierre-verde-oscuro),
            var(--aurum-cierre-verde)
        ) !important;

    color:
        #ffffff !important;

    border:
        1px solid #55e2a4 !important;

    box-shadow:
        0 7px 18px rgba(26, 147, 98, .20) !important;
}

body[data-dgaia-theme="aurum"]
.dgaia-accion-operativa:hover {
    background:
        linear-gradient(
            135deg,
            #20a971,
            #42d997
        ) !important;

    color:
        #ffffff !important;
}

/* Salir: rojo discreto */
body[data-dgaia-theme="aurum"]
.dgaia-boton-salir,
body[data-dgaia-theme="aurum"]
header .dgaia-boton-salir {
    background:
        rgba(255, 105, 116, .075) !important;

    color:
        var(--aurum-cierre-rojo) !important;

    border:
        1px solid rgba(255, 120, 130, .43) !important;

    box-shadow:
        none !important;
}

/* ==============================================================
   3. CONTRASTE GLOBAL
   ============================================================== */

body[data-dgaia-theme="aurum"] main h1,
body[data-dgaia-theme="aurum"] main h2,
body[data-dgaia-theme="aurum"] main h3,
body[data-dgaia-theme="aurum"] main h4,
body[data-dgaia-theme="aurum"] main strong {
    color:
        var(--aurum-cierre-texto) !important;
}

body[data-dgaia-theme="aurum"] main p,
body[data-dgaia-theme="aurum"] main label,
body[data-dgaia-theme="aurum"] main small,
body[data-dgaia-theme="aurum"] main li {
    color:
        var(--aurum-cierre-secundario) !important;
}

/* Textos que quedaron demasiado apagados */
body[data-dgaia-theme="aurum"]
[style*="color: rgb"],
body[data-dgaia-theme="aurum"]
[style*="color:#"],
body[data-dgaia-theme="aurum"]
[style*="color: #"] {
    opacity:
        1 !important;
}

/* ==============================================================
   4. DIRECCIÓN
   ============================================================== */

body[data-dgaia-screen="owner"]
.dgaia-informe-aurum {
    min-height:
        215px !important;

    display:
        grid !important;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(260px, .8fr) !important;

    grid-template-rows:
        auto auto !important;

    align-items:
        center !important;

    gap:
        22px 36px !important;

    padding:
        38px 42px !important;

    background:
        linear-gradient(
            120deg,
            #122641,
            #0a192b
        ) !important;

    border:
        1px solid var(--aurum-cierre-borde-fuerte) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-informe-aurum::before {
    grid-column:
        1 / -1;

    width:
        76px !important;

    height:
        3px !important;

    margin:
        0 0 4px !important;
}

body[data-dgaia-screen="owner"]
.dgaia-informe-aurum h1,
body[data-dgaia-screen="owner"]
.dgaia-informe-aurum h2,
body[data-dgaia-screen="owner"]
.dgaia-informe-aurum h3,
body[data-dgaia-screen="owner"]
.dgaia-informe-aurum [class*="status"],
body[data-dgaia-screen="owner"]
.dgaia-informe-aurum [class*="estado"] {
    color:
        var(--aurum-cierre-oro-claro) !important;

    opacity:
        1 !important;

    filter:
        none !important;

    text-shadow:
        0 1px 0 rgba(0, 0, 0, .35) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-informe-aurum p,
body[data-dgaia-screen="owner"]
.dgaia-informe-aurum span,
body[data-dgaia-screen="owner"]
.dgaia-informe-aurum div {
    opacity:
        1 !important;
}

body[data-dgaia-screen="owner"]
.dgaia-informe-aurum p {
    color:
        var(--aurum-cierre-secundario) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-informe-aurum p strong,
body[data-dgaia-screen="owner"]
.dgaia-informe-aurum div strong {
    color:
        var(--aurum-cierre-texto) !important;
}

/* Evitar que estilos antiguos vuelvan a oscurecer Estado */
body[data-dgaia-screen="owner"]
.dgaia-informe-aurum * {
    filter:
        none !important;
}

body[data-dgaia-screen="owner"]
.dgaia-kpi-corregida-label {
    color:
        var(--aurum-cierre-oro-claro) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-kpi-corregida-valor {
    color:
        var(--aurum-cierre-texto) !important;
}

body[data-dgaia-screen="owner"]
.dgaia-kpi-corregida-detalle {
    color:
        var(--aurum-cierre-secundario) !important;
}

/* ==============================================================
   5. COCINA
   ============================================================== */

body[data-dgaia-screen="kitchen"]
.dgaia-titulo-planificacion h1,
body[data-dgaia-screen="kitchen"]
.dgaia-titulo-planificacion h2,
body[data-dgaia-screen="kitchen"]
.dgaia-titulo-planificacion h3 {
    color:
        var(--aurum-cierre-oro-claro) !important;
}

body[data-dgaia-screen="kitchen"]
main section p,
body[data-dgaia-screen="kitchen"]
main article p {
    color:
        var(--aurum-cierre-secundario) !important;
}

body[data-dgaia-screen="kitchen"]
input,
body[data-dgaia-screen="kitchen"]
select,
body[data-dgaia-screen="kitchen"]
textarea {
    background:
        #071321 !important;

    color:
        var(--aurum-cierre-texto) !important;

    border:
        1px solid rgba(221, 184, 91, .31) !important;
}

body[data-dgaia-screen="kitchen"]
input::placeholder,
body[data-dgaia-screen="kitchen"]
textarea::placeholder {
    color:
        #a4b1c0 !important;
}

/* ==============================================================
   6. SALA
   ============================================================== */

body[data-dgaia-screen="waiter"]
.dgaia-page-intro {
    padding-top:
        28px !important;

    padding-bottom:
        24px !important;

    background:
        linear-gradient(
            110deg,
            #10223a,
            #142a46
        ) !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-page-intro h1 {
    color:
        var(--aurum-cierre-oro-claro) !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-page-intro p {
    color:
        var(--aurum-cierre-secundario) !important;
}

/* Reducir panel Supervisor aproximadamente un 25 % */
body[data-dgaia-screen="waiter"]
main section:first-of-type,
body[data-dgaia-screen="waiter"]
main .dgaia-supervisor-aurum {
    min-height:
        0 !important;

    padding:
        30px 30px 24px !important;
}

body[data-dgaia-screen="waiter"]
main section:first-of-type h2,
body[data-dgaia-screen="waiter"]
main .dgaia-supervisor-aurum h2 {
    margin-bottom:
        14px !important;
}

body[data-dgaia-screen="waiter"]
main section:first-of-type p,
body[data-dgaia-screen="waiter"]
main .dgaia-supervisor-aurum p {
    margin-top:
        6px !important;

    margin-bottom:
        15px !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-user-message {
    background:
        #17283b !important;

    border:
        1px solid rgba(221, 184, 91, .38) !important;

    border-left:
        4px solid var(--aurum-cierre-oro) !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-user-message strong {
    color:
        var(--aurum-cierre-oro-claro) !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-user-message,
body[data-dgaia-screen="waiter"]
.dgaia-user-message div {
    color:
        var(--aurum-cierre-secundario) !important;
}

/* ==============================================================
   7. ADAPTACIÓN
   ============================================================== */

@media (max-width: 1000px) {
    body[data-dgaia-screen="owner"]
    .dgaia-informe-aurum {
        grid-template-columns:
            1fr !important;

        min-height:
            0 !important;
    }
}

@media (max-width: 720px) {
    body[data-dgaia-screen="owner"]
    .dgaia-informe-aurum {
        padding:
            26px 22px !important;
    }

    body[data-dgaia-screen="waiter"]
    main section:first-of-type {
        padding:
            24px 20px !important;
    }
}


/* ==============================================================
   CAPA 3 · AJUSTE SOBRE ELEMENTOS REALES
   ============================================================== */

/* ==============================================================
   DGAIA HOSTELERÍA
   AURUM · AJUSTE SOBRE ELEMENTOS REALES
   ============================================================== */

body[data-dgaia-theme="aurum"] {
    --aurum-real-cabecera: #071422;
    --aurum-real-cabecera-alta: #0b1b2e;
    --aurum-real-panel: #10233a;
    --aurum-real-texto: #f7f3e9;
    --aurum-real-secundario: #c4cfdb;
    --aurum-real-oro: #e0ba5c;
    --aurum-real-oro-claro: #f3d98c;
    --aurum-real-verde: #2bc27e;
    --aurum-real-borde: rgba(224, 186, 92, .31);
}

/* Cabecera real detectada, aunque no use la etiqueta header */
body[data-dgaia-theme="aurum"] .dgaia-cabecera-real-aurum,
body[data-dgaia-theme="aurum"] .dgaia-cabecera-real-aurum > div,
body[data-dgaia-theme="aurum"] .dgaia-cabecera-real-aurum > section,
body[data-dgaia-theme="aurum"] .dgaia-cabecera-real-aurum > nav {
    background:
        linear-gradient(
            90deg,
            #06111e,
            var(--aurum-real-cabecera)
        ) !important;

    color:
        var(--aurum-real-texto) !important;

    border-color:
        var(--aurum-real-borde) !important;
}

body[data-dgaia-theme="aurum"] .dgaia-cabecera-real-aurum {
    border-bottom:
        1px solid var(--aurum-real-borde) !important;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .28) !important;
}

body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum a,
body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum span,
body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum strong,
body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum p {
    color:
        var(--aurum-real-texto) !important;

    opacity:
        1 !important;

    filter:
        none !important;
}

body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum a:hover {
    color:
        var(--aurum-real-oro-claro) !important;
}

/* Mantener el logotipo oficial legible */
body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum img {
    background:
        rgba(255, 255, 255, .98) !important;

    border-radius:
        9px !important;

    padding:
        4px 7px !important;

    box-shadow:
        0 0 0 1px rgba(224, 186, 92, .28) !important;
}

/* Etiqueta DGAIA Hostelería */
body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum
.dgaia-marca-hosteleria-real {
    background:
        rgba(224, 186, 92, .10) !important;

    color:
        var(--aurum-real-oro-claro) !important;

    border:
        1px solid rgba(224, 186, 92, .32) !important;
}

/* Enlaces de texto de Cocina y Sala */
body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum
.dgaia-enlace-superior-real {
    color:
        var(--aurum-real-texto) !important;

    background:
        transparent !important;

    border-color:
        transparent !important;

    box-shadow:
        none !important;

    text-shadow:
        none !important;
}

body[data-dgaia-theme="aurum"]
.dgaia-cabecera-real-aurum
.dgaia-enlace-superior-real:hover {
    color:
        var(--aurum-real-oro-claro) !important;
}

/* ==============================================================
   CABECERA INTERIOR DE COCINA
   ============================================================== */

body[data-dgaia-screen="kitchen"]
.dgaia-intro-cocina-real {
    min-height:
        0 !important;

    padding:
        26px 28px 22px !important;

    background:
        linear-gradient(
            110deg,
            #0a192b,
            #10243d
        ) !important;

    border-bottom:
        1px solid var(--aurum-real-borde) !important;
}

body[data-dgaia-screen="kitchen"]
.dgaia-intro-cocina-real h1,
body[data-dgaia-screen="kitchen"]
.dgaia-intro-cocina-real h2,
body[data-dgaia-screen="kitchen"]
.dgaia-intro-cocina-real h3 {
    color:
        var(--aurum-real-oro-claro) !important;

    margin-bottom:
        6px !important;
}

body[data-dgaia-screen="kitchen"]
.dgaia-intro-cocina-real p,
body[data-dgaia-screen="kitchen"]
.dgaia-intro-cocina-real span,
body[data-dgaia-screen="kitchen"]
.dgaia-intro-cocina-real div {
    color:
        var(--aurum-real-secundario) !important;

    opacity:
        1 !important;
}

body[data-dgaia-screen="kitchen"]
.dgaia-intro-cocina-real
.dgaia-accion-navegacion {
    color:
        #10151c !important;
}

/* Reducir hueco entre intro y controles */
body[data-dgaia-screen="kitchen"]
.dgaia-zona-principal-real {
    padding-top:
        28px !important;
}

body[data-dgaia-screen="kitchen"]
.dgaia-controles-iniciales-real {
    margin-top:
        0 !important;

    margin-bottom:
        20px !important;
}

/* Textos secundarios reales de Cocina */
body[data-dgaia-screen="kitchen"]
.dgaia-texto-secundario-real {
    color:
        var(--aurum-real-secundario) !important;

    opacity:
        1 !important;

    filter:
        none !important;
}

/* ==============================================================
   CABECERA INTERIOR DE SALA
   ============================================================== */

body[data-dgaia-screen="waiter"]
.dgaia-intro-sala-real {
    min-height:
        0 !important;

    padding:
        25px 32px 22px !important;

    background:
        linear-gradient(
            110deg,
            #0b1b2e,
            #132a47
        ) !important;

    border-bottom:
        1px solid var(--aurum-real-borde) !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-intro-sala-real h1,
body[data-dgaia-screen="waiter"]
.dgaia-intro-sala-real h2 {
    color:
        var(--aurum-real-oro-claro) !important;

    margin:
        0 0 6px !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-intro-sala-real p {
    color:
        var(--aurum-real-secundario) !important;

    margin:
        0 !important;

    opacity:
        1 !important;
}

/* Compactación real de Supervisor */
body[data-dgaia-screen="waiter"]
.dgaia-supervisor-real {
    min-height:
        0 !important;

    padding:
        27px 30px 24px !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-supervisor-real h2,
body[data-dgaia-screen="waiter"]
.dgaia-supervisor-real h3 {
    margin:
        0 0 12px !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-supervisor-real > p {
    margin:
        0 0 16px !important;
}

body[data-dgaia-screen="waiter"]
.dgaia-supervisor-real
.dgaia-fila-prioridades-real {
    margin:
        12px 0 14px !important;
}

/* Reducir hueco entre intro y primer panel */
body[data-dgaia-screen="waiter"]
.dgaia-zona-principal-real {
    padding-top:
        30px !important;
}

/* ==============================================================
   DIRECCIÓN · COMPACTACIÓN MENOR
   ============================================================== */

body[data-dgaia-screen="owner"]
.dgaia-informe-aurum {
    min-height:
        190px !important;

    padding:
        30px 36px !important;

    gap:
        16px 32px !important;
}

body[data-dgaia-screen="owner"]
.dgaia-informe-aurum::before {
    margin-bottom:
        0 !important;
}

/* ==============================================================
   ADAPTACIÓN
   ============================================================== */

@media (max-width: 760px) {
    body[data-dgaia-screen="kitchen"]
    .dgaia-intro-cocina-real,
    body[data-dgaia-screen="waiter"]
    .dgaia-intro-sala-real {
        padding:
            22px 18px !important;
    }

    body[data-dgaia-screen="waiter"]
    .dgaia-supervisor-real {
        padding:
            23px 19px !important;
    }
}
