
/* =========================================================
   MUNDOXAT - TEMA COMPLETO PARA OSTICKET
   Fondo azul oscuro, detalles cian y botones eléctricos.
   Menú principal corregido para evitar el fondo blanco.
   ========================================================= */

:root {
    color-scheme: dark;
    --mx-bg: #030d20;
    --mx-panel: #061a31;
    --mx-border: #123354;
    --mx-cyan: #08c8f5;
    --mx-blue: #087ff5;
    --mx-text: #eef6ff;
    --mx-muted: #b3c8e5;
}

/* FONDO GENERAL */

html {
    min-height: 100%;
    background: #030d20 !important;
    background-color: #030d20 !important;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mx-text) !important;
    background-color: #030d20 !important;
    background-image:
        radial-gradient(ellipse at 82% -5%, rgba(0,118,255,.2), transparent 35%),
        linear-gradient(135deg, #06152e, #020916 70%) !important;
}

body input,
body select,
body textarea {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--mx-text);
}

/* CONTENEDOR EXTERIOR */

body #container {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0 0 28px;
    color: var(--mx-text) !important;
    background-color: #06152e !important;
    background-image: linear-gradient(135deg, #06152e, #020916 70%) !important;
    box-shadow: none !important;
}

/* CABECERA */

.mx-header {
    margin: 0 calc((100vw - min(1240px, 100vw - 36px)) / -2) 0;
    padding: 22px max(28px, calc((100vw - 1240px) / 2));
    background: linear-gradient(105deg, #031127, #062653 65%, #04152d) !important;
    border-bottom: 1px solid #12385c;
}

.mx-header-inner {
    max-width: 1240px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.mx-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
    border: 0 !important;
}

.mx-planet {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    display: block;
    position: relative;
    background: radial-gradient(
        circle at 32% 25%,
        #9cf5ff 0 7%,
        #18c9f2 22%,
        #0875c8 62%,
        #06427d 100%
    );
    box-shadow: 0 0 24px #008ee944;
}

.mx-planet:after {
    content: "";
    position: absolute;
    width: 82px;
    height: 25px;
    border: 5px solid #ffc928;
    border-left-color: #f7a51b;
    border-right-color: #ffe35b;
    border-radius: 50%;
    left: -13px;
    top: 18px;
    transform: rotate(-27deg);
}

.mx-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.mx-brand-copy strong {
    font-size: 35px;
    letter-spacing: -1.2px;
    color: #f5f9ff;
    font-weight: 750;
}

.mx-brand-copy strong span {
    color: var(--mx-cyan);
}

.mx-brand-copy small {
    color: #c3d7f0;
    font-size: 14px;
    margin-top: 5px;
}

/* CUENTA Y ACCESO */

.mx-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    font-size: 13px;
}

.mx-account a {
    color: #c5d8f3 !important;
    text-decoration: none;
}

.mx-account a:hover {
    color: var(--mx-cyan) !important;
}

.mx-user {
    color: #fff;
    font-weight: 600;
}

/* =========================================================
   MENÚ PRINCIPAL
   Selector específico para nav.mx-nav dentro de container.
   ========================================================= */

body #container > nav.mx-nav,
body #container nav.mx-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: auto !important;
    margin: 0 0 30px !important;
    padding: 0 8px !important;

    background: #06172a !important;
    background-color: #06172a !important;
    background-image: none !important;

    color: #eef6ff !important;
    border: 0 !important;
    border-bottom: 1px solid #153b60 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Enlaces del menú */

body #container > nav.mx-nav > a,
body #container nav.mx-nav > a {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;

    min-width: 92px;
    padding: 15px 13px 12px !important;

    color: #d5e4f8 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none !important;

    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Iconos del menú */

body #container > nav.mx-nav > a > span,
body #container nav.mx-nav > a > span {
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    color: #d9e9ff !important;
    background: transparent !important;
    opacity: 1 !important;
}

/* Hover */

body #container > nav.mx-nav > a:hover,
body #container nav.mx-nav > a:hover {
    color: #08c8f5 !important;
    background: #0a2340 !important;
    background-color: #0a2340 !important;
    border-bottom: 3px solid #08c8f5 !important;
}

/* Sección activa */

