/* =========================================================
   XIMPOSIA
   Gestión inteligente para restaurantes

   CSS GLOBAL
   Versión inicial - Identidad visual Ximposia

   Colores principales:
   Marengo  #3F4448
   Ocre     #D0A646
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {

    /* -----------------------------------------------------
       Identidad Ximposia
       ----------------------------------------------------- */

    --x-marengo: #3F4448;
    --x-marengo-dark: #292D30;
    --x-marengo-light: #62686D;

    --x-ocre: #D0A646;
    --x-ocre-dark: #A9822E;
    --x-ocre-light: #E3C979;


    /* -----------------------------------------------------
       Fondos
       ----------------------------------------------------- */

    --x-bg: #F6F5F2;
    --x-bg-secondary: #ECEBE7;
    --x-surface: #FFFFFF;


    /* -----------------------------------------------------
       Texto
       ----------------------------------------------------- */

    --x-text: #303336;
    --x-text-secondary: #6B7074;
    --x-text-light: #FFFFFF;


    /* -----------------------------------------------------
       Bordes
       ----------------------------------------------------- */

    --x-border: #D9D8D4;
    --x-border-light: #E8E7E3;


    /* -----------------------------------------------------
       Estados
       ----------------------------------------------------- */

    --x-success: #4F7D5A;
    --x-success-bg: #EAF2EC;

    --x-warning: #C58A2B;
    --x-warning-bg: #FBF2DE;

    --x-danger: #B9534D;
    --x-danger-bg: #F8E9E7;

    --x-info: #55758A;
    --x-info-bg: #E9F0F4;


    /* -----------------------------------------------------
       Tipografía
       ----------------------------------------------------- */

    --x-font:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-ser?if;


    /* -----------------------------------------------------
       Tamaños
       ----------------------------------------------------- */

    --x-font-size: 15px;
    --x-line-height: 1.5;

    --x-radius: 8px;
    --x-radius-lg: 12px;
    --x-radius-xl: 16px;


    /* -----------------------------------------------------
       Sombras
       ----------------------------------------------------- */

    --x-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);

    --x-shadow-lg:
        0 8px 24px rgba(0, 0, 0, 0.12);


    /* -----------------------------------------------------
       Transiciones
       ----------------------------------------------------- */

    --x-transition:
        all 0.18s ease;


    /* -----------------------------------------------------
       Layout
       ----------------------------------------------------- */

    --x-container-width: 1400px;

}


/* =========================================================
   2. RESET BÁSICO
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}


body {
    margin: 0;
    padding: 0;

    background-color: var(--x-bg);
    color: var(--x-text);

    font-family: var(--x-font);
    font-size: var(--x-font-size);
    line-height: var(--x-line-height);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


img {
    max-width: 100%;
    height: auto;
}


button,
input,
select,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: var(--x-ocre-dark);
    text-decoration: none;
    transition: var(--x-transition);
}


a:hover {
    color: var(--x-ocre);
}


/* =========================================================
   3. CONTENEDOR
   ========================================================= */

.x-container {
    width: 100%;
    max-width: var(--x-container-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: 24px;
    padding-r?ight: 24px;
}


/* =========================================================
   4. TIPOGRAFÍA
   ========================================================= */

.x-title {
    margin: 0;

    color: var(--x-marengo-dark);

    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.25;
}


.x-subtitle {
    margin: 6px 0 0 0;

    color: var(--x-text-secondary);

    font-size: 0.95rem;
}


.x-section-title {
    margin: 0 0 16px 0;

    color: var(--x-marengo);

    font-size: 1.15rem;
    font-weight: 600;
}


/* =========================================================
   5. HEADER
   ========================================================= */

.x-header {
    min-height: 64px;

    background-color: var(--x-marengo);

    color: var(--x-text-light);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);
}


.x-header-inner {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;
}


.x-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--x-text-light);

    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}


.x-brand:hover {
    color: var(--x-ocre-light);
}


.x-brand-accent {
    color: var(--x-ocre);
}


/* =========================================================
   6. NAVEGACIÓN
   ========================================================= */

.x-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}


.x-nav-link {
    display: inline-flex;
    align-items: center;

    min-height: 40px;

    padding: 0 14px;

    border-radius: var(--x-radius);

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.92rem;

    transition: var(--x-transition);
}


.x-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--x-text-light);
}


.x-nav-link.active {
    background-color: var(--x-ocre);
    color: var(--x-marengo-dark);
}


/* =========================================================
   7. CONTENIDO PRINCIPAL
   =================================?======================== */

.x-main {
    padding: 32px 0 48px 0;
}


.x-page-header {
    margin-bottom: 28px;
}


