/**
 * ClubHub — capa visual propia (barra superior + plano de mesas).
 * Archivo: assets/css/demo-club-deportivo/demo-dcu-ui.css
 *
 * Autor: MVisual
 */

:root {
    --dcu-ui-bg: #0f2e1c;
    --dcu-ui-surface: #ffffff;
    --dcu-ui-cream: #ecfdf5;
    --dcu-ui-ink: #14532d;
    --dcu-ui-muted: #5c7a6a;
    --dcu-ui-accent: #16a34a;
    --dcu-ui-accent-deep: #15803d;
    --dcu-ui-accent-soft: rgba(22, 163, 74, 0.14);
    --dcu-ui-top-h: 3.35rem;
}

/* ——— App: barra superior (sin sidebar condominio) ——— */
.dcu-app--club {
    background: var(--dcu-ui-cream);
    min-height: 100vh;
}

.dcu-app--club .dcu-demo-banner {
    background: linear-gradient(90deg, #134e4a, #14532d);
    color: #d1fae5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
}

.dcu-app--club .dcu-demo-banner .btn-link {
    color: #86efac;
}

.dcu-app--club .dcu-shell {
    display: block;
    min-height: auto;
}

.dcu-app--club .dcu-sidebar,
.dcu-app--club .dcu-top-mobile,
.dcu-app--club .dcu-nav-pills {
    display: none !important;
}

.dcu-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--dcu-ui-top-h);
    padding: 0 1rem;
    background: var(--dcu-ui-bg);
    color: #fafaf9;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.dcu-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.dcu-topbar-brand img {
    border-radius: 10px;
}

.dcu-topbar-brand strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.15;
}

.dcu-topbar-brand small {
    display: block;
    font-size: 0.62rem;
    color: #86efac;
    max-width: 11rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dcu-topbar-nav {
    display: none;
    flex: 1;
    gap: 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

@media (min-width: 768px) {
    .dcu-topbar-nav {
        display: flex;
    }
}

.dcu-topbar-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #bbf7d0;
    text-decoration: none;
    white-space: nowrap;
}

.dcu-topbar-nav a:hover {
    background: rgba(134, 239, 172, 0.12);
    color: #fff;
}

.dcu-topbar-nav a.is-active {
    background: var(--dcu-ui-accent-deep);
    color: #fff;
}

.dcu-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.dcu-topbar-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: transparent;
    color: #fafaf9;
}

@media (min-width: 768px) {
    .dcu-topbar-menu-btn {
        display: none;
    }
}

.dcu-mobile-drawer {
    display: none;
    padding: 0.5rem 1rem 1rem;
    background: #134e28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dcu-mobile-drawer.is-open {
    display: grid;
    gap: 0.25rem;
}

.dcu-mobile-drawer a {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #d1fae5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.dcu-mobile-drawer a.is-active {
    background: var(--dcu-ui-accent-deep);
}

.dcu-stage {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
}

@media (min-width: 768px) {
    .dcu-stage {
        padding: 1.25rem 1.5rem 3rem;
    }
}

.dcu-app--club .dcu-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--dcu-ui-muted);
    padding: 1rem;
    border-top: 1px solid rgba(20, 83, 45, 0.1);
    background: var(--dcu-ui-surface);
}

.dcu-app--club .dcu-page-header {
    margin-bottom: 1.25rem;
}

.dcu-app--club .dcu-page-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dcu-ui-ink);
}

.dcu-app--club .dcu-card {
    border-radius: 12px;
    border: 1px solid rgba(20, 83, 45, 0.08);
    box-shadow: 0 2px 12px rgba(20, 83, 45, 0.06);
    background: var(--dcu-ui-surface);
}

.dcu-app--club .btn-dcu-primary {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
    border: 1px solid #166534;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 14px rgba(22, 163, 74, 0.35);
}

