:root {
    --background: #f5f7f8;
    --surface: #ffffff;
    --surface-hover: #f8faf9;

    --text: #18211f;
    --muted: #697572;

    --border: #dde4e2;

    --primary: #153f38;
    --primary-hover: #0f332d;
    --primary-soft: #e9f1ef;

    --success: #2f7a60;
    --danger: #b84747;

    --radius: 16px;
    --radius-small: 10px;

    --shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 6px 20px rgba(0, 0, 0, 0.04);
}


* {
    box-sizing: border-box;
}


html {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


body {
    margin: 0;
    background: var(--background);
    color: var(--text);
}


a {
    color: inherit;
}


.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}


.topbar-inner {
    max-width: 1180px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 32px;
}


.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
}


.brand-company {
    font-size: 15px;
    letter-spacing: 0.16em;
    font-weight: 700;
}


.brand-product {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}


.nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
}


.nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
}


.nav a:hover {
    color: var(--text);
}


.user-area {
    display: flex;
    align-items: center;
    gap: 16px;
}


.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}


.user-name {
    font-size: 14px;
    font-weight: 600;
}


.user-email {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}


.page {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 80px;
}


.welcome,
.page-heading {
    margin-bottom: 36px;
}


.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}


h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    letter-spacing: -0.03em;
}


h2,
h3,
p {
    margin-top: 0;
}


.page-description {
    margin-top: 10px;
    color: var(--muted);
    font-size: 17px;
}


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


.resource-card {
    min-height: 170px;
    padding: 28px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-decoration: none;
    box-shadow: var(--shadow);

    transition:
        transform 120ms ease,
        border-color 120ms ease;
}


.resource-card:hover {
    transform: translateY(-2px);
    border-color: #bbc9c5;
}


.resource-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 14px;
    background: var(--primary-soft);

    font-size: 26px;
}


.resource-card h2 {
    margin-bottom: 7px;
    font-size: 20px;
}


.resource-card p {
    margin: 0;
    color: var(--muted);
}


.resource-arrow {
    font-size: 26px;
    color: var(--muted);
}


.section {
    margin-top: 50px;
}


.section-header {
    margin-bottom: 18px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}


.section-header h2 {
    margin-bottom: 0;
}


.text-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}


.booking-list {
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}


.booking-row {
    min-height: 76px;
    padding: 16px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border-bottom: 1px solid var(--border);
}


.booking-row:last-child {
    border-bottom: 0;
}


.booking-row strong {
    display: block;
}


.booking-code {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}


.booking-date {
    color: var(--muted);
}


.booking-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}


.badge {
    padding: 5px 9px;
    border-radius: 999px;

    background: #ecefee;
    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}


.badge-active {
    background: var(--primary-soft);
    color: var(--primary);
}


.empty-state {
    padding: 40px 24px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-align: center;
}


.empty-state.large {
    padding: 70px 30px;
}


.empty-state h2,
.empty-state h3 {
    margin-bottom: 8px;
}


.empty-state p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.6;
}


.empty-icon {
    margin-bottom: 16px;
    font-size: 32px;
}


.parking-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}


.parking-card {
    min-height: 150px;
    padding: 22px;

    display: flex;
    flex-direction: column;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}


.status-dot {
    width: 8px;
    height: 8px;

    display: inline-block;

    margin-right: 6px;
    border-radius: 50%;
    background: var(--success);
}


.status-text {
    color: var(--muted);
    font-size: 12px;
}


.parking-number {
    margin-top: 28px;
    font-size: 28px;
}


.parking-name {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}


.info-box {
    margin-top: 30px;
    padding: 20px 22px;

    background: var(--primary-soft);
    border-radius: var(--radius-small);
}


.info-box p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}


.button {
    border: 0;
    border-radius: 9px;

    padding: 11px 18px;

    cursor: pointer;
    font: inherit;
    font-weight: 600;
}


.button-primary {
    background: var(--primary);
    color: #ffffff;
}


.button-primary:hover {
    background: var(--primary-hover);
}


.button-secondary {
    background: #eef1f0;
    color: var(--text);
}


.button-small {
    padding: 8px 12px;
    font-size: 13px;
}


.button-full {
    width: 100%;
}