.x-page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* =========================================================
   8. TARJETAS
   ========================================================= */

.x-card {
    background-color: var(--x-surface);

    border: 1px solid var(--x-border-light);
    border-radius: var(--x-radius-lg);

    box-shadow: var(--x-shadow);
}


.x-card-header {
    padding: 18px 20px;

    border-bottom: 1px solid var(--x-border-light);
}


.x-card-body {
    padding: 20px;
}


.x-card-footer {
    padding: 16px 20px;

    border-top: 1px solid var(--x-border-light);

    background-color: var(--x-bg);
    border-radius:
        0 0 var(--x-radius-lg) var(--x-radius-lg);
}


/* =========================================================
   9. BOTONES
   ========================================================= */

.x-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: var(--x-radius);

    font-size: 0.92rem;
    font-weight: 500;

    transition: var(--x-transition);
}


.x-btn:focus-visible {
    outline: 3px solid rgba(208, 166, 70, 0.35);
    outline-offset: 2px;
}


/* Principal */

.x-btn-primary {
    background-color: var(--x-ocre);
    border-color: var(--x-ocre);

    color: var(--x-marengo-dark);
}


.x-btn-primary:hover {
    background-color: var(--x-ocre-dark);
    border-color: var(--x-ocre-dark);

    color: var(--x-text-light);
}


/* Secundario */

.x-btn-secondary {
    background-color: var(--x-marengo);
    border-color: var(--x-marengo);

    color: var(--x-text-light);
}


.x-btn-secondary:hover {
    background-color: var(--x-marengo-dark);
    border-color: var(--x-marengo-dark);
}


/* Contorno */

.x-btn-outline {
    background-color: transparent;
    bord?er-color: var(--x-marengo);

    color: var(--x-marengo);
}


.x-btn-outline:hover {
    background-color: var(--x-marengo);
    color: var(--x-text-light);
}


/* Ligero */

.x-btn-light {
    background-color: var(--x-bg-secondary);
    border-color: var(--x-border);

    color: var(--x-text);
}


.x-btn-light:hover {
    background-color: var(--x-border);
}


/* Peligro */

.x-btn-danger {
    background-color: var(--x-danger);
    border-color: var(--x-danger);

    color: var(--x-text-light);
}


.x-btn-danger:hover {
    filter: brightness(0.92);
}


/* Botón pequeño */

.x-btn-sm {
    min-height: 34px;
    padding: 0 12px;

    font-size: 0.85rem;
}


/* Botón grande */

.x-btn-lg {
    min-height: 46px;
    padding: 0 22px;

    font-size: 1rem;
}


/* =========================================================
   10. FORMULARIOS
   ========================================================= */

.x-form-group {
    margin-bottom: 18px;
}


.x-label {
    display: block;

    margin-bottom: 6px;

    color: var(--x-marengo);

    font-size: 0.9rem;
    font-weight: 500;
}


.x-required {
    color: var(--x-danger);
}


.x-input,
.x-select,
.x-textarea {
    width: 100%;

    padding: 10px 12px;

    background-color: var(--x-surface);

    border: 1px solid var(--x-border);
    border-radius: var(--x-radius);

    color: var(--x-text);

    transition: var(--x-transition);
}


.x-input,
.x-select {
    min-height: 42px;
}


.x-textarea {
    min-height: 100px;
    resize: vertical;
}


.x-input:focus,
.x-select:focus,
.x-textarea:focus {
    outline: none;

    border-color: var(--x-ocre);

    box-shadow:
        0 0 0 3px rgba(208, 166, 70, 0.16);
}


.x-input::placeholder,
.x-textarea::placeholder {
    color: #9A9DA0;
}


/* =========================================================
   11. TABLAS
   ========================================================= */

.x-table-wrapper {
    width: 100%;
    overflow-x: auto;
}


.x-table {
    width: 100%;

    border-collapse: collapse;

    background-color: var?(--x-surface);
}


.x-table th {
    padding: 12px 14px;

    background-color: var(--x-marengo);

    color: var(--x-text-light);

    font-size: 0.85rem;
    font-weight: 500;

    text-align: left;
}


.x-table td {
    padding: 12px 14px;

    border-bottom: 1px solid var(--x-border-light);

    color: var(--x-text);

    font-size: 0.9rem;
}


.x-table tbody tr:hover {
    background-color: var(--x-bg);
}


.x-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   12. BADGES
   ========================================================= */

.x-badge {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 500;
}


.x-badge-success {
    background-color: var(--x-success-bg);
    color: var(--x-success);
}


.x-badge-warning {
    background-color: var(--x-warning-bg);
    color: var(--x-warning);
}