body #container > nav.mx-nav > a.active,
body #container nav.mx-nav > a.active {
    color: #08c8f5 !important;
    background: #0a2340 !important;
    background-color: #0a2340 !important;
    border-bottom: 3px solid #08c8f5 !important;
}

body #container > nav.mx-nav > a:hover > span,
body #container > nav.mx-nav > a.active > span,
body #container nav.mx-nav > a:hover > span,
body #container nav.mx-nav > a.active > span {
    color: #08c8f5 !important;
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

body #container #content {
    padding: 0 !important;
    color: var(--mx-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#content h1 {
    color: var(--mx-text) !important;
}

#content h2,
#content h3,
#content label {
    color: #eaf5ff !important;
}

#content .faded {
    color: #a9bfd9 !important;
}

#landing_page {
    display: block;
}

#landing_page .main-content {
    width: 100%;
    float: none;
}

#landing_page .sidebar {
    display: none;
}

/* PANEL DE BIENVENIDA */

body #container #content > main.mx-main {
    margin: 0 auto 26px;
    padding: 34px 38px 28px;
    color: var(--mx-text) !important;

    background: linear-gradient(
        145deg,
        rgba(7,28,52,.96),
        rgba(3,17,34,.98)
    ) !important;
    background-color: #061a31 !important;

    border: 1px solid #12365a;
    border-radius: 15px;
    box-shadow: 0 22px 70px #0004;
}

.mx-welcome {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 28px;
}

.mx-welcome-icon {
    color: var(--mx-cyan);
    font-size: 40px;
    line-height: 1;
    text-shadow: 0 0 22px #00c8ff55;
}

.mx-welcome h1 {
    font-size: 27px;
    line-height: 1.25;
    margin: 0 0 8px;
    color: #f4f8ff !important;
    font-weight: 700;
}

.mx-welcome h1 span {
    color: var(--mx-cyan);
}

.mx-welcome p {
    margin: 0;
    color: var(--mx-muted);
    font-size: 15px;
}

/* TARJETAS */

.mx-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.mx-ticket-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 30px 25px;
    color: var(--mx-text) !important;

    border: 1px solid #153b60;
    border-radius: 14px;
    background: linear-gradient(145deg, #061b32, #041329) !important;
    background-color: #061b32 !important;

    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.mx-ticket-card:hover {
    border-color: #087fc0;
    box-shadow: 0 12px 35px #001a35;
    transform: translateY(-2px);
}

.mx-card-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
}

.mx-card-icon {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;

    background: linear-gradient(145deg, #0873bc, #06356c) !important;
    border: 1px solid #168de0;

    color: #dffaff;
    font-size: 54px;
    font-weight: 600;
    box-shadow: inset 0 0 18px #1acbff30;
}

.mx-icon-new {
    color: #ffcf4b;
}

.mx-icon-status {
    color: #4ee8ff;
}

.mx-card-heading h2 {
    margin: 0;
    color: #f4f8ff !important;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 650;
}

.mx-card-heading h2 span {
    color: var(--mx-cyan);
    font-size: 36px;
}

.mx-ticket-card p {
    color: var(--mx-muted);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 23px;
    max-width: 540px;
}

/* BOTONES */

.mx-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding: 13px 18px;
    border-radius: 10px;

    background: linear-gradient(105deg, #04bde9, #087cf7) !important;
    color: #fff !important;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: 0 7px 20px #0078f52b;
}

.mx-button:hover {
    filter: brightness(1.1);
    box-shadow: 0 9px 26px #008cf755;
}

.mx-button b {
    margin-left: 10px;
    font-size: 20px;
    font-weight: 500;
}

/* BLOQUES ADICIONALES */

.mx-knowledge,
.mx-custom-content {
    margin-top: 24px;
    padding: 22px 25px;
    color: var(--mx-text) !important;
    border: 1px solid #153653;
    border-radius: 12px;
    background: #05162a !important;
}

.mx-knowledge h2 {
    color: #f3f8ff !important;
    font-size: 20px;
    margin: 0 0 7px;
}

.mx-knowledge p {
    color: var(--mx-muted);
    margin: 0 0 10px;
}

.mx-text-link {
    color: var(--mx-cyan) !important;
    font-weight: 650;
}

/* ENLACES GENERALES */

a {
    color: #58d7ff;
}

a:hover {
    color: #a5edff;
}

/* FORMULARIOS */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    background: #06172a !important;
    border: 1px solid #244563 !important;
    border-radius: 7px !important;
    color: #edf7ff !important;
    padding: 9px 11px !important;
    max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #08bde8 !important;
    outline: 2px solid #08bde833;
}