.login-body {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 32px 20px;

    background: #eff3f2;
}


.login-container {
    width: min(440px, 100%);
}


.login-brand {
    margin-bottom: 20px;

    text-align: center;
    letter-spacing: 0.2em;
    font-size: 15px;
    font-weight: 800;
}


.login-card {
    padding: 36px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);
}


.login-heading {
    margin-bottom: 30px;
    text-align: center;
}


.login-heading h1 {
    font-size: 30px;
}


.login-heading p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.5;
}


.form-field {
    margin-bottom: 18px;
}


.form-field label {
    display: block;
    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;
}


.form-field input {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #cfd8d5;
    border-radius: 9px;

    background: #ffffff;

    font: inherit;
    color: var(--text);

    outline: none;
}


.form-field input:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(21, 63, 56, 0.12);
}


.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
}


.alert-error {
    background: #fff0f0;
    color: var(--danger);
}


.login-notice {
    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid var(--border);

    font-size: 13px;
}


.login-notice p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.5;
}


@media (max-width: 850px) {

    .topbar-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .nav {
        order: 3;
        width: 100%;

        overflow-x: auto;
        padding-bottom: 4px;
    }

    .user-area {
        margin-left: auto;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .parking-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 560px) {

    .page {
        width: min(100% - 28px, 1100px);
        padding-top: 36px;
    }

    .user-info {
        display: none;
    }

    .parking-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        padding: 22px;
    }

    .booking-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .booking-meta {
        width: 100%;
        justify-content: space-between;
    }

    .login-card {
        padding: 28px 22px;
    }
}
.messages {
    margin-bottom: 24px;
}


.message {
    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: var(--surface);

    font-size: 14px;
}


.message-success {
    border-color: #b8d6ca;
    background: #edf7f3;
    color: #245f4c;
}


.message-error {
    border-color: #e5bcbc;
    background: #fff1f1;
    color: var(--danger);
}


.date-section {
    margin-bottom: 28px;
}


.date-section-header {
    margin-bottom: 15px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}


.date-label {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);
    font-size: 12px;
}


.selected-date {
    font-size: 20px;
}


.booking-rule {
    color: var(--muted);
    font-size: 13px;
}


.date-selector {
    display: grid;
    grid-template-columns:
        repeat(8, minmax(0, 1fr));

    gap: 8px;
}


.date-option {
    min-height: 82px;

    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);

    text-decoration: none;

    transition:
        border-color 120ms ease,
        background 120ms ease;
}


.date-option:hover {
    border-color: #aabbb6;
}


.date-option strong {
    margin: 3px 0;

    font-size: 20px;
}


.date-option span {
    font-size: 12px;
    color: var(--muted);
}


.date-option-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}


.date-option-active span {
    color: rgba(255, 255, 255, 0.8);
}


.current-booking-notice {
    margin-bottom: 22px;
    padding: 16px 18px;

    border: 1px solid #bbd1ca;
    border-radius: var(--radius-small);

    background: var(--primary-soft);
}


.current-booking-notice p {
    margin: 4px 0 0;

    color: var(--muted);
}


.parking-status-legend {
    margin-bottom: 18px;

    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    color: var(--muted);
    font-size: 13px;
}


.parking-status-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}


.legend-dot {
    width: 9px;
    height: 9px;

    display: inline-block;

    border-radius: 50%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.legend-available,
.status-available {
    background: #58b378;
}


.legend-mine,
.status-mine {
    background: #2ba8db;
}


.legend-reserved,
.status-reserved {
    background: #d84c4c;
}


.legend-unavailable,
.status-unavailable {
    background: #d84c4c;
}


.parking-status {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--muted);
    font-size: 12px;
}


.parking-card-mine {
    border-color: #9ab7d3;
    background: #f3f7fb;
}


.parking-card-reserved {
    background: #f2f3f3;
}


.parking-card-unavailable {
    background: #faf3f3;
}


.parking-actions {
    margin-top: auto;
    padding-top: 22px;
}


.button-danger {
    background: #f2e5e5;
    color: var(--danger);
}


.button-danger:hover {
    background: #ead6d6;
}