.x-badge-danger {
    background-color: var(--x-danger-bg);
    color: var(--x-danger);
}


.x-badge-info {
    background-color: var(--x-info-bg);
    color: var(--x-info);
}


/* =========================================================
   13. ALERTAS
   ========================================================= */

.x-alert {
    padding: 14px 16px;

    border: 1px solid transparent;
    border-radius: var(--x-radius);

    font-size: 0.9rem;
}


.x-alert-success {
    background-color: var(--x-success-bg);
    border-color: #CFE2D3;
    color: var(--x-success);
}


.x-alert-warning {
    background-color: var(--x-warning-bg);
    border-color: #EBD7A8;
    color: #8C641F;
}


.x-alert-danger {
    background-color: var(--x-danger-bg);
    border-color: #E9C5C1;
    color: var(--x-danger);
}


.x-alert-info {
    background-color: var(--x-info-bg);
    border-color: #C9D9E2;
    color: var(--x-info);
}


/* =========================================================
   14. LOGIN
   ========================================================= */

.x-login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        linear-gradient(
            135deg,
            var(--x-marengo-dark) 0%,
            var(--x-marengo) 100%
        );
}


.x-login-card {
    width: 100%;
    max-width: 420px;

    background-color: var(--x-surface);

    border-radius: var(--x-radius-xl);

    box-shadow: var(--x-shadow-lg);

    overflow: hidden;
}


.x-login-header {
    padding: 32px 32px 24px 32px;

    text-align: center;

    background-color: var(--x-marengo);

    color: var(--x-text-light);
}


.x-login-logo {
    margin-bottom: 10px;

    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}


.x-login-logo span {
    color: var(--x-ocre);
}


.x-login-title {
    margin: 0;

    font-size: 1.15rem;
    font-weight: 500;
}


.x-login-body {
    padding: 30px 32px 32px 32px;
}


/* =========================================================
   15. MODALES
   ========================================================= */

.x-modal-backdrop {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background-color: rgba(41, 45, 48, 0.55);

    z-index: 1000;
}


.x-modal {
    width: 100%;
    max-width: 560px;

    background-color: var(--x-surface);

    border-radius: var(--x-radius-lg);

    box-shadow: var(--x-shadow-lg);

    overflow: hidden;
}


.x-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    background-color: var(--x-marengo);

    color: var(--x-text-light);
}


.x-modal-title {
    margin: 0;

    font-size: 1.05rem;
    font-weight: 500;
}


.x-modal-body {
    padding: 22px;
}


.x-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    padding: 16px 20px;

    border-top: 1px solid var(--x-border-light);

    background-color: var(--x-bg);
}


/* =======================?==================================
   16. FOOTER
   ========================================================= */

.x-footer {
    padding: 24px 0;

    color: var(--x-text-secondary);

    font-size: 0.82rem;

    text-align: center;
}


/* =========================================================
   17. UTILIDADES
   ========================================================= */

.x-text-center {
    text-align: center;
}


.x-text-right {
    text-align: right;
}


.x-text-muted {
    color: var(--x-text-secondary);
}


.x-mb-0 {
    margin-bottom: 0 !important;
}


.x-mb-1 {
    margin-bottom: 8px !important;
}


.x-mb-2 {
    margin-bottom: 16px !important;
}


.x-mb-3 {
    margin-bottom: 24px !important;
}


.x-mt-1 {
    margin-top: 8px !important;
}


.x-mt-2 {
    margin-top: 16px !important;
}


.x-mt-3 {
    margin-top: 24px !important;
}


/* =========================================================
   18. RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .x-container {
        padding-left: 16px;
        padding-right: 16px;
    }


    .x-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }


    .x-main {
        padding-top: 24px;
    }


    .x-page-header-row {
        align-items: flex-start;
        flex-direction: column;
    }


    .x-nav {
        overflow-x: auto;
    }


    .x-nav-link {
        white-space: nowrap;
    }


    .x-login-body {
        padding: 24px;
    }


    .x-login-header {
        padding: 26px 24px 20px 24px;
    }

}


/* =========================================================
   19. REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}
/* =========================================================
   XIMPOSIA · ZONA PÚBLICA
   ========================================================= */

.x-public-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #F6F5F2;
}

.x-public-wrapper {
    width: 100%;
    max-width: 460px;
}

.x-public-brand {
    text-align: center;
    margin-bottom: 28px;
}

.x-public-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #3F4448;
}

.x-public-logo span {
    color: #D0A646;
}

.x-public-tagline {
    margin-top: 7px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #62686D;
    letter-spacing: 0.3px;
}

