/* Fase 9.3 — CSS verbatim de los bloques de estilo de Pages/HotelManager/HotelLayout.razor. Igual que hoy, es global mientras el componente está en pantalla:
   se enlaza con <link> donde estaba el bloque. Cambios: @@ → @ y capas D-51. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ============ Tokens (paleta "Alba", igual al preview) ============ */
.hv-root {
    --hot-noche: #0F2438; /* sobrescrito inline por el tema activo */
    --hot-petroleo: #1B5E63; /* sobrescrito inline por el tema activo */
    --hot-oro: #B8963E;
    --hot-oro-suave: #E9DDB8;
    --hot-crema: #F6F4EF;
    --hot-ink: #1B2430;
    --hot-muted: #6B7785;
    --hot-border: #E4E1D9;
    --hot-verde: #1E9E52;
    --hot-azul: #1E4FD8;
    --hot-rojo: #C0392B;
    --hot-ambar: #B7791F;
    --hv-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --hv-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-family: var(--hv-sans);
    color: var(--hot-ink);
    font-size: 14px;
    line-height: 1.45;
}

    .hv-root *, .hv-root *::before, .hv-root *::after {
        box-sizing: border-box;
    }

    .hv-root h1, .hv-root h2, .hv-root h3, .hv-root h4 {
        font-family: var(--hv-serif);
        color: var(--hot-ink);
        letter-spacing: -.01em;
    }

/* ============ Estructura ============ */
.hv-app {
    display: grid !important;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--hot-crema);
}

.hv-side {
    display: flex !important;
    flex-direction: column;
    background: var(--hot-noche);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.hv-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1.1rem 1.1rem .9rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hv-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--hot-oro);
    color: var(--hot-noche);
    font-family: var(--hv-serif);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hv-brand-name {
    font-family: var(--hv-serif);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
    color: #fff;
}

    .hv-brand-name span {
        color: var(--hot-oro-suave);
    }

.hv-brand-sub {
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hot-oro);
    margin-top: .2rem;
    font-weight: 600;
}

.hv-side-scroll {
    flex: 1;
    overflow-y: auto;
    padding: .6rem .7rem 1rem;
}

.hv-side-section {
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    font-weight: 700;
    padding: .9rem .5rem .35rem;
}

.hv-nav {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .7rem;
    margin: .1rem 0;
    border-radius: 9px;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

    .hv-nav i {
        width: 16px;
        text-align: center;
        font-size: .85rem;
        opacity: .85;
    }

    .hv-nav:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
        text-decoration: none;
    }

    .hv-nav.active {
        background: var(--hot-oro);
        color: #fff;
        font-weight: 600;
    }

        .hv-nav.active i {
            opacity: 1;
        }

.hv-side-foot {
    padding: .8rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.hv-side-foot-txt {
    font-size: .68rem;
    color: rgba(255,255,255,.5);
    margin-bottom: .4rem;
}

.hv-side-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.hv-side-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 6px;
}

.hv-side-chip-btn {
    cursor: pointer;
}

    .hv-side-chip-btn:hover {
        background: rgba(255,255,255,.22);
    }

.hv-main {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
}

.hv-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid var(--hot-border);
    padding: .9rem 1.6rem;
}

.hv-top-title h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.hv-top-title p {
    margin: .1rem 0 0;
    color: var(--hot-muted);
    font-size: .82rem;
}

.hv-top-tools {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
}

.hv-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.hv-chip-ok {
    background: #E6F4EC;
    color: #146C3A;
    border-color: #BFE3CC;
}

    .hv-chip-ok:hover {
        background: #D6ECDF;
    }

.hv-chip-warn {
    background: #FBEFD9;
    color: #8A5A0E;
    border-color: #F1D9A6;
}

    .hv-chip-warn:hover {
        background: #F6E4C2;
    }

.hv-swatches {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.hv-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--hot-border);
    cursor: pointer;
    padding: 0;
    transition: transform .12s ease;
}

    .hv-swatch:hover {
        transform: scale(1.12);
    }

    .hv-swatch.is-on {
        box-shadow: 0 0 0 2px var(--hot-oro);
    }