button,
.button,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(105deg, #04bde9, #087cf7) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 7px !important;
    padding: 9px 15px !important;
    font-weight: 650 !important;
    text-shadow: none !important;
}

/* AVISOS */

#msg_notice,
#msg_warning,
#msg_error,
#msg_info,
.notice,
.warning,
.error {
    border-radius: 7px;
}

.error_bar,
.warning_bar,
.notice_bar {
    color: #eef6ff;
}

/* TABLAS */

table {
    color: var(--mx-text);
}

th,
td {
    border-color: #193754 !important;
}

/* TICKETS Y RESPUESTAS */

#content .ticket-info,
.ticket_info,
.thread-body,
.thread-entry,
.form_table,
.section-break {
    color: var(--mx-text);
}

#content .thread-body {
    background: transparent !important;
}

#content .sidebar {
    background: #06172a !important;
    border-color: #153653 !important;
}

#content .sidebar a {
    color: #72ddff !important;
}

/* PIE DE PÁGINA */

#footer {
    margin: 0;
    padding: 20px 10px 8px;
    text-align: center;
    border-top: 1px solid #153653;
    color: #b6c9e4;
    background: transparent !important;
}

#footer p {
    color: #d5e2f5;
    margin: 0 0 7px;
}

#poweredBy {
    color: #7f9dbf;
    font-size: 12px;
}

/* =========================================================
   RESPONSIVE PARA MÓVILES
   ========================================================= */

@media (max-width: 760px) {
    body #container {
        width: calc(100% - 22px);
    }

    .mx-header {
        margin: 0 -11px;
        padding: 18px 16px;
    }

    .mx-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .mx-planet {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .mx-planet:after {
        width: 64px;
        height: 18px;
        left: -10px;
        top: 14px;
        border-width: 4px;
    }

    .mx-brand-copy strong {
        font-size: 29px;
    }

    .mx-account {
        justify-content: flex-start;
    }

    body #container > nav.mx-nav,
    body #container nav.mx-nav {
        justify-content: flex-start !important;
        overflow-x: auto;
        margin-bottom: 18px !important;
        padding: 0 4px !important;
    }

    body #container > nav.mx-nav > a,
    body #container nav.mx-nav > a {
        min-width: 72px;
        padding: 12px 8px 10px !important;
        font-size: 12px;
        flex-shrink: 0 !important;
    }

    body #container #content > main.mx-main {
        padding: 22px 16px;
    }

    .mx-welcome {
        align-items: flex-start;
        gap: 12px;
    }

    .mx-welcome h1 {
        font-size: 22px;
    }

    .mx-ticket-grid {
        grid-template-columns: 1fr;
    }

    .mx-ticket-card {
        padding: 22px 18px;
    }

    .mx-card-icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        font-size: 42px;
    }

    .mx-card-heading {
        gap: 15px;
    }

    .mx-card-heading h2 {
        font-size: 24px;
    }

    .mx-card-heading h2 span {
        font-size: 30px;
    }
}

/* RESPETAR LAS PREFERENCIAS DE MOVIMIENTO */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* MUNDOXAT - SOLUCION DEFINITIVA MENU BLANCO */
html body #container nav.mx-nav {
    background: #06172a !important;
    background-color: #06172a !important;
    background-image: none !important;
    border-top: 1px solid #153b60 !important;
    border-bottom: 1px solid #153b60 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html body #container nav.mx-nav a,
html body #container nav.mx-nav a:link,
html body #container nav.mx-nav a:visited {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #d5e4f8 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body #container nav.mx-nav a:hover,
html body #container nav.mx-nav a.active {
    background: #0a2340 !important;
    background-color: #0a2340 !important;
    color: #08c8f5 !important;
    border-bottom: 3px solid #08c8f5 !important;
}