.x-public-card {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(41, 45, 48, 0.10);
    overflow: hidden;
}

.x-public-card-body {
    padding: 38px 40px 40px;
}

.x-public-title {
    margin: 0 0 10px;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #292D30;
}

.x-public-subtitle {
    margin: 0 0 30px;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #62686D;
}

.x-public-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3F4448;
}

.x-public-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #D9D8D4;
    border-radius: 9px;
    background: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #292D30;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.x-public-input:focus {
    border-color: #D0A646;
    box-shadow: 0 0 0 3px rgba(208, 166, 70, 0.14);
}

.x-public-button {
    width: 100%;
    margin-top: 8px;
    padding: 13px 18px;
    border: 0;
    border-radius: 9px;
    background: #3F4448;
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.x-public-button:hover {
    background: #292D30;
}

.x-public-button:active {
    transform: translateY(1px);
}

.x-public-error {
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #F8E9E7;
    color: #B9534D;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.x-public-success {
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #EAF2EC;
    color: #4F7D5A;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.x-public-help {
    margin-top: 22px;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #6B7074;
}

@media (max-width: 520px) {

    .x-public-page {
        padding: 25px 15px;
    }

    .x-public-card-body {
        padding: 30px 25px 32px;
    }

    .x-public-logo {
        font-size: 27px;
    }

    .x-public-title {
        font-size: 23px;
    }
}
/* =========================================================
   XIMPOSIA · ACTIVACIÓN · PROCESO
   ========================================================= */

.x-public-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-family: 'Manrope', sans-serif;
}

.x-public-step {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #A0A3A5;
}

.x-public-step.active {
    color: #3F4448;
}

.x-public-step.completed {
    color: #4F7D5A;
}

.x-public-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-right: 7px;
    border-radius: 50%;
    background: #E8E7E3;
    font-size: 12px;
    font-weight: 700;
}

.x-public-step.active .x-public-step-number {
    background: #D0A646;
    color: #FFFFFF;
}

.x-public-step.completed .x-public-step-number {
    background: #4F7D5A;
    color: #FFFFFF;
}

.x-public-step-line {
    width: 45px;
    height: 1px;
    margin: 0 12px;
    background: #D9D8D4;
}

.x-public-form-group {
    margin-bottom: 20px;
}

.x-public-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.x-public-required {
    color: #B9534D;
}

.x-public-section-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E8E7E3;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #3F4448;
}

@media (max-width: 520px) {

    .x-public-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .x-public-steps {
        margin-bottom: 25px;
    }

    .x-public-step-line {
        width: 25px;
        margin: 0 7px;
    }

}
/* =========================================================
   APP · LOGIN Y SELECCIÓN DE CLIENTE
   ========================================================= */

.x-app-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
    background: #F6F5F2;
}

.x-app-login-card {
    width: 100%;
    max-width: 460px;
    background: #FFFFFF;
    border: 1px solid #D9D8D4;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(41, 45, 48, 0.10);
    overflow: hidden;
}

.x-app-login-header {
    text-align: center;
    padding: 36px 35px 28px;
    border-bottom: 1px solid #ECEBE7;
}

.x-app-login-logo {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;
    color: #3F4448;
}

.x-app-login-logo span {
    color: #D0A646;
}

.x-app-login-title {
    margin: 16px 0 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    color: #292D30;
}

.x-app-login-body {
    padding: 34px 35px 36px;
}

.x-app-login-body .x-form-group {
    margin-bottom: 22px;
}

.x-app-login-body .x-btn {
    width: 100%;
    margin-top: 6px;
}

.x-app-login-intro {
    margin: 0 0 26px;
    text-align: center;
    color: #62686D;
    line-height: 1.6;
}

.x-app-client-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.x-app-client-option {
    display: block;
    width: 100%;
    padding: 18px 20px;
    box-sizing: border-box;
    border: 1px solid #D9D8D4;
    border-radius: 14px;
    background: #FFFFFF;
    color: #292D30;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease,
        background-color 0.15s ease;
}

.x-app-client-option:hover {
    border-color: #D0A646;
    background: #FBF8F0;
    box-shadow: 0 6px 18px rgba(41, 45, 48, 0.08);
    transform: translateY(-1px);
}

.x-app-client-option:focus {
    outline: none;
    border-color: #D0A646;
    box-shadow: 0 0 0 3px rgba(208, 166, 70, 0.18);
}

.x-app-client-name {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #292D30;
}

.x-app-client-razon {
    display: block;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #ECEBE7;
    font-size: 13px;
    line-height: 1.45;
    color: #6B7074;
}