.hv-swatch-more {
    background: #fff;
    color: var(--hot-muted);
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hv-lang {
    display: inline-flex;
    border: 1px solid var(--hot-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

    .hv-lang button {
        border: none;
        background: transparent;
        padding: .35rem .7rem;
        font-size: .76rem;
        font-weight: 700;
        color: var(--hot-muted);
        cursor: pointer;
        font-family: inherit;
    }

        .hv-lang button.is-on {
            background: var(--hot-noche);
            color: #fff;
        }

.hv-user {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.hv-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hot-noche);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .04em;
}

.hv-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--hot-border);
    background: #fff;
    color: var(--hot-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hv-icon-btn:hover {
        color: var(--hot-ink);
        border-color: var(--hot-muted);
    }

.hv-body {
    flex: 1;
    padding: 1.4rem 1.6rem 2rem;
    min-width: 0;
}

@media (max-width: 960px) {
    .hv-app {
        grid-template-columns: 1fr;
    }

    .hv-side {
        position: relative;
        height: auto;
    }

    .hv-side-scroll {
        display: flex;
        flex-wrap: wrap;
        gap: .2rem;
    }

    .hv-side-section {
        width: 100%;
    }

    .hv-body {
        padding: 1rem;
    }
}

/* ============ Piezas compartidas de página (todas las pantallas) ============ */
.hot-card {
    background: #fff;
    border: 1px solid var(--hot-border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15,36,56,.04);
}

    .hot-card + .hot-card {
        margin-top: 1rem;
    }

    .hot-card h3 {
        margin: 0 0 .9rem;
        font-size: 1.05rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: .5rem;
    }

        .hot-card h3 i {
            color: var(--hot-petroleo);
            font-size: .95rem;
        }

.hot-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}

    .hot-card-head h3 {
        margin: 0;
    }

/* [FIX alineación] Los .cc-field traían margin-bottom:1rem y el botón quedaba 1rem
       más abajo que los inputs. Dentro de una barra de filtros todo se alinea al pie. */
.hot-filtros {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 1rem;
}

    .hot-filtros .cc-field {
        margin-bottom: 0;
    }

    .hot-filtros > h3 {
        margin: 0;
        align-self: center;
    }

    .hot-filtros .cc-btn, .hot-filtros .cc-select, .hot-filtros .cc-input-num {
        align-self: flex-end;
    }

.hot-tabs {
    display: inline-flex;
    gap: .25rem;
    background: #EEEBE3;
    padding: .25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

    .hot-tabs .cc-btn {
        border-radius: 8px;
        padding: .45rem .9rem;
        background: transparent;
        color: var(--hot-muted);
        border: none;
    }

        .hot-tabs .cc-btn.cc-btn-primary {
            background: #fff;
            color: var(--hot-ink);
            box-shadow: 0 1px 2px rgba(0,0,0,.08);
        }

/* Formularios en grilla (check-in, unidad, tarifa): campos alineados en columnas iguales */
.hot-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .75rem 1rem;
    margin-bottom: .75rem;
}

    .hot-form-grid .cc-field {
        margin-bottom: 0;
        max-width: none;
    }

    .hot-form-grid .cc-field-full {
        grid-column: 1 / -1;
    }

.hot-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: 1rem;
}

.hot-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .9rem;
    margin-bottom: 1rem;
}

.hot-stat-tile {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    border: 1px solid var(--hot-border);
    flex: 1;
    min-width: 150px;
}

    .hot-stat-tile .valor {
        font-family: var(--hv-serif);
        font-size: 1.7rem;
        font-weight: 700;
        color: var(--hot-noche);
        line-height: 1.1;
    }

    .hot-stat-tile .etiqueta {
        font-size: .68rem;
        color: var(--hot-muted);
        text-transform: uppercase;
        letter-spacing: .1em;
        font-weight: 700;
        margin-bottom: .35rem;
    }

/* ---- Campos ---- */
.cc-field {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.cc-field-inline {
    min-width: 160px;
    max-width: 320px;
}

.cc-field label {
    font-size: .76rem;
    font-weight: 700;
    color: var(--hot-ink);
}

.cc-select, .cc-input-num, .hv-root textarea.cc-select {
    border: 1.5px solid var(--hot-border);
    border-radius: 8px;
    padding: 0 .7rem;
    font-size: .88rem;
    height: 38px;
    background: #fff;
    color: var(--hot-ink);
    font-family: inherit;
    width: 100%;
}

.hv-root textarea.cc-select {
    height: auto;
    min-height: 84px;
    padding: .5rem .7rem;
}

.cc-select:focus, .cc-input-num:focus {
    outline: none;
    border-color: var(--hot-petroleo);
    box-shadow: 0 0 0 3px rgba(27,94,99,.12);
}

.cc-readonly {
    padding: .5rem .7rem;
    background: #F3F1EB;
    border-radius: 8px;
    font-size: .86rem;
    color: var(--hot-muted);
}

.cc-muted {
    color: var(--hot-muted);
}

.cc-moneda-code {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    background: #EEEBE3;
    color: var(--hot-ink);
    padding: .15rem .45rem;
    border-radius: 6px;
}

/* ---- Botones (mismo lenguaje que el preview: primario, outline, verde, azul, peligro) ---- */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    height: 38px;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s ease, background .15s ease;
    font-family: inherit;
    white-space: nowrap;
}

    .cc-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.cc-btn-primary {
    background: var(--hot-petroleo);
    color: #fff;
}

    .cc-btn-primary:hover:not(:disabled) {
        filter: brightness(1.08);
    }