html body #container nav.mx-nav a span {
    background: transparent !important;
    background-color: transparent !important;
    color: #d9e9ff !important;
}

html body #container nav.mx-nav a:hover span,
html body #container nav.mx-nav a.active span {
    color: #08c8f5 !important;
}


/* MUNDOXAT: correccion permanente de fondos */
html,
body {
    background-color: #030d20 !important;
}

body #container {
    background: #030d20 !important;
    background-color: #030d20 !important;
    background-image: none !important;
}

body #container > nav.mx-nav,
body #container nav.mx-nav {
    background: #06172a !important;
    background-color: #06172a !important;
    background-image: none !important;
    border-bottom: 1px solid #153b60 !important;
    color: #eef6ff !important;
}

body #container > nav.mx-nav a,
body #container nav.mx-nav a {
    color: #d5e4f8 !important;
}

body #container > nav.mx-nav a:hover,
body #container nav.mx-nav a:hover,
body #container > nav.mx-nav a.active,
body #container nav.mx-nav a.active {
    background-color: #123456 !important;
    color: #ffffff !important;
}

body #container #content {
    background: transparent !important;
    background-color: transparent !important;
}


/* =========================================================
   MUNDOXAT - SELECTOR DE IDIOMA
   ========================================================= */

.mx-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    min-width: 0;
}

.mx-language-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 12px;
}

.mx-language-label {
    color: #a9bfd9;
    font-size: 12px;
    font-weight: 600;
    margin-right: 2px;
}

.mx-language-option,
.mx-language-option:link,
.mx-language-option:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #244563 !important;
    border-radius: 7px;
    background: #06172a !important;
    color: #d5e4f8 !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.mx-language-option:hover {
    border-color: #08c8f5 !important;
    background: #0a2340 !important;
    color: #08c8f5 !important;
}

.mx-language-option.active,
.mx-language-option.active:link,
.mx-language-option.active:visited {
    border-color: #08c8f5 !important;
    background: linear-gradient(105deg, #0873bc, #07549b) !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px #08c8f526;
}

/* =========================================================
   MUNDOXAT - AVISO DE SEGURIDAD BILINGÜE
   ========================================================= */

.mx-legal-notice {
    margin-top: 26px;
    padding: 26px 28px;
    color: #eaf5ff !important;
    background: linear-gradient(145deg, #071c32, #041326) !important;
    border: 1px solid #a66a27;
    border-left: 4px solid #ffbd45;
    border-radius: 12px;
    box-shadow: 0 12px 30px #0003;
}

.mx-legal-notice > h2 {
    color: #ffd078 !important;
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 22px;
}

.mx-security-language h3 {
    color: #55d9ff !important;
    font-size: 16px;
    margin: 0 0 13px;
}

.mx-security-language p {
    color: #d0def0 !important;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 13px;
}

.mx-security-language strong {
    color: #ffffff !important;
}

.mx-security-language ul {
    margin: 10px 0 17px;
    padding-left: 23px;
}

.mx-security-language li {
    color: #d0def0 !important;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.mx-security-divider {
    height: 1px;
    margin: 24px 0;
    background: linear-gradient(90deg, transparent, #285477, transparent);
}

/* Spanish and English closing messages: always on separate lines. */
.mx-security-footer {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
    padding: 16px 18px;
    text-align: center;
    background: #0a2943;
    border: 1px solid #185078;
    border-radius: 9px;
}

.mx-security-footer p {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 5px 0;
    color: #71dcff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.mx-security-footer .mx-security-en {
    margin-top: 8px !important;
    padding-top: 12px;
    border-top: 1px solid #285477;
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */

@media (max-width: 760px) {
    .mx-header-actions {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .mx-language-selector {
        justify-content: flex-start;
    }

    .mx-account {
        width: 100%;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .mx-legal-notice {
        padding: 20px 16px;
    }

    .mx-legal-notice > h2 {
        font-size: 17px;
    }

    .mx-security-language li {
        font-size: 12px;
    }

    .mx-security-footer {
        padding: 13px 10px;
    }

    .mx-security-footer p {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .mx-language-label {
        width: 100%;
    }

    .mx-language-option {
        min-height: 30px;
        padding: 5px 8px;
    }
}
