      :root {
        --teal-50: #f0fdfa;
        --teal-100: #ccfbf1;
        --teal-200: #99f6e4;
        --teal-300: #5eead4;
        --teal-400: #2dd4bf;
        --teal-500: #14b8a6;
        --teal-600: #0d9488;
        --teal-700: #0f766e;
        --teal-800: #115e59;
        --teal-900: #134e4a;
        --slate-50: #f8fafc;
        --slate-100: #f1f5f9;
        --slate-200: #e2e8f0;
        --slate-300: #cbd5e1;
        --slate-400: #94a3b8;
        --slate-500: #64748b;
        --slate-600: #475569;
        --slate-700: #334155;
        --slate-800: #1e293b;
        --slate-900: #0f172a;
        --rose-400: #fb7185;
        --rose-500: #f43f5e;
        --amber-400: #fbbf24;
        --amber-500: #f59e0b;
        --violet-400: #a78bfa;
        --violet-500: #8b5cf6;
        --sky-400: #38bdf8;
        --sky-500: #0ea5e9;
        --emerald-400: #34d399;
        --emerald-500: #10b981;
        --orange-400: #fb923c;
        --orange-500: #f97316;
        --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
        --shadow-md:
          0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
        --shadow-lg:
          0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
        --shadow-xl:
          0 20px 60px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(15, 23, 42, 0.06);
        --radius: 10px;
        --radius-lg: 16px;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family:
          "DM Sans",
          -apple-system,
          sans-serif;
        background: var(--slate-100);
        color: var(--slate-800);
        min-height: 100vh;
        overflow-x: hidden;
      }

      /* ─── Subtle background texture ─── */
      body::before {
        content: "";
        position: fixed;
        inset: 0;
        background:
          radial-gradient(
            ellipse at 20% 0%,
            rgba(20, 184, 166, 0.06) 0%,
            transparent 50%
          ),
          radial-gradient(
            ellipse at 80% 100%,
            rgba(139, 92, 246, 0.04) 0%,
            transparent 50%
          );
        pointer-events: none;
        z-index: 0;
      }

      /* ─── Header ─── */
      .app-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(20px) saturate(1.4);
        -webkit-backdrop-filter: blur(20px) saturate(1.4);
        border-bottom: 1px solid rgba(226, 232, 240, 0.6);
        padding: 0 2rem;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

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

      .brand-icon {
        width: 38px;
        height: 38px;
        background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
        position: relative;
        overflow: hidden;
      }

      .brand-icon::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
          135deg,
          transparent 40%,
          rgba(255, 255, 255, 0.12) 50%,
          transparent 60%
        );
      }

      .brand-icon svg {
        width: 20px;
        height: 20px;
        fill: white;
        position: relative;
        z-index: 1;
      }

      .brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1;
      }

      .brand-name {
        font-family: "Playfair Display", serif;
        font-weight: 600;
        font-size: 1.15rem;
        letter-spacing: -0.01em;
        color: var(--slate-900);
      }

      .brand-sub {
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--teal-600);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-top: 3px;
      }

      .header-right {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .office-selector {
        display: flex;
        background: var(--slate-100);
        border-radius: 8px;
        padding: 3px;
        gap: 2px;
      }

      .office-btn {
        padding: 6px 14px;
        border: none;
        background: transparent;
        border-radius: 6px;
        font-family: "DM Sans", sans-serif;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--slate-500);
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .office-btn.active {
        background: white;
        color: var(--slate-800);
        box-shadow: var(--shadow-sm);
      }

      .office-btn:hover:not(.active) {
        color: var(--slate-700);
      }

      .btn-nueva-cita {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 18px;
        background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
        color: white;
        border: none;
        border-radius: 8px;
        font-family: "DM Sans", sans-serif;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
      }

      .btn-nueva-cita:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
      }

      .btn-nueva-cita:active {
        transform: translateY(0);
      }

      .btn-nueva-cita svg {
        width: 16px;
        height: 16px;
      }

      /* ─── Stats bar ─── */
      .stats-bar {
        position: relative;
        z-index: 1;
        padding: 1rem 2rem;
        display: flex;
        gap: 12px;
        overflow-x: auto;
      }

      .stat-card {
        flex: 1;
        min-width: 160px;
        background: white;
        border-radius: var(--radius);
        padding: 14px 18px;
        box-shadow: var(--shadow-sm);
        border: 1px solid rgba(226, 232, 240, 0.5);
        display: flex;
        align-items: center;
        gap: 14px;
        transition: all 0.2s ease;
      }

      .stat-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
      }

      .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }

      .stat-icon svg {
        width: 20px;
        height: 20px;
      }

      .stat-icon.teal {
        background: var(--teal-50);
      }
      .stat-icon.teal svg {
        fill: var(--teal-600);
      }
      .stat-icon.violet {
        background: #f5f3ff;
      }
      .stat-icon.violet svg {
        fill: var(--violet-500);
      }
      .stat-icon.amber {
        background: #fffbeb;
      }
      .stat-icon.amber svg {
        fill: var(--amber-500);
      }
      .stat-icon.rose {
        background: #fff1f2;
      }
      .stat-icon.rose svg {
        fill: var(--rose-500);
      }

      .stat-info {
        display: flex;
        flex-direction: column;
      }
      .stat-value {
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--slate-900);
        line-height: 1;
      }
      .stat-label {
        font-size: 0.72rem;
        color: var(--slate-400);
        font-weight: 500;
        margin-top: 3px;
      }

      /* ─── Calendar container ─── */
      .calendar-wrapper {
        position: relative;
        z-index: 1;
        padding: 0 2rem 2rem;
      }

      .calendar-card {
        background: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(226, 232, 240, 0.5);
        overflow: hidden;
      }

      /* ─── FullCalendar overrides ─── */
      .fc {
        font-family:
          "DM Sans",
          -apple-system,
          sans-serif;
      }

      .fc .fc-toolbar {
        padding: 16px 20px 12px;
        margin-bottom: 0;
      }

      .fc .fc-toolbar-title {
        font-family: "Playfair Display", serif;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--slate-800);
        text-transform: capitalize;
      }

      .fc .fc-button {
        background: var(--slate-100);
        border: 1px solid var(--slate-200);
        color: var(--slate-600);
        font-family: "DM Sans", sans-serif;
        font-size: 0.78rem;
        font-weight: 500;
        padding: 6px 14px;
        border-radius: 7px;
        transition: all 0.15s ease;
        box-shadow: none;
        text-transform: capitalize;
      }

      .fc .fc-button:hover {
        background: var(--slate-200);
        border-color: var(--slate-300);
        color: var(--slate-800);
      }

      .fc .fc-button-active,
      .fc .fc-button:active {
        background: var(--teal-600) !important;
        border-color: var(--teal-600) !important;
        color: white !important;
        box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3) !important;
      }

      .fc .fc-button-primary:not(:disabled).fc-button-active:focus,
      .fc .fc-button-primary:not(:disabled):active:focus {
        box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3) !important;
      }

      .fc .fc-button:focus {
        box-shadow: none;
      }

      .fc .fc-prev-button,
      .fc .fc-next-button {
        padding: 6px 10px;
      }

      .fc .fc-today-button {
        text-transform: capitalize;
      }

      .fc .fc-today-button:disabled {
        opacity: 0.4;
      }

      .fc .fc-col-header-cell {
        padding: 10px 0;
        background: var(--slate-50);
        border-color: var(--slate-200);
      }

      .fc .fc-col-header-cell-cushion {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--slate-500);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        text-decoration: none;
      }

      .fc .fc-timegrid-slot {
        height: 48px;
        border-color: var(--slate-100);
      }

      .fc .fc-timegrid-slot-label-cushion {
        font-size: 0.72rem;
        color: var(--slate-400);
        font-weight: 500;
      }

      .fc td,
      .fc th {
        border-color: var(--slate-150, #e8ecf2);
      }

      .fc .fc-timegrid-now-indicator-line {
        border-color: var(--rose-500);
        border-width: 2px;
      }

      .fc .fc-timegrid-now-indicator-arrow {
        border-color: var(--rose-500);
        border-top-color: transparent;
        border-bottom-color: transparent;
      }

      .fc .fc-day-today {
        background: rgba(20, 184, 166, 0.03) !important;
      }

      .fc .fc-highlight {
        background: rgba(20, 184, 166, 0.08);
        border: 2px dashed var(--teal-300);
        border-radius: 6px;
      }

      .fc .fc-scrollgrid {
        border-color: var(--slate-200);
      }

      .fc .fc-scrollgrid-section > * {
        border-color: var(--slate-200);
      }

      /* ─── Event styles ─── */
      .fc .fc-event {
        border: none;
        border-radius: 6px;
        padding: 3px 8px;
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.15s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        border-left: 3px solid rgba(0, 0, 0, 0.15);
      }

      .fc .fc-event:hover {
        transform: scale(1.01);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
        z-index: 10 !important;
      }

      .fc .fc-event .fc-event-main {
        overflow: hidden;
      }

      .fc-event-title-custom {
        font-weight: 600;
        font-size: 0.73rem;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .fc-event-service-custom {
        font-size: 0.65rem;
        opacity: 0.85;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .fc-event-doctor-custom {
        font-size: 0.62rem;
        opacity: 0.7;
        font-weight: 400;
        margin-top: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      /* ─── Modal overlay ─── */
      .modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        opacity: 0;
        transition: opacity 0.2s ease;
      }

      .modal-overlay.active {
        display: flex;
        opacity: 1;
      }

      .modal {
        background: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        width: 100%;
        max-width: 480px;
        max-height: 90vh;
        overflow-y: auto;
        transform: translateY(10px) scale(0.98);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .modal-overlay.active .modal {
        transform: translateY(0) scale(1);
      }

      .modal-header {
        padding: 24px 28px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .modal-title {
        font-family: "Playfair Display", serif;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--slate-900);
      }

      .modal-close {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: var(--slate-100);
        border-radius: 8px;
        cursor: pointer;
        color: var(--slate-500);
        transition: all 0.15s ease;
      }

      .modal-close:hover {
        background: var(--slate-200);
        color: var(--slate-700);
      }

      .modal-close svg {
        width: 16px;
        height: 16px;
      }

      .modal-body {
        padding: 20px 28px 28px;
      }

      .form-row {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
      }

      .form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        position: relative;
      }

      .autocomplete-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        background: white;
        border: 1.5px solid var(--slate-200);
        border-top: none;
        border-radius: 0 0 8px 8px;
        max-height: 180px;
        overflow-y: auto;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        display: none;
      }

      .autocomplete-list.visible {
        display: block;
      }

      .autocomplete-item {
        padding: 9px 14px;
        cursor: pointer;
        transition: background 0.1s;
      }

      .autocomplete-item:hover,
      .autocomplete-item.active {
        background: var(--teal-50);
      }

      .autocomplete-item-name {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--slate-800);
      }

      .autocomplete-item-phone {
        font-size: 0.72rem;
        color: var(--slate-400);
      }

      .form-group.full {
        width: 100%;
      }

      .form-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--slate-500);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 6px;
      }

      .form-input,
      .form-select {
        padding: 10px 14px;
        border: 1.5px solid var(--slate-200);
        border-radius: 8px;
        font-family: "DM Sans", sans-serif;
        font-size: 0.88rem;
        color: var(--slate-800);
        background: white;
        transition: all 0.15s ease;
        outline: none;
        width: 100%;
      }

      .form-input:focus,
      .form-select:focus {
        border-color: var(--teal-400);
        box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
      }

      .form-input::placeholder {
        color: var(--slate-300);
      }

      .form-select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
      }

      .datetime-display {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: var(--teal-50);
        border: 1.5px solid var(--teal-100);
        border-radius: 8px;
        margin-bottom: 20px;
      }

      .datetime-display svg {
        width: 18px;
        height: 18px;
        fill: var(--teal-600);
        flex-shrink: 0;
      }

      .datetime-text {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--teal-800);
      }

      .modal-actions {
        display: flex;
        gap: 10px;
        margin-top: 24px;
      }

      .modal > .modal-actions {
        padding: 0 28px 24px;
      }

      .btn {
        flex: 1;
        padding: 11px 20px;
        border: none;
        border-radius: 8px;
        font-family: "DM Sans", sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        text-align: center;
      }

      .btn-cancel {
        flex: 1;
        padding: 11px 20px;
        border: none;
        border-radius: 10px;
        font-family: "DM Sans", sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        background: var(--slate-100);
        color: var(--slate-600);
      }

      .btn-cancel:hover {
        background: var(--slate-200);
      }

      .btn-save {
        flex: 1;
        padding: 11px 20px;
        border: none;
        border-radius: 10px;
        font-family: "DM Sans", sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
        color: white;
        box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
      }

      .btn-save:hover {
        box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
        transform: translateY(-1px);
      }

      .btn-save:active {
        transform: translateY(0);
      }

      .btn-delete {
        flex: none;
        width: 42px;
        padding: 11px 0;
        background: var(--slate-100);
        color: var(--rose-500);
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .btn-delete:hover {
        background: #fff1f2;
      }

      .btn-delete svg {
        width: 17px;
        height: 17px;
      }

      /* ─── Toast notification ─── */
      .toast {
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 2000;
        background: var(--slate-800);
        color: white;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 0.84rem;
        font-weight: 500;
        box-shadow: var(--shadow-lg);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .toast.show {
        transform: translateY(0);
        opacity: 1;
      }

      .toast svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
      }

      /* ─── Logout button (desktop header) ─── */
      .logout-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 16px;
        background: white;
        border: 1px solid var(--slate-200);
        border-radius: 10px;
        color: var(--slate-600);
        font-family: "DM Sans", sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
      }

      .logout-btn:hover {
        background: linear-gradient(135deg, var(--rose-500), var(--rose-400));
        border-color: transparent;
        color: white;
        box-shadow: 0 4px 14px rgba(244, 63, 94, 0.28);
        transform: translateY(-1px);
      }

      .logout-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(244, 63, 94, 0.22);
      }

      .logout-btn svg {
        width: 16px;
        height: 16px;
      }

      /* ─── Hamburger + Drawer ─── */
      .hamburger-btn {
        display: none;
        width: 42px;
        height: 42px;
        background: var(--slate-100);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        color: var(--slate-700);
        transition: background 0.15s;
      }

      .hamburger-btn:hover {
        background: var(--slate-200);
      }

      .hamburger-btn svg {
        width: 22px;
        height: 22px;
      }

      .nav-drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 1090;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
      }

      .nav-drawer-backdrop.active {
        opacity: 1;
        pointer-events: auto;
      }

      .nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100dvh;
        background: white;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1100;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
      }

      .nav-drawer.active {
        transform: translateX(0);
      }

      .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid var(--slate-100);
      }

      .nav-drawer-title {
        font-family: "Playfair Display", serif;
        font-size: 1.05rem;
        color: var(--slate-800);
        font-weight: 600;
      }

      .nav-drawer-close {
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--slate-500);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
      }

      .nav-drawer-close:hover {
        background: var(--slate-100);
        color: var(--slate-700);
      }

      .nav-drawer-close svg {
        width: 20px;
        height: 20px;
      }

      .nav-drawer-content {
        display: flex;
        flex-direction: column;
        padding: 12px;
      }

      .nav-drawer-label {
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--slate-500);
        padding: 14px 12px 6px;
      }

      .nav-drawer-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border-radius: 10px;
        color: var(--slate-700);
        text-decoration: none;
        font-family: "DM Sans", sans-serif;
        font-size: 0.95rem;
        font-weight: 500;
        background: transparent;
        border: none;
        cursor: pointer;
        text-align: left;
        transition: background 0.15s;
        width: 100%;
      }

      .nav-drawer-item:hover {
        background: var(--slate-100);
      }

      .nav-drawer-item.active {
        background: var(--teal-50);
        color: var(--teal-700);
      }

      .nav-drawer-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
      }

      /* ─── Responsive ─── */
      @media (max-width: 768px) {
        .app-header {
          padding: 0 1rem;
          height: 56px;
        }

        .brand-name {
          font-size: 1rem;
        }
        .brand-sub {
          display: none;
        }

        .stats-bar {
          padding: 0.75rem 1rem;
          gap: 8px;
        }

        .stat-card {
          min-width: 130px;
          padding: 10px 14px;
        }

        .stat-value {
          font-size: 1.1rem;
        }

        .calendar-wrapper {
          padding: 0 1rem 1rem;
        }

        .fc .fc-toolbar {
          flex-direction: column;
          gap: 8px;
          padding: 12px 12px 8px;
        }

        .fc .fc-toolbar-title {
          font-size: 1rem;
        }

        .modal-header {
          padding: 20px 20px 0;
        }
        .modal-body {
          padding: 16px 20px 24px;
        }
        .modal > .modal-actions {
          padding: 0 20px 20px;
        }

        .form-row {
          flex-direction: column;
          gap: 16px;
        }

        .office-selector {
          display: none;
        }

        .hamburger-btn {
          display: inline-flex;
        }

        .header-right .btn-nueva-cita:not(.primary-action) {
          display: none;
        }

        .logout-btn {
          display: none;
        }

        .header-right {
          gap: 8px;
        }
      }

      /* ─── Loading animation ─── */
      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(12px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .stats-bar .stat-card {
        animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
      }

      .stats-bar .stat-card:nth-child(1) {
        animation-delay: 0.05s;
      }
      .stats-bar .stat-card:nth-child(2) {
        animation-delay: 0.1s;
      }
      .stats-bar .stat-card:nth-child(3) {
        animation-delay: 0.15s;
      }
      .stats-bar .stat-card:nth-child(4) {
        animation-delay: 0.2s;
      }

      .calendar-card {
        animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
      }