.cc-btn-outline {
    background: #fff;
    border: 1.5px solid var(--hot-border);
    color: var(--hot-ink);
}

    .cc-btn-outline:hover:not(:disabled) {
        border-color: var(--hot-petroleo);
        color: var(--hot-petroleo);
    }

.cc-btn-danger {
    background: var(--hot-rojo);
    color: #fff;
}

    .cc-btn-danger:hover:not(:disabled) {
        filter: brightness(1.08);
    }

.cc-btn-success {
    background: var(--hot-verde);
    color: #fff;
}

    .cc-btn-success:hover:not(:disabled) {
        filter: brightness(1.08);
    }

.cc-btn-blue {
    background: var(--hot-azul);
    color: #fff;
}

    .cc-btn-blue:hover:not(:disabled) {
        filter: brightness(1.08);
    }

.cc-btn-dark {
    background: var(--hot-noche);
    color: #fff;
}

    .cc-btn-dark:hover:not(:disabled) {
        filter: brightness(1.15);
    }

.cc-btn-sm {
    height: 31px;
    padding: 0 .75rem;
    font-size: .78rem;
    border-radius: 6px;
}

.cc-btn-icon {
    width: 34px;
    padding: 0;
}

/* ---- Tablas ---- */
.cc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

    .cc-table th {
        text-align: left;
        padding: .6rem .7rem;
        background: #F6F4EF;
        color: var(--hot-muted);
        font-weight: 700;
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .1em;
        border-bottom: 1px solid var(--hot-border);
    }

    .cc-table td {
        padding: .6rem .7rem;
        border-bottom: 1px solid var(--hot-border);
        vertical-align: middle;
    }

    .cc-table tbody tr:last-child td {
        border-bottom: none;
    }

    .cc-table tbody tr:hover td {
        background: #FBFAF7;
    }

.cc-text-right {
    text-align: right;
}

.cc-empty {
    text-align: center;
    color: var(--hot-muted);
    padding: 1.2rem;
    font-size: .86rem;
}

.cc-table td input.cc-select, .cc-table td input.cc-input-num, .cc-table td select.cc-select {
    height: 34px;
}

.cc-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    background: #EEF2FF;
    color: #2D3A8C;
}

    .cc-pill::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

.cc-pill-ok {
    background: #E6F4EC;
    color: #146C3A;
}

.cc-pill-warn {
    background: #FBEFD9;
    color: #8A5A0E;
}

.cc-pill-danger {
    background: #FBE3E0;
    color: #9B2C21;
}

.cc-pill-muted {
    background: #EEEBE3;
    color: var(--hot-muted);
}

.cc-diff {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cc-diff-ok {
    color: #146C3A;
}

.cc-diff-up {
    color: var(--hot-ambar);
}

.cc-diff-down {
    color: var(--hot-rojo);
}

/* ---- Modales (Cobalt Elegante: contenedor 14px, cabecera con degradado del tema) ---- */
.cc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,36,56,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal) /* D-51 (era 1050): modales del módulo */;
    padding: 1rem;
    font-family: var(--hv-sans);
}

.cc-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    overflow: hidden;
}

.cc-modal-sm {
    max-width: 440px;
}

.cc-modal-lg {
    max-width: 700px;
}

.cc-modal-xl {
    max-width: 1000px;
}

.cc-modal-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(120deg, var(--hot-noche), var(--hot-petroleo));
    color: #fff;
}

    .cc-modal-header i {
        color: var(--hot-oro-suave);
        font-size: 1.05rem;
    }

    .cc-modal-header h3 {
        margin: 0;
        font-size: 1.05rem;
        color: #fff;
        font-family: var(--hv-serif);
    }

.cc-modal-body {
    padding: 1.25rem;
    max-height: 68vh;
    overflow-y: auto;
}

.cc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding: .9rem 1.25rem;
    border-top: 1px solid var(--hot-border);
    background: #FBFAF7;
}

.cc-modal-error {
    color: var(--hot-rojo);
    font-size: .84rem;
    margin-top: .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ---- Selector tipo "swatch" (características, temas) ---- */
.ct-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-top: .5rem;
}

.ct-swatch {
    display: flex;
    align-items: center;
    gap: .4rem;
    border: 2px solid var(--hot-border);
    border-radius: 10px;
    padding: .5rem .7rem;
    cursor: pointer;
    background: #fff;
}

    .ct-swatch:hover {
        border-color: var(--hot-petroleo);
    }

    .ct-swatch.is-selected {
        border-color: var(--hot-petroleo);
        background: rgba(27,94,99,.08);
    }

.ct-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.ct-nombre {
    font-size: .8rem;
    font-weight: 600;
}