.x-app-client-cancel {
    display: block;
    margin-top: 24px;
    text-align: center;
    color: #62686D;
    text-decoration: none;
    font-size: 14px;
}

.x-app-client-cancel:hover {
    color: #3F4448;
    text-decoration: underline;
}

@media (max-width: 520px) {

    .x-app-login-page {
        padding: 20px 14px;
    }

    .x-app-login-header {
        padding: 30px 24px 24px;
    }

    .x-app-login-body {
        padding: 28px 24px 30px;
    }

    .x-app-login-card {
        border-radius: 16px;
    }

}
/* =========================================================
   APP · ESTRUCTURA GENERAL
   ========================================================= */

.x-app-header {
    background: #FFFFFF;
    border-bottom: 1px solid #D9D8D4;
    box-shadow: 0 2px 12px rgba(41, 45, 48, 0.05);
}

.x-app-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 30px;

    display: flex;
    align-items: center;
    gap: 28px;
}

.x-app-brand {
    flex-shrink: 0;

    text-decoration: none;

    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;

    color: #3F4448;
}

.x-app-brand span {
    color: #D0A646;
}

.x-app-client {
    flex: 1;
    min-width: 0;
}

.x-app-client-label {
    display: block;

    margin-bottom: 2px;

    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.8px;

    color: #A9822E;
}

.x-app-client strong {
    display: block;

    font-size: 15px;
    line-height: 1.3;

    color: #292D30;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-app-user {
    display: flex;
    align-items: center;
    gap: 18px;

    font-size: 14px;
    color: #62686D;
}

.x-app-user a {
    color: #62686D;
    text-decoration: none;
}

.x-app-user a:hover {
    color: #292D30;
    text-decoration: underline;
}

.x-app-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px 50px;
}

.x-app-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 30px;
}

.x-app-page-title {
    margin: 0;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;

    color: #292D30;
}

.x-app-page-subtitle {
    margin: 7px 0 0;

    font-size: 15px;
    line-height: 1.5;

    color: #62686D;
}

.x-app-footer {
    max-width: 1200px;
    margin: 0 auto;

    padding: 0 30px 30px;

    font-size: 12px;
    color: #A0A4A7;
}


/* =========================================================
   APP · ESTABLECIMIENTOS
   ========================================================= */

.x-establecimientos-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.x-establecimiento-row {
    background: #FFFFFF;
    border: 1px solid #D9D8D4;
    border-radius: 15px;

    padding: 20px 22px;

    display: flex;
    align-items: center;
    gap: 25px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.x-establecimiento-row:hover {
    border-color: #D0A646;
    box-shadow: 0 6px 18px rgba(41, 45, 48, 0.07);
}

.x-establecimiento-info {
    flex: 1;
    min-width: 0;
}

.x-establecimiento-name {
    display: block;

    margin-bottom: 7px;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;

    color: #292D30;
}

.x-establecimiento-address {
    font-size: 14px;
    line-height: 1.5;
    color: #62686D;
}

.x-establecimiento-status {
    flex-shrink: 0;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.x-establecimiento-status.activo {
    background: #EAF2EC;
    color: #4F7D5A;
}

.x-establecimiento-status.suspendido {
    background: #FBF2DE;
    color: #A9822E;
}

.x-establecimiento-status.baja {
    background: #F8E9E7;
    color: #B9534D;
}

.x-establecimiento-action {
    flex-shrink: 0;
}

.x-app-empty {
    background: #FFFFFF;
    border: 1px dashed #D9D8D4;
    border-radius: 15px;

    padding: 45px 30px;

    text-align: center;

    color: #62686D;
}

.x-app-empty-title {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 700;

    color: #292D30;
}

@media (max-width: 760px) {

    .x-app-header-inner {
        min-height: auto;
        padding: 18px 20px;

        flex-wrap: wrap;
        gap: 14px;
    }

    .x-app-client {
        order: 3;
        flex-basis: 100%;
    }

    .x-app-user {
        margin-left: auto;
    }

    .x-app-main {
        padding: 30px 20px 40px;
    }

    .x-app-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .x-establecimiento-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
    }

    .x-establecimiento-info {
        flex-basis: 100%;
    }

    .x-establecimiento-action {
        margin-left: auto;
    }

    .x-app-footer {
        padding: 0 20px 25px;
    }
}
/* =========================================================
   APP · FORMULARIOS
   ========================================================= */

.x-app-form-card {
    background: #FFFFFF;
    border: 1px solid #D9D8D4;
    border-radius: 15px;
    padding: 30px;
}

.x-app-form-section {
    margin-bottom: 30px;
}

.x-app-form-section:last-child {
    margin-bottom: 0;
}

.x-app-form-section-title {
    margin: 0 0 22px;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;

    color: #292D30;
}

.x-app-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.x-app-form-row-full {
    grid-column: 1 / -1;
}

.x-app-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid #ECEBE7;
}