.button-disabled {
    background: #ecefee;
    color: #8a9391;

    cursor: not-allowed;
}
@media (max-width: 850px) {

    .date-selector {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 560px) {

    .date-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .date-selector {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}
/* =========================================
   PLANO INTERACTIVO DE ESTACIONAMIENTOS
   ========================================= */


   .parking-map-section {
    margin-top: 26px;
}


.parking-map-stage {
    position: relative;

    width: min(100%, 720px);

    margin: 0 auto;

    user-select: none;
}


.parking-map-image {
    display: block;

    width: 100%;
    height: auto;
}


.parking-map-space {
    position: absolute;

    margin: 0;
    padding: 0;

    border-width: 2px;
    border-style: solid;
    border-radius: 8px;

    cursor: pointer;

    font: inherit;

    transition:
        background 130ms ease,
        border-color 130ms ease,
        transform 130ms ease,
        box-shadow 130ms ease;
}


.parking-map-space:hover {
    z-index: 5;

    transform: scale(1.025);

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.12);
}


.parking-map-space:focus-visible {
    z-index: 6;

    outline:
        3px solid
        rgba(21, 63, 56, 0.3);

    outline-offset: 2px;
}


.parking-map-status {
    position: absolute;

    left: 50%;
    bottom: 14px;

    transform: translateX(-50%);

    padding: 5px 8px;

    border-radius: 999px;

    white-space: nowrap;

    font-size: 11px;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.08);
}


/* Disponible */

.parking-map-space-available {
    border-color: #2f7a60;

    background:
        rgba(255, 255, 255, 0.08);
}


.parking-map-space-available:hover {
    background:
        rgba(255, 255, 255, 0.18);
}


/* Mi reserva */

.parking-map-space-mine {
    border-color: #356aa0;

    background:
        rgba(255, 255, 255, 0.08);
}


.parking-map-space-mine:hover {
    background:
        rgba(255, 255, 255, 0.18);
}


/* Reservado por otra persona */

.parking-map-space-reserved {
    border-color: #7d8583;

    background:
        rgba(255, 255, 255, 0.08);
}


.parking-map-space-reserved:hover {
    background:
        rgba(255, 255, 255, 0.18);
}


/* No disponible */

.parking-map-space-unavailable {
    border-color: #b84747;

    background:
        rgba(242, 243, 243, 0.65);
}


/* -----------------------------------------
   POSICIONES SOBRE EL PLANO
   ----------------------------------------- */


/* Fila superior */

.parking-space-3046 {
    left: 12.6%;
    top: 7.9%;
    width: 18.65%;
    height: 20.75%;
}


.parking-space-3047 {
    left: 31.7%;
    top: 7.9%;
    width: 18.15%;
    height: 20.75%;
}


.parking-space-3048 {
    left: 50.3%;
    top: 7.9%;
    width: 18.35%;
    height: 20.75%;
}


.parking-space-3062 {
    left: 69.1%;
    top: 7.9%;
    width: 18.15%;
    height: 20.75%;
}


/* Fila inferior */

.parking-space-4097 {
    left: 12.6%;
    top: 50.1%;
    width: 18.65%;
    height: 20.9%;
}


.parking-space-5056 {
    left: 31.7%;
    top: 50.1%;
    width: 18.15%;
    height: 20.9%;
}


.parking-space-5058 {
    left: 50.3%;
    top: 50.1%;
    width: 18.35%;
    height: 20.9%;
}


.parking-space-5087 {
    left: 69.1%;
    top: 50.1%;
    width: 18.15%;
    height: 20.9%;
}


/* Estacionamiento vertical 4096 */

.parking-space-4096 {
    left: 12.6%;
    top: 71.4%;
    width: 18.65%;
    height: 20.65%;
}


/* Ayuda debajo del mapa */

.parking-map-help {
    max-width: 720px;

    margin: 24px auto 0;

    padding: 18px 20px;

    border-radius: var(--radius-small);

    background: var(--primary-soft);
}


.parking-map-help p {
    margin: 5px 0 0;

    color: var(--muted);

    line-height: 1.5;
}


/* =========================================
   VENTANA DE DETALLE
   ========================================= */


.parking-dialog {
    width:
        min(
            430px,
            calc(100% - 32px)
        );

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);

    color: var(--text);

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.20);
}