.dcu-app--club .btn-dcu-primary:hover {
    background: linear-gradient(180deg, #4ade80 0%, #166534 100%);
    color: #fff;
    border-color: #14532d;
}

.dcu-app--club .dcu-stage .btn-dcu-soft {
    color: var(--dcu-ui-ink);
    border-color: rgba(20, 83, 45, 0.22);
    font-weight: 600;
}

.dcu-app--club .dcu-stage .btn-dcu-soft:hover {
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.45);
    background: #f0fdf4;
}

.dcu-app--club .dcu-stage .btn-dcu-success {
    border: 1px solid #047857;
}

.dcu-app--club .dcu-topbar .btn-dcu-soft {
    color: #14532d;
    background: #ecfdf5;
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.dcu-app--club .dcu-topbar .btn-dcu-soft:hover {
    color: #15803d;
    background: #fff;
    border-color: #bbf7d0;
}

.dcu-app--club .dcu-topbar .btn-dcu-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.dcu-app--club .dcu-topbar .btn-dcu-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

.dcu-app--club .dcu-stage .btn-dcu-sm {
    font-weight: 600;
}

.dcu-app--club .btn-dcu:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Modales fuera de .dcu-stage: ghost/soft con contraste en fondo blanco */
.dcu-app--club .modal-content .btn-dcu-ghost {
    background: #fff;
    color: #1c1917;
    border: 1px solid rgba(28, 25, 23, 0.28);
    backdrop-filter: none;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
}

.dcu-app--club .modal-content .btn-dcu-ghost:hover {
    color: #15803d;
    background: #f0fdf4;
    border-color: rgba(22, 163, 74, 0.45);
}

.dcu-app--club .modal-content .btn-dcu-soft {
    color: var(--dcu-ui-ink);
    border-color: rgba(20, 83, 45, 0.22);
}

.dcu-app--club .modal-content .btn-dcu-primary:disabled {
    opacity: 0.65;
    color: #fff;
    cursor: not-allowed;
}

.dcu-app--club .dcu-kpi-card {
    border-left: 4px solid var(--dcu-ui-accent);
}

/* ——— Plano gráfico ——— */
.dcu-plano-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dcu-plano-zonas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dcu-plano-zona-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    color: #1c1917;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.28);
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.2;
}

.dcu-plano-zona-btn:hover {
    border-color: rgba(22, 163, 74, 0.45);
    color: #15803d;
}

.dcu-plano-zona-btn.is-active {
    background: #15803d;
    border-color: #166534;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.dcu-plano-zona-btn.is-active:hover {
    color: #fff;
    background: #16a34a;
    border-color: #14532d;
}

.dcu-plano-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    font-size: 0.75rem;
    color: var(--dcu-ui-muted);
}

.dcu-plano-leyenda i {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: middle;
}