.x-app-required-note {
    margin: 0;
    font-size: 13px;
    color: #6B7074;
}

.x-app-form-help {
    margin: 6px 0 0;

    font-size: 12px;
    line-height: 1.45;

    color: #6B7074;
}

@media (max-width: 700px) {

    .x-app-form-card {
        padding: 24px 20px;
    }

    .x-app-form-row {
        grid-template-columns: 1fr;
    }

    .x-app-form-row-full {
        grid-column: auto;
    }

    .x-app-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .x-app-form-actions .x-btn {
        width: 100%;
    }
}
/* =========================================================
   APP · USUARIOS
   ========================================================= */

.x-usuarios-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.x-usuario-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(180px, auto);
    align-items: center;
    gap: 25px;

    padding: 20px 22px;

    background: #FFFFFF;
    border: 1px solid #D9D8D4;
    border-radius: 15px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.x-usuario-row:hover {
    border-color: #D0A646;
    box-shadow: 0 6px 18px rgba(41, 45, 48, 0.07);
}

.x-usuario-info {
    min-width: 0;
}

.x-usuario-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 5px;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;

    color: #292D30;
}

.x-usuario-email {
    font-size: 14px;
    line-height: 1.45;
    color: #62686D;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-usuario-super {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 12px;

    background: #FBF2DE;
    color: #A9822E;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.x-usuario-status {
    display: inline-block;
    white-space: nowrap;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.x-usuario-status.activo {
    background: #EAF2EC;
    color: #4F7D5A;
}

.x-usuario-status.suspendido {
    background: #FBF2DE;
    color: #A9822E;
}

.x-usuario-status.baja {
    background: #F8E9E7;
    color: #B9534D;
}

.x-usuario-assignments {
    min-width: 150px;

    padding-left: 24px;

    border-left: 1px solid #ECEBE7;

    font-size: 14px;
    line-height: 1.4;
    color: #62686D;
}

.x-usuario-assignments strong {
    display: block;

    margin-bottom: 2px;

    font-size: 15px;
    color: #292D30;
}

.x-usuario-assignments span {
    display: block;

    font-size: 12px;
    color: #A0A4A7;
}

.x-usuario-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    padding-left: 24px;

    border-left: 1px solid #ECEBE7;
}

@media (max-width: 900px) {

    .x-usuario-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
    }

    .x-usuario-info {
        grid-column: 1 / -1;
    }

    .x-usuario-assignments,
    .x-usuario-actions {
        border-left: none;
        padding-left: 0;
    }

}

@media (max-width: 600px) {

    .x-usuario-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .x-usuario-info,
    .x-usuario-assignments,
    .x-usuario-actions {
        grid-column: auto;
    }

    .x-usuario-assignments {
        padding-top: 12px;
        border-top: 1px solid #ECEBE7;
    }

    .x-usuario-actions {
        justify-content: flex-start;
        padding-top: 12px;
        border-top: 1px solid #ECEBE7;
    }

    .x-usuario-actions .x-btn {
        flex: 1;
    }

}
/* =========================================================
   APP · ASIGNACIONES
   ========================================================= */

.x-asignacion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.x-asignacion-row {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 18px 20px;

    background: #FFFFFF;
    border: 1px solid #D9D8D4;
    border-radius: 14px;
}

.x-asignacion-info {
    flex: 1;
    min-width: 0;
}

.x-asignacion-establecimiento {
    display: block;

    margin-bottom: 5px;

    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;

    color: #292D30;
}

.x-asignacion-rol {
    font-size: 14px;
    color: #62686D;
}

.x-asignacion-status {
    flex-shrink: 0;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.x-asignacion-status.activo {
    background: #EAF2EC;
    color: #4F7D5A;
}

.x-asignacion-status.baja {
    background: #F8E9E7;
    color: #B9534D;
}

.x-asignacion-status-establecimiento {
    display: block;

    margin-top: 4px;

    font-size: 12px;
    color: #A0A4A7;
}

.x-asignacion-form {
    margin-top: 20px;
    padding: 24px;

    background: #F6F5F2;
    border: 1px solid #D9D8D4;
    border-radius: 14px;
}

.x-asignacion-form-title {
    margin: 0 0 20px;

    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;

    color: #292D30;
}

.x-asignacion-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 18px;
}

.x-asignacion-action {
    flex-shrink: 0;
}

.x-asignacion-inactiva {
    opacity: 0.72;
}