.parking-dialog::backdrop {
    background:
        rgba(10, 20, 18, 0.45);
}


.parking-dialog-content {
    padding: 28px;
}


.parking-dialog-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}


.parking-dialog-header h2 {
    margin: 0;

    font-size: 26px;
}


.dialog-close {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #eef1f0;

    color: var(--text);

    cursor: pointer;

    font-size: 24px;
    line-height: 1;
}


.dialog-close:hover {
    background: #e2e7e5;
}


.parking-dialog-date {
    margin-top: 24px;

    padding: 14px 16px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border: 1px solid var(--border);
    border-radius: 10px;
}


.parking-dialog-date span {
    color: var(--muted);

    font-size: 13px;
}


.dialog-status {
    width: fit-content;

    margin-top: 20px;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}


.dialog-status-available {
    background: #e5f2ed;
    color: #27654f;
}


.dialog-status-mine {
    background: #e5edf6;
    color: #315f8c;
}


.dialog-status-reserved {
    background: #ecefee;
    color: #626a68;
}


.dialog-status-unavailable {
    background: #f7e8e8;
    color: #9b3939;
}


.dialog-description {
    margin: 16px 0 22px;

    color: var(--muted);

    line-height: 1.55;
}


.dialog-no-action {
    padding: 13px 15px;

    border-radius: 10px;

    background: #f1f3f2;

    color: var(--muted);

    font-size: 14px;

    text-align: center;
}
/* =========================================
   ASIGNACIONES Y LIBERACIONES
   ========================================= */


   .current-assignment-notice {
    margin-bottom: 22px;
    padding: 16px 18px;

    border: 1px solid #cabce0;
    border-radius: var(--radius-small);

    background: #f4f0fa;
}


.current-assignment-notice p {
    margin: 4px 0 0;

    color: var(--muted);
}


/* Asignado */

.legend-assigned,
.status-assigned {
    background: #8d69c9;
}


/* Liberado */

.legend-released,
.status-released {
    background: #e0be4c;
}


/* Espacio asignado */

.parking-map-space-assigned_mine,
.parking-map-space-assigned_other {
    border-color: #7653a6;

    background:
        rgba(255, 255, 255, 0.08);
}


.parking-map-space-assigned_mine:hover,
.parking-map-space-assigned_other:hover {
    background:
        rgba(255, 255, 255, 0.18);
}


/* Espacio liberado */

.parking-map-space-released {
    border-color: #c89b32;

    background:
        rgba(255, 255, 255, 0.08);
}


.parking-map-space-released:hover {
    background:
        rgba(255, 255, 255, 0.18);
}


/* Estados del diálogo */

.dialog-status-assigned {
    background: #eee8f6;
    color: #65428f;
}


.dialog-status-released {
    background: #faf2df;
    color: #876619;
}


/* Botón liberar */

.button-warning {
    background: #f4ebd5;
    color: #735717;
}


.button-warning:hover {
    background: #ecdfbf;
}
/* =========================================
   MIS ESPACIOS
   ========================================= */


   .assignment-list {
    display: grid;
    gap: 28px;
}


.assignment-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow);
}


.assignment-card-header {
    padding: 26px;

    display: flex;
    align-items: center;
    gap: 18px;

    border-bottom: 1px solid var(--border);
}


.assignment-resource-icon {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: #f0eaf7;

    font-size: 27px;
}


.assignment-card-header h2 {
    margin-bottom: 3px;
}


.assignment-code {
    margin: 0;

    color: var(--muted);
}


.assignment-details {
    padding: 18px 26px;

    display: flex;
    gap: 50px;

    border-bottom: 1px solid var(--border);

    background: #fafbfb;
}


.assignment-details div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.assignment-details span {
    color: var(--muted);
    font-size: 12px;
}


.assignment-details strong {
    font-size: 14px;
}


.assignment-days {
    padding: 0 26px;
}


.assignment-day {
    min-height: 96px;

    display: grid;
    grid-template-columns: 75px 1fr auto;
    align-items: center;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}


.assignment-day:last-child {
    border-bottom: 0;
}


.assignment-day-date {
    display: flex;
    flex-direction: column;
    align-items: center;

    line-height: 1.15;
}