.dcu-plano-leyenda .dot-libre { background: #4ade80; }
.dcu-plano-leyenda .dot-ocupada { background: #fbbf24; }
.dcu-plano-leyenda .dot-cuenta { background: #60a5fa; }

.dcu-plano-layout {
    display: grid;
    gap: 1rem;
}

@media (min-width: 992px) {
    .dcu-plano-layout.is-completo {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.dcu-plano-ambiente {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(41, 37, 36, 0.1);
    box-shadow: 0 8px 28px rgba(41, 37, 36, 0.08);
}

.dcu-plano-ambiente-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dcu-plano-ambiente--salon .dcu-plano-ambiente-head {
    background: #44403c;
    color: #fafaf9;
}

.dcu-plano-ambiente--terraza .dcu-plano-ambiente-head {
    background: #0d9488;
    color: #ecfdf5;
}

.dcu-plano-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 280px;
    background-color: #e7e0d8;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 28px 28px;
}

.dcu-plano-ambiente--terraza .dcu-plano-canvas {
    background-color: #d4e8df;
    background-image:
        repeating-linear-gradient(
            -28deg,
            transparent,
            transparent 18px,
            rgba(255, 255, 255, 0.25) 18px,
            rgba(255, 255, 255, 0.25) 19px
        ),
        linear-gradient(160deg, #b8d4c8, #dcebe4);
}

.dcu-plano-deco {
    position: absolute;
    pointer-events: none;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(41, 37, 36, 0.35);
}

.dcu-plano-deco--barra {
    left: 4%;
    bottom: 8%;
    width: 22%;
    height: 12%;
    border: 2px dashed rgba(41, 37, 36, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dcu-plano-deco--cocina {
    right: 3%;
    top: 6%;
    width: 18%;
    height: 14%;
    border: 2px dashed rgba(41, 37, 36, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dcu-plano-deco--jardin {
    left: 3%;
    top: 5%;
    color: rgba(13, 148, 136, 0.45);
}

/* ——— Mesa (forma gráfica) ——— */
.dcu-mesa {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 4.5rem;
    height: 4.5rem;
    text-decoration: none;
    color: var(--dcu-ui-ink);
    z-index: 2;
    transition: transform 0.15s ease, filter 0.15s ease;
}

button.dcu-mesa {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    appearance: none;
}

.dcu-mesa:hover {
    transform: translate(-50%, -50%) scale(1.06);
    z-index: 5;
}

.dcu-mesa--rectangular {
    width: 5.5rem;
    height: 3.75rem;
}

.dcu-mesa--barra {
    width: 3.25rem;
    height: 2.5rem;
}

.dcu-mesa-superficie {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: linear-gradient(145deg, #fffefb, #e7e0d8);
    border: 2px solid rgba(41, 37, 36, 0.2);
    box-shadow: 0 4px 12px rgba(41, 37, 36, 0.12);
}

.dcu-mesa--rectangular .dcu-mesa-superficie {
    inset: 14% 8%;
    border-radius: 10px;
}

.dcu-mesa--barra .dcu-mesa-superficie {
    inset: 10% 5%;
    border-radius: 999px;
}

.dcu-mesa.is-libre .dcu-mesa-superficie {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.dcu-mesa.is-ocupada .dcu-mesa-superficie {
    border-color: rgba(234, 179, 8, 0.65);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.28);
}

.dcu-mesa.is-cuenta .dcu-mesa-superficie {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
}

.dcu-mesa-silla {
    position: absolute;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #a8a29e;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.dcu-mesa--redonda .dcu-mesa-silla:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.dcu-mesa--redonda .dcu-mesa-silla:nth-child(2) { bottom: 0; left: 50%; transform: translateX(-50%); }
.dcu-mesa--redonda .dcu-mesa-silla:nth-child(3) { left: 0; top: 50%; transform: translateY(-50%); }
.dcu-mesa--redonda .dcu-mesa-silla:nth-child(4) { right: 0; top: 50%; transform: translateY(-50%); }

.dcu-mesa--rectangular .dcu-mesa-silla:nth-child(1) { top: 2%; left: 22%; }
.dcu-mesa--rectangular .dcu-mesa-silla:nth-child(2) { top: 2%; right: 22%; }
.dcu-mesa--rectangular .dcu-mesa-silla:nth-child(3) { bottom: 2%; left: 22%; }
.dcu-mesa--rectangular .dcu-mesa-silla:nth-child(4) { bottom: 2%; right: 22%; }
.dcu-mesa--rectangular .dcu-mesa-silla:nth-child(5) { top: 2%; left: 50%; transform: translateX(-50%); }
.dcu-mesa--rectangular .dcu-mesa-silla:nth-child(6) { bottom: 2%; left: 50%; transform: translateX(-50%); }

.dcu-mesa-meta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    pointer-events: none;
    line-height: 1.1;
}

.dcu-mesa-meta strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
}

.dcu-mesa-meta span {
    font-size: 0.58rem;
    color: var(--dcu-ui-muted);
}

.dcu-mesa-meta em {
    display: block;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 700;
    color: var(--dcu-ui-accent);
}

/* Login resto */
.dcu-club-login {
    min-height: 100vh;
    background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(34, 197, 94, 0.22), transparent),
        linear-gradient(180deg, #0f2e1c 0%, #14532d 40%, #ecfdf5 40%);
}

.dcu-club-login .dcu-demo-banner {
    background: transparent;
    color: #d6d3d1;
    border: none;
}

.dcu-club-login-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 1.75rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Indicadores — barras de venta */
.dcu-reporte-bar-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0;
}

.dcu-reporte-bar-label {
    font-size: 0.75rem;
    color: var(--dcu-ui-muted);
}

.dcu-reporte-bar-track {
    display: block;
    height: 0.45rem;
    background: rgba(20, 83, 45, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.dcu-reporte-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--dcu-ui-accent), #4ade80);
    border-radius: 999px;
    min-width: 4px;
}

.dcu-reporte-bar-val {
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* ——— Gráficos módulo ——— */
.dcu-chart-bars {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dcu-chart-bar-row {
    display: grid;
    grid-template-columns: minmax(5rem, 28%) 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.dcu-chart-bar-label {
    font-size: 0.75rem;
    color: var(--dcu-ui-muted);
    line-height: 1.2;
}

.dcu-chart-bar-track {
    display: block;
    height: 0.5rem;
    background: rgba(20, 83, 45, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.dcu-chart-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    min-width: 3px;
    transition: width 0.35s ease;
}

.dcu-chart-bar-val {
    font-size: 0.8125rem;
    font-weight: 700;
    min-width: 1.5rem;
    text-align: right;
}

.dcu-chart-donut {
    position: relative;
    width: 8.75rem;
    height: 8.75rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(20, 83, 45, 0.08);
}

.dcu-chart-donut-hole {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: var(--dcu-ui-surface);
    box-shadow: 0 0 0 1px rgba(20, 83, 45, 0.06);
}

.dcu-chart-swatch {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 2px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* ——— Fotos ficha ——— */
.dcu-foto-thumb {
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(20, 83, 45, 0.12);
    background: #f0fdf4;
}

.dcu-foto-thumb--xs {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
}

.dcu-foto-thumb--placeholder {
    background: linear-gradient(135deg, #16a34a, #14532d);
    color: #ecfdf5;
}

/* ——— Iconos deporte ——— */
.dcu-deporte-icon {
    --dcu-deporte-color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--dcu-deporte-color) 18%, #fff);
    color: var(--dcu-deporte-color);
    font-size: 1.1rem;
}

.dcu-deporte-icon--xs {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.dcu-deporte-icon--sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.dcu-deporte-icon--preview {
    width: 2.5rem;
    height: 2.5rem;
}

.dcu-deporte-icon--lg {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.35rem;
}

/* ——— Módulo espacios ——— */
.dcu-section-lead {
    font-size: 0.8125rem;
    color: var(--dcu-ui-muted);
    line-height: 1.45;
}

.dcu-subnav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dcu-ui-muted);
    background: #fff;
    border: 1px solid rgba(20, 83, 45, 0.12);
}

.dcu-subnav .nav-link.active {
    color: #fff;
    background: var(--dcu-ui-accent-deep);
    border-color: transparent;
}

.dcu-form-sidebar {
    position: relative;
}

@media (min-width: 992px) {
    .dcu-form-sidebar {
        position: sticky;
        top: calc(var(--dcu-ui-top-h) + 0.75rem);
        z-index: 2;
    }
}

.dcu-table-wrap--airy .table > :not(caption) > * > * {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.dcu-row-highlight {
    background: rgba(22, 163, 74, 0.06);
}

.dcu-deporte-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
}

.dcu-deporte-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(20, 83, 45, 0.1);
    background: #fff;
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dcu-deporte-card:hover {
    border-color: rgba(22, 163, 74, 0.35);
    box-shadow: 0 4px 14px rgba(20, 83, 45, 0.06);
}

.dcu-deporte-card.is-editing {
    border-color: var(--dcu-ui-accent);
    box-shadow: 0 0 0 2px var(--dcu-ui-accent-soft);
}

.dcu-deporte-card.is-inactive {
    opacity: 0.72;
}

.dcu-deporte-card__body {
    flex: 1;
    min-width: 0;
}

.dcu-deporte-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: var(--dcu-ui-ink);
}

.dcu-deporte-card__meta {
    font-size: 0.75rem;
    color: var(--dcu-ui-muted);
}

.dcu-espacios-module .tab-pane {
    padding-top: 0.25rem;
}