.x-asignacion-empty {
    padding: 35px 25px;

    background: #FFFFFF;
    border: 1px dashed #D9D8D4;
    border-radius: 14px;

    text-align: center;
    color: #62686D;
}

@media (max-width: 760px) {

    .x-asignacion-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .x-asignacion-form-row {
        grid-template-columns: 1fr;
    }

    .x-asignacion-action {
        margin-left: auto;
    }
}
.x-app-footer a {
    color: #62686D;
    text-decoration: none;
    font-weight: 600;
}

.x-app-footer a:hover {
    color: #A9822E;
    text-decoration: underline;
}.x-app-back-link {
    display: inline-block;

    margin-top: 12px;

    color: #62686D;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.x-app-back-link:hover {
    color: #A9822E;
    text-decoration: underline;
}
/* =========================================================
   APP · ERROR DE ACCESO
   ========================================================= */

.x-app-error-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    box-sizing: border-box;

    background: #F6F5F2;
}

.x-app-error-card {
    width: 100%;
    max-width: 500px;

    padding: 42px 40px;

    box-sizing: border-box;

    text-align: center;

    background: #FFFFFF;
    border: 1px solid #D9D8D4;
    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(41, 45, 48, 0.10);
}

.x-app-error-logo {
    margin-bottom: 28px;

    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;

    color: #3F4448;
}

.x-app-error-logo span {
    color: #D0A646;
}

.x-app-error-code {
    margin-bottom: 10px;

    font-size: 54px;
    line-height: 1;
    font-weight: 800;

    color: #D0A646;
}

.x-app-error-title {
    margin: 0 0 12px;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;

    color: #292D30;
}

.x-app-error-text {
    margin: 0 0 28px;

    font-size: 15px;
    line-height: 1.6;

    color: #62686D;
}

@media (max-width: 520px) {

    .x-app-error-card {
        padding: 34px 24px;
    }

    .x-app-error-code {
        font-size: 48px;
    }

}
/* =========================================================
   APP · ESPACIOS
   ========================================================= */

.x-espacios-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.x-espacio-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 25px;

    padding: 20px 22px;

    background: #FFFFFF;
    border: 1px solid #D9D8D4;
    border-radius: 15px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.x-espacio-row:hover {
    border-color: #D0A646;
    box-shadow: 0 6px 18px rgba(41, 45, 48, 0.07);
}

.x-espacio-info {
    min-width: 0;
}

.x-espacio-name {
    display: block;

    margin-bottom: 5px;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;

    color: #292D30;
}

.x-espacio-capacidad {
    font-size: 14px;
    line-height: 1.4;
    color: #62686D;
}

.x-espacio-pax {
    display: inline-block;

    margin-left: 6px;
    padding: 5px 9px;

    border-radius: 12px;

    background: #FBF2DE;
    color: #A9822E;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.x-espacio-status {
    display: inline-block;
    white-space: nowrap;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.x-espacio-status.activo {
    background: #EAF2EC;
    color: #4F7D5A;
}

.x-espacio-status.baja {
    background: #F8E9E7;
    color: #B9534D;
}

.x-espacio-actions {
    display: flex;
    justify-content: flex-end;
}

.x-espacio-back {
    display: inline-block;

    margin-top: 12px;

    color: #62686D;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.x-espacio-back:hover {
    color: #A9822E;
    text-decoration: underline;
}

@media (max-width: 700px) {

    .x-espacio-row {
        grid-template-columns: 1fr auto;
        gap: 15px;
    }

    .x-espacio-info {
        grid-column: 1 / -1;
    }

    .x-espacio-actions {
        margin-left: auto;
    }
}
/* =========================================================
   APP · MESAS
   ========================================================= */

.x-mesas-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.x-mesa-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 25px;

    padding: 20px 22px;

    background: #FFFFFF;
    border: 1px solid #D9D8D4;
    border-radius: 15px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.x-mesa-row:hover {
    border-color: #D0A646;
    box-shadow: 0 6px 18px rgba(41, 45, 48, 0.07);
}

.x-mesa-info {
    min-width: 0;
}

.x-mesa-name {
    display: block;

    margin-bottom: 5px;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;

    color: #292D30;
}

.x-mesa-capacidad {
    font-size: 14px;
    line-height: 1.4;
    color: #62686D;
}

.x-mesa-pax {
    display: inline-block;

    margin-left: 6px;
    padding: 5px 9px;

    border-radius: 12px;

    background: #FBF2DE;
    color: #A9822E;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.x-mesa-status {
    display: inline-block;
    white-space: nowrap;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.x-mesa-status.activo {
    background: #EAF2EC;
    color: #4F7D5A;
}

.x-mesa-status.baja {
    background: #F8E9E7;
    color: #B9534D;
}

.x-mesa-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 700px) {

    .x-mesa-row {
        grid-template-columns: 1fr auto;
        gap: 15px;
    }

    .x-mesa-info {
        grid-column: 1 / -1;
    }

    .x-mesa-actions {
        margin-left: auto;
    }
}
.x-espacio-mesas {
    margin-left: 6px;
    font-size: 13px;
    color: #6B7074;
}
/* =========================================================
   FORMULARIOS DE LA APP
   ========================================================= */

.x-app-form-card {
    max-width: 760px;
    margin: 0 auto;
}

.x-app-form-card .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #3F4448;
}