.assignment-day-date span {
    color: var(--muted);
    font-size: 12px;
}


.assignment-day-date strong {
    margin: 3px 0;

    font-size: 23px;
}


.assignment-day-info p {
    margin: 7px 0 0;

    color: var(--muted);
    font-size: 13px;
}


.assignment-status {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}


.assignment-status-assigned {
    background: #eee8f6;
    color: #65428f;
}


.assignment-status-released {
    background: #faf2df;
    color: #876619;
}


.assignment-status-booked {
    background: #ecefee;
    color: #626a68;
}


.assignment-action-note {
    color: var(--muted);
    font-size: 12px;
}


@media (max-width: 700px) {

    .assignment-details {
        gap: 20px;
        flex-direction: column;
    }


    .assignment-day {
        padding: 18px 0;

        grid-template-columns: 60px 1fr;
    }


    .assignment-day-action {
        grid-column: 1 / -1;
    }


    .assignment-day-action .button,
    .assignment-day-action form {
        width: 100%;
    }

}
/* =========================================
   OFICINA
   ========================================= */


   .office-zone {
    margin-top: 38px;
}


.office-zone:first-of-type {
    margin-top: 20px;
}


.office-zone-header {
    margin-bottom: 16px;
}


.office-zone-header h2 {
    margin: 0;
    font-size: 20px;
}


.workplace-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


.workplace-card {
    min-height: 250px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow);
}


.workplace-card-mine {
    border-color: #9ab7d3;
    background: #f3f7fb;
}


.workplace-card-assigned_mine,
.workplace-card-assigned_other {
    border-color: #cabce0;
    background: #f7f3fb;
}


.workplace-card-released {
    border-color: #dfc88f;
    background: #fcf8ee;
}


.workplace-card-full {
    background: #f2f3f3;
}


.workplace-card-unavailable {
    background: #faf3f3;
}


.workplace-icon {
    margin-top: 24px;
    font-size: 26px;
}


.workplace-code {
    margin-top: 8px;
    font-size: 24px;
}


.workplace-name {
    margin-top: 4px;

    color: var(--muted);
    font-size: 13px;
}


.capacity-info {
    margin-top: 16px;

    padding: 10px 12px;

    display: flex;
    align-items: baseline;
    gap: 6px;

    border-radius: 9px;

    background: #f2f5f4;
}


.capacity-info strong {
    font-size: 18px;
}


.capacity-info span {
    color: var(--muted);
    font-size: 12px;
}


.workplace-actions {
    margin-top: auto;
    padding-top: 20px;
}


@media (max-width: 950px) {

    .workplace-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .workplace-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 420px) {

    .workplace-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================
   RESERVAS POR HORARIO
   ========================================= */

.current-booking-times {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.current-booking-times span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.booking-schedule {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8faf9;
}

.booking-schedule > strong {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
}

.booking-schedule ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.booking-schedule li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.booking-schedule li span {
    color: var(--muted);
    font-size: 12px;
}

.booking-own-actions {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #bbd1ca;
    border-radius: 10px;
    background: var(--primary-soft);
}

.booking-own-actions > strong {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
}

.booking-own-actions form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(21, 63, 56, 0.12);
}

.booking-own-actions form:first-of-type {
    border-top: 0;
}

.booking-own-actions form span {
    font-size: 13px;
    font-weight: 600;
}

.dialog-primary-action {
    margin-top: 18px !important;
}

.booking-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.booking-time-grid label {
    display: grid;
    gap: 6px;
}

.booking-time-grid label > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.booking-time-grid input[type="time"],
.booking-time-grid select {
    width: 100%;
    min-height: 44px;
    padding: 10px 11px;
    border: 1px solid #cfd8d5;
    border-radius: 9px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.booking-time-grid input[type="time"]:disabled,
.booking-time-grid select:disabled {
    background: #eef1f0;
    color: #8a9391;
}

.booking-time-grid select option:disabled {
    background: #eef1f0;
    color: #a3aaa8;
}

.booking-time-grid select option:not(:disabled) {
    background: #ffffff;
    color: var(--text);
}

.booking-all-day-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}

.booking-all-day-option input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.booking-all-day-option span {
    font-size: 13px;
    font-weight: 700;
}

.booking-all-day-option-disabled {
    cursor: not-allowed;
    background: #eef1f0;
    color: #8a9391;
}

.booking-all-day-option-disabled input {
    cursor: not-allowed;
}

.booking-time-help {
    margin: 9px 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.parking-map-space-reserved .parking-map-status {
    color: #59615f;
}

@media (max-width: 560px) {
    .booking-time-grid {
        grid-template-columns: 1fr;
    }

    .booking-own-actions form {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================
   DISPONIBILIDAD HORARIA 08:00–18:00
   ========================================= */

.availability-map-note {
    margin: -6px 0 18px;
    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface);

    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.resource-availability-layer {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(40, minmax(0, 1fr));
    gap: 0;

    overflow: hidden;

    padding: 1px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.22);

    pointer-events: none;
}

.resource-availability-layer-unavailable {
    background: rgba(255, 255, 255, 0.18);
}

.resource-availability-slot {
    min-width: 0;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.45);
}

/* En estacionamientos y oficinas, el horario avanza verticalmente:
   08:00 arriba -> 18:00 abajo. */
.parking-map-space .resource-availability-layer,
.office-map-marker .resource-availability-layer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(40, minmax(0, 1fr));
}

.parking-map-space .resource-availability-slot,
.office-map-marker .resource-availability-slot {
    min-height: 0;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.45);
}

