:root {
    --ink: #171722;
    --muted: #6f6d7a;
    --line: #e8e6ee;
    --bg: #f6f5f8;
    --panel: #ffffff;
    --primary: #f00562;
    --primary-dark: #ba004b;
    --accent: #00a7b5;
    --ok: #0f9f6e;
    --warn: #d89100;
    --bad: #c33737;
    --shadow: 0 12px 34px rgba(23, 23, 34, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.sidebar {
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    padding: 24px;
    position: fixed;
    top: 0;
    width: 260px;
}

.brand,
.auth-brand {
    align-items: center;
    display: flex;
    gap: 14px;
}

.brand-mark {
    align-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.brand strong,
.auth-brand h1 {
    display: block;
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.brand span,
.auth-brand p {
    color: rgba(255, 255, 255, 0.68);
    display: block;
    font-size: 13px;
    margin: 3px 0 0;
}

.sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 42px;
}

.sidebar nav a,
.sidebar-footer a {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 600;
    padding: 12px 14px;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar nav .primary-link {
    background: var(--primary);
    color: #fff;
    margin-top: 10px;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.sidebar-footer span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
}

.app-main {
    margin-left: 260px;
    min-height: 100vh;
    padding: 32px;
}

.auth-main {
    align-items: center;
    background: linear-gradient(135deg, #171722, #3a1832);
    display: flex;
    min-height: 100vh;
    justify-content: center;
    padding: 24px;
}

.topbar {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.topbar h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.button {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
}

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

.button.secondary {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}

.button.full {
    width: 100%;
}

.alert {
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.alert.success {
    background: #e8f8f1;
    color: #0b7652;
}

.alert.error {
    background: #ffecec;
    color: #ad2929;
}

.panel,
.auth-card,
.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-card {
    max-width: 430px;
    padding: 32px;
    width: 100%;
}

.auth-card .auth-brand p {
    color: var(--muted);
}

.stat-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-top: 10px;
}

.compact-stat strong {
    font-size: 24px;
}

.content-grid,
.detail-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
}

.panel {
    padding: 24px;
}

.panel-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.panel-head a {
    color: var(--primary);
    font-weight: 700;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

.event-list,
.compact-list,
.payment-list {
    display: grid;
    gap: 12px;
}

.event-row,
.compact-list a,
.payment-list div {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.event-row {
    grid-template-columns: 64px 1fr auto;
}

.event-row:hover,
.compact-list a:hover {
    border-color: rgba(240, 5, 98, 0.35);
}

.date-box {
    background: #faf0f5;
    border-radius: 8px;
    color: var(--primary);
    padding: 10px;
    text-align: center;
}

.date-box strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.date-box span,
.event-row span,
.compact-list span,
td span,
.payment-list span,
.payment-list small,
.muted,
.small {
    color: var(--muted);
    font-size: 13px;
}

.status {
    background: #eeeeF4;
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    padding: 7px 10px;
    white-space: nowrap;
}

.status.confirmada,
.status.pagado_parcial,
.status.pagado_completo,
.status.realizado,
.status.entregado {
    background: #e6f8f1;
    color: var(--ok);
}

.status.pendiente_abono,
.status.solicitada {
    background: #fff5da;
    color: var(--warn);
}

.status.cancelada {
    background: #ffe7e7;
    color: var(--bad);
}

.filters {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 230px auto;
    margin-bottom: 18px;
}

.filters.two-cols {
    grid-template-columns: 1fr auto;
}

.form label {
    color: var(--ink);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    text-transform: uppercase;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    padding: 11px 12px;
    width: 100%;
}

.check-label {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    min-height: 44px;
}

.check-label input {
    min-height: auto;
    width: auto;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 5, 98, 0.11);
    outline: none;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 900px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

tbody tr {
    cursor: pointer;
}

tbody tr:hover {
    background: #fbf6f9;
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.form-section {
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    padding-bottom: 22px;
}

.form-section:last-of-type {
    border-bottom: 0;
}

.form-section h2 {
    margin-bottom: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
}

.detail-list,
.money-grid {
    display: grid;
    gap: 12px;
}

.detail-list div,
.money-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.detail-list span,
.money-grid span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.detail-list strong,
.money-grid strong {
    display: block;
}

.money-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.payment-form {
    display: grid;
    gap: 12px;
}

.notes {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 22px;
}

.calendar-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays strong {
    color: var(--muted);
    font-size: 12px;
    padding: 0 8px 10px;
    text-transform: uppercase;
}

.calendar-day {
    border: 1px solid var(--line);
    min-height: 124px;
    padding: 8px;
}

.muted-day {
    background: #fafafa;
}

.day-number {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 8px;
}

.day-number span {
    color: var(--primary);
    font-size: 11px;
    opacity: 0;
}

.calendar-day:hover .day-number span {
    opacity: 1;
}

.calendar-event {
    background: #f7eef4;
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    display: block;
    margin-bottom: 6px;
    padding: 8px;
}

.payment-form h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 10px 0 0;
}

.calendar-event span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 980px) {
    .sidebar {
        height: auto;
        position: static;
        width: 100%;
    }

    .app-main {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .sidebar-footer {
        display: none;
    }

    .stat-grid,
    .content-grid,
    .detail-grid,
    .grid.three {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .topbar,
    .panel-head,
    .calendar-head {
        align-items: stretch;
        flex-direction: column;
    }

    .stat-grid,
    .content-grid,
    .detail-grid,
    .grid.two,
    .grid.three,
    .filters,
    .money-grid {
        grid-template-columns: 1fr;
    }

    .span-2,
    .span-3 {
        grid-column: auto;
    }

    .event-row {
        grid-template-columns: 1fr;
    }

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

    .weekdays {
        display: none;
    }

    .calendar-day {
        min-height: auto;
    }
}

/* Dashboard visual polish */
body {
    background:
        radial-gradient(circle at 40% 0%, rgba(240, 5, 98, 0.07), transparent 32%),
        radial-gradient(circle at 92% 12%, rgba(0, 167, 181, 0.08), transparent 28%),
        #f7f8fb;
    color: #111827;
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

.sidebar {
    background: linear-gradient(160deg, #121827 0%, #0d1320 55%, #111827 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 26px 18px;
    width: 286px;
}

.brand-mark {
    background: linear-gradient(135deg, #f00562, #ff4b5f);
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(240, 5, 98, 0.24);
}

.brand strong {
    font-size: 20px;
}

.brand span {
    color: #f00562;
    font-weight: 600;
}

.sidebar nav {
    gap: 10px;
}

.sidebar nav a {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 50px;
    padding: 13px 15px;
}

.sidebar nav a span {
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    font-size: 19px;
    justify-content: center;
    width: 24px;
}

.sidebar nav a.active {
    background: linear-gradient(135deg, #f00562, #f23568);
    box-shadow: 0 12px 26px rgba(240, 5, 98, 0.28);
}

.sidebar nav .primary-link {
    justify-content: center;
    margin-top: 24px;
}

.app-main {
    margin-left: 286px;
    padding: 28px 34px 40px;
}

.dashboard-top {
    align-items: center;
    display: flex;
    gap: 22px;
    justify-content: flex-end;
    margin-bottom: -20px;
}

.notification-dot {
    align-items: center;
    background: #f00562;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    height: 19px;
    justify-content: center;
    width: 19px;
}

.dashboard-hero {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-top: 8px;
}

.dashboard-hero .hello {
    color: #111827;
    font-size: 15px;
    font-weight: 650;
    margin: 0 0 6px;
}

.dashboard-hero h2 {
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.dashboard-hero span {
    color: #5d6475;
    display: block;
    margin-top: 10px;
}

.metric-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.metric-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    display: flex;
    gap: 18px;
    min-height: 126px;
    padding: 22px;
}

.metric-icon {
    align-items: center;
    border-radius: 12px;
    display: flex;
    font-size: 19px;
    font-weight: 750;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.metric-icon.pink {
    background: #ffe5f0;
    color: #f00562;
}

.metric-icon.green {
    background: #e9f8ee;
    color: #168348;
}

.metric-icon.amber {
    background: #fff1d6;
    color: #d89100;
}

.metric-icon.violet {
    background: #efe4ff;
    color: #7c3fd1;
}

.metric-card span,
.metric-card small {
    color: #687083;
    display: block;
    font-size: 13px;
}

.metric-card strong {
    color: #111827;
    display: block;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin: 4px 0;
}

.dashboard-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.7fr) minmax(360px, 0.9fr);
}

.dashboard-main,
.dashboard-side {
    display: grid;
    gap: 22px;
}

.soft-panel {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.panel-head h2 {
    color: #111827;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.panel-head p {
    color: #687083;
    font-size: 13px;
    margin: 5px 0 0;
}

.rich-event {
    grid-template-columns: 62px 54px 1fr auto;
    min-height: 96px;
}

.client-avatar {
    align-items: center;
    background: #ffe5f0;
    border-radius: 999px;
    color: #f00562;
    display: flex;
    font-weight: 750;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.client-avatar.small {
    font-size: 13px;
    height: 44px;
    width: 44px;
}

.event-side {
    align-items: flex-end;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.event-side small,
.recent-list small {
    background: #f1f3f7;
    border-radius: 999px;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
}

.center-action {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 16px;
    text-align: center;
}

.center-action a {
    color: #f00562;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.1fr 0.9fr;
}

.summary-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    margin-bottom: 14px;
}

.summary-row span {
    color: #5d6475;
}

.summary-row strong {
    font-weight: 700;
}

.bar {
    background: #f0f2f6;
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
}

.bar i {
    background: linear-gradient(90deg, #8b5cf6, #f00562);
    display: block;
    height: 100%;
}

.money-summary {
    display: grid;
    gap: 12px;
}

.money-summary div {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    padding: 14px;
}

.money-summary span {
    color: #687083;
    display: block;
    font-size: 13px;
}

.money-summary strong {
    color: #111827;
    display: block;
    font-size: 20px;
    font-weight: 750;
    margin-top: 5px;
}

.compact-head {
    align-items: center;
    margin-bottom: 12px;
}

.compact-head span {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.mini-weekdays,
.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.mini-weekdays span {
    color: #687083;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 0;
    text-transform: uppercase;
}

.mini-calendar-grid a,
.mini-calendar-grid span {
    align-items: center;
    border-radius: 10px;
    color: #111827;
    display: flex;
    font-size: 13px;
    height: 39px;
    justify-content: center;
    position: relative;
}

.mini-calendar-grid a.has-event::after {
    background: #f00562;
    border-radius: 999px;
    bottom: 4px;
    content: "";
    height: 5px;
    position: absolute;
    width: 5px;
}

.mini-calendar-grid a.today {
    background: linear-gradient(135deg, #f00562, #f23568);
    color: #fff;
}

.mini-calendar-grid a:hover {
    background: #ffe5f0;
    color: #f00562;
}

.calendar-legend {
    display: flex;
    gap: 18px;
    margin-top: 16px;
}

.calendar-legend span {
    align-items: center;
    color: #687083;
    display: flex;
    font-size: 12px;
    gap: 8px;
}

.calendar-legend i {
    background: #f00562;
    border-radius: 999px;
    height: 8px;
    width: 8px;
}

.calendar-legend i.outline {
    background: transparent;
    border: 2px solid #f00562;
}

.recent-list {
    display: grid;
    gap: 12px;
}

.recent-list a {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px 1fr auto;
    padding: 14px;
}

.recent-list strong {
    display: block;
    font-weight: 700;
}

.recent-list span {
    color: #687083;
    display: block;
    font-size: 13px;
    margin-top: 2px;
}

.reservation-steps {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 28px;
}

.reservation-steps span {
    align-items: center;
    color: #8a91a3;
    display: flex;
    font-size: 13px;
    gap: 8px;
}

.reservation-steps span::before {
    align-items: center;
    background: #eef1f6;
    border-radius: 999px;
    content: "";
    display: inline-flex;
    height: 10px;
    width: 10px;
}

.reservation-steps .done::before {
    background: #71c58c;
}

.reservation-steps .active {
    color: #f00562;
    font-weight: 700;
}

.reservation-steps .active::before {
    background: #f00562;
    box-shadow: 0 0 0 6px #ffe5f0;
}

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

.plan-manage-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
}

.plan-icon {
    align-items: center;
    background: #ffe5f0;
    border-radius: 12px;
    color: #f00562;
    display: flex;
    font-weight: 750;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.plan-manage-card h3 {
    font-size: 18px;
    margin: 16px 0 4px;
}

.plan-manage-card > strong {
    display: block;
    font-size: 22px;
    font-weight: 750;
}

.plan-manage-card p,
.plan-manage-card span {
    color: #687083;
    display: block;
    font-size: 13px;
    margin: 6px 0;
}

.plan-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.subsection-title {
    font-size: 16px;
    margin: 28px 0 12px;
}

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

.inactive-plans a {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    padding: 14px;
}

.inactive-plans span {
    color: #687083;
    font-size: 13px;
}

.date-filter {
    display: flex;
    gap: 10px;
}

.date-filter input {
    min-width: 150px;
}

.report-metrics {
    margin: 18px 0 22px;
}

.report-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.25fr 0.75fr;
}

.report-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
}

.report-box h3 {
    font-size: 17px;
    margin: 0 0 18px;
}

.mini-chart {
    align-items: end;
    display: flex;
    gap: 12px;
    min-height: 170px;
}

.mini-chart div {
    align-items: center;
    display: grid;
    flex: 1;
    gap: 8px;
    justify-items: center;
}

.mini-chart i {
    background: linear-gradient(180deg, #f00562, rgba(240, 5, 98, 0.14));
    border-radius: 999px 999px 0 0;
    display: block;
    width: 100%;
}

.mini-chart span,
.mini-chart strong {
    color: #687083;
    font-size: 11px;
    font-weight: 600;
}

.table-wrap table {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

tbody tr:hover {
    background: #fff7fb;
}

.calendar-head,
.calendar-grid {
    max-width: 100%;
}

.calendar-day {
    background: #fff;
    min-height: 136px;
}

.calendar-day:hover {
    background: #fff7fb;
}

.calendar-event {
    background: #fff0f6;
    border-left-color: #f00562;
    color: #111827;
}

@media (max-width: 1180px) {
    .metric-grid,
    .dashboard-grid,
    .summary-grid,
    .plans-card-grid,
    .report-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-side {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    .app-main {
        margin-left: 0;
    }

    .sidebar {
        width: 100%;
    }
}

/* Prototype icon polish */
.page-metrics {
    margin-top: 4px;
}

.compact-metric {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f5;
    box-shadow: 0 14px 34px rgba(16, 20, 37, 0.05);
    display: flex;
    min-height: 104px;
}

.compact-metric .metric-icon {
    border-radius: 12px;
    height: 50px;
    width: 50px;
}

.compact-metric .metric-icon.green {
    background: #e8f8ee;
    color: #20a957;
}

.compact-metric .metric-icon.amber {
    background: #fff2da;
    color: #f39a13;
}

.compact-metric .metric-icon.violet {
    background: #f0e8ff;
    color: #8b45db;
}

.data-panel {
    border-radius: 10px;
    box-shadow: 0 16px 38px rgba(16, 20, 37, 0.055);
}

.data-toolbar,
.data-head {
    background: rgba(255, 255, 255, 0.82);
}

.tabs a,
.modern-table,
.detail-hero p,
.detail-hero span,
.service-grid span,
.service-grid strong,
.info-grid span,
.info-grid strong,
.payment-lines span,
.receipt-item small {
    font-weight: 400;
}

.modern-table th {
    color: #526078;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.modern-table td {
    color: #24304a;
    font-size: 13px;
    font-weight: 400;
}

.modern-table td strong,
.entity-cell strong,
.event-inline strong,
.receipt-item strong,
.activity-list strong {
    color: #101425;
    font-weight: 600;
}

.table-actions a:hover,
.table-actions button:hover,
.icon-button:hover {
    border-color: rgba(240, 5, 98, 0.28);
    color: #f00562;
}

.detail-hero {
    margin-top: 2px;
}

.detail-actions .button {
    box-shadow: none;
}

.event-info-card,
.client-info-card,
.reservation-info-card,
.payment-summary-card,
.activity-card,
.included-row {
    border-radius: 10px;
}

.event-info-card h2,
.client-info-card h2,
.reservation-info-card h2,
.payment-summary-card h2,
.activity-card h2,
.included-row h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.event-photo {
    box-shadow: inset 0 0 0 1px rgba(240, 5, 98, 0.06);
}

.service-grid,
.info-grid {
    margin-top: 18px;
}

.service-grid div,
.info-grid div {
    min-height: 36px;
}

.payment-form {
    border-top: 1px solid #edf0f5;
    margin-top: 18px;
    padding-top: 18px;
}

.payment-form h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.payment-form input[type="file"] {
    background: #fbfcfe;
    font-size: 12.5px;
    padding: 9px;
}

.receipt-link:hover {
    border-color: rgba(240, 5, 98, 0.28);
    color: #f00562;
}

@media (max-width: 1180px) {
    .page-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .page-metrics,
    .service-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .data-toolbar,
    .data-head,
    .clients-filter,
    .reservation-filter,
    .detail-hero,
    .client-summary,
    .event-info-head,
    .detail-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .tabs {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .tabs a.active::after {
        bottom: -2px;
    }

    .search-box {
        min-width: 0;
    }

    .detail-hero h2 {
        align-items: flex-start;
        flex-direction: column;
        font-size: 22px;
        gap: 6px;
    }
}

/* New reservation wizard */
.reservation-wizard {
    display: grid;
    gap: 18px;
}

.wizard-steps {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wizard-steps button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #667085;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 30px 1fr;
    padding: 0;
    position: relative;
    text-align: left;
}

.wizard-steps button::after {
    background: #e8edf4;
    content: "";
    height: 1px;
    left: 36px;
    position: absolute;
    right: -14px;
    top: 15px;
}

.wizard-steps button:last-child::after {
    display: none;
}

.wizard-steps strong {
    align-items: center;
    background: #eef1f6;
    border-radius: 999px;
    color: #667085;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    height: 30px;
    justify-content: center;
    position: relative;
    width: 30px;
    z-index: 1;
}

.wizard-steps span {
    color: #202638;
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.wizard-steps small {
    color: #667085;
    display: block;
    font-size: 11px;
    font-weight: 400;
    margin-top: 3px;
}

.wizard-steps button.active strong {
    background: #f00562;
    color: #fff;
}

.wizard-steps button.done strong {
    background: #75c890;
    color: #fff;
}

.wizard-panel {
    display: none;
    gap: 12px;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
}

.wizard-panel.active {
    display: grid;
}

.wizard-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.wizard-card h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}

.wizard-card p {
    color: #667085;
    font-size: 12.5px;
    margin: 0;
}

.wizard-card-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wizard-search {
    max-width: 360px;
}

.sr-field {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.event-choice-grid {
    display: grid;
    gap: 9px;
}

.event-choice {
    align-items: center;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    color: #111827;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: 24px 70px 1fr auto;
    min-height: 92px;
    padding: 12px 14px;
    text-align: left;
}

.event-choice.selected {
    background: linear-gradient(90deg, #fff6fa, #fff);
    border-color: #f00562;
    box-shadow: inset 0 0 0 1px rgba(240, 5, 98, 0.08);
}

.choice-radio {
    border: 1.5px solid #b8c0ce;
    border-radius: 999px;
    height: 14px;
    width: 14px;
}

.event-choice.selected .choice-radio {
    background: #f00562;
    border-color: #f00562;
    box-shadow: inset 0 0 0 4px #fff;
}

.choice-thumb {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(240, 5, 98, 0.12), rgba(0, 167, 181, 0.08)),
        #fff;
    border: 1px solid #f3e5ee;
    border-radius: 10px;
    color: #f00562;
    display: flex;
    font-weight: 600;
    height: 68px;
    justify-content: center;
    width: 70px;
}

.choice-thumb.large {
    font-size: 22px;
    height: 82px;
    width: 92px;
}

.event-choice strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.event-choice small {
    color: #667085;
    display: block;
    font-size: 11.5px;
    margin-top: 4px;
}

.event-choice em {
    color: #111827;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

.event-choice.selected em {
    color: #f00562;
    font-size: 15px;
}

.event-choice em {
    background: #f6f7fb;
    border-radius: 999px;
    padding: 6px 9px;
}

.event-choice.selected em {
    background: #ffe5f0;
}

.detail-card {
    align-self: start;
}

.detail-head {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.detail-head h2 {
    align-items: center;
    display: flex;
    gap: 8px;
}

.detail-head h2::after {
    background: #ffe5f0;
    border-radius: 999px;
    color: #f00562;
    content: "Plan seleccionado";
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
}

.event-type-control {
    border-bottom: 1px solid #eef1f6;
    display: grid;
    gap: 12px;
    grid-template-columns: 160px;
    margin-bottom: 14px;
    padding-bottom: 16px;
}

.event-type-control label {
    color: #252b3d;
    display: grid;
    font-size: 12px;
    font-weight: 500;
    gap: 8px;
}

.plan-picker {
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 14px;
    padding-bottom: 16px;
}

.plan-picker > span {
    color: #252b3d;
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 9px;
}

.plan-picker > div {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-picker button {
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 8px;
    color: #111827;
    cursor: pointer;
    display: grid;
    gap: 4px;
    min-height: 64px;
    padding: 10px;
    text-align: left;
}

.plan-picker button.selected {
    background: #fff6fa;
    border-color: #f00562;
    box-shadow: inset 0 0 0 1px rgba(240, 5, 98, 0.08);
}

.plan-picker strong {
    font-size: 13px;
    font-weight: 600;
}

.plan-picker small {
    color: #667085;
    font-size: 11px;
}

.detail-list,
.price-box,
.confirm-list {
    display: grid;
    gap: 0;
}

.detail-list p,
.price-box p,
.confirm-list p {
    align-items: center;
    border-bottom: 1px solid #eef1f6;
    display: flex;
    justify-content: space-between;
    min-height: 42px;
}

.detail-list span,
.price-box span,
.confirm-list span {
    color: #667085;
    font-size: 12.5px;
}

.detail-list strong,
.price-box strong,
.confirm-list strong {
    color: #111827;
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
}

.price-box {
    margin-top: 16px;
}

.price-box .total {
    background: linear-gradient(90deg, #fff0f6, #ffe9f1);
    border: 0;
    border-radius: 7px;
    margin-top: 8px;
    padding: 2px 12px;
}

.price-box .total strong,
.payment-total strong {
    color: #f00562;
    font-size: 18px;
}

.wizard-note {
    background: #eef7ff;
    border: 1px solid #d8ebff;
    border-radius: 7px;
    color: #4b627a;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 16px;
    padding: 12px;
}

.wizard-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.date-field-card {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.date-field-card label {
    color: #252b3d;
    display: grid;
    font-size: 12px;
    font-weight: 500;
    gap: 8px;
}

.date-field-card label:has(textarea),
.date-field-card label:has(select),
.payment-card .date-field-card label {
    grid-column: auto;
}

.date-field-card textarea,
.date-field-card label:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.muted-line {
    margin-bottom: 14px !important;
}

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

.time-choice {
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 8px;
    color: #111827;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    min-height: 54px;
}

.time-choice.selected {
    background: #fff3f8;
    border-color: #f00562;
    color: #f00562;
}

.selection-summary {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    display: grid;
    gap: 7px;
    padding: 14px;
}

.selection-summary > strong {
    font-size: 13px;
    font-weight: 600;
}

.client-list-preview {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.client-list-preview button {
    align-items: center;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px 1fr;
    padding: 9px;
    text-align: left;
}

.client-list-preview button:hover {
    background: #fff7fb;
    border-color: #ffd2e4;
}

.client-list-preview span {
    align-items: center;
    background: #ffe5f0;
    border-radius: 999px;
    color: #f00562;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    grid-row: span 2;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.client-list-preview strong {
    font-size: 13px;
    font-weight: 600;
}

.client-list-preview small {
    color: #667085;
    font-size: 11.5px;
}

.confirm-list p {
    align-items: flex-start;
    display: grid;
    gap: 4px;
    justify-content: stretch;
    padding: 14px 0;
}

.confirm-list strong {
    text-align: left;
}

.payment-total {
    align-items: center;
    border-top: 1px solid #eef1f6;
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
}

.payment-total span {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 1180px) {
    .wizard-panel.active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .wizard-steps {
        grid-template-columns: 1fr;
    }

    .wizard-steps button::after {
        display: none;
    }

    .wizard-card-head,
    .wizard-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wizard-search,
    .wizard-actions .button {
        max-width: none;
        width: 100%;
    }

    .event-choice,
    .date-field-card,
    .time-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dashboard-top {
        margin-bottom: 10px;
    }

    .metric-grid,
    .dashboard-grid,
    .dashboard-side,
    .summary-grid,
    .plans-card-grid,
    .inactive-plans,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .date-filter,
    .reservation-steps {
        grid-template-columns: 1fr;
    }

    .date-filter {
        display: grid;
    }

    .rich-event,
    .recent-list a {
        grid-template-columns: 1fr;
    }

    .event-side {
        align-items: start;
        justify-items: start;
    }
}

/* Iconic data screens */
.ui-icon {
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.button .ui-icon {
    height: 16px;
    margin-right: 8px;
    width: 16px;
}

.page-metrics {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.compact-metric {
    min-height: 96px;
}

.compact-metric .metric-icon {
    color: #f00562;
}

.compact-metric .metric-icon .ui-icon {
    height: 25px;
    width: 25px;
}

.compact-metric strong {
    font-size: 24px;
    font-weight: 650;
}

.compact-metric span {
    color: #667085;
    font-size: 13px;
}

.data-panel {
    padding: 0;
    overflow: hidden;
}

.data-head,
.data-toolbar {
    align-items: center;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 20px;
}

.data-toolbar {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr auto;
}

.tabs {
    align-items: center;
    display: flex;
    gap: 22px;
}

.tabs a {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    padding: 13px 0;
    position: relative;
}

.tabs a.active {
    color: #f00562;
}

.tabs a.active::after {
    background: #f00562;
    bottom: -21px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.clients-filter,
.reservation-filter {
    align-items: center;
    display: flex;
    gap: 12px;
    margin: 0;
}

.clients-filter {
    flex: 1;
}

.reservation-filter {
    justify-content: end;
}

.search-box {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 8px;
    color: #667085;
    display: flex;
    gap: 9px;
    min-width: min(520px, 100%);
    padding: 0 12px;
}

.search-box input {
    border: 0;
    box-shadow: none;
    min-height: 42px;
    padding-left: 0;
}

.search-box input:focus {
    box-shadow: none;
}

.modern-table-wrap {
    overflow-x: auto;
    padding: 0 20px 20px;
}

.modern-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
}

.modern-table th,
.modern-table td {
    border-bottom: 1px solid #edf0f5;
    padding: 16px 12px;
    vertical-align: middle;
}

.modern-table tbody tr {
    cursor: default;
}

.modern-table tbody tr:hover {
    background: #fffafd;
}

.modern-table small {
    color: #667085;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.entity-cell {
    align-items: center;
    display: inline-grid;
    gap: 10px;
    grid-template-columns: 42px 1fr;
}

.avatar {
    align-items: center;
    background: #ffe5f0;
    border-radius: 999px;
    color: #f00562;
    display: inline-flex;
    font-size: 13px;
    font-weight: 650;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.avatar.large {
    font-size: 22px;
    height: 68px;
    width: 68px;
}

.event-inline {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 48px 1fr;
}

.event-thumb,
.event-photo {
    align-items: center;
    background: linear-gradient(135deg, rgba(240, 5, 98, 0.13), rgba(0, 167, 181, 0.08));
    border-radius: 8px;
    color: #f00562;
    display: inline-flex;
    font-weight: 650;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.event-photo {
    font-size: 30px;
    height: 108px;
    width: 118px;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions a,
.table-actions button,
.icon-button {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 7px;
    color: #344054;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    width: 36px;
}

.reservation-detail-page {
    display: grid;
    gap: 20px;
}

.detail-hero {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr auto;
}

.detail-hero > div > span,
.detail-hero p {
    color: #667085;
    font-size: 13px;
    margin: 4px 0 0;
}

.detail-hero h2 {
    align-items: center;
    display: flex;
    gap: 10px;
    font-size: 26px;
    font-weight: 650;
    margin: 0;
}

.detail-actions {
    display: flex;
    gap: 10px;
}

.detail-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

.detail-main,
.detail-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.event-info-head {
    display: flex;
    gap: 18px;
    margin: 18px 0;
}

.event-info-head h3,
.client-summary h3 {
    font-size: 18px;
    font-weight: 650;
    margin: 0 0 5px;
}

.service-grid,
.info-grid {
    display: grid;
    gap: 16px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid div,
.info-grid div {
    display: grid;
    gap: 3px 10px;
    grid-template-columns: 22px 1fr;
}

.service-grid .ui-icon,
.info-grid .ui-icon {
    color: #f00562;
    grid-row: span 2;
}

.service-grid span,
.info-grid span {
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.service-grid strong,
.info-grid strong {
    color: #667085;
    font-size: 13px;
    font-weight: 450;
}

.client-summary {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr auto;
}

.client-summary p {
    align-items: center;
    color: #667085;
    display: flex;
    gap: 7px;
    margin: 4px 0;
}

.included-row div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.included-row span {
    align-items: center;
    background: #ffeaf3;
    border-radius: 999px;
    color: #ba004b;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    padding: 7px 10px;
}

.included-row .ui-icon {
    height: 14px;
    width: 14px;
}

.payment-lines {
    display: grid;
    gap: 0;
    margin-top: 14px;
}

.payment-lines p {
    align-items: center;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    justify-content: space-between;
    margin: 0;
    min-height: 42px;
}

.payment-lines span {
    color: #667085;
}

.payment-lines .total strong {
    color: #f00562;
    font-size: 23px;
}

.receipt-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.receipt-item {
    align-items: start;
    background: #effaf4;
    border: 1px solid #d6f1df;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 26px 1fr;
    padding: 12px;
}

.receipt-item > span {
    align-items: center;
    background: #22a35a;
    border-radius: 999px;
    color: #fff;
    display: flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.receipt-item .ui-icon {
    height: 14px;
    width: 14px;
}

.receipt-item small {
    color: #667085;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.receipt-link {
    align-items: center;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 7px;
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 10px;
    min-height: 36px;
}

.activity-list {
    display: grid;
    gap: 14px;
}

.activity-list div {
    display: grid;
    gap: 4px 12px;
    grid-template-columns: 42px 1fr;
}

.activity-list span {
    align-items: center;
    background: #e6f8f1;
    border-radius: 999px;
    color: #0f9f6e;
    display: flex;
    grid-row: span 2;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.activity-list small {
    color: #667085;
}

@media (max-width: 1180px) {
    .page-metrics,
    .detail-layout {
        grid-template-columns: 1fr 1fr;
    }

    .detail-side {
        grid-column: 1 / -1;
    }
}

/* Prototype refinement pass */
:root {
    --ink: #101425;
    --muted: #667085;
    --line: #edf0f5;
    --bg: #f7f8fb;
    --shadow: 0 16px 36px rgba(16, 20, 37, 0.055);
}

body {
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}

strong,
b {
    font-weight: 600;
}

h1,
h2,
h3,
.topbar h1,
.panel-head h2,
.dashboard-hero h2,
.auth-brand h1,
.brand strong {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0;
}

.sidebar {
    background: linear-gradient(180deg, #101727 0%, #0b1220 100%);
    padding: 22px 14px;
    width: 242px;
}

.app-main {
    margin-left: 242px;
    padding: 26px 30px 38px;
}

.brand {
    padding: 0 4px;
}

.brand-mark {
    border-radius: 9px;
    box-shadow: 0 12px 24px rgba(240, 5, 98, 0.2);
    font-size: 15px;
    font-weight: 650;
    height: 42px;
    width: 42px;
}

.brand strong {
    font-size: 17px;
}

.brand span {
    font-size: 12px;
    font-weight: 500;
}

.sidebar nav {
    gap: 7px;
    margin-top: 34px;
}

.sidebar nav a,
.sidebar-footer a {
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
}

.sidebar nav a {
    gap: 11px;
    min-height: 42px;
    padding: 10px 12px;
}

.sidebar nav a.active {
    background: linear-gradient(135deg, #ef0a62, #ff3e68);
    box-shadow: 0 12px 22px rgba(240, 5, 98, 0.24);
    color: #fff;
}

.sidebar nav .primary-link {
    font-size: 13px;
    font-weight: 600;
    margin-top: 20px;
    min-height: 44px;
}

.sidebar-footer {
    padding: 18px 4px 0;
}

.sidebar-footer span {
    font-size: 12px;
}

.nav-icon {
    border: 1.7px solid currentColor;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.82);
    flex: 0 0 auto;
    height: 18px;
    position: relative;
    width: 18px;
}

.sidebar nav a span.nav-icon {
    display: inline-block;
    font-size: 0;
    width: 18px;
}

.icon-panel::before,
.icon-panel::after,
.icon-reservas::before,
.icon-calendar::before,
.icon-calendar::after,
.icon-clientes::before,
.icon-clientes::after,
.icon-planes::before,
.icon-reportes::before,
.icon-reportes::after {
    content: "";
    position: absolute;
}

.icon-panel::before {
    border-left: 1.7px solid currentColor;
    border-top: 1.7px solid currentColor;
    height: 7px;
    left: 4px;
    top: 4px;
    transform: rotate(45deg);
    width: 7px;
}

.icon-panel::after {
    border-left: 1.7px solid currentColor;
    border-right: 1.7px solid currentColor;
    bottom: 3px;
    height: 6px;
    left: 5px;
    width: 5px;
}

.icon-calendar::before {
    border-top: 1.7px solid currentColor;
    left: 2px;
    right: 2px;
    top: 5px;
}

.icon-calendar::after {
    background: currentColor;
    border-radius: 999px;
    height: 3px;
    left: 4px;
    top: 10px;
    width: 3px;
}

.icon-reservas::before {
    border-top: 1.7px solid currentColor;
    box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
    left: 4px;
    right: 4px;
    top: 5px;
}

.icon-clientes {
    border-radius: 999px;
}

.icon-clientes::before {
    border: 1.7px solid currentColor;
    border-radius: 999px;
    height: 5px;
    left: 5px;
    top: 3px;
    width: 5px;
}

.icon-clientes::after {
    border-top: 1.7px solid currentColor;
    border-radius: 999px;
    bottom: 4px;
    height: 4px;
    left: 3px;
    width: 10px;
}

.icon-planes::before {
    background: currentColor;
    border-radius: 2px;
    box-shadow: 5px 0 0 currentColor, 10px 0 0 currentColor;
    height: 8px;
    left: 2px;
    top: 5px;
    width: 3px;
}

.icon-reportes::before {
    background: currentColor;
    bottom: 3px;
    box-shadow: 5px -4px 0 currentColor, 10px -8px 0 currentColor;
    height: 6px;
    left: 3px;
    width: 3px;
}

.icon-reportes::after {
    border-top: 1.7px solid currentColor;
    bottom: 2px;
    left: 2px;
    right: 2px;
}

.button {
    border-radius: 7px;
    box-shadow: 0 10px 20px rgba(240, 5, 98, 0.14);
    font-size: 13px;
    font-weight: 600;
    min-height: 40px;
    padding: 10px 15px;
}

.button.secondary {
    box-shadow: none;
    font-weight: 500;
}

.topbar {
    margin-bottom: 22px;
}

.topbar h1 {
    font-size: 23px;
    line-height: 1.15;
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.topbar-subtitle {
    color: #667085;
    font-size: 12.5px;
    margin: 5px 0 0;
}

.panel,
.auth-card,
.stat-card,
.soft-panel,
.metric-card,
.report-box,
.plan-manage-card,
.inactive-plans a,
.recent-list a {
    border-color: var(--line);
    border-radius: 9px;
    box-shadow: var(--shadow);
}

.panel,
.soft-panel {
    padding: 20px;
}

.panel-head {
    margin-bottom: 18px;
}

.panel-head h2 {
    font-size: 18px;
}

.panel-head p,
.dashboard-hero span,
.metric-card span,
.metric-card small,
.recent-list span,
.money-summary span,
.summary-row span,
.plan-manage-card p,
.plan-manage-card span {
    color: #667085;
    font-size: 12.5px;
    font-weight: 400;
}

.dashboard-top {
    margin-bottom: -14px;
}

.dashboard-hero {
    margin-bottom: 20px;
    padding-top: 4px;
}

.dashboard-hero .hello {
    font-size: 14px;
    font-weight: 520;
}

.dashboard-hero h2 {
    font-size: 26px;
    line-height: 1.18;
}

.metric-grid {
    gap: 16px;
}

.metric-card {
    gap: 16px;
    min-height: 108px;
    padding: 19px;
}

.metric-icon {
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    height: 48px;
    width: 48px;
}

.metric-card strong {
    font-size: 23px;
    font-weight: 620;
}

.dashboard-grid,
.dashboard-main,
.dashboard-side {
    gap: 18px;
}

.rich-event {
    grid-template-columns: 58px 48px 1fr auto;
    min-height: 84px;
}

.event-date {
    border-radius: 8px;
}

.event-date strong {
    font-size: 24px;
    font-weight: 620;
}

.event-date span,
.event-meta,
.calendar-legend span {
    font-size: 12px;
}

.client-avatar {
    font-weight: 600;
    height: 48px;
    width: 48px;
}

.client-avatar.small {
    height: 40px;
    width: 40px;
}

.event-side small,
.recent-list small,
.status {
    font-size: 11.5px;
    font-weight: 600;
}

.center-action a {
    font-size: 13px;
    font-weight: 600;
}

.summary-row strong,
.recent-list strong,
.compact-head span {
    font-weight: 600;
}

.money-summary strong {
    font-size: 18px;
    font-weight: 600;
}

.mini-weekdays span {
    font-size: 10.5px;
    font-weight: 600;
}

.mini-calendar-grid a,
.mini-calendar-grid span {
    border-radius: 8px;
    font-size: 12.5px;
    height: 34px;
}

.reservation-steps {
    margin-bottom: 22px;
}

.reservation-steps span {
    font-size: 12px;
}

.reservation-steps .active {
    font-weight: 600;
}

label {
    color: #202638;
    font-size: 12.5px;
    font-weight: 600;
}

input,
select,
textarea {
    border-color: #e7ebf2;
    border-radius: 7px;
    color: #111827;
    font-size: 13px;
    font-weight: 400;
    min-height: 39px;
}

input::placeholder,
textarea::placeholder {
    color: #98a2b3;
    font-weight: 400;
}

.form-grid {
    gap: 15px;
}

.form {
    display: grid;
    gap: 18px;
}

.form-section {
    border-bottom-color: #eef1f6;
    margin-bottom: 0;
    padding-bottom: 18px;
}

.form-section h2 {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 15px;
}

.form label {
    color: #252b3d;
    font-size: 12px;
    font-weight: 500;
    gap: 8px;
    letter-spacing: 0.02em;
}

.form-actions {
    margin-top: 2px;
}

.table-wrap {
    border-radius: 9px;
}

.table-wrap table {
    border-radius: 9px;
    font-size: 13px;
}

th {
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

td {
    color: #202638;
    font-weight: 400;
}

td strong {
    font-weight: 600;
}

td span {
    color: #667085;
    font-size: 12px;
}

td,
th {
    padding: 12px 14px;
}

.calendar-head {
    padding: 16px 18px;
}

.calendar-head h2 {
    font-size: 18px;
    font-weight: 600;
}

.calendar-day {
    min-height: 118px;
    padding: 8px;
}

.day-number span {
    font-size: 12.5px;
    font-weight: 500;
}

.calendar-event {
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 500;
    padding: 6px 7px;
}

.calendar-event strong {
    font-weight: 600;
}

.plan-manage-card {
    padding: 18px;
}

.plan-icon {
    border-radius: 10px;
    font-weight: 600;
    height: 42px;
    width: 42px;
}

.plan-manage-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 14px;
}

.plan-manage-card > strong {
    font-size: 18px;
    font-weight: 600;
}

.report-box h3,
.subsection-title {
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 980px) {
    .app-main {
        margin-left: 0;
    }

    .sidebar {
        width: 100%;
    }
}