.x-app-form-card .form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #D9D8D4;
    border-radius: 10px;
    background: #FFFFFF;
    color: #303336;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.x-app-form-card .form-control:focus {
    border-color: #D0A646;
    box-shadow: 0 0 0 3px rgba(208, 166, 70, 0.15);
    outline: none;
}

.x-app-form-card input[type="number"].form-control {
    max-width: 220px;
}

.x-app-form-field {
    margin-bottom: 24px;
}

.x-app-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #ECEBE7;
}

.x-app-form-errors {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #E7B8B4;
    border-radius: 12px;
    background: #F8E9E7;
    color: #8F3F3A;
}

.x-app-form-errors div + div {
    margin-top: 6px;
}
/* =========================================================
   APP · HORARIOS DE RESERVA
   ========================================================= */

.x-horarios-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.x-horario-dia {
    padding: 18px 20px;
    margin-bottom: 14px;

    border: 1px solid #E2E0DB;
    border-radius: 14px;

    background: #FFFFFF;
}

.x-horario-dia-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;

    margin-bottom: 12px;
}

.x-horario-dia-nombre {
    flex: 0 0 120px;

    font-size: 17px;
    font-weight: 700;

    color: #3F4448;
}

.x-horario-tramos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.x-horario-tramo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;

    padding: 8px 0;
}

.x-horario-horas {
    flex: 0 0 120px;

    font-weight: 600;
    color: #3F4448;
}

.x-horario-nota {
    font-size: 13px;
    color: #6B7074;
}

.x-horario-cerrado {
    font-size: 14px;
    color: #6B7074;
}

.x-horario-acciones {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 700px) {

    .x-horario-dia-header,
    .x-horario-tramo {
        flex-wrap: wrap;
    }

    .x-horario-dia-nombre,
    .x-horario-horas {
        flex-basis: 100%;
    }
}
/* =========================================================
   APP · MODAL DE CONFIRMACIÓN
   ========================================================= */

.x-modal {
    width: calc(100% - 40px);
    max-width: 480px;

    padding: 0;

    border: 0;
    border-radius: 16px;

    background: #FFFFFF;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.20);
}

.x-modal::backdrop {
    background: rgba(41, 45, 48, 0.55);
}

.x-modal-content {
    padding: 28px;
}

.x-modal-title {
    margin: 0 0 12px 0;

    font-size: 21px;
    font-weight: 700;

    color: #3F4448;
}

.x-modal-text {
    margin: 0;

    font-size: 15px;
    line-height: 1.6;

    color: #62686D;
}

.x-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;

    margin-top: 26px;
    padding-top: 20px;

    border-top: 1px solid #ECEBE7;
}

.x-btn-danger {
    background: #B9534D;
    border-color: #B9534D;
    color: #FFFFFF;
}

.x-btn-danger:hover {
    background: #A44742;
    border-color: #A44742;
    color: #FFFFFF;
}
/* =========================================================
   COMENSALES
   ========================================================= */

.x-comensales-filtros {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.x-comensales-filtro-buscar {
    flex: 1 1 360px;
}

.x-comensales-filtro-estado {
    flex: 0 0 180px;
}

.x-comensales-filtro-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
}

.x-comensales-filtros .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #3F4448;
}

.x-comensales-filtros .form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #D9D8D4;
    border-radius: 10px;
    background: #FFFFFF;
    color: #303336;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
}

.x-comensales-filtros .form-control:focus {
    border-color: #D0A646;
    box-shadow: 0 0 0 3px rgba(208, 166, 70, 0.15);
    outline: none;
}

.x-comensales-paginacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.x-comensales-paginacion-info {
    font-size: 14px;
    color: #6B7074;
}

.x-comensales-paginacion-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 700px) {

    .x-comensales-filtro-buscar,
    .x-comensales-filtro-estado {
        flex-basis: 100%;
    }

    .x-comensales-paginacion {
        align-items: flex-start;
        flex-direction: column;
    }
}