.resource-availability-slot-available {
    background: rgba(88, 179, 120, 0.34);
}

.resource-availability-slot-mine {
    background: rgba(43, 168, 219, 0.72);
}

.resource-availability-slot-occupied,
.resource-availability-slot-unavailable {
    background: rgba(216, 76, 76, 0.72);
}

.resource-availability-slot-assigned {
    background: rgba(141, 105, 201, 0.66);
}

.resource-availability-slot-released {
    background: rgba(224, 190, 76, 0.72);
}

.parking-map-status {
    z-index: 2;
}

.office-map-marker > strong,
.office-map-marker > small {
    position: relative;
    z-index: 2;

    padding: 2px 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.82);
}

.office-map-marker > strong {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.office-map-marker > small {
    margin-top: 2px;
}

.dialog-availability-summary {
    margin: 16px 24px 0;
    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafcfb;
}

.resource-dialog-description.dialog-availability-summary {
    margin-top: 16px;
}

.dialog-availability-text {
    margin-top: 10px;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dialog-availability-text strong {
    font-size: 13px;
}

.dialog-availability-text span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.dialog-availability-bar {
    display: grid;
    grid-template-columns: repeat(40, minmax(0, 1fr));
    gap: 0;

    height: 18px;
    margin-top: 10px;
    padding: 1px;

    overflow: hidden;

    border: 1px solid #78b693;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
}

.dialog-availability-slot {
    min-width: 0;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.45);
}

.dialog-availability-slot-available {
    background: rgba(88, 179, 120, 0.34);
}

.dialog-availability-slot-mine {
    background: rgba(43, 168, 219, 0.72);
}

.dialog-availability-slot-occupied,
.dialog-availability-slot-unavailable {
    background: rgba(216, 76, 76, 0.72);
}

.dialog-availability-slot-assigned {
    background: rgba(141, 105, 201, 0.66);
}

.dialog-availability-slot-released {
    background: rgba(224, 190, 76, 0.72);
}

.dialog-availability-summary small {
    display: block;
    margin-top: 8px;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .dialog-availability-summary {
        margin-left: 18px;
        margin-right: 18px;
    }
}



.parking-map-code-eraser {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;

    width: 84%;
    height: 24%;

    transform: translate(-50%, -50%);

    background: #ffffff;

    pointer-events: none;
}

.parking-map-code {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;

    transform: translate(-50%, -50%);

    color: #263b35;
    font-size: clamp(18px, 3.7vw, 38px);
    font-weight: 800;
    line-height: 1;
    opacity: 1;

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 4px rgba(255, 255, 255, 0.72);

    pointer-events: none;
}

.parking-map-space,
.office-map-marker {
    border-color: #8a9391 !important;
    background: transparent !important;
}

.parking-map-space:hover,
.office-map-marker:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
