:root {
  --vc-ink: #302942;
  --vc-plum: #5b4669;
  --vc-lavender: #8a679c;
  --vc-mauve: #c27aa9;
  --vc-mauve-dark: #a96598;
  --vc-blush: #fff7fb;
  --vc-blush-strong: #f7e8f1;
  --vc-panel: rgba(255, 255, 255, .9);
  --vc-line: rgba(132, 86, 128, .16);
  --vc-muted: #746a78;
  --vc-soft: #fdf3f8;
  --vc-success-bg: #e9f6ef;
  --vc-success: #32765b;
  --vc-warning-bg: #fff2da;
  --vc-warning: #8d681c;
  --vc-danger-bg: #fbe9ea;
  --vc-danger: #a04650;
  --vc-shadow: 0 24px 70px rgba(74, 45, 82, .10);
  --vc-card-shadow: 0 18px 45px rgba(73, 45, 80, .07);
  --vc-radius: 16px;
  --vc-script-font: "Lobster Two", cursive;
}


/* Plans and manual renewals. */
.vc-plan-warning {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #e4b243;
  border-radius: 8px;
  background: #fff8df;
  color: #4d3a18;
  line-height: 1.5;
}

.vc-plan-warning a {
  color: #7b326b;
  font-weight: 700;
}

.vc-plan-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.vc-plan-summary-grid h2,
.vc-plan-summary-grid p {
  margin-bottom: 8px;
}

.vc-plan-summary-grid > div:last-child {
  text-align: right;
}

.vc-plan-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.vc-plan-status.is-active {
  background: #e8f6ed;
  color: #176b3a;
}

.vc-plan-status.is-expired {
  background: #fff0ee;
  color: #a33232;
}

.vc-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.vc-plan-picker {
  margin: 20px 0 28px;
}

.vc-plan-picker > .vc-muted {
  margin: 10px 0 0;
  text-align: center;
}

.vc-billing-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px;
  border: 1px solid var(--vc-line);
  border-radius: 8px;
  background: #f7f3f6;
}

.vc-billing-toggle button {
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vc-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.vc-billing-toggle button.is-active {
  background: #fff;
  color: var(--vc-ink);
  box-shadow: 0 5px 14px rgba(75, 45, 78, .1);
}

.vc-plan-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--vc-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(75, 45, 78, .08);
}

.vc-plan-card.is-current {
  border-color: #c27aa9;
  box-shadow: 0 14px 34px rgba(194, 122, 169, .14);
}

.vc-plan-card h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.vc-plan-description {
  color: #5f5262;
  font-weight: 850;
  line-height: 1.5;
}

.vc-plan-price {
  margin: 0 0 12px;
  color: #302942;
  font-size: 32px;
  font-weight: 800;
}

.vc-plan-price small {
  font-size: 14px;
}

.vc-plan-card .vc-btn {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.vc-plan-features {
  min-height: 174px;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
}

.vc-plan-features li {
  position: relative;
  margin: 9px 0;
  padding-left: 22px;
  line-height: 1.4;
}

.vc-plan-features li:before {
  position: absolute;
  left: 0;
  color: #6f9638;
  content: "✓";
  font-weight: 900;
}

.vc-plan-upgrade {
  align-self: start;
}

@media (max-width: 980px) {
  .vc-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vc-plan-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vc-plan-summary-grid > div:last-child {
    text-align: left;
  }

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

  .vc-billing-toggle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .vc-plan-features {
    min-height: 0;
  }

  .vc-plan-price {
    font-size: 28px;
  }
}

.vc-login-screen,
.vc-app-shell,
.vc-auth-required {
  box-sizing: border-box;
  color: var(--vc-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.vc-login-screen *,
.vc-app-shell *,
.vc-auth-required * {
  box-sizing: border-box;
}

.vc-login-screen a,
.vc-app-shell a,
.vc-auth-required a {
  text-decoration: none !important;
}

.vc-login-screen img,
.vc-app-shell img,
.vc-auth-required img {
  height: auto;
  max-width: 100%;
}

.vc-app-shell button,
.vc-app-shell input,
.vc-app-shell select,
.vc-app-shell textarea,
.vc-login-screen button,
.vc-login-screen input,
.vc-login-screen select,
.vc-login-screen textarea {
  font-family: inherit;
  max-width: 100%;
  min-width: 0;
}

.vc-app-main,
.vc-panel,
.vc-stat,
.vc-profile-header,
.vc-front-form,
.vc-table-wrap,
.vc-calendar-grid,
.vc-calendar-day,
.vc-calendar-event,
.vc-agenda-card,
.vc-profile-workspace,
.vc-face-diagram {
  min-width: 0;
}

.vc-kicker {
  color: #9d6a97;
  display: block;
  font-family: var(--vc-script-font);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.12;
  margin-bottom: 9px;
  text-transform: none;
}

.vc-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 10px;
  color: var(--vc-ink) !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  gap: 9px;
  justify-content: center;
  max-width: 100%;
  min-height: 42px;
  padding: 0 18px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: normal;
}

.vc-btn:hover {
  border-color: rgba(194, 122, 169, .45);
  box-shadow: 0 12px 28px rgba(74, 45, 82, .09);
  transform: translateY(-1px);
}

.vc-btn-primary {
  background: linear-gradient(135deg, var(--vc-mauve), var(--vc-lavender));
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(179, 102, 153, .22);
  color: #fff !important;
}

.vc-text-link {
  color: var(--vc-mauve);
  display: block;
  font-weight: 750;
  margin-top: 18px;
}

.vc-login-screen {
  align-items: center;
  background:
    radial-gradient(circle at 14% 22%, rgba(235, 198, 218, .74), transparent 34%),
    radial-gradient(circle at 76% 48%, rgba(255, 227, 238, .86), transparent 30%),
    linear-gradient(115deg, #fff8fb 0%, #faedf4 52%, #fff 100%);
  display: flex;
  justify-content: center;
  min-height: 78vh;
  overflow: hidden;
  padding: 56px 24px;
  position: relative;
}

.vc-login-screen:before {
  background-image:
    linear-gradient(120deg, transparent 0 72%, rgba(214, 151, 184, .18) 72.4% 72.8%, transparent 73%),
    radial-gradient(circle at 3px 3px, #f2cbdc 1px, transparent 1.8px);
  background-size: 76px 76px, 42px 42px;
  content: "";
  inset: 0;
  opacity: .32;
  position: absolute;
}

.vc-login-screen:after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(232, 138, 170, .25), rgba(255, 255, 255, .5));
  border: 1px solid rgba(195, 124, 153, .22);
  border-radius: 20px 20px 34px 34px;
  bottom: 8%;
  box-shadow: 0 26px 58px rgba(95, 61, 84, .12);
  content: "";
  height: 180px;
  left: calc(50% + 190px);
  opacity: .55;
  position: absolute;
  width: 82px;
}

.vc-login-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(191, 130, 164, .22);
  border-radius: 18px;
  box-shadow: var(--vc-shadow);
  max-width: 100%;
  padding: 36px 34px 32px;
  position: relative;
  text-align: center;
  width: 390px;
  z-index: 1;
}

.vc-brand-mark {
  background: #fff url("visoclinic-logo-mark-web.jpg") center / 70px auto no-repeat;
  border-radius: 50%;
  color: transparent;
  height: 82px;
  margin: 0 auto 12px;
  overflow: hidden;
  width: 82px;
}

.vc-login-card h2 {
  color: var(--vc-ink);
  font: 400 34px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.4px;
  margin: 0 0 12px;
}

.vc-login-card p {
  color: var(--vc-muted);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
  margin: 0 0 22px;
}

.vc-login-card form {
  text-align: left;
}

.vc-login-alert {
  background: var(--vc-danger-bg);
  border: 1px solid rgba(160, 70, 80, .18);
  border-radius: 10px;
  color: var(--vc-danger);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 11px 13px;
  text-align: left;
}

.vc-login-card label {
  color: var(--vc-ink);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin: 12px 0 7px;
}

.vc-login-card input[type="text"],
.vc-login-card input[type="password"] {
  background: #fff;
  border: 1px solid #ead8e2;
  border-radius: 7px;
  color: var(--vc-ink);
  font-size: 14px;
  height: 42px;
  padding: 0 13px;
  width: 100%;
}

.vc-login-card input:focus,
.vc-front-form input:focus,
.vc-front-form select:focus,
.vc-front-form textarea:focus,
.vc-userbox select:focus,
.vc-search input:focus,
.vc-inline input:focus,
.vc-inline select:focus {
  border-color: rgba(194, 122, 169, .72);
  box-shadow: 0 0 0 3px rgba(194, 122, 169, .15);
  outline: 0;
}

.vc-login-card .login-remember label {
  align-items: center;
  color: var(--vc-muted);
  display: flex;
  font-weight: 650;
  gap: 8px;
}

.vc-login-card .button-primary {
  background: linear-gradient(135deg, var(--vc-mauve), var(--vc-lavender)) !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  cursor: pointer;
  font-weight: 850;
  min-height: 43px;
  width: 100%;
}

.vc-login-help {
  font-size: 12px !important;
  margin-top: 20px !important;
}

.vc-auth-required {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
  margin: 60px auto;
  max-width: 620px;
  padding: 48px;
  text-align: center;
}

.vc-auth-required h2 {
  color: var(--vc-ink);
  font: 400 34px Georgia, "Times New Roman", serif;
  margin: 0 0 12px;
}

.vc-auth-required p {
  color: var(--vc-muted);
  margin-bottom: 26px;
}

.vc-app-shell {
  background:
    radial-gradient(circle at 18% 5%, rgba(246, 221, 234, .92), transparent 28%),
    linear-gradient(180deg, #fff9fc 0%, #fff 36%, #fff7fb 100%);
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.vc-app-sidebar {
  background: linear-gradient(180deg, #765892 0%, #b878a4 100%);
  border-right: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 20px 0 55px rgba(73, 45, 80, .08);
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 20px;
  position: sticky;
  top: 0;
}

.vc-app-logo {
  align-items: center;
  color: #fff !important;
  display: grid;
  font: 400 29px/.95 Georgia, "Times New Roman", serif;
  grid-template-columns: 58px 1fr;
  letter-spacing: -.4px;
  margin: 0 8px 34px;
  min-height: 62px;
}

.vc-app-logo:before {
  background: rgba(255, 255, 255, .94) url("visoclinic-logo-mark-web.jpg") center / 50px auto no-repeat;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(55, 34, 66, .16);
  content: "";
  display: block;
  grid-row: 1 / span 2;
  height: 50px;
  margin-right: 10px;
  width: 50px;
}

.vc-app-logo span {
  color: #fff;
}

.vc-app-logo-text {
  display: block;
  grid-column: 2;
}

.vc-app-logo small {
  color: rgba(255, 255, 255, .82);
  display: block;
  font-family: var(--vc-script-font);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
  padding-top: 5px;
  text-transform: none;
}

.vc-app-sidebar nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 6px;
}

.vc-app-sidebar nav a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, .82) !important;
  display: flex;
  font-size: 14px;
  font-weight: 750;
  gap: 11px;
  min-height: 43px;
  padding: 0 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.vc-app-sidebar nav a b {
  color: rgba(255, 255, 255, .85);
  font-size: 17px;
  text-align: center;
  width: 22px;
}

.vc-app-sidebar nav a:hover,
.vc-app-sidebar nav a.is-active {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .14);
  color: #fff !important;
}

.vc-app-sidebar nav a:hover {
  transform: translateX(2px);
}

.vc-app-sidebar nav .vc-sidebar-logout-link {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .14);
  margin-top: 5px;
}

.vc-app-sidebar nav .vc-sidebar-logout-link b {
  font-size: 19px;
}

.vc-sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
  line-height: 1.7;
  margin-top: auto;
  padding: 18px 12px 0;
}

.vc-sidebar-foot a {
  color: #fff !important;
  font-weight: 800;
}

.vc-app-main {
  min-width: 0;
  padding: 0 32px 42px;
}

.vc-app-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 104px;
}

.vc-app-topbar h1 {
  color: var(--vc-ink);
  font: 400 34px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.5px;
  margin: 0;
}

.vc-userbox {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.vc-userbox select {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 9px;
  color: var(--vc-ink);
  height: 42px;
  max-width: min(280px, 100%);
  padding: 0 12px;
}

.vc-clinic-label {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 999px;
  color: var(--vc-muted);
  font-size: 13px;
  font-weight: 750;
  padding: 9px 14px;
}

.vc-avatar {
  background: linear-gradient(135deg, #f4dce9, #fff);
  border: 1px solid rgba(194, 122, 169, .24);
  border-radius: 50%;
  color: var(--vc-mauve-dark);
  display: grid;
  font-weight: 900;
  height: 44px;
  place-items: center;
  width: 44px;
}

.vc-avatar.has-photo {
  background-position: center;
  background-size: cover;
  color: transparent;
}

.vc-topbar-profile {
  align-items: center;
  color: var(--vc-mauve-dark) !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  gap: 8px;
}

.vc-front-notice {
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 22px;
  padding: 14px 17px;
}

.vc-front-notice.is-success {
  background: var(--vc-success-bg);
  color: var(--vc-success);
}

.vc-front-notice.is-error {
  background: var(--vc-danger-bg);
  color: var(--vc-danger);
}

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

.vc-stat,
.vc-panel,
.vc-profile-header,
.vc-auth-required {
  backdrop-filter: blur(12px);
}

.vc-stat {
  background: var(--vc-panel);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-card-shadow);
  display: block;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.vc-stat:after {
  background: radial-gradient(circle, rgba(194, 122, 169, .24), transparent 62%);
  content: "";
  height: 86px;
  position: absolute;
  right: -24px;
  top: -28px;
  width: 86px;
}

.vc-stat span {
  color: #9d6a97;
  display: block;
  font-family: var(--vc-script-font);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.vc-stat strong {
  color: var(--vc-ink);
  display: block;
  font: 400 42px/1 Georgia, "Times New Roman", serif;
  margin-bottom: 10px;
}

.vc-stat small {
  color: var(--vc-mauve);
  font-weight: 850;
}

.vc-panel {
  background: var(--vc-panel);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-card-shadow);
  margin-bottom: 20px;
  padding: 24px;
}

.vc-panel h2 {
  color: var(--vc-ink);
  font: 400 26px/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.2px;
  margin: 0 0 20px;
}

.vc-panel h3 {
  color: var(--vc-ink);
  font-size: 16px;
  margin: 0 0 14px;
}

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

.vc-panel-heading h2 {
  margin: 0;
}

.vc-two-column {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.vc-calendar-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .65fr);
}

.vc-table-wrap {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  overflow-x: auto;
}

.vc-table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
  width: 100%;
}

.vc-table th {
  border-bottom: 1px solid var(--vc-line);
  color: #8f7f90;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  padding: 13px 10px;
  text-align: left;
  text-transform: uppercase;
}

.vc-table td {
  border-bottom: 1px solid #f1e4ec;
  color: var(--vc-ink);
  padding: 14px 10px;
  vertical-align: middle;
}

.vc-table tbody tr:hover td {
  background: rgba(255, 247, 251, .76);
}

.vc-table tbody tr:last-child td {
  border-bottom: 0;
}

.vc-calendar-toolbar {
  align-items: center;
  background: linear-gradient(135deg, #fff, #fff7fb);
  border: 1px solid var(--vc-line);
  border-radius: 13px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.vc-calendar-toolbar a {
  color: var(--vc-mauve);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.vc-calendar-toolbar strong {
  color: var(--vc-ink);
  font: 400 20px/1.1 Georgia, "Times New Roman", serif;
  text-align: center;
}

.vc-calendar-month-nav {
  align-items: center;
  display: grid;
  flex: 1 1 auto;
  gap: 14px;
  grid-template-columns: auto minmax(150px, 1fr) auto;
}

.vc-calendar-jump {
  align-items: end;
  border-left: 1px solid var(--vc-line);
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  grid-template-columns: minmax(145px, 1fr) auto;
  padding-left: 14px;
}

.vc-calendar-jump label {
  color: var(--vc-muted);
  font-size: 11px;
  font-weight: 850;
  grid-column: 1 / -1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vc-calendar-jump input[type="date"] {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 10px;
  color: var(--vc-ink);
  min-height: 42px;
  padding: 8px 10px;
}

.vc-calendar-jump .vc-btn {
  min-height: 42px;
  padding-inline: 14px;
}

.vc-field-help {
  color: var(--vc-muted);
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  margin-top: 6px;
}

.vc-calendar-empty {
  background: #fff7fb;
  border: 1px solid var(--vc-line);
  border-radius: 11px;
  color: var(--vc-muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.vc-calendar-weekdays {
  color: #8f7f90;
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 9px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  letter-spacing: .12em;
  margin: 0 0 8px;
  text-align: center;
  text-transform: uppercase;
}

.vc-calendar-weekdays span {
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(132, 86, 128, .10);
  border-radius: 9px;
  padding: 8px 4px;
}

.vc-calendar-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding-bottom: 4px;
}

.vc-calendar-day {
  background: rgba(255, 255, 255, .86);
  border: 1px solid #f0dfe9;
  border-radius: 13px;
  min-height: 138px;
  padding: 9px;
}

.vc-calendar-day.is-outside-month {
  background: rgba(255, 255, 255, .42);
  opacity: .58;
}

.vc-calendar-day.is-today {
  background: linear-gradient(180deg, #fff, #fff5fa);
  border-color: rgba(194, 122, 169, .55);
  box-shadow: inset 0 0 0 1px rgba(194, 122, 169, .14);
}

.vc-calendar-day header {
  align-items: baseline;
  border-bottom: 1px solid #f1e4ec;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 7px;
}

.vc-calendar-day header span {
  color: #8f7f90;
  font-size: 10px;
  font-weight: 850;
}

.vc-calendar-day header strong {
  color: var(--vc-ink);
  font: 400 19px/1 Georgia, "Times New Roman", serif;
}

.vc-calendar-events {
  display: grid;
  gap: 6px;
}

.vc-calendar-noevent {
  color: #a89aaa;
  font-size: 12px;
  font-weight: 650;
}

.vc-calendar-event {
  background: linear-gradient(135deg, #efd8ed, #f7e8f1);
  border: 1px solid rgba(194, 122, 169, .22);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(73, 45, 80, .06);
  color: var(--vc-ink);
  display: grid;
  gap: 3px;
  padding: 8px;
}

.vc-calendar-event time {
  color: #765b7b;
  font-size: 11px;
  font-weight: 900;
}

.vc-calendar-event strong {
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vc-calendar-event small {
  color: var(--vc-muted);
  font-size: 11px;
  line-height: 1.25;
}

.vc-calendar-status {
  margin-top: 3px;
}

.vc-calendar-status .vc-badge {
  font-size: 10px;
  padding: 4px 7px;
}

.vc-calendar-status-form {
  border-top: 1px solid rgba(132, 86, 128, .12);
  display: grid;
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
}

.vc-calendar-status-form select {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(132, 86, 128, .20);
  border-radius: 8px;
  color: var(--vc-ink);
  font-size: 11px;
  height: 30px;
  padding: 0 7px;
  width: 100%;
}

.vc-calendar-status-form button {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(132, 86, 128, .20);
  border-radius: 8px;
  color: var(--vc-plum);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  height: 30px;
}

.vc-event-confirmada,
.vc-event-atendida {
  background: linear-gradient(135deg, #e9f6ef, #f6fffa);
}

.vc-event-pendiente,
.vc-event-reprogramada {
  background: linear-gradient(135deg, #fff2da, #fff9ed);
}

.vc-event-cancelada,
.vc-event-no_asistio {
  background: linear-gradient(135deg, #fbe9ea, #fff6f7);
}

.vc-badge {
  background: var(--vc-blush-strong);
  border-radius: 999px;
  color: var(--vc-plum);
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  padding: 6px 10px;
  text-transform: capitalize;
}

.vc-status-atendida,
.vc-status-aceptado,
.vc-status-confirmada,
.vc-status-pagado {
  background: var(--vc-success-bg);
  color: var(--vc-success);
}

.vc-status-pendiente,
.vc-status-reprogramada,
.vc-status-pago_parcial {
  background: var(--vc-warning-bg);
  color: var(--vc-warning);
}

.vc-status-cancelada,
.vc-status-revocado,
.vc-status-no_asistio {
  background: var(--vc-danger-bg);
  color: var(--vc-danger);
}

.vc-status-en_atencion {
  background: #e9effd;
  color: #365ea3;
}

.vc-front-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vc-front-form label {
  color: var(--vc-ink);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
}

.vc-front-form input:not([type="file"]),
.vc-front-form select,
.vc-front-form textarea,
.vc-inline select,
.vc-inline input {
  background: #fff;
  border: 1px solid #ead8e2;
  border-radius: 8px;
  color: var(--vc-ink);
  display: block;
  font: 14px Inter, Arial, sans-serif;
  margin-top: 6px;
  padding: 11px 12px;
  width: 100%;
}

.vc-front-form input:not([type="file"]),
.vc-front-form select {
  height: 45px;
}

.vc-front-form input[type="file"] {
  background: var(--vc-blush);
  border: 1px dashed rgba(194, 122, 169, .38);
  border-radius: 10px;
  margin-top: 6px;
  padding: 15px;
  width: 100%;
}

.vc-front-form textarea {
  resize: vertical;
}

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

.vc-inline {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}

.vc-inline select,
.vc-inline input {
  font-size: 12px;
  height: 36px;
  margin-top: 0;
  padding: 7px 8px;
}

.vc-inline button,
.vc-search button {
  background: var(--vc-blush-strong);
  border: 1px solid var(--vc-line);
  border-radius: 8px;
  color: var(--vc-ink);
  cursor: pointer;
  font-weight: 850;
}

.vc-inline button {
  height: 36px;
  padding: 0 10px;
}

.vc-search {
  display: flex;
  gap: 7px;
  min-width: 0;
}

.vc-search input {
  border: 1px solid #ead8e2;
  border-radius: 8px;
  flex: 1 1 190px;
  height: 40px;
  padding: 0 12px;
}

.vc-search button {
  height: 40px;
  padding: 0 13px;
}

.vc-list {
  display: flex;
  flex-direction: column;
}

.vc-list-row,
.vc-consent-row {
  align-items: center;
  border-bottom: 1px solid #f1e4ec;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 15px 0;
}

.vc-list-row:last-child,
.vc-consent-row:last-child {
  border-bottom: 0;
}

.vc-list-row strong,
.vc-consent-row strong {
  color: var(--vc-ink);
}

.vc-list-row small,
.vc-consent-row small {
  color: var(--vc-muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.vc-list-row a {
  color: var(--vc-mauve);
  font-size: 13px;
  font-weight: 850;
  margin-left: 12px;
}

.vc-muted {
  color: var(--vc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.vc-team-count {
  background: linear-gradient(135deg, #fff7fb, #f4dfec);
  border: 1px solid var(--vc-line);
  border-radius: 999px;
  color: var(--vc-mauve);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-width: 118px;
  padding: 9px 14px;
}

.vc-plan-upgrade-inline {
  background: linear-gradient(135deg, #fff, #fff7fb);
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  color: var(--vc-muted);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.vc-plan-upgrade-inline strong {
  color: var(--vc-ink);
}

.vc-plan-upgrade-inline p {
  margin: 0;
}

.vc-team-table-wrap {
  margin-bottom: 18px;
}

.vc-team-table td small {
  color: var(--vc-muted);
  display: block;
  line-height: 1.45;
  margin-top: 5px;
  max-width: 460px;
}

.vc-team-role {
  background: #fff7fb;
  border: 1px solid var(--vc-line);
  border-radius: 999px;
  color: var(--vc-mauve);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.vc-team-form {
  border-top: 1px solid var(--vc-line);
  margin-top: 18px;
  padding-top: 18px;
}

.vc-team-role-notes {
  background: rgba(255, 247, 251, .78);
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 14px;
}

.vc-team-role-notes p {
  color: var(--vc-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.vc-team-role-notes strong {
  color: var(--vc-ink);
}

.vc-team-limit {
  background: #fff7fb;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  margin: 16px 0 0;
  padding: 14px;
}

.vc-profile-header {
  align-items: center;
  background:
    radial-gradient(circle at 96% 10%, rgba(194, 122, 169, .16), transparent 32%),
    rgba(255, 255, 255, .9);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-card-shadow);
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px;
}

.vc-profile-header > a {
  color: var(--vc-mauve);
  font-weight: 850;
}

.vc-profile-header div:nth-child(2) {
  flex: 1;
}

.vc-profile-header h2 {
  color: var(--vc-ink);
  font: 400 30px/1.12 Georgia, "Times New Roman", serif;
  margin: 0 0 6px;
}

.vc-profile-header p {
  color: var(--vc-muted);
  margin: 0;
}

.vc-profile-header div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.vc-profile-grid p {
  color: var(--vc-muted);
  font-size: 14px;
  line-height: 1.55;
}

.vc-profile-grid b {
  color: var(--vc-ink);
}

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

.vc-record-grid > div {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  padding: 16px;
}

.vc-record-grid p {
  color: var(--vc-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.vc-context-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.vc-back-link,
.vc-text-link {
  color: var(--vc-mauve);
  font-weight: 800;
  text-decoration: none;
}

.vc-back-link:hover,
.vc-text-link:hover {
  color: var(--vc-ink);
  text-decoration: underline;
}

.vc-context-note {
  background: #fff7fb;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  color: var(--vc-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.vc-context-note a {
  color: var(--vc-mauve);
  font-weight: 800;
}

.vc-records-heading {
  align-items: flex-start;
  gap: 16px;
}

.vc-record-search {
  margin-left: auto;
  max-width: 420px;
  width: min(100%, 420px);
}

.vc-list-meta {
  color: var(--vc-muted);
  opacity: .78;
}

.vc-photo-workspace {
  display: grid;
  gap: 24px;
}

.vc-photo-patient-picker {
  max-width: 980px;
}

.vc-photo-patient-form {
  margin-top: 18px;
}

.vc-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

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

.vc-photo-grid figure {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(73, 45, 80, .05);
  margin: 0;
  overflow: hidden;
}

.vc-photo-grid img {
  background: linear-gradient(135deg, #fff, #fbecf4);
  display: block;
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.vc-photo-grid figcaption {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 11px;
}

.vc-photo-card-meta {
  min-width: 0;
}

.vc-photo-delete-form {
  flex: 0 0 auto;
  margin: 0;
}

.vc-photo-delete {
  appearance: none;
  background: #fff;
  border: 1px solid #e8b8c9;
  border-radius: 8px;
  color: #a23f65;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.vc-photo-delete:hover,
.vc-photo-delete:focus-visible {
  background: #fff0f5;
  border-color: #c9688f;
  color: #87304f;
  outline: 2px solid rgba(201, 104, 143, .2);
  outline-offset: 2px;
}

.vc-photo-grid strong,
.vc-photo-grid small {
  display: block;
  font-size: 12px;
}

.vc-photo-grid small {
  color: var(--vc-muted);
  margin-top: 4px;
}

.vc-empty-state {
  margin: 35px auto;
  max-width: 620px;
  text-align: center;
}

.vc-empty-state h2 {
  font-size: 32px;
}

.vc-professional-profile {
  padding-bottom: 22px;
}

.vc-profile-intro {
  margin-bottom: 22px;
}

.vc-profile-intro-compact {
  margin: -4px 0 18px;
  max-width: 680px;
}

.vc-profile-intro h2 {
  color: var(--vc-ink);
  font: 400 38px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.vc-profile-intro p {
  color: var(--vc-muted);
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}

.vc-profile-workspace {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.vc-profile-left,
.vc-profile-right {
  display: grid;
  gap: 20px;
}

.vc-profile-photo-card {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.vc-profile-photo-preview {
  align-items: center;
  background: linear-gradient(135deg, #fff8df, #fff);
  border: 1px solid rgba(194, 122, 169, .18);
  border-radius: 50%;
  color: #a89aaa;
  display: flex;
  font-size: 36px;
  font-weight: 850;
  height: 94px;
  justify-content: center;
  overflow: hidden;
  width: 94px;
}

.vc-profile-photo-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.vc-profile-form h3 {
  align-items: center;
  color: var(--vc-ink);
  display: flex;
  font-size: 17px;
  gap: 8px;
  margin: 0 0 10px;
}

.vc-profile-form textarea {
  min-height: 158px;
}

.vc-profile-data-form {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.vc-profile-upload-form {
  display: grid;
  gap: 12px;
}

.vc-profile-upload-form .vc-btn {
  justify-self: start;
}

.vc-upload-message {
  min-height: 20px;
  color: #667085;
  font-size: 13px;
}

.vc-upload-message.is-error {
  color: #b42318;
  font-weight: 600;
}

.vc-char-count,
.vc-profile-summary small {
  color: #9a8c9d;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
}

.vc-upload-drop {
  align-items: center;
  background: rgba(255, 255, 255, .68);
  border: 1px dashed rgba(132, 86, 128, .28);
  border-radius: 12px;
  color: var(--vc-plum);
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  font-size: 14px !important;
  font-weight: 850 !important;
  gap: 5px;
  justify-content: center;
  margin-top: 14px;
  min-height: 52px;
  position: relative;
  text-align: center;
}

.vc-upload-title {
  color: var(--vc-ink);
}

.vc-upload-file-name {
  color: var(--vc-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-upload-drop:hover {
  background: #fff7fb;
  border-color: rgba(194, 122, 169, .5);
}

.vc-upload-drop input {
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.vc-attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.vc-attachment-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.vc-attachment-list a {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 9px;
  color: var(--vc-plum) !important;
  font-size: 13px;
  font-weight: 750;
  padding: 10px 12px;
}

.vc-attachment-open {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-attachment-list .vc-attachment-delete {
  border-color: rgba(160, 70, 80, .24);
  color: var(--vc-danger) !important;
  text-align: center;
}

.vc-attachment-empty {
  margin-bottom: 0;
}

.vc-profile-safety {
  background: #fff8fb;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding: 12px 14px;
}

.vc-profile-save {
  justify-self: end;
  min-width: 170px;
}

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

.vc-profile-summary h2 {
  margin-bottom: 0;
}

.vc-profile-summary .vc-muted {
  margin: 0;
}

.vc-profile-progress {
  background: #f3e6ef;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.vc-profile-progress span {
  background: linear-gradient(135deg, var(--vc-mauve), var(--vc-lavender));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.vc-agenda-board {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
}

.vc-mini-month,
.vc-day-panel {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  padding: 18px;
}

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

.vc-mini-weekdays {
  color: var(--vc-muted);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 14px;
}

.vc-mini-day {
  align-items: center;
  border-radius: 11px;
  color: var(--vc-ink) !important;
  display: grid;
  font-weight: 800;
  min-height: 48px;
  padding: 6px 2px;
  position: relative;
}

.vc-mini-day:hover,
.vc-mini-day.is-selected {
  background: linear-gradient(135deg, var(--vc-mauve), var(--vc-lavender));
  color: #fff !important;
}

.vc-mini-day.is-today:not(.is-selected) {
  background: var(--vc-blush-strong);
  color: var(--vc-mauve-dark) !important;
}

.vc-mini-day.is-outside-month {
  color: #b9acba !important;
  opacity: .68;
}

.vc-mini-day small {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(132, 86, 128, .12);
  border-radius: 999px;
  color: var(--vc-mauve-dark);
  font-size: 10px;
  font-weight: 900;
  height: 18px;
  line-height: 16px;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 18px;
}

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

.vc-day-panel-head h3 {
  font: 400 25px/1.12 Georgia, "Times New Roman", serif;
  margin: 0;
}

.vc-day-appointments {
  display: grid;
  gap: 12px;
}

.vc-agenda-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(73, 45, 80, .05);
  display: grid;
  gap: 14px;
  grid-template-columns: 108px minmax(0, 1fr);
  padding: 15px;
}

.vc-agenda-time {
  align-items: center;
  display: flex;
  gap: 9px;
}

.vc-agenda-time span {
  background: var(--vc-blush-strong);
  border-radius: 50%;
  display: grid;
  height: 36px;
  place-items: center;
  width: 36px;
}

.vc-agenda-time strong,
.vc-agenda-info strong {
  color: var(--vc-ink);
  display: block;
}

.vc-agenda-info small {
  color: var(--vc-muted);
  display: block;
  margin: 5px 0 8px;
}

.vc-agenda-actions {
  align-items: center;
  border-top: 1px solid #f1e4ec;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 12px;
  width: 100%;
}

.vc-agenda-actions .vc-btn {
  min-height: 38px;
  padding: 0 12px;
}

.vc-agenda-actions .vc-calendar-status-form {
  flex: 1 1 210px;
  margin-top: 0;
}

.vc-appointment-form .vc-date-row {
  grid-template-columns: 1fr;
}

.vc-appointment-patient-search {
  display: grid;
  gap: 7px;
  min-width: 0;
  position: relative;
}

.vc-appointment-patient-search > label {
  font-weight: 700;
}

.vc-appointment-patient-search > input[type="search"] {
  box-sizing: border-box;
  font-size: 16px;
  min-width: 0;
  min-height: 46px;
  width: 100%;
}

.vc-appointment-patient-search > input[type="search"]:focus {
  border-color: var(--vc-theme-accent, #C27AA9);
  outline: 2px solid rgba(194, 122, 169, .19);
  outline-offset: 1px;
}

.vc-appointment-patient-search .vc-field-help {
  margin: 0 0 5px;
}

.vc-appointment-patient-results {
  background: var(--vc-theme-surface, #fff);
  border: 1px solid #ead8e2;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(48, 41, 66, .16);
  display: grid;
  max-height: min(44vh, 280px);
  overflow-y: auto;
  position: relative;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.vc-appointment-patient-results[hidden] {
  display: none;
}

.vc-appointment-patient-result {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0e5eb;
  color: var(--vc-theme-text, #302942);
  cursor: pointer;
  font: inherit;
  min-height: 48px;
  padding: 12px 13px;
  text-align: left;
}

.vc-appointment-patient-result:hover,
.vc-appointment-patient-result:focus-visible {
  background: var(--vc-theme-surface-soft, #fdf3f8);
}

.vc-availability-ranges {
  display: grid;
  gap: 12px;
}

.vc-availability-ranges[hidden] {
  display: none;
}

.vc-availability-range {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.vc-availability-range > label {
  min-width: 0;
}

.vc-availability-range input[type="time"] {
  min-width: 0;
  width: 100%;
}

.vc-availability-remove-range {
  grid-column: 1 / -1;
}
.vc-date-row input[type="datetime-local"] {
  min-width: 0;
  width: 100%;
}

.vc-date-row input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .85;
}

.vc-form-section {
  border-top: 1px solid #f1e4ec;
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.vc-form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.vc-form-section h3 {
  color: var(--vc-ink);
  font-size: 15px;
  margin: 0;
}

.vc-age-output {
  color: var(--vc-mauve-dark);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 7px;
}

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

.vc-info-card p {
  margin: 0 0 12px;
}

.vc-info-card p:last-child {
  margin-bottom: 0;
}

.vc-photo-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.vc-inline-upload {
  background: #fff9fc;
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  margin-top: 18px;
  padding: 16px;
}

.vc-face-diagram-field {
  background: linear-gradient(135deg, #fff, #fff7fb);
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  padding: 16px;
}

.vc-face-diagram {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.vc-face-diagram > * {
  min-width: 0;
}

.vc-face-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.vc-face-toolbar > span {
  color: var(--vc-muted);
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 900;
}

.vc-face-canvas {
  background: radial-gradient(circle at 50% 20%, #fff, #fff7fb 72%);
  border: 1px solid rgba(194, 122, 169, .24);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .78);
  line-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.vc-face-canvas img,
.vc-face-preview img {
  display: block;
  height: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.vc-face-canvas canvas,
.vc-face-preview canvas {
  inset: 0;
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.vc-face-canvas canvas {
  cursor: crosshair;
  touch-action: none;
}

.vc-color-swatch {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(194, 122, 169, .38);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.vc-color-swatch:before {
  background: var(--swatch);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
  content: "";
  height: 24px;
  width: 24px;
}

.vc-color-swatch.is-active {
  border-color: rgba(48, 41, 66, .34);
  box-shadow: 0 0 0 4px rgba(48, 41, 66, .12);
}

.vc-color-swatch span {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.vc-brush-size {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(194, 122, 169, .34);
  border-radius: 999px;
  color: var(--vc-plum);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
}

.vc-brush-size input {
  accent-color: var(--vc-mauve-dark);
  margin: 0;
  width: 96px;
}

.vc-mini-btn {
  background: #fff;
  border: 1px solid rgba(194, 122, 169, .34);
  border-radius: 999px;
  color: var(--vc-plum);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  min-height: 34px;
  padding: 0 13px;
}

.vc-face-notes {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.vc-face-notes .vc-muted {
  margin: 0;
}

.vc-face-help {
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 750;
  margin: 9px 0 0;
  text-align: center;
}

.vc-marker-editor {
  background: #fff8fb;
  border: 1px solid rgba(194, 122, 169, .24);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.vc-marker-editor[hidden] {
  display: none;
}

.vc-marker-editor label {
  color: var(--vc-plum);
  font-size: 12px;
  font-weight: 900;
}

.vc-marker-editor input,
.vc-face-notes textarea {
  box-sizing: border-box;
  max-width: 100%;
  resize: vertical;
  width: 100%;
}

.vc-marker-editor input {
  background: #fff;
  border: 1px solid rgba(132, 86, 128, .18);
  border-radius: 10px;
  color: var(--vc-ink);
  min-height: 42px;
  padding: 0 12px;
}

.vc-marker-editor > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vc-marker-list {
  display: grid;
  gap: 9px;
}

.vc-marker-list h4 {
  color: var(--vc-plum);
  font-size: 13px;
  margin: 4px 0 0;
}

.vc-marker-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 10px;
  display: grid;
  gap: 9px;
  grid-template-columns: 18px minmax(0, 1fr) 44px;
  min-height: 42px;
  overflow: hidden;
  padding: 8px 10px;
}

.vc-marker-row strong {
  color: var(--vc-ink);
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.vc-marker-dot {
  background: var(--mark);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(48, 41, 66, .22);
  height: 16px;
  width: 16px;
}

.vc-marker-row button {
  align-items: center;
  align-self: center;
  background: #fff7fb;
  border: 1px solid rgba(194, 122, 169, .25);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--vc-plum);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 17px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  justify-self: end;
  line-height: 1;
  margin: 0;
  max-width: 28px;
  min-width: 28px;
  overflow: hidden;
  padding: 0;
  width: 28px;
}

.vc-face-preview {
  border: 1px solid rgba(194, 122, 169, .22);
  border-radius: 14px;
  line-height: 0;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 1080px) {
  .vc-app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .vc-app-sidebar {
    padding: 20px 10px;
  }

  .vc-app-logo {
    display: block;
    font-size: 0;
    margin: 0 auto 30px;
    min-height: 52px;
    width: 52px;
  }

  .vc-app-logo:before {
    height: 52px;
    margin: 0;
    width: 52px;
  }

  .vc-app-logo small {
    display: none;
  }

  .vc-app-sidebar nav a {
    font-size: 0;
    justify-content: center;
    padding: 0;
  }

  .vc-app-sidebar nav a b {
    font-size: 22px;
  }

  .vc-sidebar-foot {
    display: none;
  }

  .vc-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vc-app-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .vc-two-column,
  .vc-calendar-layout {
    grid-template-columns: 1fr;
  }

  .vc-profile-workspace {
    grid-template-columns: 1fr;
  }

  .vc-record-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vc-agenda-board,
  .vc-profile-grid-wide,
  .vc-face-diagram {
    grid-template-columns: 1fr;
  }

  .vc-agenda-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .vc-agenda-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .vc-login-screen {
    padding: 36px 18px;
  }

  .vc-login-screen:after {
    display: none;
  }

  .vc-login-card {
    padding: 30px 22px;
  }

  .vc-app-shell {
    display: block;
    overflow-x: hidden;
    width: 100%;
  }

  .vc-app-sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    border-right: 0;
    display: block;
    height: auto;
    padding: 16px;
    position: relative;
  }

  .vc-app-logo {
    align-items: center;
    display: flex;
    font-size: 27px;
    margin: 0 0 15px;
    min-height: 52px;
    width: auto;
  }

  .vc-app-logo:before {
    flex: 0 0 auto;
    height: 48px;
    margin-right: 10px;
    width: 48px;
  }

  .vc-app-logo small {
    display: block;
  }

  .vc-app-sidebar nav {
    flex-direction: row;
    gap: 8px;
    margin: 0 -4px;
    padding: 0 4px 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .vc-app-sidebar nav a {
    flex: 0 0 auto;
    font-size: 12px;
    gap: 7px;
    min-height: 38px;
    padding: 0 11px;
    white-space: nowrap;
  }

  .vc-app-sidebar nav a b {
    font-size: 16px;
    width: 18px;
  }

  .vc-app-main {
    padding: 0 15px 30px;
  }

  .vc-app-topbar {
    display: block;
    min-height: auto;
    padding: 22px 0;
  }

  .vc-app-topbar h1 {
    font-size: 31px;
  }

  .vc-userbox {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .vc-userbox select {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  .vc-stat-grid,
  .vc-profile-grid,
  .vc-record-grid,
  .vc-form-row {
    grid-template-columns: 1fr;
  }

  .vc-panel {
    padding: 17px;
  }

  .vc-panel h2 {
    font-size: 24px;
  }

  .vc-profile-photo-card {
    grid-template-columns: 82px 1fr;
  }

  .vc-profile-photo-preview {
    height: 74px;
    width: 74px;
  }

  .vc-profile-save {
    justify-self: stretch;
  }

  .vc-panel-heading {
    display: block;
  }

  .vc-panel-heading .vc-btn {
    margin-top: 15px;
    width: 100%;
  }

  .vc-team-count {
    margin-top: 12px;
    width: 100%;
  }

  .vc-plan-upgrade-inline .vc-btn,
  .vc-team-form .vc-btn {
    justify-content: center;
    width: 100%;
  }

  .vc-team-role-notes {
    padding: 12px;
  }

  .vc-team-table td small {
    max-width: 260px;
  }

  .vc-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .vc-form-actions .vc-btn {
    justify-content: center;
    width: 100%;
  }

  .vc-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

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

  .vc-calendar-month-nav strong {
    order: -1;
  }

  .vc-calendar-jump {
    border-left: 0;
    border-top: 1px solid var(--vc-line);
    grid-template-columns: 1fr auto;
    padding-left: 0;
    padding-top: 12px;
    text-align: left;
  }

  .vc-calendar-toolbar a {
    display: flex;
    justify-content: center;
  }

  .vc-calendar-weekdays,
  .vc-calendar-grid {
    gap: 4px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: visible;
  }

  .vc-calendar-weekdays span {
    border-radius: 7px;
    font-size: 9px;
    padding: 6px 1px;
  }

  .vc-calendar-day {
    border-radius: 9px;
    min-height: 74px;
    padding: 5px;
  }

  .vc-calendar-day header {
    margin-bottom: 4px;
    padding-bottom: 4px;
  }

  .vc-calendar-day header span {
    display: none;
  }

  .vc-calendar-day header strong {
    font-size: 15px;
  }

  .vc-calendar-noevent {
    display: none;
  }

  .vc-calendar-events {
    gap: 3px;
  }

  .vc-calendar-event {
    border-radius: 7px;
    gap: 1px;
    padding: 5px;
  }

  .vc-calendar-event time {
    font-size: 9px;
  }

  .vc-calendar-event strong {
    font-size: 10px;
    line-height: 1.15;
  }

  .vc-calendar-event small,
  .vc-calendar-day .vc-calendar-status,
  .vc-calendar-day .vc-calendar-status-form {
    display: none;
  }

  .vc-profile-header {
    display: block;
  }

  .vc-profile-header > * {
    margin-bottom: 14px;
  }

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

  .vc-day-panel-head {
    display: block;
  }

  .vc-agenda-card {
    grid-template-columns: 1fr;
  }

  .vc-agenda-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vc-agenda-actions .vc-btn,
  .vc-agenda-actions .vc-calendar-status-form,
  .vc-agenda-actions .vc-calendar-status-form select,
  .vc-agenda-actions .vc-calendar-status-form button {
    width: 100%;
  }

  .vc-day-panel-head .vc-btn,
  .vc-agenda-actions {
    margin-top: 12px;
  }

  .vc-mini-month,
  .vc-day-panel {
    padding: 14px;
  }

  .vc-mini-day {
    min-height: 42px;
  }

  .vc-search,
  .vc-inline {
    width: 100%;
  }

  .vc-context-nav,
  .vc-records-heading {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .vc-record-search {
    margin-left: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .vc-login-screen {
    padding: 28px 12px;
  }

  .vc-login-card,
  .vc-auth-required {
    border-radius: 14px;
    padding: 24px 16px;
  }

  .vc-login-card h2,
  .vc-auth-required h2 {
    font-size: 28px;
  }

  .vc-app-sidebar {
    padding: 14px 12px;
  }

  .vc-app-logo {
    font-size: 24px;
  }

  .vc-app-main {
    padding: 0 10px 26px;
  }

  .vc-app-topbar h1,
  .vc-profile-intro h2 {
    font-size: 28px;
  }

  .vc-userbox,
  .vc-profile-header div:last-child,
  .vc-search,
  .vc-inline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vc-avatar {
    height: 40px;
    width: 40px;
  }

  .vc-topbar-profile {
    justify-content: flex-start;
  }

  .vc-panel {
    border-radius: 13px;
    margin-bottom: 14px;
    padding: 14px;
  }

  .vc-stat {
    padding: 18px;
  }

  .vc-stat strong {
    font-size: 34px;
  }

  .vc-btn,
  .vc-mini-btn,
  .vc-brush-size,
  .vc-front-form button,
  .vc-search button,
  .vc-inline button {
    width: 100%;
  }

  .vc-brush-size {
    justify-content: space-between;
  }

  .vc-brush-size input {
    width: min(180px, 52%);
  }

  .vc-list-row,
  .vc-consent-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .vc-list-row a {
    margin-left: 0;
  }

  .vc-table {
    min-width: 600px;
  }

  .vc-calendar-weekdays,
  .vc-calendar-grid {
    gap: 3px;
  }

  .vc-calendar-day {
    min-height: 64px;
    padding: 4px;
  }

  .vc-calendar-event {
    min-height: 18px;
    padding: 4px 3px;
  }

  .vc-calendar-event strong {
    display: none;
  }

  .vc-profile-photo-card {
    gap: 12px;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .vc-profile-photo-preview {
    height: 82px;
    width: 82px;
  }

  .vc-photo-grid,
  .vc-photo-grid-compact {
    grid-template-columns: 1fr;
  }

  .vc-photo-grid figcaption {
    align-items: stretch;
    flex-direction: column;
  }

  .vc-photo-delete,
  .vc-photo-delete-form {
    width: 100%;
  }

  .vc-face-diagram-field,
  .vc-inline-upload {
    padding: 12px;
  }

  .vc-color-swatch {
    height: 38px;
    width: 38px;
  }

  .vc-color-swatch:before {
    height: 27px;
    width: 27px;
  }

  .vc-marker-editor > div {
    display: grid;
    grid-template-columns: 1fr;
  }

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

/* v0.5.7 — Agenda drawer and sidebar logo subtitle refinement. */
.vc-app-logo small {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.22;
  text-transform: uppercase;
}

.vc-calendar-layout-full {
  grid-template-columns: minmax(0, 1fr);
}

.vc-calendar-layout-full > .vc-panel {
  width: 100%;
}

.vc-drawer-overlay {
  background: rgba(48, 41, 66, .28);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .22s ease;
  z-index: 99998;
}

.vc-app-drawer {
  background:
    radial-gradient(circle at 14% 0%, rgba(247, 232, 241, .95), transparent 34%),
    #fff;
  border-left: 1px solid var(--vc-line);
  box-shadow: -24px 0 70px rgba(48, 41, 66, .18);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: calc(100vw - 22px);
  opacity: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(104%);
  transition: transform .26s ease, opacity .26s ease;
  width: min(430px, calc(100vw - 22px));
  z-index: 99999;
}

.vc-drawer-is-open {
  overflow: hidden;
}

.vc-drawer-is-open .vc-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.vc-drawer-is-open .vc-app-drawer[aria-hidden="false"] {
  opacity: 1;
  transform: translateX(0);
}

.vc-drawer-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--vc-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 28px 28px 18px;
}

.vc-drawer-head h2 {
  color: var(--vc-ink);
  font: 400 30px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.4px;
  margin: 0;
}

.vc-drawer-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 999px;
  color: var(--vc-mauve-dark);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: 700 24px/1 Inter, Arial, Helvetica, sans-serif;
  height: 44px;
  justify-content: center;
  margin-top: 0;
  width: 44px;
}

.vc-drawer-close:hover {
  background: var(--vc-blush);
}

.vc-drawer-body {
  overflow-y: auto;
  padding: 22px 28px 30px;
}

.vc-app-drawer .vc-front-form {
  gap: 13px;
}

.vc-app-drawer .vc-btn[type="submit"] {
  margin-top: 8px;
  width: 100%;
}

@media (max-width: 640px) {
  .vc-app-drawer {
    width: min(100vw, 420px);
    max-width: 100vw;
  }

  .vc-drawer-head,
  .vc-drawer-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* v0.5.13 — Clinical record navigation and search polish. */
.vc-app-shell {
  max-width: 100%;
  overflow-x: clip;
  width: 100%;
}

.vc-app-sidebar nav {
  scrollbar-width: none;
}

.vc-app-sidebar nav::-webkit-scrollbar {
  display: none;
}

.vc-table-wrap,
.vc-mini-month,
.vc-day-panel,
.vc-panel,
.vc-front-form,
.vc-profile-header,
.vc-profile-grid,
.vc-record-grid,
.vc-photo-grid,
.vc-plan-grid {
  max-width: 100%;
}

.vc-btn,
.vc-app-sidebar nav a,
.vc-drawer-close,
.vc-color-swatch,
.vc-mini-btn {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
  .vc-btn:hover,
  .vc-app-sidebar nav a:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .vc-app-shell {
    display: block;
  }

  .vc-app-sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    border-right: 0;
    box-shadow: 0 14px 42px rgba(73, 45, 80, .10);
    display: block;
    height: auto;
    padding: 15px 16px 13px;
    position: sticky;
    top: 0;
    z-index: 40;
  }

  body.admin-bar .vc-app-sidebar {
    top: var(--wp-admin--admin-bar--height, 46px);
  }

  .vc-app-logo {
    align-items: center;
    display: flex;
    font-size: 27px;
    margin: 0 0 14px;
    min-height: 52px;
    width: auto;
  }

  .vc-app-logo:before {
    flex: 0 0 auto;
    height: 48px;
    margin-right: 10px;
    width: 48px;
  }

  .vc-app-logo small {
    display: block;
    max-width: 185px;
  }

  .vc-app-sidebar nav {
    flex-direction: row;
    gap: 8px;
    margin: 0 -4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 0 4px 5px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .vc-app-sidebar nav a {
    flex: 0 0 auto;
    font-size: 13px;
    gap: 7px;
    justify-content: center;
    min-height: 44px;
    min-width: max-content;
    padding: 0 13px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .vc-app-sidebar nav a b {
    font-size: 16px;
    width: 18px;
  }

  .vc-sidebar-foot {
    display: none;
  }

  .vc-app-main {
    padding: 0 18px 32px;
  }

  .vc-app-topbar {
    align-items: flex-start;
    gap: 14px;
    min-height: auto;
    padding: 22px 0 18px;
  }

  .vc-app-topbar h1 {
    font-size: 32px;
  }

  .vc-userbox {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .vc-userbox form,
  .vc-userbox select,
  .vc-clinic-label {
    max-width: 100%;
  }

  .vc-stat-grid {
    gap: 13px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vc-two-column,
  .vc-calendar-layout,
  .vc-profile-workspace,
  .vc-agenda-board,
  .vc-profile-grid-wide,
  .vc-face-diagram {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .vc-app-sidebar {
    padding: 13px 12px 11px;
  }

  .vc-app-logo {
    font-size: 25px;
    margin-bottom: 12px;
  }

  .vc-app-logo:before {
    height: 46px;
    width: 46px;
  }

  .vc-app-logo small {
    font-size: 8.5px;
    letter-spacing: .10em;
    line-height: 1.18;
    max-width: 170px;
  }

  .vc-app-sidebar nav a {
    border-radius: 999px;
    font-size: 12.5px;
    min-height: 44px;
    padding: 0 12px;
  }

  .vc-app-main {
    padding: 0 13px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .vc-app-topbar {
    display: grid;
    gap: 13px;
    padding: 18px 0 15px;
  }

  .vc-app-topbar h1 {
    font-size: 30px;
    line-height: 1.04;
  }

  .vc-kicker,
  .vc-stat span {
    font-size: 17px;
  }

  .vc-userbox {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    margin-top: 0;
    width: 100%;
  }

  .vc-userbox form,
  .vc-userbox select,
  .vc-clinic-label {
    grid-column: 1 / -1;
    width: 100%;
  }

  .vc-topbar-profile {
    justify-self: start;
  }

  .vc-stat-grid {
    grid-template-columns: 1fr;
  }

  .vc-stat {
    padding: 18px;
  }

  .vc-stat strong {
    font-size: 36px;
  }

  .vc-panel {
    border-radius: 15px;
    padding: 16px;
  }

  .vc-panel h2 {
    font-size: 25px;
    line-height: 1.08;
  }

  .vc-panel-heading {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .vc-panel-heading .vc-btn,
  .vc-day-panel-head .vc-btn,
  .vc-front-form button[type="submit"] {
    width: 100%;
  }

  .vc-front-form input:not([type="file"]),
  .vc-front-form select,
  .vc-front-form textarea,
  .vc-inline select,
  .vc-inline input,
  .vc-search input {
    font-size: 16px;
  }

  .vc-front-form input:not([type="file"]),
  .vc-front-form select,
  .vc-search input {
    min-height: 48px;
  }

  .vc-search {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vc-search button,
  .vc-inline button {
    min-height: 44px;
    width: 100%;
  }

  .vc-calendar-toolbar {
    border-radius: 14px;
    gap: 8px;
    padding: 10px;
  }

  .vc-calendar-toolbar strong {
    font-size: 21px;
    order: -1;
  }

  .vc-agenda-board {
    gap: 14px;
  }

  .vc-mini-month,
  .vc-day-panel {
    border-radius: 15px;
    padding: 14px;
  }

  .vc-mini-weekdays {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .vc-mini-day {
    border-radius: 10px;
    font-size: 15px;
    min-height: 42px;
  }

  .vc-mini-day small {
    font-size: 9px;
    height: 17px;
    line-height: 15px;
    right: 2px;
    top: 2px;
    width: 17px;
  }

  .vc-day-panel-head {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .vc-day-panel-head h3 {
    font-size: 27px;
  }

  .vc-calendar-empty {
    font-size: 14px;
    line-height: 1.45;
    padding: 13px 14px;
  }

  .vc-agenda-card {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .vc-agenda-time {
    align-items: center;
    justify-content: flex-start;
  }

  .vc-agenda-actions {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr;
  }

  .vc-agenda-actions .vc-calendar-status-form,
  .vc-agenda-actions .vc-calendar-status-form select,
  .vc-agenda-actions .vc-calendar-status-form button,
  .vc-agenda-actions .vc-btn {
    width: 100%;
  }

  .vc-table-wrap {
    border: 1px solid var(--vc-line);
    border-radius: 13px;
    box-shadow: inset -18px 0 22px -24px rgba(48, 41, 66, .22);
  }

  .vc-profile-header {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .vc-profile-header div:last-child {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr;
  }

  .vc-profile-header div:last-child .vc-btn {
    width: 100%;
  }

  .vc-profile-grid,
  .vc-record-grid,
  .vc-form-row,
  .vc-plan-summary-grid {
    grid-template-columns: 1fr;
  }

  .vc-photo-grid,
  .vc-photo-grid-compact {
    grid-template-columns: 1fr;
  }

  .vc-photo-grid img {
    height: auto;
    max-height: 360px;
  }

  .vc-drawer-overlay {
    background: rgba(48, 41, 66, .36);
  }

  .vc-app-drawer {
    border-left: 0;
    border-radius: 22px 22px 0 0;
    bottom: 0;
    height: min(92dvh, calc(100dvh - 34px));
    max-height: min(92dvh, calc(100dvh - 34px));
    max-width: 100vw;
    right: 0;
    top: auto;
    transform: translateY(104%);
    width: 100vw;
  }

  .vc-drawer-is-open .vc-app-drawer[aria-hidden="false"] {
    transform: translateY(0);
  }

  .vc-drawer-head {
    align-items: center;
    padding: 18px 18px 14px;
  }

  .vc-drawer-head h2 {
    font-size: 28px;
  }

  .vc-drawer-body {
    overscroll-behavior: contain;
    padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .vc-app-logo {
    font-size: 23px;
  }

  .vc-app-logo:before {
    height: 43px;
    width: 43px;
  }

  .vc-app-logo small {
    font-size: 8px;
    max-width: 150px;
  }

  .vc-app-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .vc-app-topbar h1,
  .vc-profile-intro h2 {
    font-size: 27px;
  }

  .vc-panel {
    padding: 14px;
  }

  .vc-mini-month,
  .vc-day-panel {
    padding: 12px;
  }

  .vc-mini-grid,
  .vc-mini-weekdays {
    gap: 2px;
  }

  .vc-mini-day {
    font-size: 14px;
    min-height: 44px;
  }

  .vc-day-panel-head h3 {
    font-size: 25px;
  }

  .vc-drawer-head,
  .vc-drawer-body {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* v0.5.14 MVP polish: contención responsive para portal, tablas y checkout. */
.vc-app-shell,
.vc-frontend,
.vc-front {
  max-width: 100%;
}

.vc-app-main,
.vc-panel,
.vc-card,
.vc-plan-summary,
.vc-plan-picker {
  min-width: 0;
}

.vc-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vc-table-wrap table,
.vc-table {
  width: 100%;
}

.woocommerce-checkout .vc-plan-checkout-note,
.vc-plan-expiry-note {
  max-width: 100%;
}

@media (max-width: 760px) {
  .vc-app-shell {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .vc-sidebar {
    overflow: hidden;
  }

  .vc-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .vc-nav::-webkit-scrollbar {
    display: none;
  }

  .vc-nav a,
  .vc-nav button {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .vc-table-wrap table,
  .vc-table {
    min-width: 620px;
  }

  .vc-table-wrap:after {
    color: var(--vc-muted);
    content: "Desliza la tabla para ver más →";
    display: block;
    font-size: 12px;
    padding: 8px 12px 10px;
    text-align: center;
  }

  .vc-front-form input,
  .vc-front-form select,
  .vc-front-form textarea,
  .vc-form input,
  .vc-form select,
  .vc-form textarea {
    max-width: 100%;
  }

  .vc-billing-toggle {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .vc-table-wrap table,
  .vc-table {
    min-width: 560px;
  }

  .vc-plan-card .vc-btn,
  .vc-front-form button,
  .vc-form button {
    min-height: 46px;
  }
}


/* v0.5.15 — Appointment availability, confirmation and budgets. */
.vc-app-drawer {
  pointer-events: none;
}

.vc-drawer-is-open .vc-app-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.vc-slot-message {
  color: var(--vc-mauve-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  margin: -5px 0 2px;
}

.vc-slot-message.is-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a4b08;
  padding: 10px 12px;
}

.vc-check-row {
  align-items: center;
  background: #fff8fb;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  display: flex !important;
  flex-direction: row !important;
  font-weight: 800;
  gap: 10px;
  padding: 12px 14px;
}

.vc-check-row input[type="checkbox"] {
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.vc-mini-day i {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(160, 70, 80, .22);
  border-radius: 999px;
  bottom: 3px;
  color: #a04650;
  display: flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  height: 16px;
  justify-content: center;
  left: 4px;
  line-height: 1;
  position: absolute;
  width: 16px;
}

.vc-mini-day.is-blocked:not(.is-selected) {
  background: repeating-linear-gradient(135deg, #fff0f2 0, #fff0f2 7px, #fbe2e7 7px, #fbe2e7 14px);
  color: #994654 !important;
}

.vc-mini-day.is-partially-blocked:not(.is-selected):after {
  background: #d99448;
  border: 2px solid #fff;
  border-radius: 999px;
  bottom: 4px;
  content: "";
  height: 7px;
  position: absolute;
  right: 5px;
  width: 7px;
}

.vc-day-blocks {
  background: linear-gradient(135deg, #fff8ef, #fff3f5);
  border: 1px solid #f2d3c7;
  border-radius: 12px;
  display: grid;
  gap: 7px;
  padding: 12px 14px;
}

.vc-day-blocks p {
  color: #7d4a4f;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.vc-availability-panel {
  grid-column: 1 / -1;
  width: 100%;
}

.vc-block-row form,
.vc-confirmation-form {
  margin: 0;
}

.vc-confirmation-form button {
  background: #fff8fb;
  border: 1px solid var(--vc-line);
  border-radius: 9px;
  color: var(--vc-mauve-dark);
  cursor: pointer;
  font: 800 12px/1.2 Inter, Arial, Helvetica, sans-serif;
  min-height: 38px;
  padding: 8px 12px;
}

.vc-confirmation-form button:hover {
  background: var(--vc-blush);
}

.vc-confirmation-sent,
.vc-confirmation-missing {
  flex: 1 1 100%;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.vc-confirmation-sent {
  color: #42785d;
}

.vc-confirmation-missing {
  color: #9a6a36;
}

.vc-budget-layout {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
}

.vc-budget-editor {
  min-width: 0;
}

.vc-budget-list .vc-list-row > div:last-child,
.vc-budget-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vc-budget-list .vc-list-row a {
  margin-left: 0;
}

.vc-budget-items {
  display: grid;
  gap: 11px;
}

.vc-budget-item {
  align-items: end;
  background: #fffafd;
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(210px, 1.45fr) 76px 76px 82px 122px 124px minmax(82px, auto) 36px;
  padding: 12px;
}

.vc-budget-item label {
  margin: 0;
  min-width: 0;
}

.vc-budget-item strong {
  align-items: center;
  color: var(--vc-ink);
  display: flex;
  font-size: 14px;
  justify-content: flex-end;
  min-height: 43px;
  white-space: nowrap;
}

.vc-budget-item [data-vc-budget-remove] {
  align-items: center;
  background: #fff;
  border: 1px solid #edd1d6;
  border-radius: 9px;
  color: #a04650;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.vc-budget-add {
  justify-self: start;
}

.vc-budget-summary {
  align-items: end;
  background: linear-gradient(135deg, #fff9fc, #f7edf4);
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  padding: 15px;
}

.vc-budget-summary label {
  margin: 0;
  max-width: 190px;
}

.vc-budget-summary > div {
  display: grid;
  gap: 4px;
  min-width: 120px;
  text-align: right;
}

.vc-budget-summary span,
.vc-budget-meta strong,
.vc-budget-view-total span {
  color: var(--vc-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vc-budget-summary strong {
  color: var(--vc-ink);
  font-size: 20px;
}

.vc-budget-meta {
  background: #fff9fc;
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 15px;
}

.vc-budget-meta p {
  line-height: 1.55;
  margin: 0;
}

.vc-budget-patient-caption {
  color: var(--vc-theme-muted, var(--vc-muted));
  font-size: 13px;
  margin: 8px 0 0;
}

.vc-budget-history { scroll-margin-top: 22px; }

.vc-budget-patient-caption strong {
  color: var(--vc-theme-text, var(--vc-ink));
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 850;
}

.vc-budget-meta .vc-budget-patient-name {
  color: var(--vc-theme-text, var(--vc-ink));
  display: inline-block;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 850;
  line-height: 1.35;
  margin-top: 5px;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.vc-budget-view-total {
  display: grid;
  gap: 8px;
  justify-content: end;
  margin-left: auto;
  margin-top: 18px;
  max-width: 360px;
  width: 100%;
}

.vc-budget-view-total p {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin: 0;
}

.vc-budget-view-total .is-total {
  border-top: 1px solid var(--vc-line);
  color: var(--vc-ink);
  font-size: 22px;
  margin-top: 4px;
  padding-top: 12px;
}

.vc-budget-payment-cell {
  align-items: flex-start;
  display: grid;
  gap: 7px;
  min-width: 132px;
}

.vc-budget-payment-cell small {
  color: var(--vc-muted);
  font-size: 10px;
  line-height: 1.35;
}

.vc-budget-payment-form {
  margin: 0;
}

.vc-budget-payment-form button {
  background: #fff;
  border: 1px solid rgba(132, 86, 128, .22);
  border-radius: 8px;
  color: var(--vc-plum);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  min-height: 34px;
  padding: 6px 10px;
}

.vc-budget-payment-form button:hover,
.vc-budget-payment-form button:focus-visible {
  background: #fff1f7;
  border-color: rgba(184, 102, 157, .35);
}

.vc-budget-notes {
  background: #fff9fc;
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  margin-top: 20px;
  padding: 16px;
}

.vc-budget-notes p {
  line-height: 1.65;
  margin: 0;
}

.vc-budget-delete {
  border-top: 1px solid var(--vc-line);
  margin-top: 24px;
  padding-top: 18px;
}

@media (max-width: 1080px) {
  .vc-budget-layout {
    grid-template-columns: 1fr;
  }

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

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

  .vc-budget-item label:first-of-type {
    grid-column: 1 / -1;
  }

  .vc-budget-item strong {
    grid-column: 1 / 3;
    justify-content: flex-start;
    min-height: auto;
  }

  .vc-budget-item [data-vc-budget-remove] {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .vc-budget-item {
    align-items: stretch;
    grid-template-columns: 1fr 1fr;
  }

  .vc-budget-item label:first-of-type,
  .vc-budget-item strong {
    grid-column: 1 / -1;
  }

  .vc-budget-item [data-vc-budget-remove] {
    grid-column: 2;
    grid-row: auto;
    justify-self: end;
  }

  .vc-budget-summary,
  .vc-budget-meta {
    grid-template-columns: 1fr;
  }

  .vc-budget-summary label {
    max-width: none;
  }

  .vc-budget-summary > div {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-width: 0;
    text-align: left;
  }

  .vc-budget-actions,
  .vc-budget-actions .vc-btn {
    width: 100%;
  }

  .vc-budget-actions .vc-btn {
    justify-content: center;
  }

  .vc-block-row {
    align-items: flex-start;
  }
}


/* v0.5.16 — Mobile safety, touch targets and private-page isolation. */
@media (max-width: 900px) {
  .vc-app-sidebar nav {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }

  .vc-app-sidebar nav a,
  .vc-drawer-close,
  .vc-mini-day,
  .vc-btn,
  .vc-front-form button,
  .vc-calendar-toolbar a,
  .vc-calendar-toolbar button {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .vc-budget-item [data-vc-budget-remove],
  .vc-delete,
  .vc-mini-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Document identity and public contact styles. */
.vc-document-identity {
  margin-bottom: 22px;
  background: linear-gradient(135deg, #fff9fc 0%, #ffffff 72%);
}
.vc-document-identity h3 {
  margin: 22px 0 12px;
  color: #4b3654;
}
.vc-document-identity label small,
.vc-budget-editor label small {
  display: block;
  margin-top: 6px;
  color: #88798a;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
.vc-document-clinic-fields {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eddde6;
}
.vc-btn-danger {
  min-height: 44px;
  border: 0;
  background: #9f344f;
  color: #fff;
}
.vc-btn-danger:hover,
.vc-btn-danger:focus {
  background: #84263f;
  color: #fff;
}
.vc-field-help {
  display: block;
  margin: -4px 0 12px;
  color: #88798a;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.vc-contact-form {
  display: grid;
  gap: 14px;
}
.vc-contact-form p {
  margin: 0;
}
.vc-contact-form label {
  display: grid;
  gap: 6px;
  color: #302942;
  font-weight: 700;
}
.vc-contact-form input,
.vc-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #e3d6df;
  border-radius: 8px;
  padding: 12px 13px;
  color: #302942;
  background: #fff;
  font: inherit;
}
.vc-contact-form textarea {
  resize: vertical;
}
.vc-contact-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.vc-contact-status {
  min-height: 22px;
  color: #5d5366;
  font-size: 14px;
}
.vc-contact-status.is-success {
  color: #1f7a47;
}
.vc-contact-status.is-error {
  color: #a33a44;
}


/* Checkout onboarding: centre creation fallback */
.vc-onboarding-form{display:grid;gap:12px;max-width:560px;margin:22px auto 0;text-align:left}.vc-onboarding-form label{font-weight:800;color:#40344a}.vc-onboarding-form input{width:100%;min-height:46px;border:1px solid #e5d4df;border-radius:10px;background:#fff;padding:0 14px;font:inherit;color:#302942}.vc-onboarding-form .vc-btn{width:100%;border:0;cursor:pointer}

.vc-login-alert-success {
  background: #edf8f0;
  border-color: rgba(59, 125, 76, .2);
  color: #356f43;
}


/* Team access controls (v0.5.37). */
.vc-team-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.vc-team-actions form{margin:0}
.vc-btn-small{min-height:34px!important;padding:6px 10px!important;font-size:12px!important}
.vc-team-status{display:inline-flex;align-items:center;min-height:27px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:850}
.vc-team-status.is-active{background:#eaf7ed;color:#276b35}
.vc-team-status.is-suspended{background:#fdecef;color:#9a315a}
@media(max-width:760px){.vc-team-actions{min-width:150px}}

/* v0.5.38 — Mobile plan experience and Mercado Pago return polish. */
.vc-front-notice.is-info {
  background: #f2eaf6;
  border: 1px solid rgba(138, 103, 156, .22);
  color: #624a72;
}

.vc-plan-summary-copy,
.vc-plan-summary-actions {
  min-width: 0;
}

.vc-plan-summary-copy p,
.vc-plan-summary-actions p {
  line-height: 1.5;
}

.vc-plan-summary-actions .vc-btn {
  white-space: normal;
}

.vc-mp-plan {
  overflow: hidden;
}

.vc-mp-plan-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.vc-mp-plan-head h2 {
  margin-bottom: 0;
}

.vc-mp-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
}

.vc-mp-status.is-authorized {
  background: var(--vc-success-bg);
  color: var(--vc-success);
}

.vc-mp-status.is-pending {
  background: var(--vc-warning-bg);
  color: var(--vc-warning);
}

.vc-mp-status.is-inactive {
  background: var(--vc-danger-bg);
  color: var(--vc-danger);
}

.vc-mp-details {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.vc-mp-detail {
  background: linear-gradient(135deg, #fffafd, #fff);
  border: 1px solid var(--vc-line);
  border-radius: 13px;
  min-width: 0;
  padding: 14px 15px;
}

.vc-mp-detail dt {
  color: #98708f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.vc-mp-detail dd {
  color: var(--vc-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.vc-mp-plan-actions {
  border-top: 1px solid var(--vc-line);
  margin-top: 18px;
  padding-top: 18px;
}

.vc-mp-plan-actions form {
  margin: 0;
}

.vc-btn-danger-outline {
  background: #fff !important;
  border-color: rgba(160, 70, 80, .34) !important;
  color: var(--vc-danger) !important;
}

.vc-btn-danger-outline:hover {
  background: var(--vc-danger-bg) !important;
  border-color: rgba(160, 70, 80, .48) !important;
}

@media (max-width: 700px) {
  .vc-app-sidebar {
    padding-bottom: 9px;
    padding-left: 11px;
    padding-right: 11px;
    padding-top: max(11px, env(safe-area-inset-top, 0px));
  }

  .vc-app-logo {
    margin-bottom: 9px;
    min-height: 46px;
  }

  .vc-app-logo:before {
    height: 42px;
    width: 42px;
  }

  .vc-app-sidebar nav {
    gap: 7px;
    margin-left: -2px;
    margin-right: -2px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .vc-app-sidebar nav a {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .10);
    min-height: 42px;
  }

  .vc-app-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .vc-app-topbar {
    gap: 11px;
    padding-bottom: 14px;
    padding-top: 15px;
  }

  .vc-app-topbar > div:first-child .vc-kicker {
    display: none;
  }

  .vc-app-topbar h1 {
    font-size: 29px;
  }

  .vc-userbox {
    align-items: center;
    background: rgba(255, 255, 255, .70);
    border: 1px solid var(--vc-line);
    border-radius: 13px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px;
  }

  .vc-clinic-label {
    border-radius: 9px;
    max-width: 100%;
    overflow: hidden;
    padding: 9px 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vc-topbar-profile {
    min-width: 0;
  }

  .vc-avatar {
    height: 40px;
    width: 40px;
  }

  .vc-front-notice {
    border-radius: 13px;
    line-height: 1.45;
    margin-bottom: 15px;
    padding: 13px 14px;
  }

  .vc-plan-summary {
    padding: 18px;
  }

  .vc-plan-summary-grid {
    gap: 15px;
  }

  .vc-plan-summary-copy h2 {
    margin-bottom: 10px;
  }

  .vc-plan-summary-copy p,
  .vc-plan-summary-actions p {
    margin: 7px 0;
  }

  .vc-plan-summary-actions {
    border-top: 1px solid var(--vc-line);
    padding-top: 15px;
    text-align: left !important;
  }

  .vc-plan-summary-actions .vc-plan-status {
    margin-bottom: 4px;
  }

  .vc-plan-summary-actions .vc-btn {
    margin-top: 4px;
    width: 100%;
  }

  .vc-mp-plan {
    padding: 18px;
  }

  .vc-mp-plan-head {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 15px;
  }

  .vc-mp-plan-head h2 {
    font-size: 24px;
  }

  .vc-mp-details {
    grid-template-columns: 1fr;
  }

  .vc-mp-detail {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(118px, .8fr) minmax(0, 1.2fr);
    padding: 13px 14px;
  }

  .vc-mp-detail dt {
    margin: 0;
  }

  .vc-mp-detail dd {
    text-align: right;
  }

  .vc-mp-plan-actions .vc-btn {
    min-height: 48px;
    width: 100%;
  }

  .vc-plan-picker > .vc-muted {
    line-height: 1.5;
    text-align: left;
  }

  .vc-billing-toggle button {
    font-size: 13px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .vc-plan-card {
    padding: 20px;
  }

  .vc-plan-card h3 {
    font-size: 25px;
  }
}

@media (max-width: 420px) {
  .vc-app-logo {
    font-size: 22px;
  }

  .vc-app-logo small {
    font-size: 8px;
    max-width: 145px;
  }

  .vc-app-sidebar nav a {
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .vc-app-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .vc-userbox {
    grid-template-columns: 1fr;
  }

  .vc-topbar-profile {
    justify-self: stretch;
  }

  .vc-mp-plan-head {
    grid-template-columns: 1fr;
  }

  .vc-mp-status {
    justify-self: start;
  }

  .vc-mp-detail {
    align-items: start;
    gap: 4px;
    grid-template-columns: 1fr;
  }

  .vc-mp-detail dd {
    text-align: left;
  }
}

/* v0.5.38.6 — patient actions and clinic branding for budget PDFs. */
.vc-patient-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.vc-patient-actions a {
  margin-left: 0;
}

.vc-patient-actions form,
.vc-profile-delete-form {
  display: inline-flex;
  margin: 0;
}

.vc-patient-delete-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--vc-danger, #9f344f);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  margin: 0;
  min-height: 0;
  padding: 0;
  text-decoration: none;
}

.vc-patient-delete-button:hover,
.vc-patient-delete-button:focus-visible {
  color: #7f2039;
  text-decoration: underline;
}

.vc-budget-logo-settings {
  align-items: start;
  background: #fff9fc;
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr);
  margin-top: 22px;
  padding: 20px;
}

.vc-budget-logo-settings h3 {
  margin: 0 0 8px;
}

.vc-budget-logo-settings > .vc-profile-upload-form {
  grid-column: 1 / -1;
}

.vc-budget-logo-control {
  display: grid;
  gap: 12px;
}

.vc-budget-logo-preview {
  align-items: center;
  background: #fff;
  border: 1px solid #ead8e2;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  min-height: 112px;
  overflow: hidden;
  padding: 14px;
}

.vc-budget-logo-preview img {
  display: block;
  max-height: 86px;
  max-width: 100%;
  object-fit: contain;
}

.vc-budget-logo-preview.is-empty {
  color: var(--vc-muted);
  font-size: 13px;
  font-weight: 750;
}

.vc-budget-logo-upload {
  margin: 0;
}

.vc-budget-logo-remove {
  color: #7b4351;
  margin: 0;
}

@media (max-width: 700px) {
  .vc-patient-actions {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr;
  }

  .vc-patient-delete-button {
    min-height: 40px;
    text-align: left;
    width: auto;
  }

  .vc-budget-logo-settings {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .vc-profile-delete-form,
  .vc-profile-delete-form .vc-btn {
    width: 100%;
  }
}


/* v0.5.38.9 — appointment editing, visible clinical notes and team access guidance. */
.vc-appointment-notes,
.vc-photo-caption,
.vc-table-note {
  background: #fff8fb;
  border-left: 3px solid var(--vc-primary, #9a527c);
  border-radius: 8px;
  color: var(--vc-text, #302942);
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 0;
  padding: 8px 10px;
  white-space: normal;
}

.vc-photo-caption {
  margin: 10px 0;
}

.vc-team-access-note {
  background: #f7f1f7;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  padding: 12px 14px;
}

.vc-mp-explanation {
  background: #fff8e6;
  border: 1px solid #ead49b;
  border-radius: 12px;
  color: #5d4c1a;
  margin: 16px 0 0;
  padding: 12px 14px;
}


.vc-inline-edit-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 7px;
  text-decoration: none;
}

/* Mercado Pago: secure primary-card replacement. */
.vc-mp-plan-actions {
    flex-wrap: wrap;
    align-items: flex-start;
}
.vc-mp-card-update {
    width: 100%;
    margin-top: 4px;
}
.vc-mp-card-update > summary {
    display: inline-flex;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.vc-mp-card-update > summary::-webkit-details-marker {
    display: none;
}
.vc-mp-card-update-body {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #ead9e4;
    border-radius: 16px;
    background: #fff9fc;
}
.vc-mp-card-update-body h3 {
    margin: 0 0 8px;
}
.vc-mp-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 12px;
}
.vc-mp-card-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-weight: 700;
}
.vc-mp-card-field-wide {
    grid-column: 1 / -1;
}
.vc-mp-card-field input,
.vc-mp-card-field select,
.vc-mp-secure-field {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid #d9c8d4;
    border-radius: 10px;
    background: #fff;
    padding: 12px 13px;
    font: inherit;
}
.vc-mp-secure-field {
    padding: 0 12px;
    display: flex;
    align-items: center;
}
.vc-mp-secure-field iframe {
    width: 100% !important;
    min-height: 42px !important;
}
.vc-mp-sdk-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.vc-mp-card-message {
    min-height: 22px;
    margin: 4px 0 12px;
    font-size: 14px;
}
.vc-mp-card-message.is-error,
.vc-mp-card-warning {
    color: #9b263a;
}
.vc-mp-card-message.is-success {
    color: #287044;
}
.vc-mp-card-message.is-info {
    color: #65516a;
}
.vc-mp-card-warning {
    width: 100%;
    margin: 8px 0 0;
}
@media (max-width: 680px) {
    .vc-mp-card-grid {
        grid-template-columns: 1fr;
    }
    .vc-mp-card-field-wide {
        grid-column: auto;
    }
    .vc-mp-card-update-body {
        padding: 15px;
    }
}
/* v0.5.38.10 — secure Mercado Pago card replacement and access-email controls. */

/* Customer-facing fallback when automatic Mercado Pago cancellation fails. */
.vc-mp-cancel-fallback {
  background: #fff8e6;
  border: 1px solid #ead49b;
  border-radius: 12px;
  margin-top: 14px;
  padding: 14px;
  width: 100%;
}

.vc-mp-cancel-fallback p {
  color: #5d4c1a;
  line-height: 1.55;
  margin: 0 0 12px;
}

.vc-mp-cancel-fallback .vc-btn {
  margin: 0 8px 8px 0;
}

@media (max-width: 700px) {
  .vc-mp-cancel-fallback .vc-btn {
    margin-right: 0;
    width: 100%;
  }
}

.vc-mp-cancel-fallback .vc-mp-fallback-sync {
  display: inline-block;
  margin: 0;
}

@media (max-width: 700px) {
  .vc-mp-cancel-fallback .vc-mp-fallback-sync {
    display: block;
    width: 100%;
  }
}


/* Suspended/expired/cancelled centres remain visible but strictly read-only. */
.vc-app-shell.is-readonly .vc-readonly-disabled button,
.vc-app-shell.is-readonly .vc-readonly-disabled input[type="submit"],
.vc-app-shell.is-readonly .vc-readonly-disabled input[type="file"],
.vc-app-shell.is-readonly .vc-readonly-upload-hidden,
.vc-app-shell.is-readonly .vc-readonly-link-disabled {
  display: none !important;
}
.vc-app-shell.is-readonly .vc-readonly-disabled input:not([type="hidden"]):disabled,
.vc-app-shell.is-readonly .vc-readonly-disabled select:disabled,
.vc-app-shell.is-readonly .vc-readonly-disabled textarea:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  background: #f7f3f6;
  border-color: #e5dce3;
}
.vc-app-shell.is-readonly .vc-readonly-disabled [data-vc-budget-add],
.vc-app-shell.is-readonly .vc-readonly-disabled [data-vc-budget-remove] {
  display: none !important;
}


/* v0.5.38.35 — mobile patient registration order + integrated support tickets. */
.vc-support-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.vc-support-privacy-note {
  background: #fff8e8;
  border: 1px solid #ead8a9;
  border-radius: 12px;
  color: #5d4c1a;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 18px;
  padding: 12px 14px;
}

.vc-support-ticket-list {
  display: grid;
  gap: 12px;
}

.vc-support-ticket-card {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  padding: 15px 16px;
}

.vc-support-ticket-card h3 {
  font-size: 16px;
  margin: 9px 0 7px;
}

.vc-support-ticket-card p {
  color: var(--vc-muted);
  line-height: 1.55;
  margin: 0 0 8px;
}

.vc-support-ticket-card small {
  color: var(--vc-muted);
}

.vc-support-ticket-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.vc-support-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}

.vc-support-status-open {
  background: #fff2d9;
  color: #7a4c00;
}

.vc-support-status-in_progress {
  background: #eef0ff;
  color: #4f4a8a;
}

.vc-support-status-resolved,
.vc-support-status-closed {
  background: #eaf7ef;
  color: #27633c;
}

@media (max-width: 1080px) {
  .vc-support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .vc-patients-layout .vc-patient-editor {
    order: 1;
  }

  .vc-patients-layout .vc-patients-directory {
    order: 2;
  }

  .vc-support-layout {
    gap: 14px;
  }
}


/* VisoClinic 0.5.38.40 — perfiles, tratamientos e indicaciones */
.vc-professional-profile { background: var(--vc-profile-bg, #fff8fc); border-radius: 22px; padding: 10px; }
.vc-professional-profile .vc-profile-intro { background: var(--vc-profile-bg, #fff8fc); }
.vc-agenda-card, .vc-calendar-event { border-left: 5px solid var(--vc-treatment-color, #c27aa9); }
.vc-treatment-swatch { display:inline-block; width:18px; height:18px; border-radius:50%; vertical-align:middle; margin-right:8px; border:1px solid rgba(0,0,0,.12); }
.vc-treatment-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.65fr); gap:20px; }
.vc-treatment-row { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid #eee; }
.vc-prescription-actions, .vc-budget-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.vc-prescription-actions form, .vc-budget-actions form { margin:0; }
.vc-stars { font-size:20px; letter-spacing:2px; color:#b26998; }
.vc-review-card { padding:15px 0; border-bottom:1px solid #eee; }
@media(max-width:800px){.vc-treatment-grid{grid-template-columns:1fr}.vc-budget-actions,.vc-prescription-actions{width:100%}.vc-budget-actions .vc-btn,.vc-budget-actions form,.vc-budget-actions form .vc-btn{width:100%}}

/* VisoClinic 0.5.38.46 — selector directo de color estilo calendario */
.vc-event-color-field,
.vc-profile-color-field {
  border: 0;
  margin: 2px 0 8px;
  min-width: 0;
  padding: 0;
}

.vc-event-color-field legend,
.vc-profile-color-field legend {
  color: var(--vc-ink);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.vc-event-color-palette,
.vc-profile-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 8px;
}

.vc-event-color-option,
.vc-profile-color-option {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: 44px;
  position: relative;
}

.vc-event-color-option input,
.vc-profile-color-option input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.vc-event-color-option span,
.vc-profile-color-option span {
  background: var(--vc-swatch);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(48, 41, 66, .16);
  display: block;
  height: 30px;
  transition: transform .15s ease, box-shadow .15s ease;
  width: 30px;
}

.vc-event-color-option small,
.vc-profile-color-option small {
  color: var(--vc-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 56px;
  text-align: center;
}

.vc-event-color-option input:checked + span,
.vc-profile-color-option input:checked + span {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(111, 67, 106, .68);
  transform: scale(1.06);
}

.vc-event-color-option input:focus-visible + span,
.vc-profile-color-option input:focus-visible + span {
  outline: 3px solid rgba(10, 118, 225, .28);
  outline-offset: 4px;
}

.vc-professional-profile .vc-profile-intro p {
  color: var(--vc-profile-fg, var(--vc-muted));
}

/* The selected event color is the visual identity of the appointment. */
.vc-agenda-card,
.vc-calendar-event,
.vc-event-confirmada,
.vc-event-atendida,
.vc-event-pendiente,
.vc-event-reprogramada,
.vc-event-cancelada,
.vc-event-no_asistio {
  background: var(--vc-event-color, #D98FB3);
  border-left: 5px solid var(--vc-event-color, #D98FB3);
  color: var(--vc-event-text, #302942);
}

.vc-agenda-card .vc-agenda-time strong,
.vc-agenda-card .vc-agenda-info strong,
.vc-agenda-card .vc-agenda-info small,
.vc-calendar-event time,
.vc-calendar-event strong,
.vc-calendar-event small {
  color: var(--vc-event-text, #302942);
}

.vc-agenda-card .vc-agenda-time span {
  background: rgba(255, 255, 255, .28);
  color: var(--vc-event-text, #302942);
}

.vc-agenda-card .vc-agenda-actions {
  border-top-color: rgba(255, 255, 255, .42);
}

@media (max-width: 600px) {
  .vc-event-color-palette,
  .vc-profile-color-palette {
    gap: 8px 7px;
  }
  .vc-event-color-option,
  .vc-profile-color-option {
    min-width: 40px;
  }
}

/* VisoClinic 0.5.38.47 — temas completos por usuario + contraste accesible en citas */
.vc-app-shell {
  --vc-ink: var(--vc-theme-text, #2A2436);
  --vc-muted: var(--vc-theme-muted, #6E6572);
  --vc-plum: var(--vc-theme-accent-dark, #8C4F7A);
  --vc-lavender: var(--vc-theme-accent-2, #8A679C);
  --vc-mauve: var(--vc-theme-accent, #C27AA9);
  --vc-mauve-dark: var(--vc-theme-accent-dark, #8C4F7A);
  --vc-blush: var(--vc-theme-surface-soft, #FDF3F8);
  --vc-blush-strong: var(--vc-theme-surface-strong, #F7E8F1);
  --vc-panel: var(--vc-theme-surface, #FFFFFF);
  --vc-line: var(--vc-theme-line, rgba(132, 86, 128, .18));
  --vc-soft: var(--vc-theme-surface-soft, #FDF3F8);
  --vc-card-shadow: 0 18px 45px var(--vc-theme-shadow, rgba(73,45,80,.10));
  --vc-shadow: 0 24px 70px var(--vc-theme-shadow, rgba(73,45,80,.10));
  background:
    radial-gradient(circle at 18% 5%, color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 12%, transparent), transparent 31%),
    linear-gradient(180deg, var(--vc-theme-bg, #FFF8FC) 0%, var(--vc-theme-bg-alt, #FFFFFF) 48%, var(--vc-theme-bg, #FFF8FC) 100%);
  color: var(--vc-theme-text, #2A2436);
  transition: background .22s ease, color .22s ease;
}

.vc-app-shell[data-vc-theme="dark"] {
  color-scheme: dark;
}

.vc-app-shell .vc-app-sidebar {
  background: linear-gradient(180deg, var(--vc-theme-sidebar-start, #765892) 0%, var(--vc-theme-sidebar-end, #B878A4) 100%);
  border-right-color: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 18%, transparent);
  box-shadow: 20px 0 55px var(--vc-theme-shadow, rgba(73,45,80,.10));
  color: var(--vc-theme-sidebar-text, #fff);
}

.vc-app-shell .vc-app-logo,
.vc-app-shell .vc-app-logo span,
.vc-app-shell .vc-sidebar-foot a,
.vc-app-shell .vc-app-sidebar nav a:hover,
.vc-app-shell .vc-app-sidebar nav a.is-active {
  color: var(--vc-theme-sidebar-text, #fff) !important;
}

.vc-app-shell .vc-app-logo small,
.vc-app-shell .vc-sidebar-foot,
.vc-app-shell .vc-app-sidebar nav a,
.vc-app-shell .vc-app-sidebar nav a b {
  color: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 84%, transparent) !important;
}

.vc-app-shell .vc-app-sidebar nav a:hover,
.vc-app-shell .vc-app-sidebar nav a.is-active {
  background: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 17%, transparent);
  border-color: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 15%, transparent);
}

.vc-app-shell .vc-app-sidebar nav .vc-sidebar-logout-link {
  background: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 10%, transparent);
  border-color: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 14%, transparent);
}

.vc-app-shell .vc-sidebar-foot {
  border-top-color: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 18%, transparent);
}

/* Main surfaces shared by every private module. */
.vc-app-shell .vc-panel,
.vc-app-shell .vc-stat,
.vc-app-shell .vc-profile-header,
.vc-app-shell .vc-mini-month,
.vc-app-shell .vc-day-panel,
.vc-app-shell .vc-plan-card,
.vc-app-shell .vc-record-grid > div,
.vc-app-shell .vc-photo-grid figure,
.vc-app-shell .vc-support-ticket-card,
.vc-app-shell .vc-budget-logo-preview,
.vc-app-shell .vc-mp-card-update-body,
.vc-app-shell .vc-marker-row,
.vc-app-shell .vc-budget-logo-settings {
  background: var(--vc-theme-surface, #fff);
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
  color: var(--vc-theme-text, #2A2436);
}

.vc-app-shell .vc-professional-profile,
.vc-app-shell .vc-professional-profile .vc-profile-intro {
  background: transparent;
  color: var(--vc-theme-text, #2A2436);
}

.vc-app-shell .vc-profile-intro p {
  color: var(--vc-theme-muted, #6E6572);
}

.vc-app-shell .vc-team-role,
.vc-app-shell .vc-team-role-notes,
.vc-app-shell .vc-team-limit,
.vc-app-shell .vc-context-note,
.vc-app-shell .vc-calendar-empty,
.vc-app-shell .vc-marker-editor,
.vc-app-shell .vc-team-count,
.vc-app-shell .vc-plan-upgrade-inline,
.vc-app-shell .vc-billing-toggle,
.vc-app-shell .vc-mp-explanation,
.vc-app-shell .vc-mp-cancel-fallback,
.vc-app-shell .vc-support-privacy-note {
  background: var(--vc-theme-surface-soft, #FDF3F8);
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
}

.vc-app-shell .vc-userbox select,
.vc-app-shell .vc-clinic-label,
.vc-app-shell .vc-calendar-jump input[type="date"],
.vc-app-shell .vc-front-form input:not([type="file"]),
.vc-app-shell .vc-front-form select,
.vc-app-shell .vc-front-form textarea,
.vc-app-shell .vc-inline input,
.vc-app-shell .vc-inline select,
.vc-app-shell .vc-search input,
.vc-app-shell .vc-marker-editor input,
.vc-app-shell .vc-mp-card-field input,
.vc-app-shell .vc-mp-card-field select,
.vc-app-shell .vc-mp-secure-field {
  background: var(--vc-theme-input, #FFFFFF) !important;
  border-color: var(--vc-theme-line, rgba(132,86,128,.18)) !important;
  color: var(--vc-theme-text, #2A2436) !important;
}

.vc-app-shell input::placeholder,
.vc-app-shell textarea::placeholder {
  color: color-mix(in srgb, var(--vc-theme-muted, #6E6572) 78%, transparent);
  opacity: 1;
}

.vc-app-shell .vc-btn:not(.vc-btn-primary):not(.vc-btn-danger-outline),
.vc-app-shell .vc-confirmation-form button,
.vc-app-shell .vc-calendar-status-form button,
.vc-app-shell .vc-mini-btn,
.vc-app-shell .vc-brush-size,
.vc-app-shell .vc-color-swatch {
  background: var(--vc-theme-surface, #fff);
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
  color: var(--vc-theme-text, #2A2436) !important;
}

.vc-app-shell .vc-btn-primary,
.vc-app-shell button.vc-btn-primary {
  background: linear-gradient(135deg, var(--vc-theme-accent, #C27AA9), var(--vc-theme-accent-2, #8A679C));
  color: var(--vc-theme-on-accent, #fff) !important;
}

.vc-app-shell .vc-topbar-profile,
.vc-app-shell .vc-back-link,
.vc-app-shell .vc-text-link,
.vc-app-shell .vc-list-row a {
  color: var(--vc-theme-accent-dark, #8C4F7A) !important;
}

.vc-app-shell .vc-avatar {
  background: linear-gradient(135deg, var(--vc-theme-surface-strong, #F7E8F1), var(--vc-theme-surface, #fff));
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
  color: var(--vc-theme-accent-dark, #8C4F7A);
}

.vc-app-shell .vc-calendar-weekdays span,
.vc-app-shell .vc-calendar-day {
  background: color-mix(in srgb, var(--vc-theme-surface, #fff) 92%, transparent);
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
}

.vc-app-shell .vc-calendar-day.is-outside-month {
  background: color-mix(in srgb, var(--vc-theme-surface, #fff) 50%, transparent);
}

.vc-app-shell .vc-calendar-day.is-today {
  background: linear-gradient(180deg, var(--vc-theme-surface, #fff), var(--vc-theme-surface-soft, #FDF3F8));
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 60%, var(--vc-theme-line, transparent));
}

.vc-app-shell .vc-calendar-day header,
.vc-app-shell .vc-list-row,
.vc-app-shell .vc-consent-row,
.vc-app-shell .vc-agenda-actions,
.vc-app-shell .vc-team-form,
.vc-app-shell .vc-mp-plan-actions {
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
}

.vc-app-shell .vc-mini-day:hover,
.vc-app-shell .vc-mini-day.is-selected,
.vc-app-shell .vc-profile-progress span {
  background: linear-gradient(135deg, var(--vc-theme-accent, #C27AA9), var(--vc-theme-accent-2, #8A679C));
}

.vc-app-shell .vc-mini-day.is-today:not(.is-selected),
.vc-app-shell .vc-profile-progress {
  background: var(--vc-theme-surface-strong, #F7E8F1);
}

.vc-app-shell .vc-table,
.vc-app-shell .vc-table th,
.vc-app-shell .vc-table td {
  color: var(--vc-theme-text, #2A2436);
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
}

.vc-app-shell .vc-table thead th {
  background: var(--vc-theme-surface-soft, #FDF3F8);
}

.vc-app-shell .vc-photo-grid img {
  background: linear-gradient(135deg, var(--vc-theme-surface, #fff), var(--vc-theme-surface-soft, #FDF3F8));
}

.vc-app-shell .vc-budget-logo-preview.is-empty,
.vc-app-shell .vc-marker-row button,
.vc-app-shell .vc-photo-delete,
.vc-app-shell.is-readonly .vc-readonly-disabled input:not([type="hidden"]):disabled,
.vc-app-shell.is-readonly .vc-readonly-disabled select:disabled,
.vc-app-shell.is-readonly .vc-readonly-disabled textarea:disabled {
  background: var(--vc-theme-surface-soft, #FDF3F8);
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
  color: var(--vc-theme-text, #2A2436);
}

@media (max-width: 700px) {
  .vc-app-shell .vc-userbox {
    background: color-mix(in srgb, var(--vc-theme-surface, #fff) 86%, transparent);
    border-color: var(--vc-theme-line, rgba(132,86,128,.18));
  }
  .vc-app-shell .vc-app-sidebar nav a {
    background: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 8%, transparent);
    border-color: color-mix(in srgb, var(--vc-theme-sidebar-text, #fff) 10%, transparent);
  }
}

/* Full-theme picker in Mi perfil. */
.vc-ui-theme-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.vc-ui-theme-field legend {
  color: var(--vc-theme-text, #2A2436);
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 12px;
}

.vc-ui-theme-palette {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.vc-ui-theme-option {
  background: var(--vc-theme-surface-soft, #FDF3F8);
  border: 1px solid var(--vc-theme-line, rgba(132,86,128,.18));
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.vc-ui-theme-option:hover {
  transform: translateY(-1px);
}

.vc-ui-theme-option input {
  height: 1px !important;
  opacity: 0;
  position: absolute;
  width: 1px !important;
}

.vc-ui-theme-option:has(input:checked) {
  border-color: var(--vc-theme-accent, #C27AA9);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 22%, transparent);
}

.vc-ui-theme-preview {
  background: var(--vc-theme-preview-bg);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 30% 1fr;
  height: 52px;
  overflow: hidden;
  width: 100%;
}

.vc-ui-theme-preview:before {
  background: var(--vc-theme-preview-sidebar);
  content: "";
  grid-row: 1 / span 2;
}

.vc-ui-theme-preview i,
.vc-ui-theme-preview b {
  background: var(--vc-theme-preview-surface);
  border-radius: 4px;
  display: block;
  margin: 7px 8px 0;
}

.vc-ui-theme-preview b {
  margin-bottom: 7px;
  margin-top: 4px;
  opacity: .72;
}

.vc-ui-theme-option > strong {
  color: var(--vc-theme-text, #2A2436);
  font-size: 12px;
  line-height: 1.25;
}

.vc-ui-theme-option > small {
  color: var(--vc-theme-muted, #6E6572);
  font-size: 10px;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .vc-ui-theme-palette { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
}

@media (max-width: 520px) {
  .vc-ui-theme-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Appointment cards keep their own calendar color regardless of the UI theme. */
.vc-app-shell .vc-agenda-card,
.vc-app-shell .vc-calendar-event,
.vc-app-shell .vc-event-confirmada,
.vc-app-shell .vc-event-atendida,
.vc-app-shell .vc-event-pendiente,
.vc-app-shell .vc-event-reprogramada,
.vc-app-shell .vc-event-cancelada,
.vc-app-shell .vc-event-no_asistio {
  background: var(--vc-event-color, #D98FB3);
  border-color: color-mix(in srgb, var(--vc-event-text, #111827) 20%, transparent);
  border-left: 5px solid color-mix(in srgb, var(--vc-event-text, #111827) 38%, var(--vc-event-color, #D98FB3));
  color: var(--vc-event-text, #111827);
}

.vc-app-shell .vc-agenda-card .vc-agenda-time strong,
.vc-app-shell .vc-agenda-card .vc-agenda-info strong,
.vc-app-shell .vc-agenda-card .vc-agenda-info small,
.vc-app-shell .vc-calendar-event time,
.vc-app-shell .vc-calendar-event strong,
.vc-app-shell .vc-calendar-event small,
.vc-app-shell .vc-agenda-card .vc-confirmation-sent,
.vc-app-shell .vc-agenda-card .vc-confirmation-missing,
.vc-app-shell .vc-agenda-card .vc-muted {
  color: var(--vc-event-text, #111827) !important;
}

.vc-app-shell .vc-agenda-card .vc-agenda-info strong,
.vc-app-shell .vc-agenda-card .vc-agenda-time strong,
.vc-app-shell .vc-calendar-event strong,
.vc-app-shell .vc-calendar-event time {
  font-weight: 900;
}

.vc-app-shell .vc-agenda-card .vc-agenda-info small,
.vc-app-shell .vc-calendar-event small,
.vc-app-shell .vc-agenda-card .vc-confirmation-sent,
.vc-app-shell .vc-agenda-card .vc-confirmation-missing {
  font-weight: 800;
  opacity: .92;
}

.vc-app-shell .vc-agenda-card .vc-agenda-time span {
  background: color-mix(in srgb, #fff 32%, transparent);
  border: 1px solid color-mix(in srgb, var(--vc-event-text, #111827) 16%, transparent);
  color: var(--vc-event-text, #111827);
}

.vc-app-shell .vc-agenda-card .vc-agenda-actions {
  border-top-color: color-mix(in srgb, var(--vc-event-text, #111827) 22%, transparent);
}

.vc-app-shell .vc-agenda-card .vc-btn:not(.vc-btn-primary),
.vc-app-shell .vc-agenda-card .vc-confirmation-form button,
.vc-app-shell .vc-agenda-card .vc-calendar-status-form button,
.vc-app-shell .vc-agenda-card .vc-calendar-status-form select {
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(17, 24, 39, .16) !important;
  color: #252234 !important;
}

.vc-app-shell .vc-agenda-card .vc-appointment-notes {
  background: rgba(255, 255, 255, .88);
  border-left-color: rgba(17, 24, 39, .34);
  color: #1F2937;
}

.vc-app-shell .vc-agenda-card .vc-appointment-notes strong {
  color: #111827 !important;
}

/* Additional themed workspaces that previously used fixed light backgrounds. */
.vc-app-shell .vc-calendar-toolbar,
.vc-app-shell .vc-upload-drop,
.vc-app-shell .vc-attachment-list a,
.vc-app-shell .vc-profile-safety,
.vc-app-shell .vc-inline-upload,
.vc-app-shell .vc-budget-item,
.vc-app-shell .vc-budget-meta,
.vc-app-shell .vc-budget-notes,
.vc-app-shell .vc-budget-summary,
.vc-app-shell .vc-check-row,
.vc-app-shell .vc-app-drawer {
  background: var(--vc-theme-surface, #fff);
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
  color: var(--vc-theme-text, #2A2436);
}

.vc-app-shell .vc-upload-drop:hover,
.vc-app-shell .vc-table tbody tr:hover td,
.vc-app-shell .vc-budget-payment-form button:hover,
.vc-app-shell .vc-budget-payment-form button:focus-visible {
  background: var(--vc-theme-surface-soft, #FDF3F8);
}

.vc-app-shell .vc-drawer-close,
.vc-app-shell .vc-budget-payment-form button,
.vc-app-shell .vc-budget-item [data-vc-budget-remove] {
  background: var(--vc-theme-surface, #fff);
  border-color: var(--vc-theme-line, rgba(132,86,128,.18));
}

.vc-app-shell .vc-app-drawer {
  box-shadow: -24px 0 70px var(--vc-theme-shadow, rgba(73,45,80,.18));
}

.vc-app-shell .vc-drawer-overlay {
  background: color-mix(in srgb, var(--vc-theme-text, #2A2436) 28%, transparent);
}

.vc-app-shell .vc-table th,
.vc-app-shell .vc-calendar-weekdays,
.vc-app-shell .vc-calendar-day header span,
.vc-app-shell .vc-char-count,
.vc-app-shell .vc-profile-summary small,
.vc-app-shell .vc-upload-message {
  color: var(--vc-theme-muted, #6E6572);
}

/* VisoClinic 0.5.38.48 — flujo visible de PDF y correo en indicaciones */
.vc-prescription-delivery,
.vc-prescription-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--vc-theme-border, rgba(82, 61, 75, .14));
  border-radius: 18px;
  background: var(--vc-theme-surface-soft, rgba(255,255,255,.58));
}
.vc-prescription-delivery h3,
.vc-prescription-ready strong { margin: 2px 0 6px; }
.vc-prescription-delivery p,
.vc-prescription-ready p { margin: 4px 0; }
.vc-prescription-email-status,
.vc-prescription-ready small {
  display: block;
  margin-top: 8px;
  color: var(--vc-theme-muted, #6c5d68);
  font-size: 13px;
  font-weight: 700;
}
.vc-prescription-email-status.is-ready { color: #27633c; }
.vc-prescription-email-status.is-missing { color: #8a5a22; }
.vc-prescription-create-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
}
.vc-prescription-create-actions .vc-btn,
.vc-prescription-ready .vc-prescription-actions .vc-btn { white-space: nowrap; }
.vc-prescription-create-actions .vc-btn:disabled,
.vc-prescription-ready .vc-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.vc-prescription-ready { margin-bottom: 18px; }
@media (max-width: 800px) {
  .vc-prescription-delivery,
  .vc-prescription-ready { grid-template-columns: 1fr; }
  .vc-prescription-create-actions { min-width: 0; width: 100%; }
  .vc-prescription-create-actions .vc-btn,
  .vc-prescription-ready .vc-prescription-actions,
  .vc-prescription-ready .vc-prescription-actions .vc-btn,
  .vc-prescription-ready .vc-prescription-actions form { width: 100%; }
}


/* VisoClinic 0.5.38.61 — Phase 1: agenda controls, clinical summary and loading feedback. */
.vc-login-recovery-link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vc-agenda-card {
  align-items: start;
  grid-template-columns: minmax(124px, 150px) minmax(0, 1fr);
}

.vc-agenda-time,
.vc-agenda-info {
  min-width: 0;
}

.vc-agenda-time strong,
.vc-agenda-info strong,
.vc-agenda-info small {
  overflow-wrap: anywhere;
}

.vc-appointment-clinical-summary {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 10px;
}

.vc-appointment-clinical-summary span {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 10px;
  color: #252234;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  padding: 9px 10px;
  overflow-wrap: anywhere;
}

.vc-appointment-clinical-summary b {
  color: #111827 !important;
  display: block;
  font-size: 11px;
  letter-spacing: .02em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.vc-delete-appointment-form {
  display: inline-flex;
  margin: 0;
}

.vc-btn-danger {
  background: #fff !important;
  border-color: #b84a55 !important;
  color: #9d3440 !important;
}

.vc-btn-danger:hover {
  background: #fff1f2 !important;
}

.vc-drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--vc-surface, #fff);
}

.vc-drawer-close {
  box-shadow: 0 4px 14px rgba(48, 41, 66, .12);
}

.vc-drawer-body {
  padding-top: 28px;
}

.vc-loading-overlay {
  align-items: center;
  background: rgba(247, 240, 244, .86);
  backdrop-filter: blur(6px);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 20px;
  pointer-events: none;
  position: fixed;
  transition: opacity .16s ease;
  z-index: 999999;
}

.vc-loading-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.vc-loading-card {
  align-items: center;
  background: #fff;
  border: 1px solid #ead8e2;
  border-radius: 20px;
  box-shadow: 0 22px 70px rgba(60, 35, 58, .18);
  color: #302942;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 320px;
  padding: 24px 28px;
  text-align: center;
  width: min(100%, 320px);
}

.vc-loading-card span {
  color: #6e6572;
  font-size: 13px;
}

.vc-loading-mark {
  align-items: center;
  animation: vc-loading-pulse 1.2s ease-in-out infinite;
  background: #fff;
  border: 1px solid #ead8e2;
  border-radius: 50%;
  display: flex;
  height: 76px;
  justify-content: center;
  margin-bottom: 5px;
  overflow: hidden;
  width: 76px;
}

.vc-loading-mark img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@keyframes vc-loading-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(194, 122, 169, .22); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(194, 122, 169, 0); }
}

@media (max-width: 760px) {
  .vc-appointment-clinical-summary {
    grid-template-columns: 1fr;
  }
  .vc-agenda-card {
    grid-template-columns: 1fr;
  }
}


/* VisoClinic 0.5.38.62 — Phase 2: clinical templates and professional signature. */
.vc-template-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin:0 0 18px;padding:16px;border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:16px;background:var(--vc-theme-surface-soft,#fff8fb)}
.vc-template-picker label{margin:0}.vc-template-empty{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px;padding:14px 16px;border-radius:14px;background:var(--vc-theme-surface-soft,#fff8fb)}
.vc-signature-option{margin:8px 0 18px;padding:14px 16px;border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:14px}.vc-signature-option small{display:block;margin-top:7px}.vc-signature-option .is-ready{color:#27633c}.vc-signature-option .is-missing{color:#8a5a22}
.vc-template-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:22px;align-items:start}.vc-template-form{padding:18px;border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:18px;background:var(--vc-theme-surface-soft,#fff8fb)}.vc-template-form-actions,.vc-template-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.vc-template-list{display:grid;gap:10px}.vc-template-card{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 16px;border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:16px;background:var(--vc-theme-surface,#fff)}.vc-template-card>div:first-child{display:grid;gap:4px}.vc-template-card strong{font-size:15px}.vc-template-card small{color:var(--vc-theme-muted,#6e6572)}.vc-template-actions form{margin:0}
.vc-document-type-badge{display:inline-flex;width:max-content;max-width:100%;padding:4px 9px;border-radius:999px;background:var(--vc-theme-surface-strong,#f7e8f1);color:var(--vc-theme-accent-dark,#8c4f7a);font-size:11px;font-weight:800;line-height:1.2;margin-bottom:5px}
.vc-professional-signature-settings{scroll-margin-top:30px}.vc-signature-current{display:flex;flex-direction:column;gap:7px;align-items:flex-start;margin-bottom:18px}.vc-signature-current span{font-weight:800}.vc-signature-current img{display:block;max-width:300px;max-height:100px;padding:10px;background:#fff;border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:12px;object-fit:contain}.vc-signature-methods{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:18px;margin-bottom:16px}.vc-signature-methods>div{display:grid;gap:10px;align-content:start}.vc-signature-pad{width:100%;background:#fff;border:1px dashed var(--vc-theme-accent,#c27aa9);border-radius:14px;overflow:hidden}.vc-signature-pad canvas{display:block;width:100%;height:auto;aspect-ratio:720/220;touch-action:none;cursor:crosshair}
@media(max-width:800px){.vc-template-picker,.vc-template-layout,.vc-signature-methods{grid-template-columns:1fr}.vc-template-picker .vc-btn{width:100%}.vc-template-card{align-items:flex-start;flex-direction:column}.vc-template-actions{width:100%}.vc-template-actions .vc-btn,.vc-template-actions form,.vc-template-actions form button{width:100%}}

/* Phase 3 · digital consents */
.vc-consent-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:20px;align-items:start}.vc-consent-templates{grid-column:1/-1}.vc-consent-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--vc-theme-line,rgba(141,83,111,.16))}.vc-consent-row:last-child{border-bottom:0}.vc-consent-main{display:flex;flex-direction:column;gap:5px;min-width:0}.vc-consent-main small{display:block}.vc-consent-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.vc-consent-actions form{margin:0}.vc-consent-signed-link{font-weight:700}.vc-template-list{margin-top:18px;display:grid;gap:10px}.vc-template-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px;border:1px solid var(--vc-theme-line,rgba(141,83,111,.16));border-radius:14px;background:var(--vc-theme-surface-soft,#fbf7fa)}.vc-template-row>div:first-child{display:flex;flex-direction:column;gap:4px}.vc-btn-danger{background:#fff0f0!important;color:#a33c3c!important;border:1px solid #efc8c8!important}@media(max-width:980px){.vc-consent-layout{grid-template-columns:1fr}.vc-consent-templates{grid-column:auto}}@media(max-width:620px){.vc-consent-row,.vc-template-row{flex-direction:column}.vc-consent-actions{width:100%}.vc-consent-actions form{flex:1}.vc-consent-actions .vc-btn{width:100%}}

/* 0.5.38.64 · Public booking manager */
.vc-booking-intro{border-left:4px solid rgba(139,63,105,.45)}
.vc-booking-url{width:min(720px,100%);margin-top:10px;font-size:12px;background:#faf8f9!important}
.vc-booking-rule-list,.vc-booking-links{margin-top:18px}
.vc-booking-link-row{align-items:flex-start}
.vc-booking-link-row>div{min-width:0;flex:1}
.vc-booking-link-row small{display:block;margin-top:4px}
.vc-warning-text{color:#9b5a28!important}

/* Phase 5: non-clinical patient communications */
.vc-communications-intro .vc-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.vc-communications-intro .vc-stat-grid article{padding:16px;border:1px solid var(--vc-theme-border,#ead8e2);border-radius:14px;background:#fff}
.vc-communications-intro .vc-stat-grid strong{display:block;font-size:25px;line-height:1.1;color:var(--vc-theme-deep,#302942)}
.vc-communications-intro .vc-stat-grid span{display:block;margin-top:5px;font-size:12px;color:#766978}
.vc-communication-patient-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:430px;overflow:auto;padding:4px;margin:10px 0 16px}
.vc-communication-patient{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--vc-theme-border,#ead8e2);border-radius:12px;background:#fff;cursor:pointer}
.vc-communication-patient input{margin-top:3px}
.vc-communication-patient strong,.vc-communication-patient small{display:block}
.vc-communication-patient small{margin-top:3px;color:#766978}
.vc-birthday-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
@media(max-width:760px){.vc-communications-intro .vc-stat-grid,.vc-communication-patient-list{grid-template-columns:1fr}}

/* VisoClinic 0.5.38.68 — Phase 8: advanced agenda and integrations. */
.vc-agenda-advanced-toolbar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid var(--vc-border, #eadfea);
  border-radius: 16px;
  background: var(--vc-surface, #fff);
}
.vc-agenda-view-switch { display:flex; gap:8px; flex-wrap:wrap; }
.vc-agenda-staff-filter { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.vc-agenda-staff-options { display:flex; gap:8px 12px; flex-wrap:wrap; }
.vc-agenda-staff-options label { display:inline-flex; align-items:center; gap:6px; font-size:13px; }
.vc-staff-dot { width:10px; height:10px; border-radius:999px; background:var(--vc-staff-color,#5B7CFA); display:inline-block; flex:0 0 10px; }
.vc-advanced-agenda { min-width:0; }
.vc-day-columns { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(300px, 1fr); gap:14px; overflow-x:auto; padding:4px 2px 12px; scroll-snap-type:x proximity; }
.vc-professional-day-column { min-width:300px; border:1px solid var(--vc-border,#eadfea); border-top:4px solid var(--vc-staff-color,#5B7CFA); border-radius:16px; background:var(--vc-surface,#fff); padding:12px; scroll-snap-align:start; }
.vc-professional-day-column > header { display:flex; gap:9px; align-items:center; padding:2px 2px 12px; }
.vc-professional-day-column > header div { display:grid; gap:2px; }
.vc-professional-day-column > header small { color:var(--vc-muted,#6b7280); }
.vc-professional-day-column .vc-agenda-card { grid-template-columns:1fr; gap:10px; padding:12px; margin-bottom:10px; }
.vc-professional-day-column .vc-agenda-actions { justify-content:flex-start; }
.vc-professional-day-column .vc-appointment-clinical-summary { grid-template-columns:1fr; }
.vc-column-block { padding:9px 10px; margin-bottom:10px; border-radius:10px; background:#fff6e8; border:1px solid #f7d6a7; font-size:12px; font-weight:700; }
.vc-column-block small { display:block; font-weight:400; margin-top:3px; }
.vc-week-grid { display:grid; grid-template-columns:repeat(7,minmax(180px,1fr)); gap:10px; overflow-x:auto; padding-bottom:12px; }
.vc-week-day { min-height:260px; border:1px solid var(--vc-border,#eadfea); border-radius:14px; background:var(--vc-surface,#fff); padding:10px; }
.vc-week-day.is-today { box-shadow:inset 0 0 0 2px var(--vc-primary,#7f3f98); }
.vc-week-day > header a { display:flex; justify-content:space-between; gap:8px; text-decoration:none; color:inherit; padding-bottom:9px; border-bottom:1px solid var(--vc-border,#eadfea); }
.vc-week-event { display:grid; gap:3px; margin-top:9px; padding:9px; border-left:4px solid var(--vc-staff-color,#5B7CFA); border-radius:9px; background:rgba(127,63,152,.05); color:inherit; text-decoration:none; }
.vc-week-event time { font-size:11px; font-weight:800; }
.vc-week-event strong { font-size:13px; }
.vc-week-event small { font-size:11px; color:var(--vc-muted,#6b7280); }
.vc-week-block { margin-top:8px; padding:6px 8px; border-radius:8px; background:#fff6e8; font-size:11px; font-weight:700; }
.vc-integration-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.vc-integration-card { min-width:0; }
.vc-integration-card h2 { margin-bottom:8px; }
.vc-integration-settings { margin:14px 0; border:1px solid var(--vc-border,#eadfea); border-radius:12px; padding:10px 12px; }
.vc-integration-settings summary { cursor:pointer; font-weight:800; }
.vc-integration-status { display:grid; gap:4px; margin:14px 0; padding:12px; border-radius:12px; background:#f6f5f7; }
.vc-integration-status.is-connected { background:#edf9f0; border:1px solid #bde6c8; }
.vc-integration-status span,.vc-integration-status small { font-size:12px; color:var(--vc-muted,#6b7280); }
.vc-inline-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.vc-integration-form .vc-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.vc-whatsapp-test { margin-top:16px; padding-top:14px; border-top:1px solid var(--vc-border,#eadfea); }
@media (max-width: 980px) {
  .vc-integration-grid { grid-template-columns:1fr; }
  .vc-week-grid { grid-template-columns:repeat(7,minmax(210px,1fr)); }
}
@media (max-width: 700px) {
  .vc-agenda-advanced-toolbar,.vc-agenda-staff-filter { align-items:stretch; flex-direction:column; }
  .vc-agenda-view-switch .vc-btn { flex:1; text-align:center; }
  .vc-agenda-staff-options { display:grid; grid-template-columns:1fr 1fr; }
  .vc-day-columns { grid-auto-columns:minmax(86vw,1fr); }
  .vc-integration-form .vc-form-grid { grid-template-columns:1fr; }
}
@media (max-width: 430px) {
  .vc-agenda-staff-options { grid-template-columns:1fr; }
  .vc-day-columns { grid-auto-columns:92vw; }
}

/* Phase 9 — structured facial applications */
.vc-clinical-map-workspace {
  padding: 18px;
  border: 1px solid var(--vc-border, #eadde6);
  border-radius: 16px;
  background: #fff;
}
.vc-map-mode-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.vc-map-mode-head h3 { margin: 3px 0 5px; }
.vc-map-mode-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #eadde6;
  border-radius: 10px;
  background: #f8f3f7;
  flex: 0 0 auto;
}
.vc-map-mode-tabs button {
  border: 0;
  background: transparent;
  color: #746878;
  border-radius: 8px;
  padding: 9px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.vc-map-mode-tabs button.is-active {
  background: #fff;
  color: #6c456e;
  box-shadow: 0 5px 16px rgba(70,42,75,.08);
}
.vc-clinical-map-workspace > [data-vc-map-panel] > .vc-form-section {
  margin: 0;
}
.vc-application-map-field { margin-top: 2px; }
.vc-application-design-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
  padding:13px 14px;
  border:1px solid #eadde6;
  border-radius:12px;
  background:linear-gradient(135deg,#fff8fb,#fff);
}
.vc-application-design-toolbar strong { display:block; margin-top:2px; color:#514255; font-size:13px; }
.vc-application-design-actions { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-end; }
.vc-application-design-actions .vc-mini-btn:disabled { opacity:.42; cursor:not-allowed; }
.vc-application-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) minmax(360px, .92fr);
  gap: 18px;
  align-items: start;
}
.vc-application-side { display:grid; gap:14px; min-width:0; }
.vc-application-canvas-wrap,
.vc-application-editor,
.vc-application-summary {
  border: 1px solid #eadde6;
  border-radius: 14px;
  background: #fff;
}
.vc-application-canvas-wrap { padding: 14px; }
.vc-application-canvas { cursor: crosshair; }
.vc-application-canvas canvas { touch-action: none; cursor: crosshair; }
.vc-application-color-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.vc-application-color-row > span {
  font-size: 11px;
  font-weight: 800;
  color: #6e6170;
  margin-right: 2px;
}
.vc-application-editor { padding: 16px; }
.vc-application-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.vc-application-editor-head h4 { margin: 2px 0 0; }
.vc-application-fields {
  display: grid;
  gap: 11px;
}
.vc-application-fields[hidden] { display: none !important; }
.vc-application-fields label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #655769;
}
.vc-application-fields input,
.vc-application-fields select,
.vc-application-fields textarea {
  width: 100%;
  border: 1px solid #e5d8e2;
  border-radius: 8px;
  background: #fff;
  color: #453b49;
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
}
.vc-application-fields textarea { resize: vertical; }
.vc-application-summary { margin-top: 0; padding: 16px; }
.vc-application-summary .vc-panel-heading { margin-bottom: 12px; }
.vc-application-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vc-application-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12px;
}
.vc-application-table th,
.vc-application-table td {
  padding: 10px 9px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #efe5eb;
}
.vc-application-table th {
  color: #756777;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vc-app-number {
  --app-color: #c27aa9;
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--app-color);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(61,39,65,.15);
}
.vc-app-actions { white-space: nowrap; }
.vc-application-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.vc-application-preview-map-block {
  display: grid;
  gap: 10px;
}
.vc-application-preview-map-title {
  align-items: center;
  color: #655769;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.vc-application-preview-map-title span {
  color: var(--vc-muted);
  font-size: 12px;
}
.vc-application-preview-map {
  margin: 0 auto;
  max-width: 1180px;
  min-height: 0;
  width: 100%;
}
.vc-application-preview-map img {
  display: block;
  width: 100%;
  height: auto;
}
.vc-application-preview-map canvas {
  inset: 0;
  position: absolute;
  width: 100%;
  height: 100% !important;
  pointer-events: none;
}
.vc-application-history { margin-top: 18px; }
.vc-application-prior-history {
  margin-top:16px;
  padding:16px;
  border:1px solid #eadde6;
  border-radius:14px;
  background:#fff;
}
.vc-application-history-table { min-width:980px; }

@media (max-width: 900px) {
  .vc-map-mode-head { align-items: stretch; flex-direction: column; }
  .vc-map-mode-tabs { width: 100%; }
  .vc-map-mode-tabs button { flex: 1 1 0; }
  .vc-application-layout,
  .vc-application-preview-grid { grid-template-columns: 1fr; }
  .vc-application-design-toolbar { align-items:flex-start; flex-direction:column; }
  .vc-application-design-actions { justify-content:flex-start; width:100%; }
}
@media (max-width: 520px) {
  .vc-clinical-map-workspace { padding: 12px; }
  .vc-map-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .vc-application-canvas-wrap,
  .vc-application-editor,
  .vc-application-summary { border-radius: 11px; }
  .vc-application-design-actions { display:grid; grid-template-columns:1fr 1fr; }
  .vc-application-design-actions .vc-mini-btn { width:100%; }
}

/* 0.5.38.72 — Loom parity refinements for clinical application workflow */

/* 0.5.38.71 — clinical application sessions and advanced agenda */
.vc-application-session-head{margin:0 0 18px;padding:16px;border:1px solid var(--vc-border,#eadfea);border-radius:14px;background:rgba(127,63,152,.035)}
.vc-application-session-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;margin-top:12px}
.vc-application-session-grid label{display:grid;gap:6px;font-weight:700}
.vc-application-session-grid input,.vc-application-session-grid select,.vc-application-session-grid textarea{width:100%}
.vc-application-session-grid .vc-app-session-note{grid-column:1/-1}
.vc-app-summary-metrics{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.vc-application-session-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0 16px}
.vc-application-session-meta span{padding:10px 12px;border:1px solid var(--vc-border,#eadfea);border-radius:10px;background:#fff}
.vc-application-session-meta b{display:block;font-size:11px;color:var(--vc-muted,#6b7280);margin-bottom:3px;text-transform:uppercase;letter-spacing:.04em}

.vc-agenda-status-filter{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.vc-agenda-status-filter label{display:grid;gap:4px;font-weight:700}
.vc-agenda-status-filter select{min-width:160px}
.vc-day-list-view{margin-top:12px}
.vc-day-list-block{display:flex;gap:10px;align-items:center;padding:10px 12px;margin-bottom:10px;border-radius:10px;background:#fff6e8;border:1px solid #f7d6a7}
.vc-table-wrap{overflow:auto}
.vc-day-list-table{width:100%;border-collapse:collapse;min-width:1050px}
.vc-day-list-table th,.vc-day-list-table td{padding:10px 9px;border-bottom:1px solid var(--vc-border,#eadfea);vertical-align:top;text-align:left}
.vc-day-list-table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--vc-muted,#6b7280)}
.vc-day-list-table td small{display:block;margin-top:4px;color:var(--vc-muted,#6b7280)}
.vc-last-evolution a{display:grid;gap:2px;text-decoration:none;color:inherit;max-width:220px}
.vc-day-list-actions{display:flex;gap:6px;flex-wrap:wrap}

.vc-week-timeline{display:grid;grid-template-columns:64px repeat(7,minmax(150px,1fr));overflow:auto;min-width:1160px;border:1px solid var(--vc-border,#eadfea);border-radius:14px;background:#fff}
.vc-week-time-head{grid-column:1;grid-row:1;height:58px;border-right:1px solid var(--vc-border,#eadfea);border-bottom:1px solid var(--vc-border,#eadfea)}
.vc-week-day-head{height:58px;padding:8px 10px;display:grid;align-content:center;text-align:center;text-decoration:none;color:inherit;border-right:1px solid var(--vc-border,#eadfea);border-bottom:1px solid var(--vc-border,#eadfea)}
.vc-week-day-head span{font-size:12px;color:var(--vc-muted,#6b7280)}
.vc-week-day-head.is-today{background:rgba(127,63,152,.08)}
.vc-week-time-rail{position:relative;height:var(--vc-week-height);border-right:1px solid var(--vc-border,#eadfea);background:#fafafa}
.vc-week-time-rail span{position:absolute;right:8px;transform:translateY(-7px);font-size:10px;color:var(--vc-muted,#6b7280);font-weight:700}
.vc-week-time-day{position:relative;height:var(--vc-week-height);border-right:1px solid var(--vc-border,#eadfea);background:repeating-linear-gradient(to bottom,#fff 0,#fff 59px,var(--vc-border,#eadfea) 60px)}
.vc-week-time-day.is-today{background:repeating-linear-gradient(to bottom,rgba(127,63,152,.035) 0,rgba(127,63,152,.035) 59px,var(--vc-border,#eadfea) 60px)}
.vc-week-time-event{position:absolute;top:var(--vc-top);height:var(--vc-height);left:5px;right:5px;z-index:2;overflow:hidden;padding:5px 7px;border-left:4px solid var(--vc-staff-color,#5B7CFA);border-radius:7px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.08);text-decoration:none;color:inherit;display:grid;align-content:start;gap:1px}
.vc-week-time-event time{font-size:10px;font-weight:800}.vc-week-time-event strong{font-size:11px}.vc-week-time-event small{font-size:10px;color:var(--vc-muted,#6b7280)}
.vc-week-time-block{position:absolute;top:var(--vc-top);height:var(--vc-height);left:3px;right:3px;z-index:1;background:rgba(245,158,11,.13);border:1px dashed rgba(180,83,9,.45);border-radius:6px;padding:4px;font-size:10px;overflow:hidden}
.vc-week-time-block.is-all-day{position:sticky;top:0;height:auto;z-index:3;margin:3px;background:#fff6e8}
@media (max-width:1100px){.vc-application-session-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}
@media (max-width:700px){.vc-application-session-grid{grid-template-columns:1fr}.vc-week-timeline{min-width:1080px}}
/* VisoClinic 0.5.38.75 — Agenda: Día → Semana → Mes, calendario mensual expandido y color real de citas. */
.vc-day-card-view {
  margin-top: 12px;
}

.vc-day-card-stack {
  display: grid;
  gap: 12px;
}

.vc-day-card-stack .vc-agenda-card {
  margin: 0;
}


.vc-week-time-event {
  background: var(--vc-event-color, #D98FB3);
  border: 1px solid color-mix(in srgb, var(--vc-event-color, #D98FB3) 78%, #000 22%);
  border-left: 5px solid var(--vc-event-color, #D98FB3);
  color: var(--vc-event-text, #302942);
  box-shadow: 0 2px 8px rgba(48, 41, 66, .14);
}

.vc-week-time-event time,
.vc-week-time-event strong,
.vc-week-time-event small {
  color: var(--vc-event-text, #302942);
}

.vc-week-time-event strong {
  display: block;
  font-size: 12px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-month-view {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.vc-month-toolbar {
  margin-bottom: 0;
}

.vc-month-calendar {
  background: var(--vc-theme-surface, #fff);
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 18px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

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

.vc-month-weekdays {
  background: var(--vc-theme-surface-soft, #FDF3F8);
  border-bottom: 1px solid var(--vc-theme-line, var(--vc-line));
}

.vc-month-weekdays span {
  color: var(--vc-theme-muted, var(--vc-muted));
  font-size: 12px;
  font-weight: 850;
  padding: 12px 8px;
  text-align: center;
}

.vc-month-day {
  background: var(--vc-theme-surface, #fff);
  border-bottom: 1px solid var(--vc-theme-line, var(--vc-line));
  border-right: 1px solid var(--vc-theme-line, var(--vc-line));
  color: var(--vc-theme-text, var(--vc-ink)) !important;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 132px;
  padding: 10px;
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.vc-month-day:nth-child(7n) {
  border-right: 0;
}

.vc-month-day:hover {
  background: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 6%, #fff 94%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 28%, transparent);
  position: relative;
  z-index: 1;
}

.vc-month-day.is-today {
  box-shadow: inset 0 0 0 2px var(--vc-theme-accent, #C27AA9);
}

.vc-month-day.is-outside-month {
  background: color-mix(in srgb, var(--vc-theme-surface-soft, #FDF3F8) 72%, #fff 28%);
  opacity: .58;
}

.vc-month-day.is-blocked {
  background-image: repeating-linear-gradient(135deg, rgba(160,70,80,.06) 0, rgba(160,70,80,.06) 8px, rgba(160,70,80,.11) 8px, rgba(160,70,80,.11) 16px);
}

.vc-month-day header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 28px;
}

.vc-month-day header strong {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 15px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.vc-month-day.is-today header strong {
  background: var(--vc-theme-accent, #C27AA9);
  color: #fff;
}

.vc-month-block-indicator {
  align-items: center;
  background: #fff0f2;
  border: 1px solid rgba(160, 70, 80, .22);
  border-radius: 999px;
  color: #a04650;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.vc-month-event-dots {
  align-content: start;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 12px;
}

.vc-month-event-dot {
  background: var(--vc-event-color, #D98FB3);
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(48,41,66,.10);
  display: inline-block;
  height: 13px;
  width: 13px;
}

.vc-month-more {
  color: var(--vc-theme-muted, var(--vc-muted));
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .vc-month-day {
    min-height: 104px;
    padding: 8px;
  }

  .vc-month-weekdays span {
    font-size: 10px;
    padding: 10px 4px;
  }

  .vc-month-event-dot {
    height: 11px;
    width: 11px;
  }
}

@media (max-width: 700px) {
  .vc-month-calendar {
    overflow-x: auto;
  }

  .vc-month-weekdays,
  .vc-month-grid {
    min-width: 700px;
  }

  .vc-month-day {
    min-height: 92px;
  }

  .vc-month-weekdays span {
    font-size: 11px;
  }

  .vc-agenda-view-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vc-agenda-view-switch .vc-btn {
    justify-content: center;
    width: 100%;
  }
}

/* VisoClinic 0.5.38.76 — accesos principales de Agenda. */
.vc-agenda-primary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .vc-agenda-primary-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .vc-agenda-primary-actions .vc-btn {
    justify-content: center;
    width: 100%;
  }
}

/* VisoClinic 0.5.38.77 — Semana: las citas cortas siempre muestran hora y paciente. */
.vc-week-time-event.is-compact {
  align-content: center;
  gap: 0;
  padding: 2px 5px;
}

.vc-week-time-event.is-compact time {
  font-size: 8px;
  line-height: 1;
}

.vc-week-time-event.is-compact strong {
  display: block;
  font-size: 10px;
  line-height: 1.05;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-week-time-event.is-compact small {
  display: none;
}

/* VisoClinic 0.5.38.78 — mejora de contraste tipográfico en tarjetas y agenda. */
.vc-week-time-event {
  border-color: color-mix(in srgb, var(--vc-event-text, #111827) 26%, transparent);
  border-left-color: color-mix(in srgb, var(--vc-event-text, #111827) 34%, var(--vc-event-color, #D98FB3));
  text-shadow: 0 1px 0 rgba(255,255,255,.16);
}

.vc-week-time-event time {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.05;
}

.vc-week-time-event strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.12;
}

.vc-week-time-event small {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.08;
  opacity: .97;
}

.vc-week-time-event.is-compact {
  gap: 1px;
  padding: 3px 6px;
}

.vc-week-time-event.is-compact time {
  font-size: 9px;
  font-weight: 900;
}

.vc-week-time-event.is-compact strong {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.08;
}

.vc-app-shell .vc-agenda-card,
.vc-app-shell .vc-calendar-event {
  text-shadow: 0 1px 0 rgba(255,255,255,.14);
}

.vc-app-shell .vc-agenda-card .vc-agenda-time strong,
.vc-app-shell .vc-agenda-card .vc-agenda-info strong,
.vc-app-shell .vc-calendar-event strong,
.vc-app-shell .vc-calendar-event time {
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: .005em;
  line-height: 1.14;
}

.vc-app-shell .vc-agenda-card .vc-agenda-info small,
.vc-app-shell .vc-calendar-event small,
.vc-app-shell .vc-agenda-card .vc-confirmation-sent,
.vc-app-shell .vc-agenda-card .vc-confirmation-missing,
.vc-app-shell .vc-agenda-card .vc-muted {
  font-size: .96rem;
  font-weight: 850;
  line-height: 1.28;
  opacity: .98;
}

.vc-app-shell .vc-agenda-card .vc-agenda-time span {
  background: color-mix(in srgb, #fff 42%, transparent);
  border-color: color-mix(in srgb, var(--vc-event-text, #111827) 18%, transparent);
}

.vc-app-shell .vc-agenda-card .vc-appointment-notes {
  background: rgba(255, 255, 255, .92);
}

/* VisoClinic 0.5.38.79 — prueba con tipografía blanca en citas coloreadas. */
.vc-week-time-event,
.vc-app-shell .vc-agenda-card,
.vc-app-shell .vc-calendar-event,
.vc-app-shell .vc-event-confirmada,
.vc-app-shell .vc-event-atendida,
.vc-app-shell .vc-event-pendiente,
.vc-app-shell .vc-event-reprogramada,
.vc-app-shell .vc-event-cancelada,
.vc-app-shell .vc-event-no_asistio {
  --vc-event-text: #FFFFFF;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}

.vc-week-time-event time,
.vc-week-time-event strong,
.vc-week-time-event small,
.vc-app-shell .vc-agenda-card .vc-agenda-time strong,
.vc-app-shell .vc-agenda-card .vc-agenda-info strong,
.vc-app-shell .vc-agenda-card .vc-agenda-info small,
.vc-app-shell .vc-calendar-event time,
.vc-app-shell .vc-calendar-event strong,
.vc-app-shell .vc-calendar-event small,
.vc-app-shell .vc-agenda-card .vc-confirmation-sent,
.vc-app-shell .vc-agenda-card .vc-confirmation-missing,
.vc-app-shell .vc-agenda-card .vc-muted {
  color: #FFFFFF !important;
}

.vc-week-time-event {
  border-color: rgba(255,255,255,.28);
  border-left-color: rgba(255,255,255,.52);
}

.vc-app-shell .vc-agenda-card,
.vc-app-shell .vc-calendar-event {
  border-color: rgba(255,255,255,.22);
  border-left-color: rgba(255,255,255,.42);
}

.vc-app-shell .vc-agenda-card .vc-agenda-time span {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  color: #FFFFFF !important;
}

.vc-app-shell .vc-agenda-card .vc-appointment-notes {
  background: rgba(255,255,255,.92);
  border-left-color: rgba(17,24,39,.18);
  color: #1F2937 !important;
  text-shadow: none;
}

.vc-app-shell .vc-agenda-card .vc-appointment-notes strong,
.vc-app-shell .vc-agenda-card .vc-appointment-notes small,
.vc-app-shell .vc-agenda-card .vc-appointment-notes .vc-muted {
  color: #111827 !important;
  text-shadow: none;
}

.vc-app-shell .vc-agenda-card .vc-btn:not(.vc-btn-primary),
.vc-app-shell .vc-agenda-card .vc-confirmation-form button,
.vc-app-shell .vc-agenda-card .vc-calendar-status-form button,
.vc-app-shell .vc-agenda-card .vc-calendar-status-form select {
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(17,24,39,.14) !important;
  color: #252234 !important;
  text-shadow: none;
}

/* VisoClinic 0.5.38.81 — avatar superior estable ante cambios de tema. */
.vc-avatar.has-photo {
  overflow: hidden;
  padding: 0;
}

.vc-avatar.has-photo img {
  border-radius: inherit;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.vc-app-shell .vc-avatar.has-photo {
  background: transparent;
}

/* VisoClinic 0.5.38.83 — Pacientes: búsqueda bajo demanda y ficha clínica amplia. */
.vc-sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.vc-patients-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.vc-patient-search-panel {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, .72fr) minmax(420px, 1.28fr);
  padding: 20px 22px;
}

.vc-patient-search-copy h2,
.vc-patient-editor-heading h2 {
  margin-bottom: 6px;
}

.vc-patient-search-copy p,
.vc-patient-editor-heading p {
  color: var(--vc-theme-muted, var(--vc-muted));
  line-height: 1.45;
  margin: 0;
}

.vc-patient-search-form {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.vc-patient-search-form input[type="search"] {
  background: var(--vc-theme-input, #fff);
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 12px;
  color: var(--vc-theme-text, var(--vc-ink));
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 0 15px;
  width: 100%;
}

.vc-patient-search-form input[type="search"]:focus {
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 62%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 14%, transparent);
  outline: 0;
}

.vc-patient-search-results {
  padding: 18px 22px;
}

.vc-patient-search-result {
  padding: 14px 0;
}

.vc-patient-search-result:first-child {
  padding-top: 4px;
}

.vc-patient-editor-wide {
  padding: 22px;
  width: 100%;
}

.vc-patient-editor-heading {
  border-bottom: 1px solid var(--vc-theme-line, var(--vc-line));
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.vc-patient-editor-form {
  display: block;
}

.vc-patient-intake-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .75fr);
  min-width: 0;
}

.vc-patient-intake-main,
.vc-patient-diagram-side {
  min-width: 0;
}

.vc-patient-intake-main {
  display: grid;
  gap: 18px;
}

.vc-patient-intake-main > .vc-form-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.vc-patient-intake-main .vc-form-section {
  background: var(--vc-theme-surface-soft, #fffafd);
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 14px;
  padding: 16px;
}

.vc-patient-diagram-side {
  position: sticky;
  top: 18px;
}

.vc-patient-diagram-side .vc-face-diagram-field {
  margin: 0;
}

.vc-patient-diagram-side .vc-face-diagram {
  grid-template-columns: minmax(0, 1fr);
}

.vc-patient-diagram-side .vc-face-toolbar {
  gap: 7px;
}

.vc-patient-diagram-side .vc-face-notes {
  margin-top: 14px;
}

.vc-patient-save-bar {
  align-items: center;
  border-top: 1px solid var(--vc-theme-line, var(--vc-line));
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 18px;
}

.vc-patient-save-bar .vc-btn {
  min-width: 180px;
}

@media (max-width: 1180px) {
  .vc-patient-intake-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  }

  .vc-patient-search-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .vc-patient-intake-layout {
    grid-template-columns: 1fr;
  }

  .vc-patient-diagram-side {
    position: static;
  }
}

@media (max-width: 700px) {
  .vc-patient-search-panel,
  .vc-patient-search-results,
  .vc-patient-editor-wide {
    padding: 14px;
  }

  .vc-patient-search-form {
    grid-template-columns: 1fr;
  }

  .vc-patient-search-form .vc-btn,
  .vc-patient-save-bar .vc-btn {
    width: 100%;
  }

  .vc-patient-save-bar {
    display: block;
  }

  .vc-patient-intake-main .vc-form-section {
    padding: 13px;
  }
}

/* VisoClinic 0.5.38.85 — centra el diagrama facial y añade detalles condicionales de hábitos. */
.vc-patient-diagram-side .vc-face-diagram-field > h3 {
  text-align: center;
}

.vc-patient-diagram-side .vc-face-diagram {
  justify-items: center;
}

.vc-patient-diagram-side .vc-face-diagram > div:first-child {
  margin-inline: auto;
  max-width: 520px;
  width: 100%;
}

.vc-patient-diagram-side .vc-face-toolbar {
  justify-content: center;
}

.vc-patient-diagram-side .vc-face-toolbar > span {
  text-align: center;
}

.vc-patient-diagram-side .vc-brush-size {
  margin-inline: auto;
  max-width: 260px;
  width: 100%;
}

.vc-patient-diagram-side .vc-face-canvas {
  margin-inline: auto;
}

.vc-patient-diagram-side .vc-face-help {
  text-align: center;
}

.vc-habit-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.vc-conditional-detail {
  background: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 6%, var(--vc-theme-surface, #fff));
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 12px;
  padding: 11px 12px;
}

.vc-conditional-detail[hidden] {
  display: none !important;
}

.vc-choice-field {
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 14px;
  margin: 0;
  padding: 14px;
  min-width: 0;
}

.vc-choice-field legend {
  font-weight: 700;
  padding: 0 6px;
}

.vc-choice-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.vc-choice-option {
  align-items: center;
  background: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 4%, var(--vc-theme-surface, #fff));
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
}

.vc-choice-option input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.vc-choice-other {
  display: block;
  margin-top: 10px;
}

.vc-choice-other[hidden] {
  display: none !important;
}

/* VisoClinic 0.5.38.86 — corrige alineación interna del control Grosor sin centrar todo el diagrama. */
.vc-patient-diagram-side .vc-face-diagram-field > h3 {
  text-align: left;
}

.vc-patient-diagram-side .vc-face-diagram {
  justify-items: stretch;
}

.vc-patient-diagram-side .vc-face-diagram > div:first-child {
  margin-inline: 0;
  max-width: none;
  width: 100%;
}

.vc-patient-diagram-side .vc-face-toolbar {
  align-items: center;
  justify-content: flex-start;
}

.vc-patient-diagram-side .vc-face-toolbar > span {
  text-align: left;
}

.vc-patient-diagram-side .vc-face-help {
  text-align: left;
}

/* El selector de grosor ocupa una fila propia y respeta exactamente el padding del panel. */
.vc-front-form label.vc-brush-size,
.vc-patient-diagram-side .vc-brush-size {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex: 1 0 100%;
  gap: 12px;
  justify-content: flex-start;
  margin: 2px 0 0;
  max-width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  width: 100%;
}

.vc-front-form label.vc-brush-size {
  color: var(--vc-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
}

/* Neutraliza los estilos de input de texto que estaban desplazando el range. */
.vc-front-form .vc-brush-size input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  flex: 1 1 auto;
  height: 24px;
  margin: 0;
  min-width: 0;
  padding: 0;
  width: auto;
}

.vc-front-form .vc-brush-size input[type="range"]::-webkit-slider-runnable-track {
  background: #d7d7d9;
  border: 0;
  border-radius: 999px;
  height: 5px;
}

.vc-front-form .vc-brush-size input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--vc-theme-accent, var(--vc-mauve-dark));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(48, 41, 66, .22);
  height: 20px;
  margin-top: -7.5px;
  width: 20px;
}

.vc-front-form .vc-brush-size input[type="range"]::-moz-range-track {
  background: #d7d7d9;
  border: 0;
  border-radius: 999px;
  height: 5px;
}

.vc-front-form .vc-brush-size input[type="range"]::-moz-range-thumb {
  background: var(--vc-theme-accent, var(--vc-mauve-dark));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(48, 41, 66, .22);
  height: 20px;
  width: 20px;
}

@media (max-width: 700px) {
  .vc-front-form label.vc-brush-size,
  .vc-patient-diagram-side .vc-brush-size {
    width: 100%;
  }
}


/* VisoClinic 0.5.38.87 — Ficha clínica separada de Evolución. */
.vc-clinical-files-workspace {
  display: grid;
  gap: 18px;
}

.vc-clinical-files-search {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, .55fr) minmax(360px, 1.45fr);
  align-items: end;
}

.vc-clinical-files-search h2,
.vc-clinical-files-search p {
  margin-bottom: 0;
}

.vc-clinical-files-search-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.vc-clinical-files-search-form input[type="search"] {
  background: var(--vc-theme-input, #fff);
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 12px;
  color: var(--vc-theme-text, var(--vc-ink));
  font: inherit;
  min-height: 48px;
  padding: 0 15px;
  width: 100%;
}

.vc-clinical-files-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 480px;
  overflow-y: auto;
  padding: 3px 5px 3px 1px;
}

.vc-clinical-file-card {
  align-items: center;
  background: var(--vc-theme-surface-soft, #FDF3F8);
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 13px 14px;
}

.vc-clinical-file-card > div {
  min-width: 0;
}

.vc-clinical-file-card strong,
.vc-clinical-file-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-clinical-file-card strong {
  color: var(--vc-theme-text, var(--vc-ink));
  font-size: 14px;
  font-weight: 900;
}

.vc-clinical-file-card small {
  color: var(--vc-theme-muted, var(--vc-muted));
  font-size: 11px;
  margin-top: 4px;
}

.vc-clinical-files-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.vc-clinical-files-pagination span {
  color: var(--vc-theme-muted, var(--vc-muted));
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .vc-clinical-files-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vc-clinical-files-search {
    grid-template-columns: 1fr;
  }

  .vc-clinical-files-search-form {
    grid-template-columns: 1fr;
  }

  .vc-clinical-files-search-form .vc-btn {
    justify-content: center;
    width: 100%;
  }

  .vc-clinical-files-grid {
    grid-template-columns: 1fr;
    max-height: 440px;
  }

  .vc-clinical-file-card {
    grid-template-columns: 1fr;
  }
}

/* VisoClinic 0.5.38.88 — alinea el buscador de Evoluciones con el encabezado. */
.vc-records-heading {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.vc-records-heading > div,
.vc-records-heading .vc-record-search {
  margin-left: 0;
  max-width: 620px;
  width: 100%;
}

.vc-records-heading .vc-record-search {
  justify-self: start;
}
/* VisoClinic 0.5.38.89 — selector de ficha clínica y alertas clínicas en Agenda. */
.vc-clinical-files-picker {
  max-width: 1040px;
}

.vc-clinical-files-picker-form {
  margin-top: 18px;
}

.vc-clinical-file-selected {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.vc-clinical-file-selected h2,
.vc-clinical-file-selected p {
  margin-bottom: 0;
}

.vc-appointment-clinical-summary > span.is-clinical-empty {
  background: rgba(255,255,255,.96);
  border-color: rgba(17,24,39,.12);
  color: #252234;
  box-shadow: none;
}

.vc-appointment-clinical-summary > span.has-clinical-alert {
  background: #FFF0F1;
  border-color: #D95462;
  box-shadow: inset 0 0 0 1px rgba(217,84,98,.16);
  color: #8F2430;
}

.vc-appointment-clinical-summary > span.has-clinical-alert b {
  color: #A12634 !important;
}

.vc-appointment-clinical-summary .vc-clinical-summary-value {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  display: block;
  font: inherit;
  line-height: inherit;
  min-height: 1.35em;
  padding: 0;
}

@media (max-width: 700px) {
  .vc-clinical-file-selected {
    align-items: stretch;
    flex-direction: column;
  }

  .vc-clinical-file-selected .vc-btn {
    justify-content: center;
    width: 100%;
  }
}

/* VisoClinic 0.5.38.90 — Evolución: selector de paciente, formulario escrito en 2 columnas y mapa facial a ancho completo. */
.vc-evolution-workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.vc-evolution-patient-picker,
.vc-evolution-create {
  width: 100%;
}

.vc-evolution-patient-form {
  margin-top: 18px;
}

.vc-evolution-selected-patient {
  align-items: center;
  background: var(--vc-theme-surface-soft, #FDF3F8);
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0 18px;
  padding: 11px 14px;
}

.vc-evolution-selected-patient span {
  color: var(--vc-theme-muted, var(--vc-muted));
  font-size: 12px;
  font-weight: 800;
}

.vc-evolution-selected-patient strong {
  color: var(--vc-theme-text, var(--vc-ink));
  font-size: 15px;
}

.vc-evolution-form {
  display: grid;
  gap: 22px;
}

.vc-evolution-written-grid {
  display: grid;
  gap: 16px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.vc-evolution-written-grid > label {
  align-self: start;
  margin: 0;
  min-width: 0;
}

.vc-evolution-written-grid textarea {
  min-height: 116px;
}

.vc-evolution-map-large {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 24px;
  width: 100%;
}

.vc-evolution-map-large .vc-face-diagram-field {
  padding: 22px;
  width: 100%;
}

.vc-evolution-map-large .vc-face-diagram,
.vc-evolution-map-large .vc-face-canvas {
  width: 100%;
}

.vc-evolution-map-large .vc-face-canvas {
  border-radius: 18px;
}

.vc-evolution-map-large .vc-face-toolbar {
  margin-bottom: 16px;
}

.vc-evolution-map-large .vc-color-swatch {
  height: 42px;
  width: 42px;
}

.vc-evolution-map-large .vc-color-swatch::before {
  height: 30px;
  width: 30px;
}

.vc-evolution-photos {
  margin-top: 0;
}

.vc-evolution-save {
  display: flex;
  justify-content: flex-end;
}

.vc-evolution-save .vc-btn {
  min-width: 190px;
}

@media (max-width: 900px) {
  .vc-evolution-written-grid {
    grid-template-columns: 1fr;
  }

  .vc-evolution-map-large,
  .vc-evolution-map-large .vc-face-diagram-field {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  .vc-evolution-map-large,
  .vc-evolution-map-large .vc-face-diagram-field {
    padding: 12px;
  }

  .vc-evolution-save,
  .vc-evolution-save .vc-btn {
    width: 100%;
  }
}

/* VisoClinic 0.5.38.91 — Evolución reutiliza el selector completo de Ficha clínica. */
.vc-evolution-patient-picker {
  max-width: 1040px;
}

.vc-evolution-patient-form .vc-form-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-evolution-patient-form .vc-form-row > label,
.vc-evolution-patient-form input[type="search"],
.vc-evolution-patient-form select {
  min-width: 0;
  width: 100%;
}

@media (max-width: 700px) {
  .vc-evolution-patient-form .vc-form-row {
    grid-template-columns: 1fr;
  }
}

/* VisoClinic 0.5.38.92 — selector universal de pacientes en el portal. */
.vc-patient-picker-standard {
  max-width: 1040px;
  width: 100%;
}

.vc-patient-picker-standard > h2 {
  margin-bottom: 6px;
}

.vc-patient-picker-standard > .vc-muted {
  line-height: 1.45;
  margin-bottom: 0;
}

.vc-patient-picker-standard-form {
  margin-top: 18px;
}

.vc-patient-picker-standard-form .vc-patient-picker-fields {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-patient-picker-standard-form .vc-patient-picker-fields > label,
.vc-patient-picker-standard-form input[type="search"],
.vc-patient-picker-standard-form select {
  min-width: 0;
  width: 100%;
}

.vc-patient-picker-standard-form input[type="search"],
.vc-patient-picker-standard-form select {
  min-height: 46px;
}

.vc-patient-picker-standard .vc-form-actions {
  justify-content: flex-start;
}

.vc-patient-picker-empty {
  margin: 14px 0 0;
}

@media (max-width: 700px) {
  .vc-patient-picker-standard-form .vc-patient-picker-fields {
    grid-template-columns: 1fr;
  }

  .vc-patient-picker-standard-form .vc-form-actions,
  .vc-patient-picker-standard-form .vc-form-actions .vc-btn {
    width: 100%;
  }
}

/* VisoClinic 0.5.38.93 — Evolución: mapa primero, rostro real M/H, puntos compactos y búsqueda viva. */
.vc-sidebar-syringe svg,
.vc-sidebar-gift svg,
.vc-sidebar-consent svg {
  display: block;
  height: 19px;
  width: 19px;
}

.vc-sidebar-syringe svg,
.vc-sidebar-gift svg,
.vc-sidebar-consent svg {
  fill: none;
}

.vc-evolution-map-large {
  margin-top: 18px;
}

.vc-application-layout {
  grid-template-columns: minmax(0, 1fr);
}

.vc-application-side {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  min-width: 0;
}

.vc-application-canvas-wrap {
  padding: 18px;
}

.vc-application-canvas {
  margin: 0 auto;
  max-width: 1180px;
}

.vc-map-person-selector {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 12px;
}

.vc-map-person-selector > span {
  color: #655769;
  font-size: 12px;
  font-weight: 850;
}

.vc-map-person-selector > div {
  background: #f8f3f7;
  border: 1px solid #eadde6;
  border-radius: 999px;
  display: inline-flex;
  padding: 3px;
}

.vc-map-person-selector button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #746878;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 16px;
}

.vc-map-person-selector button.is-active {
  background: #fff;
  box-shadow: 0 4px 12px rgba(70,42,75,.10);
  color: #6c456e;
}

.vc-add-zone-btn {
  justify-self: start;
  margin-top: -2px;
}

.vc-patient-live-search {
  position: relative;
  z-index: 20;
}

.vc-patient-live-results {
  background: #fff;
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(44,35,49,.14);
  display: grid;
  left: 0;
  max-height: 330px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
}

.vc-patient-live-results[hidden] {
  display: none !important;
}

.vc-patient-live-results button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--vc-theme-text, var(--vc-ink));
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 11px;
  text-align: left;
  width: 100%;
}

.vc-patient-live-results button:hover,
.vc-patient-live-results button:focus-visible {
  background: var(--vc-theme-surface-soft, #FDF3F8);
  outline: none;
}

.vc-patient-live-results strong {
  font-size: 13px;
}

.vc-patient-live-results small {
  color: var(--vc-theme-muted, var(--vc-muted));
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .vc-application-side {
    grid-template-columns: 1fr;
  }
  .vc-application-canvas-wrap {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .vc-map-person-selector {
    align-items: stretch;
    flex-direction: column;
  }
  .vc-map-person-selector > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .vc-patient-live-results small {
    display: none;
  }
}


/* VisoClinic 0.5.38.95 — evita que el botón X se desplace en Zonas pintadas. */
.vc-marker-list {
  overflow: hidden;
}

.vc-marker-row > :last-child {
  margin-left: auto;
}

/* VisoClinic 0.5.38.96 — Mensajes Gift Card con imagen + link de agendamiento. */
.vc-giftcard-examples .vc-panel-heading { margin-bottom: 16px; }
.vc-giftcard-example-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vc-giftcard-example-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--vc-theme-line, rgba(132,86,128,.18));
  border-radius: 16px;
  background: var(--vc-theme-surface, #fff);
}
.vc-giftcard-example-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
  background: #f9f6f0;
}
.vc-giftcard-example-grid figcaption {
  padding: 10px 12px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--vc-theme-text, #2A2436);
}
.vc-giftcard-template-form { display: grid; gap: 14px; }
.vc-giftcard-image-field {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--vc-theme-line, rgba(132,86,128,.18));
  border-radius: 16px;
  background: var(--vc-theme-surface-soft, #FDF3F8);
}
.vc-giftcard-image-field > div:first-child { display: grid; gap: 4px; }
.vc-giftcard-image-field > div:first-child strong { font-size: 13px; }
.vc-giftcard-image-field > div:first-child span { font-size: 12px; color: var(--vc-theme-muted, #6E6572); }
.vc-giftcard-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px dashed var(--vc-theme-accent, #C27AA9);
  border-radius: 12px;
  background: #fff;
  color: var(--vc-theme-accent-dark, #8C4F7A);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.vc-giftcard-upload input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.vc-giftcard-upload-preview {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.vc-giftcard-upload-preview[hidden] { display: none !important; }
.vc-giftcard-upload-preview img {
  display: block;
  width: min(280px, 100%);
  max-height: 320px;
  object-fit: contain;
  border: 1px solid var(--vc-theme-line, rgba(132,86,128,.18));
  border-radius: 14px;
  background: #fff;
}
.vc-giftcard-upload-preview label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.vc-giftcard-booking-note {
  display: grid;
  gap: 6px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--vc-theme-line, rgba(132,86,128,.18));
  border-radius: 14px;
  background: var(--vc-theme-surface-soft, #FDF3F8);
}
.vc-giftcard-booking-note span { color: var(--vc-theme-muted, #6E6572); font-size: 12px; }
.vc-giftcard-booking-note .vc-btn { width: max-content; margin-top: 4px; }
.vc-giftcard-booking-help { margin: -2px 0 4px; }
.vc-giftcard-template-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}
.vc-giftcard-template-card {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-areas: "image copy" "actions actions";
}
.vc-giftcard-card-image { grid-area: image; }
.vc-giftcard-card-image img {
  display: block;
  width: 108px;
  height: 124px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--vc-theme-line, rgba(132,86,128,.18));
}
.vc-giftcard-card-copy { grid-area: copy; display: grid; align-content: start; gap: 4px; min-width: 0; }
.vc-giftcard-template-card .vc-template-actions { grid-area: actions; justify-content: flex-end; }
.vc-giftcard-template-card.no-image { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "actions"; }
@media (max-width: 900px) {
  .vc-giftcard-example-grid,
  .vc-giftcard-template-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .vc-giftcard-template-card { grid-template-columns: 86px minmax(0, 1fr); }
  .vc-giftcard-card-image img { width: 86px; height: 100px; }
  .vc-giftcard-template-card .vc-template-actions { justify-content: stretch; }
  .vc-giftcard-template-card .vc-template-actions .vc-btn,
  .vc-giftcard-template-card .vc-template-actions form,
  .vc-giftcard-template-card .vc-template-actions form button { width: 100%; }
}


/* VisoClinic 0.5.38.97 — historial directo, VisoMap ampliado y navegación Gift Card. */
.vc-evolution-patient-history { margin-top: 18px; }
.vc-evolution-history-list { display: grid; gap: 10px; }
.vc-evolution-history-row {
  align-items: center;
  background: #fff;
  border: 1px solid #eadde6;
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 13px 14px;
}
.vc-evolution-history-row > div { display: grid; gap: 3px; min-width: 0; }
.vc-evolution-history-row span { color: #655769; font-size: 12px; font-weight: 800; }
.vc-evolution-history-row small { color: var(--vc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .vc-evolution-history-row { grid-template-columns: 1fr; }
  .vc-evolution-history-row .vc-btn { width: 100%; }
}


/* VisoClinic 0.5.38.102 — procedimientos múltiples por evolución y Gift Cards descargables. */
.vc-application-procedure-totals {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.vc-application-procedure-total {
  align-items: center;
  background: #fff7fb;
  border: 1px solid #eadde6;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 11px;
}
.vc-application-procedure-total strong { color: #5d4963; font-size: 12px; }
.vc-application-procedure-total span { color: #8b6a84; font-size: 12px; font-weight: 850; }
.vc-giftcard-example-signature { color: var(--vc-theme-text, #544858); font-size: 12px; font-weight: 900; margin: 10px 0 0; }
.vc-giftcard-example-grid figcaption { display: grid; gap: 9px; }
.vc-giftcard-example-grid figcaption > span { font-weight: 850; }
.vc-giftcard-example-download { justify-self: center; width: max-content; }

.vc-application-overall-total {
  align-items: center;
  background: linear-gradient(135deg,#fff7fb,#fff);
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.vc-application-overall-total span { color: var(--vc-theme-muted, #6e6572); font-size: 13px; font-weight: 750; }
.vc-application-overall-total strong { color: #76506e; font-size: 18px; }
@media(max-width:600px){.vc-application-overall-total{align-items:flex-start;flex-direction:column;}}

/* VisoClinic 0.5.38.102 — Consentimientos: buscador unificado, biblioteca y firma remota. */
.vc-consent-workspace {
  display: grid;
  gap: 22px;
}

.vc-consent-main-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  align-items: start;
}

.vc-consent-patient-picker {
  margin-bottom: 0;
}

.vc-consent-create-panel,
.vc-consent-library-panel,
.vc-consent-docs-panel {
  min-width: 0;
}

.vc-consent-selected-patient {
  margin: 10px 0 18px;
}

.vc-consent-empty-state {
  display: grid;
  gap: 6px;
}

.vc-consent-create-form,
.vc-consent-template-editor .vc-front-form {
  gap: 14px;
}

.vc-consent-searchbar {
  position: relative;
  margin-top: 14px;
}

.vc-consent-searchbar input[type="search"] {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  border: 1px solid var(--vc-line);
  background: #fff;
  font: inherit;
}

.vc-consent-searchbar input[type="search"]:focus {
  outline: none;
  border-color: var(--vc-mauve);
  box-shadow: 0 0 0 3px rgba(197, 118, 155, .14);
}

.vc-consent-searchbar span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vc-muted);
  font-size: 17px;
  pointer-events: none;
}

.vc-consent-template-catalog,
.vc-consent-list {
  margin-top: 16px;
}

.vc-consent-template-catalog {
  display: grid;
  gap: 10px;
}

.vc-consent-template-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--vc-line);
  border-radius: 16px;
  background: #fff;
}

.vc-consent-template-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff4f8;
  color: var(--vc-mauve);
}

.vc-consent-template-icon svg {
  width: 20px;
  height: 20px;
}

.vc-consent-template-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vc-consent-template-copy strong {
  color: var(--vc-ink);
}

.vc-consent-template-copy small {
  color: var(--vc-muted);
}

.vc-consent-template-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vc-consent-template-actions form {
  margin: 0;
}

.vc-consent-template-editor {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(141, 83, 111, .14);
}

.vc-consent-template-editor h3 {
  margin: 4px 0 12px;
  font-size: 22px;
}

.vc-consent-docs-panel {
  grid-column: 1 / -1;
}

.vc-consent-docs-panel .vc-panel-heading strong {
  align-self: flex-start;
}

.vc-consent-row {
  padding: 18px 0;
}

.vc-consent-row .vc-consent-main {
  gap: 6px;
}

.vc-consent-row .vc-consent-actions {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .vc-consent-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .vc-consent-template-card {
    grid-template-columns: 1fr;
  }

  .vc-consent-template-icon {
    width: 40px;
    height: 40px;
  }

  .vc-consent-template-actions,
  .vc-consent-row .vc-consent-actions {
    width: 100%;
    justify-content: stretch;
  }

  .vc-consent-template-actions .vc-btn,
  .vc-consent-template-actions form,
  .vc-consent-template-actions form .vc-btn,
  .vc-consent-row .vc-consent-actions form,
  .vc-consent-row .vc-consent-actions .vc-btn {
    width: 100%;
  }
}
/* VisoClinic 0.5.38.102 — Evolución: un solo VisoMap con tarjetas por procedimiento. */
.vc-application-procedure-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.vc-application-procedure-card {
  padding: 16px;
  border: 1px solid #eadfea;
  border-radius: 16px;
  background: #fffafc;
}

.vc-application-procedure-card-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.vc-application-procedure-card-head h4 {
  margin: 2px 0 0;
  color: var(--vc-ink);
  font-size: 20px;
}

.vc-application-procedure-card-head strong {
  color: #5d4963;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .vc-application-procedure-card-head {
    flex-direction: column;
  }
}
/* VisoClinic 0.5.38.104 — comparaciones de fotografías clínicas. */
.vc-sidebar-fontawesome {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.vc-sidebar-fontawesome i {
  font-size: 16px;
  line-height: 1;
}

.vc-photo-comparison-list {
  display: grid;
  gap: 18px;
}

.vc-photo-comparison-card {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(73, 45, 80, .05);
  overflow: hidden;
}

.vc-photo-comparison-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 14px;
}

.vc-photo-comparison-head strong,
.vc-photo-comparison-head small {
  display: block;
}

.vc-photo-comparison-head small {
  color: var(--vc-muted);
  font-size: 12px;
  margin-top: 4px;
}

.vc-photo-comparison-stage {
  background: #f7f3f5;
  position: relative;
}

.vc-photo-slider {
  aspect-ratio: 16 / 10;
  min-height: 260px;
  overflow: hidden;
  user-select: none;
}

.vc-photo-slider img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

.vc-photo-slider-overlay {
  clip-path: inset(0 calc(100% - var(--vc-compare-pos)) 0 0);
}

.vc-photo-slider-line {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(83, 54, 68, .16), 0 4px 14px rgba(48, 27, 37, .24);
  height: 100%;
  left: var(--vc-compare-pos);
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 3px;
  z-index: 3;
}

.vc-photo-slider-line span {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(83, 54, 68, .16);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(48, 27, 37, .22);
  display: flex;
  font-size: 15px;
  height: 38px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
}

.vc-photo-slider-range {
  cursor: col-resize;
  height: 100%;
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 4;
}

.vc-photo-comparison-grid {
  display: grid;
  gap: 4px;
  padding: 4px;
}

.vc-photo-comparison-grid figure {
  background: #f7f3f5;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.vc-photo-comparison-grid img {
  display: block;
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.vc-photo-comparison-grid figcaption {
  background: rgba(35, 24, 31, .72);
  bottom: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  left: 8px;
  padding: 4px 8px;
  position: absolute;
  text-transform: capitalize;
}

.vc-photo-layout-two_vertical .vc-photo-comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-photo-layout-two_horizontal .vc-photo-comparison-grid {
  grid-template-columns: 1fr;
}

.vc-photo-layout-two_horizontal .vc-photo-comparison-grid img {
  height: 280px;
}

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

.vc-photo-layout-four .vc-photo-comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-photo-layout-six .vc-photo-comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vc-photo-layout-three .vc-photo-comparison-grid img,
.vc-photo-layout-six .vc-photo-comparison-grid img {
  height: 210px;
}

.vc-photo-comparison-caption {
  border-top: 1px solid var(--vc-line);
  margin: 0;
  padding: 12px 14px 14px;
}

.vc-photo-comparison-builder .vc-front-form {
  margin-top: 20px;
}

.vc-photo-layout-picker {
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 22px;
  padding: 0;
}

.vc-photo-layout-picker legend {
  font-weight: 800;
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.vc-photo-layout-option {
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 13px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 130px;
  padding: 12px;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.vc-photo-layout-option:hover {
  box-shadow: 0 8px 22px rgba(73, 45, 80, .08);
  transform: translateY(-1px);
}

.vc-photo-layout-option:has(input:checked) {
  border-color: var(--vc-mauve);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vc-mauve) 18%, transparent);
}

.vc-photo-layout-option input {
  position: absolute;
  right: 10px;
  top: 10px;
}

.vc-photo-layout-option strong {
  font-size: 13px;
}

.vc-photo-layout-option small {
  color: var(--vc-muted);
  font-size: 11px;
}

.vc-photo-layout-icon {
  display: grid;
  gap: 3px;
  height: 62px;
  max-width: 92px;
  padding-right: 24px;
}

.vc-photo-layout-icon i {
  background: linear-gradient(135deg, #f2dce7, #e8c7d6);
  border: 1px solid rgba(109, 70, 91, .16);
  border-radius: 4px;
}

.vc-layout-icon-slider,
.vc-layout-icon-two_vertical {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-layout-icon-two_horizontal {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

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

.vc-layout-icon-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-layout-icon-slider {
  position: relative;
}

.vc-layout-icon-slider::after {
  background: rgba(255, 255, 255, .95);
  content: '';
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
}

.vc-photo-picker-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 10px;
}

.vc-photo-picker-heading span {
  color: var(--vc-muted);
  font-size: 12px;
  font-weight: 700;
}

.vc-photo-comparison-picker {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
  max-height: 430px;
  overflow: auto;
  padding: 2px;
}

.vc-photo-pick-card {
  border: 1px solid var(--vc-line);
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  gap: 7px;
  overflow: hidden;
  padding: 6px;
  position: relative;
}

.vc-photo-pick-card input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.vc-photo-pick-card:has(input:checked) {
  border-color: var(--vc-mauve);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vc-mauve) 16%, transparent);
}

.vc-photo-pick-image {
  background: #f7f3f5;
  border-radius: 8px;
  display: block;
  height: 105px;
  overflow: hidden;
  position: relative;
}

.vc-photo-pick-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.vc-photo-pick-image b {
  align-items: center;
  background: var(--vc-mauve);
  border-radius: 50%;
  color: #fff;
  display: none;
  height: 26px;
  justify-content: center;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 26px;
}

.vc-photo-pick-card:has(input:checked) .vc-photo-pick-image b {
  display: flex;
}

.vc-photo-pick-card > span:last-child strong,
.vc-photo-pick-card > span:last-child small {
  display: block;
}

.vc-photo-pick-card > span:last-child strong {
  font-size: 12px;
}

.vc-photo-pick-card > span:last-child small {
  color: var(--vc-muted);
  font-size: 10px;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .vc-photo-layout-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vc-photo-comparison-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vc-photo-layout-three .vc-photo-comparison-grid,
  .vc-photo-layout-six .vc-photo-comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .vc-photo-layout-picker,
  .vc-photo-comparison-picker {
    grid-template-columns: 1fr 1fr;
  }

  .vc-photo-layout-three .vc-photo-comparison-grid,
  .vc-photo-layout-four .vc-photo-comparison-grid,
  .vc-photo-layout-six .vc-photo-comparison-grid {
    grid-template-columns: 1fr;
  }

  .vc-photo-slider {
    min-height: 220px;
  }
}

/* VisoClinic 0.5.38.105 — presupuestos e indicaciones con buscador compartido. */
.vc-budget-editor-full {
  width: 100%;
}

.vc-budget-patient-picker,
.vc-prescription-patient-picker {
  margin-bottom: 18px;
}

.vc-module-empty {
  margin-top: 0;
}

.vc-module-empty > strong {
  color: var(--vc-ink);
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.vc-budget-catalog-help {
  align-items: flex-start;
  background: var(--vc-theme-surface-soft, #fff8fb);
  border: 1px solid var(--vc-theme-line, rgba(132, 86, 128, .18));
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 14px;
  padding: 13px 15px;
}

.vc-budget-catalog-help strong {
  color: var(--vc-ink);
  font-size: 13px;
}

.vc-budget-catalog-help span {
  color: var(--vc-muted);
  font-size: 12px;
  line-height: 1.5;
}

.vc-budget-treatment-field {
  position: relative;
}

.vc-budget-treatment-search {
  position: relative;
}

.vc-budget-treatment-suggestions {
  background: #fff;
  border: 1px solid var(--vc-theme-line, rgba(132, 86, 128, .2));
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(75, 42, 69, .13);
  left: 0;
  max-height: 290px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

.vc-budget-treatment-suggestions[hidden] {
  display: none;
}

.vc-budget-treatment-suggestions button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--vc-ink);
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 10px 11px;
  text-align: left;
  width: 100%;
}

.vc-budget-treatment-suggestions button:hover,
.vc-budget-treatment-suggestions button:focus-visible {
  background: var(--vc-theme-surface-soft, #fff4f9);
  outline: none;
}

.vc-budget-treatment-suggestions strong {
  display: block;
  font-size: 13px;
  min-height: auto;
  white-space: normal;
}

.vc-budget-treatment-suggestions small {
  color: var(--vc-muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.vc-treatment-price {
  color: var(--vc-plum);
  font-weight: 750;
  margin-top: 3px;
}

@media (min-width: 1281px) {
  .vc-budget-editor-full .vc-budget-item {
    grid-template-columns: minmax(250px, 1.55fr) 78px 78px 82px 126px 128px minmax(86px, auto) 36px;
  }
}

@media (max-width: 680px) {
  .vc-budget-treatment-suggestions {
    position: static;
    margin-top: 6px;
  }
  .vc-budget-treatment-suggestions button {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* VisoClinic 0.5.38.106 — archivos propios reutilizables en Consentimientos. */
.vc-consent-template-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.vc-consent-file-badge {
  background: #f3edf7;
  color: #6d4f78;
}
.vc-consent-template-source-note {
  gap: 7px;
  align-items: start;
}
.vc-consent-template-source-note .vc-btn {
  justify-self: start;
  margin-top: 3px;
}
.vc-consent-current-file {
  padding: 12px 14px;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  background: var(--vc-theme-surface-soft, #fbf7fa);
  color: var(--vc-ink);
  font-size: 13px;
  font-weight: 700;
}
.vc-consent-remove-file {
  margin-top: -4px;
}
.vc-consent-remove-file[hidden],
.vc-consent-current-file[hidden],
.vc-consent-template-source-note[hidden] {
  display: none !important;
}


/* VisoClinic 0.5.38.108 — corrección de nombre visible del módulo: Documentos. */
.vc-starter-consent-upload{display:flex;flex:0 0 100%;margin:2px 0 0;padding:0}.vc-starter-consent-upload .vc-btn-linklike{font-size:12px;line-height:1.25;padding:7px 9px;white-space:normal;text-align:left;width:auto}.vc-consent-template-actions{flex-wrap:wrap}.vc-consent-template-actions .vc-starter-consent-upload{max-width:100%}


/* VisoClinic 0.5.38.110 — presupuestos manuales y tarjetas de plantillas sin solapamientos. */
.vc-budget-service-field { min-width: 0; }
.vc-budget-service-field input { width: 100%; }
@media (max-width: 680px) {
  .vc-budget-item { grid-template-columns: 1fr 1fr; }
  .vc-budget-item label:first-of-type,
  .vc-budget-item strong { grid-column: 1 / -1; }
  .vc-budget-item [data-vc-budget-remove] { grid-column: 2; justify-self: end; }
}
.vc-consent-template-card {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
}
.vc-consent-template-actions {
  grid-column: 2;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
}
.vc-consent-template-actions .vc-starter-consent-upload {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
}
.vc-starter-consent-upload .vc-btn-linklike {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
@media (max-width: 720px) {
  .vc-consent-template-card { grid-template-columns: 40px minmax(0, 1fr); }
  .vc-consent-template-actions { grid-column: 1 / -1; }
}

/* VisoClinic 0.5.38.111 — presupuesto limpio y tarjetas predeterminadas compactas. */
.vc-consent-template-card-system {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon copy action"
    ". footer footer";
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  padding: 12px 14px;
}
.vc-consent-template-card-system .vc-consent-template-icon { grid-area: icon; }
.vc-consent-template-card-system .vc-consent-template-copy { grid-area: copy; gap: 3px; }
.vc-consent-template-card-system .vc-consent-template-main-action {
  grid-area: action;
  align-self: center;
  justify-self: end;
}
.vc-consent-template-card-system .vc-consent-template-main-action .vc-btn {
  min-height: 38px;
  padding-inline: 16px;
}
.vc-consent-template-card-system .vc-consent-template-footer {
  grid-area: footer;
  border-top: 1px solid rgba(141, 83, 111, .12);
  min-width: 0;
  padding-top: 7px;
}
.vc-consent-template-card-system .vc-starter-consent-upload {
  display: flex;
  margin: 0;
  padding: 0;
}
.vc-consent-template-card-system .vc-starter-consent-upload .vc-btn-linklike {
  min-height: 32px;
  padding: 5px 10px;
  width: auto;
}
.vc-consent-template-card-custom {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
}
.vc-consent-template-card-custom .vc-consent-template-actions {
  grid-column: auto;
  justify-content: flex-end;
  width: auto;
}
@media (max-width: 720px) {
  .vc-consent-template-card-system {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon copy action"
      ". footer footer";
    padding: 11px 12px;
  }
  .vc-consent-template-card-system .vc-consent-template-main-action .vc-btn {
    min-height: 36px;
    padding-inline: 13px;
  }
  .vc-consent-template-card-custom {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .vc-consent-template-card-custom .vc-consent-template-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    width: 100%;
  }
}

/* VisoClinic 0.5.38.112 — correcciones Edgar: Evolución y Consentimientos. */
.vc-consent-docs-picker {
  grid-column: 1 / -1;
  margin: 0;
}
.vc-consent-docs-filter-note {
  margin-top: 8px;
  color: var(--vc-theme-muted, var(--vc-muted));
  font-size: 13px;
}
.vc-consent-docs-filter-note a {
  color: var(--vc-theme-accent, var(--vc-mauve));
  font-weight: 800;
}

.vc-evolution-photos {
  display: grid;
  gap: 16px;
}
.vc-evolution-photos .vc-panel-heading {
  margin-bottom: 0;
}
.vc-evolution-photos .vc-panel-heading h3 {
  margin: 3px 0 5px;
}
.vc-evolution-photos [data-vc-evolution-photo-total] {
  align-self: flex-start;
  background: var(--vc-theme-surface-soft, #fdf3f8);
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 999px;
  color: var(--vc-theme-text, var(--vc-ink));
  font-size: 12px;
  padding: 7px 11px;
  white-space: nowrap;
}
.vc-evolution-photo-groups {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vc-evolution-photo-batch {
  background: #fff;
  border: 1px solid var(--vc-theme-line, var(--vc-line));
  border-radius: 14px;
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 14px;
}
.vc-evolution-photo-batch-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.vc-evolution-photo-batch-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.vc-evolution-photo-batch-head strong {
  color: var(--vc-theme-text, var(--vc-ink));
  font-size: 15px;
}
.vc-evolution-photo-batch-head small {
  color: var(--vc-theme-muted, var(--vc-muted));
  line-height: 1.35;
}
.vc-evolution-photo-batch-head > span {
  background: #f8eef4;
  border-radius: 999px;
  color: #7d5a73;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
}
.vc-evolution-photo-picker {
  background: var(--vc-theme-surface-soft, #fdf7fa);
  border: 1px dashed #d9bfd0;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 12px;
}
.vc-evolution-photo-picker > span {
  color: var(--vc-theme-accent, var(--vc-mauve));
  font-weight: 850;
}
.vc-evolution-photo-picker input[type="file"] {
  width: 100%;
}
.vc-evolution-photo-picker small {
  color: var(--vc-theme-muted, var(--vc-muted));
}
.vc-evolution-photo-filelist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.vc-evolution-photo-filelist[hidden] {
  display: none !important;
}
.vc-evolution-photo-file {
  align-items: center;
  background: #f7eef4;
  border-radius: 999px;
  color: #655366;
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  padding: 5px 6px 5px 10px;
}
.vc-evolution-photo-file > span {
  font-size: 11px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vc-evolution-photo-file button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: #8a5577;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  height: 22px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 22px;
}
.vc-evolution-photo-caption {
  margin: 0;
}
.vc-evolution-photo-caption textarea {
  min-height: 70px;
}

@media (max-width: 820px) {
  .vc-evolution-photo-groups {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .vc-evolution-photo-batch-head,
  .vc-evolution-photos .vc-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .vc-evolution-photo-batch-head > span,
  .vc-evolution-photos [data-vc-evolution-photo-total] {
    align-self: flex-start;
  }
}


/* VisoClinic 0.5.38.113 — iconografía unificada con Font Awesome. */
.vc-app-sidebar nav a .vc-sidebar-fontawesome {
  align-items: center;
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  width: 22px;
}
.vc-app-sidebar nav a .vc-sidebar-fontawesome i {
  color: inherit;
  font-size: 16px;
  line-height: 1;
  width: 1em;
}

/* VisoClinic 0.5.38.114 — selector compacto con previsualización de fotografías. */
.vc-photo-pick-image[data-vc-photo-preview-trigger] {
  cursor: zoom-in;
  outline: 0;
}

.vc-photo-pick-image[data-vc-photo-preview-trigger]:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vc-mauve) 24%, transparent);
}

.vc-photo-pick-image[data-vc-photo-preview-trigger] img {
  transition: transform .18s ease, filter .18s ease;
}

.vc-photo-pick-image[data-vc-photo-preview-trigger]:hover img,
.vc-photo-pick-image[data-vc-photo-preview-trigger]:focus-visible img {
  filter: brightness(.92);
  transform: scale(1.04);
}

.vc-photo-preview-hint {
  align-items: center;
  background: rgba(39, 25, 35, .78);
  border-radius: 999px;
  bottom: 7px;
  color: #fff;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 4px;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  padding: 6px 9px;
  pointer-events: none;
  position: absolute;
  right: 7px;
  transform: translateY(3px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 2;
}

.vc-photo-pick-image[data-vc-photo-preview-trigger]:hover .vc-photo-preview-hint,
.vc-photo-pick-image[data-vc-photo-preview-trigger]:focus-visible .vc-photo-preview-hint {
  opacity: 1;
  transform: translateY(0);
}

.vc-photo-preview-modal[hidden] {
  display: none !important;
}

.vc-photo-preview-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100000;
}

.vc-photo-preview-backdrop {
  background: rgba(28, 18, 26, .68);
  backdrop-filter: blur(5px);
  inset: 0;
  position: absolute;
}

.vc-photo-preview-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(24, 13, 22, .34);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-width: 880px;
  overflow: hidden;
  position: relative;
  width: min(880px, 92vw);
  z-index: 1;
}

.vc-photo-preview-close {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(95, 69, 86, .16);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(35, 20, 31, .16);
  color: var(--vc-ink);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  z-index: 3;
}

.vc-photo-preview-stage {
  align-items: center;
  background: #f7f3f5;
  display: flex;
  justify-content: center;
  min-height: 320px;
  overflow: auto;
}

.vc-photo-preview-stage img {
  display: block;
  max-height: calc(100vh - 190px);
  max-width: 100%;
  object-fit: contain;
}

.vc-photo-preview-footer {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 16px 16px;
}

.vc-photo-preview-footer strong,
.vc-photo-preview-footer small {
  display: block;
}

.vc-photo-preview-footer small {
  color: var(--vc-muted);
  margin-top: 4px;
}

body.vc-photo-preview-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .vc-photo-preview-modal {
    padding: 12px;
  }

  .vc-photo-preview-dialog {
    max-height: calc(100vh - 24px);
    width: 100%;
  }

  .vc-photo-preview-stage {
    min-height: 240px;
  }

  .vc-photo-preview-stage img {
    max-height: calc(100vh - 220px);
  }

  .vc-photo-preview-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .vc-photo-preview-footer .vc-btn {
    width: 100%;
  }
}

/* VisoClinic 0.5.38.116 — ficha de paciente: diagrama facial grande bajo todos los datos. */
.vc-patient-intake-layout-stacked {
  display: block;
}

.vc-patient-diagram-large {
  margin-top: 22px;
  width: 100%;
}

.vc-patient-diagram-large .vc-face-diagram-field {
  padding: 22px;
  width: 100%;
}

.vc-patient-diagram-large .vc-face-diagram,
.vc-patient-diagram-large .vc-face-canvas {
  width: 100%;
}

.vc-patient-diagram-large .vc-face-diagram > div:first-child,
.vc-patient-diagram-large .vc-face-notes {
  margin-inline: auto;
  max-width: 1120px;
  width: 100%;
}

.vc-patient-diagram-large .vc-face-canvas {
  border-radius: 18px;
  margin-inline: auto;
}

.vc-patient-diagram-large .vc-face-toolbar {
  margin-bottom: 16px;
}

.vc-patient-diagram-large .vc-color-swatch {
  height: 42px;
  width: 42px;
}

.vc-patient-diagram-large .vc-color-swatch::before {
  height: 30px;
  width: 30px;
}

.vc-whatsapp-manual-form {
  display: inline-flex;
  margin: 0;
}

.vc-whatsapp-manual-form .vc-whatsapp-manual-btn {
  white-space: normal;
}

.vc-whatsapp-manual-missing {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.vc-whatsapp-manual-missing .vc-whatsapp-manual-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.vc-whatsapp-manual-missing small {
  max-width: 220px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .vc-patient-diagram-large .vc-face-diagram-field {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  .vc-patient-diagram-large .vc-face-diagram-field {
    padding: 12px;
  }

  .vc-whatsapp-manual-form,
  .vc-whatsapp-manual-form .vc-btn,
  .vc-whatsapp-manual-missing,
  .vc-whatsapp-manual-missing .vc-btn {
    width: 100%;
  }
}


/* VisoClinic 0.5.38.120 — Agenda semanal táctil en móvil. */
.vc-week-scroll {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}
.vc-week-scroll:focus-visible {
  border-radius: 14px;
  outline: 2px solid color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 58%, transparent);
  outline-offset: 3px;
}
.vc-week-scroll .vc-week-timeline {
  overflow: visible;
  width: max-content;
}
.vc-week-scroll .vc-week-time-head,
.vc-week-scroll .vc-week-time-rail {
  background: #fafafa;
  left: 0;
  position: sticky;
  z-index: 5;
}
.vc-week-scroll .vc-week-time-head {
  z-index: 7;
}
@media (max-width:700px) {
  .vc-week-scroll {
    margin-inline: -2px;
    scrollbar-width: thin;
  }
  .vc-week-scroll .vc-week-timeline {
    min-width: 1080px;
  }
}


/* VisoClinic 0.5.38.121 — visor de fotografías: acciones siempre visibles. */
.vc-photo-preview-modal {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vc-photo-preview-dialog {
  height: min(760px, calc(100vh - 32px));
  height: min(760px, calc(100dvh - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  min-height: 0;
}

.vc-photo-preview-stage {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.vc-photo-preview-stage img {
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.vc-photo-preview-footer {
  background: #fff;
  border-top: 1px solid rgba(95, 69, 86, .12);
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 620px) {
  .vc-photo-preview-dialog {
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .vc-photo-preview-stage {
    min-height: 0;
    padding: 8px;
  }
}

@media (max-height: 650px) and (min-width: 621px) {
  .vc-photo-preview-modal {
    padding: 8px;
  }

  .vc-photo-preview-dialog {
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .vc-photo-preview-stage {
    min-height: 0;
  }

  .vc-photo-preview-footer {
    padding-block: 10px;
  }
}


/* VisoClinic 0.5.38.122 — lightbox fotográfico con scroll real sobre la imagen. */
.vc-photo-preview-dialog {
  overflow: hidden;
}

.vc-photo-preview-stage {
  align-items: initial;
  display: block;
  flex: 1 1 auto;
  justify-content: initial;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  padding: 10px;
  position: relative;
  scrollbar-gutter: stable;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.vc-photo-preview-stage img {
  display: block;
  height: auto !important;
  margin: 0 auto;
  max-height: none !important;
  max-width: 100%;
  object-fit: initial;
  width: auto;
}

@media (max-width: 620px) {
  .vc-photo-preview-stage {
    padding: 8px;
  }
}


/* VisoClinic 0.5.38.123 — lightbox documental: scroll de página, no scroll interno de la foto. */
.vc-photo-preview-modal {
  align-items: flex-start;
  bottom: auto;
  box-sizing: border-box;
  display: flex;
  left: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  padding: 24px;
  position: absolute;
  right: 0;
  width: 100%;
}

.vc-photo-preview-backdrop {
  bottom: 0;
  height: auto;
  left: 0;
  min-height: 100%;
  position: absolute;
  right: 0;
  top: 0;
}

.vc-photo-preview-dialog {
  flex: 0 0 auto;
  height: auto;
  margin: 0 auto;
  max-height: none;
  overflow: hidden;
  width: min(880px, 92vw);
}

.vc-photo-preview-stage {
  align-items: flex-start;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 0;
  overflow: visible;
  padding: 10px;
  scrollbar-gutter: auto;
  touch-action: auto;
}

.vc-photo-preview-stage img {
  display: block;
  height: auto !important;
  margin: 0 auto;
  max-height: none !important;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

/* Defensive override in case an older cached script still adds the old open-state class. */
body.vc-photo-preview-open {
  overflow-y: auto !important;
}

@media (max-width: 620px) {
  .vc-photo-preview-modal {
    padding: 12px;
  }

  .vc-photo-preview-dialog {
    height: auto;
    max-height: none;
    width: 100%;
  }

  .vc-photo-preview-stage {
    padding: 8px;
  }
}


/* VisoClinic 0.5.38.124 — lightbox más contenido, sin efecto de zoom excesivo. */
@media (min-width: 761px) {
  .vc-photo-preview-dialog {
    max-width: 740px;
    width: min(740px, 84vw);
  }

  .vc-photo-preview-stage {
    padding: 16px 18px;
  }

  .vc-photo-preview-stage img {
    height: auto !important;
    max-height: none !important;
    max-width: min(700px, 100%);
    width: auto;
  }
}

@media (min-width: 621px) and (max-width: 760px) {
  .vc-photo-preview-dialog {
    width: min(680px, 90vw);
  }
}


/* VisoClinic 0.5.38.125 — lightbox fotográfico a pantalla completa con imagen contenida y zoom por cursor. */
.vc-photo-preview-modal {
  align-items: stretch !important;
  bottom: 0 !important;
  box-sizing: border-box;
  display: flex;
  height: 100vh;
  height: 100dvh;
  inset: 0 !important;
  justify-content: stretch;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: fixed !important;
  width: 100vw;
  z-index: 100000;
}

.vc-photo-preview-backdrop {
  background: rgba(22, 17, 21, .82);
  backdrop-filter: blur(6px);
  inset: 0 !important;
  min-height: 0 !important;
  position: absolute !important;
}

.vc-photo-preview-dialog {
  background: #171417;
  border-radius: 0 !important;
  box-shadow: none;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  min-height: 0;
  overflow: hidden !important;
  position: relative;
  width: 100vw !important;
  z-index: 1;
}

.vc-photo-preview-stage {
  align-items: center !important;
  background: #171417;
  display: flex !important;
  flex: 1 1 0 !important;
  justify-content: center !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 24px 72px !important;
  position: relative;
  scrollbar-gutter: auto;
  touch-action: auto;
}

.vc-photo-preview-stage img {
  display: block;
  height: auto !important;
  margin: 0 !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform .16s ease-out;
  user-select: none;
  width: auto !important;
  will-change: transform;
  -webkit-user-drag: none;
}

@media (hover: hover) and (pointer: fine) {
  .vc-photo-preview-stage img {
    cursor: zoom-in;
  }

  .vc-photo-preview-stage.is-zoomed img {
    cursor: zoom-out;
    transform: scale(1.8);
    transition-duration: .08s;
  }
}

.vc-photo-preview-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid rgba(95, 69, 86, .14);
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px 24px 14px !important;
  position: relative;
  z-index: 4;
}

.vc-photo-preview-close {
  background: rgba(255,255,255,.95);
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 6;
}

/* Keep the document scroll behavior introduced in 0.5.38.123. */
body.vc-photo-preview-open,
html:has(.vc-photo-preview-modal:not([hidden])) {
  overflow-y: auto !important;
}

@media (max-width: 760px) {
  .vc-photo-preview-stage {
    padding: 58px 12px 12px !important;
  }

  .vc-photo-preview-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 10px 12px 12px !important;
  }

  .vc-photo-preview-footer .vc-btn {
    width: 100%;
  }

  .vc-photo-preview-close {
    right: 12px;
    top: 10px;
  }
}

@media (max-height: 620px) and (min-width: 761px) {
  .vc-photo-preview-stage {
    padding-block: 12px !important;
  }

  .vc-photo-preview-footer {
    min-height: 62px;
    padding-block: 8px !important;
  }
}

/* VisoClinic 0.5.38.126 — comparaciones fotográficas en lightbox real de pantalla completa. */
.vc-photo-comparison-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.vc-photo-comparison-actions .vc-photo-delete-form {
  margin: 0;
}

.vc-photo-comparison-open {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-height: 38px;
  white-space: nowrap;
}

.vc-photo-comparison-grid[role="button"] {
  cursor: zoom-in;
}

.vc-photo-comparison-grid[role="button"]:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 91, 153, .42);
  outline: none;
}

.vc-photo-comparison-lightbox[hidden] {
  display: none !important;
}

.vc-photo-comparison-lightbox {
  align-items: stretch;
  box-sizing: border-box;
  display: flex;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  justify-content: stretch;
  overflow: hidden;
  padding: 0;
  position: fixed;
  width: 100vw;
  z-index: 100100;
}

.vc-photo-comparison-lightbox-backdrop {
  background: rgba(15, 12, 15, .92);
  inset: 0;
  position: absolute;
}

.vc-photo-comparison-lightbox-dialog {
  background: #171417;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100vw;
  z-index: 1;
}

.vc-photo-comparison-lightbox-stage {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 26px 72px 22px;
  position: relative;
  width: 100%;
}

.vc-photo-comparison-lightbox-content {
  background: #0f0d0f !important;
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .34);
  height: 100% !important;
  max-height: 100%;
  max-width: 1600px;
  min-height: 0 !important;
  overflow: hidden;
  width: 100%;
}

.vc-photo-comparison-lightbox-content.vc-photo-slider {
  aspect-ratio: auto !important;
}

.vc-photo-comparison-lightbox-content.vc-photo-slider img {
  height: 100% !important;
  object-fit: contain !important;
  width: 100% !important;
}

.vc-photo-comparison-lightbox-content.vc-photo-comparison-grid {
  box-sizing: border-box;
  gap: 10px;
  padding: 10px;
}

.vc-photo-comparison-lightbox-content.vc-photo-comparison-grid figure {
  align-items: center;
  background: #0a090a;
  display: flex;
  justify-content: center;
  min-height: 0;
}

.vc-photo-comparison-lightbox-content.vc-photo-comparison-grid img {
  height: 100% !important;
  max-height: 100%;
  object-fit: contain !important;
  width: 100% !important;
}

.vc-photo-comparison-lightbox-stage.vc-photo-layout-two_vertical .vc-photo-comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.vc-photo-comparison-lightbox-stage.vc-photo-layout-two_horizontal .vc-photo-comparison-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.vc-photo-comparison-lightbox-stage.vc-photo-layout-three .vc-photo-comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.vc-photo-comparison-lightbox-stage.vc-photo-layout-four .vc-photo-comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.vc-photo-comparison-lightbox-stage.vc-photo-layout-six .vc-photo-comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.vc-photo-comparison-lightbox-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid rgba(95, 69, 86, .14);
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
  padding: 11px 24px 13px;
  position: relative;
  z-index: 4;
}

.vc-photo-comparison-lightbox-copy {
  min-width: 0;
}

.vc-photo-comparison-lightbox-copy strong,
.vc-photo-comparison-lightbox-copy small {
  display: block;
}

.vc-photo-comparison-lightbox-copy strong {
  color: var(--vc-ink);
  font-size: 15px;
}

.vc-photo-comparison-lightbox-copy small {
  color: var(--vc-muted);
  font-size: 12px;
  margin-top: 4px;
  max-width: 900px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-photo-comparison-lightbox-help {
  color: #6e5a68;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.vc-photo-comparison-lightbox-close {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  color: #2b2229;
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  position: absolute;
  right: 20px;
  top: 18px;
  width: 44px;
  z-index: 8;
}

html.vc-photo-comparison-lightbox-open,
body.vc-photo-comparison-lightbox-open {
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .vc-photo-comparison-head {
    align-items: flex-start;
  }

  .vc-photo-comparison-actions {
    width: 100%;
  }

  .vc-photo-comparison-actions .vc-photo-comparison-open {
    flex: 1 1 auto;
    justify-content: center;
  }

  .vc-photo-comparison-lightbox-stage {
    padding: 62px 10px 10px;
  }

  .vc-photo-comparison-lightbox-content {
    border-radius: 8px;
  }

  .vc-photo-comparison-lightbox-content.vc-photo-comparison-grid {
    gap: 5px;
    padding: 5px;
  }

  .vc-photo-comparison-lightbox-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
    padding: 9px 12px 11px;
  }

  .vc-photo-comparison-lightbox-copy small {
    max-width: calc(100vw - 24px);
  }

  .vc-photo-comparison-lightbox-help {
    font-size: 11px;
  }

  .vc-photo-comparison-lightbox-close {
    height: 40px;
    right: 11px;
    top: 10px;
    width: 40px;
  }
}

@media (max-height: 620px) and (min-width: 761px) {
  .vc-photo-comparison-lightbox-stage {
    padding-block: 12px;
  }

  .vc-photo-comparison-lightbox-footer {
    min-height: 60px;
    padding-block: 8px;
  }
}

@media (max-width: 760px) {
  .vc-photo-comparison-head {
    flex-wrap: wrap;
  }
}

/* VisoClinic 0.5.38.129 — VisoMap independiente por Mujer / Hombre. */
.vc-diagram-preview-grid {
  display: grid;
  gap: 18px;
}

.vc-diagram-preview-grid.has-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-diagram-preview-item {
  min-width: 0;
}

.vc-diagram-preview-item h4 {
  margin: 0 0 8px;
}

@media (max-width: 860px) {
  .vc-diagram-preview-grid.has-multiple {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* VisoClinic 0.5.38.131 — ficha clínica: controles médicos compactos y visuales. */
.vc-patient-intake-main .vc-choice-field,
.vc-patient-intake-main .vc-binary-field,
.vc-patient-intake-main .vc-clinical-question-card {
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 3%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 22%, var(--vc-theme-line, #ead8e2));
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(74, 45, 82, .035);
  min-width: 0;
}

.vc-patient-intake-main .vc-choice-field,
.vc-patient-intake-main .vc-binary-field {
  margin: 0;
  padding: 13px 14px 14px;
}

.vc-patient-intake-main .vc-choice-field legend,
.vc-patient-intake-main .vc-binary-field legend {
  color: var(--vc-ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  margin: 0;
  max-width: 100%;
  padding: 0 7px;
}

.vc-choice-title {
  display: inline;
}

.vc-choice-hint {
  color: var(--vc-muted, #766978);
  font-size: 11px;
  font-weight: 650;
}

.vc-patient-intake-main .vc-choice-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  margin-top: 3px;
}

.vc-patient-intake-main .vc-choice-option {
  background: transparent;
  border: 0;
  border-radius: 10px;
  display: block;
  min-height: 0;
  padding: 0;
  position: relative;
}

.vc-patient-intake-main .vc-choice-option input[type="checkbox"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.vc-patient-intake-main .vc-choice-option > span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--vc-theme-line, #ead8e2);
  border-radius: 10px;
  color: var(--vc-ink);
  display: flex;
  font-size: 12px;
  font-weight: 750;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px 9px 36px;
  position: relative;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.vc-patient-intake-main .vc-choice-option > span::before {
  align-items: center;
  background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 38%, #cfc3cb);
  border-radius: 6px;
  color: transparent;
  content: "✓";
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  left: 10px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all .16s ease;
  width: 18px;
}

.vc-patient-intake-main .vc-choice-option:hover > span {
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 48%, var(--vc-theme-line, #ead8e2));
  box-shadow: 0 5px 12px rgba(74, 45, 82, .055);
  transform: translateY(-1px);
}

.vc-patient-intake-main .vc-choice-option input[type="checkbox"]:focus-visible + span {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 18%, transparent);
  outline: 1px solid var(--vc-theme-accent, #C27AA9);
}

.vc-patient-intake-main .vc-choice-option input[type="checkbox"]:checked + span {
  background: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 10%, #fff);
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 62%, #d7b9ca);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 8%, transparent);
  color: var(--vc-theme-accent-strong, var(--vc-mauve-dark, #9d5f8d));
}

.vc-patient-intake-main .vc-choice-option input[type="checkbox"]:checked + span::before {
  background: var(--vc-theme-accent, #C27AA9);
  border-color: var(--vc-theme-accent, #C27AA9);
  box-shadow: 0 3px 7px color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 25%, transparent);
  color: #fff;
}

.vc-patient-intake-main .vc-choice-other {
  background: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 5%, #fff);
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 26%, var(--vc-theme-line, #ead8e2));
  margin-top: 10px;
  padding: 10px 11px;
}

.vc-patient-intake-main .vc-choice-other input {
  background: #fff;
  margin-top: 6px;
}

.vc-clinical-question-card {
  padding: 0;
}

.vc-clinical-question-card .vc-binary-field {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.vc-clinical-question-card-detail .vc-clinical-detail-input {
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 0 14px 14px;
  border-right: 0;
  margin-top: 0;
}

.vc-clinical-detail-input > span {
  display: block;
}

.vc-binary-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3px;
  max-width: 300px;
}

.vc-binary-option {
  cursor: pointer;
  display: block !important;
  margin: 0;
  position: relative;
}

.vc-binary-option input[type="radio"] {
  height: 1px !important;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px !important;
}

.vc-binary-option > span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--vc-theme-line, #ead8e2);
  border-radius: 9px;
  color: var(--vc-ink);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.vc-binary-dot {
  background: #fff;
  border: 1.5px solid #d6c5cf;
  border-radius: 50%;
  height: 14px;
  position: relative;
  transition: all .16s ease;
  width: 14px;
}

.vc-binary-option:hover > span {
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 45%, var(--vc-theme-line, #ead8e2));
  transform: translateY(-1px);
}

.vc-binary-option input[type="radio"]:focus-visible + span {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 18%, transparent);
  outline: 1px solid var(--vc-theme-accent, #C27AA9);
}

.vc-binary-option input[type="radio"]:checked + span {
  background: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 10%, #fff);
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 65%, #d7b9ca);
  color: var(--vc-theme-accent-strong, var(--vc-mauve-dark, #9d5f8d));
}

.vc-binary-option input[type="radio"]:checked + span .vc-binary-dot {
  background: var(--vc-theme-accent, #C27AA9);
  border-color: var(--vc-theme-accent, #C27AA9);
  box-shadow: inset 0 0 0 3px #fff;
}

.vc-binary-question-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-binary-question-grid .vc-binary-field {
  height: 100%;
}

@media (max-width: 760px) {
  .vc-patient-intake-main .vc-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vc-binary-question-grid {
    grid-template-columns: 1fr;
  }

  .vc-binary-options {
    max-width: none;
  }
}

@media (max-width: 460px) {
  .vc-patient-intake-main .vc-choice-grid {
    grid-template-columns: 1fr;
  }

  .vc-patient-intake-main .vc-choice-field,
  .vc-patient-intake-main .vc-binary-field {
    padding: 12px;
  }
}

/* VisoClinic 0.5.38.132 — alinea los títulos de opciones con las etiquetas normales de la ficha. */
.vc-patient-intake-main .vc-field-label {
  color: var(--vc-ink);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
  line-height: 1.45;
  margin: 0 0 9px;
  padding: 0;
  width: 100%;
}

.vc-patient-intake-main .vc-choice-heading,
.vc-patient-intake-main .vc-binary-heading {
  background: transparent;
}

.vc-patient-intake-main .vc-choice-hint {
  color: var(--vc-muted, #766978);
  font-size: 11px;
  font-weight: 650;
}

.vc-patient-intake-main .vc-choice-grid,
.vc-patient-intake-main .vc-binary-options {
  margin-top: 0;
}

/* VisoClinic 0.5.38.133 — horario semanal por integrante del centro. */
.vc-team-schedule-btn {
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 45%, #eadfea);
  background: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 7%, #fff);
}
.vc-team-actions .vc-team-schedule-summary {
  flex-basis: 100%;
  margin: -1px 0 2px;
  color: var(--vc-muted, #6b7280);
  font-size: 10px;
}
.vc-staff-schedule-editor {
  margin: 18px 0 22px;
  padding: 20px;
  border: 1px solid var(--vc-border, #eadfea);
  border-radius: 16px;
  background: #fffafd;
  box-shadow: 0 10px 28px rgba(48, 41, 66, .05);
  scroll-margin-top: 24px;
}
.vc-staff-schedule-editor h3 {
  margin: 3px 0 5px;
  font-size: 23px;
}
.vc-schedule-days {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.vc-schedule-day {
  padding: 13px 14px;
  border: 1px solid var(--vc-border, #eadfea);
  border-radius: 13px;
  background: #faf8fa;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.vc-schedule-day.is-enabled {
  border-color: color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 28%, #eadfea);
  background: #fff;
  box-shadow: 0 4px 12px rgba(48, 41, 66, .035);
}
.vc-schedule-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.vc-schedule-day-head small {
  color: var(--vc-muted, #6b7280);
  font-size: 11px;
}
.vc-schedule-switch {
  position: relative;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  margin: 0;
  cursor: pointer;
}
.vc-staff-schedule-form .vc-schedule-switch > input[type="checkbox"] {
  /* Keep label-triggered focus inside the body scrollport. Generic form
     sizing must not turn this invisible checkbox into a drawer-wide box. */
  position: absolute;
  top: 50%;
  left: 0;
  right: auto;
  bottom: auto;
  width: 34px;
  min-width: 0;
  max-width: 34px;
  height: 20px;
  min-height: 0;
  max-height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.vc-schedule-switch > span {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #d7d1d6;
  transition: background .18s ease;
}
.vc-schedule-switch > span:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(48, 41, 66, .2);
  transition: transform .18s ease;
}
.vc-schedule-switch input:checked + span {
  background: var(--vc-theme-accent, #C27AA9);
}
.vc-schedule-switch input:checked + span:after {
  transform: translateX(14px);
}
.vc-schedule-switch input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--vc-theme-accent, #C27AA9) 65%, transparent);
  outline-offset: 2px;
}
.vc-schedule-ranges {
  display: grid;
  gap: 8px;
}
.vc-schedule-range {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) 34px;
  gap: 10px;
  align-items: end;
}
.vc-schedule-range label {
  margin: 0;
  color: var(--vc-muted, #6b7280);
  font-size: 11px;
  font-weight: 700;
}
.vc-schedule-range input {
  margin-top: 4px;
}
.vc-schedule-remove {
  width: 34px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: #fff0f2;
  color: #a53f50;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.vc-schedule-add {
  margin-top: 8px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--vc-theme-accent, #9b557f);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.vc-schedule-add:disabled,
.vc-schedule-day:not(.is-enabled) .vc-schedule-range {
  opacity: .46;
}
.vc-schedule-actions {
  margin-top: 17px;
}
.vc-day-work-schedule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #d9eadf;
  border-radius: 10px;
  background: #f4fbf6;
  font-size: 13px;
}
.vc-day-work-schedule.is-off {
  border-color: #e1dce1;
  background: #f5f3f5;
  color: #706873;
}
.vc-week-day-head small {
  font-size: 9px;
  color: #8c7d88;
  font-weight: 700;
}
.vc-week-day-head.is-nonworking {
  background: #f3f1f3;
  color: #8a8288;
}
.vc-week-time-day.has-working-schedule {
  background: repeating-linear-gradient(to bottom, #f1eff1 0, #f1eff1 59px, #ddd8dd 60px);
}
.vc-week-time-day.has-working-schedule.is-today {
  background: repeating-linear-gradient(to bottom, #f0edf1 0, #f0edf1 59px, #d9d2da 60px);
}
.vc-week-working-window {
  position: absolute;
  top: var(--vc-top);
  height: var(--vc-height);
  left: 0;
  right: 0;
  z-index: 0;
  overflow: hidden;
  border-top: 1px solid rgba(194, 122, 169, .2);
  border-bottom: 1px solid rgba(194, 122, 169, .2);
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 59px, var(--vc-border, #eadfea) 60px);
}
.vc-week-working-window span {
  position: absolute;
  top: 3px;
  right: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #8b687e;
  font-size: 9px;
  font-weight: 800;
}
.vc-week-time-day.has-working-schedule .vc-week-time-block { z-index: 2; }
.vc-week-time-day.has-working-schedule .vc-week-time-event { z-index: 3; }
.vc-week-nonworking-label {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  color: #9a9298;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width:700px) {
  .vc-staff-schedule-editor { padding: 15px; }
  .vc-schedule-day-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .vc-schedule-range { grid-template-columns: 1fr 1fr 34px; }
  .vc-day-work-schedule { align-items: flex-start; flex-direction: column; gap: 3px; }
}


/* VisoClinic 0.5.38.134 — perfil online y link de agendamiento. */
.vc-online-booking-hero .vc-online-link-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:18px}.vc-online-link-box input{width:100%;background:#fbf8fa;border:1px solid #e3d5de;border-radius:12px;padding:12px 14px}.vc-online-status{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800}.vc-online-status.is-on{background:#e9f7ef;color:#247447}.vc-online-status.is-off{background:#fff0f0;color:#9c3c46}.vc-online-images-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 20px}.vc-online-image-field{display:grid;gap:9px;padding:14px;border:1px solid #eadde5;border-radius:16px;background:#fffafd}.vc-online-image-preview{width:100%;height:150px;object-fit:cover;border-radius:12px;background:#f5eff3}.vc-inline-check{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:8px!important}.vc-inline-check input{width:auto!important;margin-top:3px}.vc-online-staff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.vc-online-staff-card{display:flex;justify-content:space-between;gap:16px;align-items:center;border:1px solid #eadde5;border-radius:16px;padding:15px;background:#fff}.vc-online-staff-card small{display:block;color:#7d6e78;margin-top:3px}.vc-online-staff-card p{font-size:12px;color:#6f6370;margin:8px 0 0}.vc-online-category-layout{display:grid;grid-template-columns:minmax(260px,.75fr) 1.25fr;gap:18px}.vc-online-category-list{display:grid;align-content:start;gap:8px}.vc-online-category-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #eadde5;border-radius:12px;padding:11px 13px;background:#fff}.vc-online-deposit-box{padding:15px;border:1px solid #eadde5;background:#fff8fb;border-radius:15px}.vc-online-professionals{border:1px solid #eadde5;border-radius:15px;padding:14px}.vc-online-professional-checks{display:flex;flex-wrap:wrap;gap:10px 16px}.vc-online-professional-checks label{display:flex;flex-direction:row;align-items:center;gap:7px}.vc-online-professional-checks input{width:auto}.vc-online-service-list{display:grid;gap:10px}.vc-online-service-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #eadde5;border-radius:15px;padding:13px 15px;background:#fff}.vc-online-service-swatch{width:13px;height:42px;border-radius:999px}.vc-online-service-row small{display:block;color:#776b75;margin-top:3px}.vc-online-service-row .vc-form-actions{margin:0;align-items:center}.vc-online-service-row form{margin:0}@media(max-width:820px){.vc-online-booking-hero .vc-online-link-box,.vc-online-category-layout{grid-template-columns:1fr}.vc-online-images-grid{grid-template-columns:1fr}.vc-online-staff-grid{grid-template-columns:1fr}.vc-online-service-row{grid-template-columns:auto minmax(0,1fr)}.vc-online-service-row .vc-form-actions{grid-column:2}}

/* VisoClinic 0.5.38.135 — canonical Services + online booking settings */
.vc-online-config-nav{display:flex;gap:8px;overflow:auto;padding:4px 0 12px;margin:2px 0 10px;scrollbar-width:thin}.vc-online-config-nav a{flex:0 0 auto;text-decoration:none;color:var(--vc-theme-text,#302942);background:var(--vc-theme-surface,#fff);border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:999px;padding:9px 13px;font-size:13px;font-weight:800}.vc-online-config-nav a:hover{border-color:var(--vc-theme-accent,#C27AA9)}.vc-online-settings-form{display:grid;gap:18px}.vc-online-settings-section{scroll-margin-top:18px;margin:0!important}.vc-online-main-toggle{padding:14px 16px;border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:14px;background:var(--vc-theme-surface-soft,#fff8fb);font-weight:800!important}.vc-online-savebar{position:sticky;bottom:12px;z-index:8;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:16px;background:color-mix(in srgb,var(--vc-theme-surface,#fff) 94%,transparent);box-shadow:0 12px 32px var(--vc-theme-shadow,rgba(73,45,80,.10));backdrop-filter:blur(10px)}.vc-online-savebar span{font-size:12px;color:var(--vc-theme-muted,#6e6572)}.vc-services-master-layout{display:grid;grid-template-columns:minmax(0,.92fr) minmax(360px,1.08fr);gap:18px;align-items:start}.vc-services-master-layout>.vc-panel{margin:0}.vc-service-visibility-box{display:grid;gap:10px;padding:14px;border:1px solid var(--vc-theme-line,rgba(132,86,128,.18));border-radius:15px;background:var(--vc-theme-surface-soft,#fff8fb)}.vc-services-master-hero .vc-panel-heading{align-items:center}.vc-online-services-summary .vc-online-service-row>a{justify-self:end}.vc-online-preview-panel{scroll-margin-top:18px}@media(max-width:980px){.vc-services-master-layout{grid-template-columns:1fr}}@media(max-width:720px){.vc-online-savebar{position:static;align-items:stretch;flex-direction:column}.vc-online-savebar .vc-btn{width:100%}.vc-online-config-nav{margin-inline:-4px;padding-inline:4px}}

/* VisoAtlas anatomy library: standalone study module; no patient / evolution data. */
.vc-atlas-home,.vc-atlas-study{max-width:1380px;margin:0 auto;color:#28314d}
.vc-atlas-home{padding:clamp(16px,2.5vw,32px);background:linear-gradient(160deg,#fff 55%,#fbf7fc);border:1px solid #f0e4ed;border-radius:22px;box-shadow:0 12px 34px rgba(75,46,78,.045)}
.vc-atlas-intro,.vc-atlas-brand,.vc-atlas-study-tools,.vc-atlas-study-heading,.vc-atlas-zones-heading,.vc-atlas-study-pagination{display:flex;align-items:center;justify-content:space-between;gap:18px}
.vc-atlas-brand{justify-content:flex-start;gap:14px}.vc-atlas-brand img{object-fit:contain;flex:none;border-radius:100%}
.vc-atlas-title{display:block;font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:clamp(32px,4vw,53px);line-height:1;color:#4f4b95}
.vc-atlas-title span{color:#d33aa3}.vc-atlas-brand p{margin:7px 0 0;font-size:14px;color:#74718a}
.vc-atlas-counter{display:flex;align-items:center;gap:10px;color:#695676}.vc-atlas-counter strong{font-size:30px;color:#a9569d}.vc-atlas-counter span{font-size:12px;max-width:105px;line-height:1.35}
.vc-atlas-instructions{font-size:15px;line-height:1.65;color:#625c6d;margin:21px 0 14px}
.vc-atlas-map-scroll{overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid #ede6f0;border-radius:18px;background:#fcf9fb;scrollbar-color:#d9c0d7 transparent}
.vc-atlas-map-stage{position:relative;width:100%;min-width:700px;line-height:0;isolation:isolate}
.vc-atlas-map-image{width:100%;height:auto;display:block;user-select:none;pointer-events:none}
.vc-atlas-hotspot{position:absolute;z-index:2;left:var(--vc-atlas-x);top:var(--vc-atlas-y);width:26px;height:26px;transform:translate(-50%,-50%);border:3px solid white;border-radius:50%;background:var(--vc-atlas-color);box-shadow:0 1px 9px #502f6580;cursor:pointer;line-height:normal;transition:transform .15s,box-shadow .15s}
.vc-atlas-hotspot:hover,.vc-atlas-hotspot:focus-visible{z-index:10;transform:translate(-50%,-50%) scale(1.28);box-shadow:0 0 0 5px #fff8,0 4px 18px #4f306080;outline:2px solid #7d367d;outline-offset:3px}
.vc-atlas-hotspot-pulse{position:absolute;inset:-8px;border:1.5px solid var(--vc-atlas-color);border-radius:50%;pointer-events:none}
.vc-atlas-hotspot-label{position:absolute;bottom:calc(100% + 11px);left:50%;transform:translateX(-50%);background:#302b46;color:#fff;font-size:12px;font-weight:700;border-radius:9px;padding:8px 12px;line-height:1.2;white-space:nowrap;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .16s}
.vc-atlas-hotspot:hover .vc-atlas-hotspot-label,.vc-atlas-hotspot:focus-visible .vc-atlas-hotspot-label{visibility:visible;opacity:1}
.vc-atlas-zones-heading{margin:28px 0 15px;flex-wrap:wrap}.vc-atlas-zones-heading h3{font-size:20px;margin:0;font-weight:750;color:#343047}.vc-atlas-zones-heading span{font-size:13px;color:#807988}
.vc-atlas-zone-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.vc-atlas-zone-link{display:flex;align-items:center;gap:11px;padding:15px 13px;border:1px solid #eee4f0;border-radius:14px;background:#fff;text-decoration:none!important;color:#413d59!important;font-size:14px;font-weight:600;transition:border-color .18s,background .18s,transform .18s}
.vc-atlas-zone-link:hover,.vc-atlas-zone-link:focus-visible{border-color:#cb92c2;background:#fff8fd;transform:translateY(-2px)}
.vc-atlas-zone-link .fa-solid{font-size:12px;color:#a38ba3;margin-left:auto}
.vc-atlas-zone-dot{width:18px;height:18px;border-radius:50%;background:var(--vc-atlas-color);box-shadow:inset 0 0 0 1px #56345220;flex:none}
.vc-atlas-disclaimer{font-size:12px;color:#827b8a;line-height:1.5;margin:20px 0 0}
.vc-atlas-study-tools{margin-bottom:18px;flex-wrap:wrap}.vc-atlas-back{color:#814985!important;font-weight:750;text-decoration:none!important}.vc-atlas-back .fa-solid{margin-right:5px}
.vc-atlas-study-tag{font-size:12px;color:#9a6998;background:#f8eff8;padding:9px 13px;border-radius:100px}
.vc-atlas-study-heading{margin:4px 0 16px}.vc-atlas-study-heading h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(27px,3vw,43px);color:#252363;margin:4px 0 0}
.vc-atlas-study-heading .vc-kicker{color:#8d5b96}.vc-atlas-color-dot{background:var(--vc-atlas-color);width:50px;height:50px;border-radius:100%;flex:none}
.vc-atlas-plate-wrap{border-radius:16px;background:#fff;border:1px solid #e8e4f7;box-shadow:0 12px 30px #372a4d0d;overflow:hidden}
.vc-atlas-plate-button{cursor:zoom-in;position:relative;display:block;border:0;padding:0;width:100%;background:#fff}
.vc-atlas-plate-button img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.vc-atlas-enlarge{position:absolute;right:15px;bottom:16px;padding:10px 14px;background:#34305fe8;border-radius:12px;color:#fff;font-size:13px;line-height:1.3;font-weight:700}
.vc-atlas-study-pagination{margin-top:22px;gap:8px}.vc-atlas-study-pagination a{border:1px solid #e8dbe8;border-radius:11px;padding:11px;color:#7b4c83!important;text-decoration:none!important;font-size:13px;font-weight:650}
.vc-atlas-study-pagination a:hover{background:#fff1fa;border-color:#d5abd4}
.vc-atlas-dialog{padding:0;border:0;border-radius:16px;width:min(98vw,1700px);max-width:none;max-height:96vh;box-shadow:0 25px 80px #150e25ad;background:#fff;overflow:hidden}
.vc-atlas-dialog::backdrop{background:#191122df}.vc-atlas-dialog-toolbar{height:55px;box-sizing:border-box;background:#fcf9fc;display:flex;justify-content:space-between;align-items:center;padding:10px 16px;color:#4c3273;gap:14px}
.vc-atlas-dialog-toolbar button{background:#6f447a;color:#fff;border:0;border-radius:8px;padding:8px 12px;cursor:pointer;font-size:14px}
.vc-atlas-dialog-content{display:flex;align-items:center;justify-content:center;overflow:auto;max-height:calc(96vh - 55px)}.vc-atlas-dialog-content img{display:block;max-width:100%;max-height:calc(96vh - 55px);height:auto;object-fit:contain}
@media(max-width:900px){.vc-atlas-zone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vc-atlas-map-stage{min-width:790px}}
@media(max-width:540px){.vc-atlas-home{padding:14px;border-radius:15px}.vc-atlas-brand img{width:44px;height:44px}.vc-atlas-title{font-size:34px}.vc-atlas-brand p{font-size:11px}.vc-atlas-counter{display:none}.vc-atlas-zone-grid{grid-template-columns:1fr}.vc-atlas-instructions{font-size:13px}.vc-atlas-map-stage{min-width:740px}.vc-atlas-zones-heading h3{font-size:18px}.vc-atlas-study-tag{display:none}.vc-atlas-study-pagination{flex-wrap:wrap}.vc-atlas-study-pagination a{font-size:12px}.vc-atlas-all-link{order:3;width:100%;text-align:center}.vc-atlas-color-dot{width:32px;height:32px}.vc-atlas-enlarge{font-size:11px;bottom:8px;right:8px;padding:8px}}
@media(prefers-reduced-motion:reduce){.vc-atlas-hotspot,.vc-atlas-zone-link{transition:none}}

/* VisoAtlas 0.5.38.137: anatomical marker calibration and direct touch/click regions. */
.vc-atlas-hitregions{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible}
.vc-atlas-hitarea{fill:#ffffff;fill-opacity:.001;stroke:#ffffff;stroke-opacity:0;stroke-width:2;vector-effect:non-scaling-stroke;cursor:pointer;pointer-events:all;transition:fill-opacity .16s,stroke-opacity .16s}
.vc-atlas-hitregions a:hover .vc-atlas-hitarea{fill-opacity:.17;stroke-opacity:.95}
.vc-atlas-hitregions a:active .vc-atlas-hitarea{fill-opacity:.26;stroke-opacity:.95}
@media(max-width:900px){.vc-atlas-hotspot{width:23px;height:23px;border-width:2px}.vc-atlas-hotspot-pulse{inset:-6px}}
@media(max-width:540px){.vc-atlas-hotspot{width:21px;height:21px}.vc-atlas-hotspot-pulse{inset:-5px}}
@media(prefers-reduced-motion:reduce){.vc-atlas-hitarea{transition:none}}

/* 0.5.38.138: Tres fotografías + botones de horario consistentes */
.vc-online-images-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.vc-online-staff-grid .vc-online-staff-card{min-height:140px;align-items:center}
.vc-online-staff-grid .vc-online-staff-card>.vc-btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-width:160px;padding:11px 14px}
@media(max-width:1150px){.vc-online-images-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:690px){.vc-online-images-grid{grid-template-columns:1fr}.vc-online-staff-grid .vc-online-staff-card{flex-wrap:wrap}.vc-online-staff-grid .vc-online-staff-card>.vc-btn{width:100%}}


/* VisoClinic 0.5.38.140 — keep weekly schedule's delete controls inside each day. */
.vc-staff-schedule-form .vc-schedule-range {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: end;
}
.vc-staff-schedule-form .vc-schedule-range > label {
  display: block;
  width: 100%;
  min-width: 0;
}
.vc-staff-schedule-form .vc-schedule-range input[type="time"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.vc-staff-schedule-form .vc-schedule-range > .vc-schedule-remove {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 45px;
  min-height: 45px;
  padding: 0 !important;
  margin: 0;
  justify-self: center;
  align-self: end;
  text-align: center;
  line-height: 1;
  font-size: 20px;
}
@media (max-width: 700px) {
  .vc-staff-schedule-form .vc-schedule-range { gap: 7px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .vc-staff-schedule-form .vc-schedule-range > .vc-schedule-remove { width: 38px; min-width: 38px; max-width: 38px; }
}

/* VisoClinic 144: service color palette mirrors the appointment drawer. */
.vc-service-color-field { margin:14px 0 18px; max-width:100%; }
.vc-service-color-field .vc-event-color-palette { grid-template-columns:repeat(auto-fit,minmax(58px,72px)); }
.vc-online-settings-section select[name="booking_theme"],
.vc-online-settings-section select[name="booking_theme_source_user_id"] { width:100%; }

/* Review import management pagination (v0.5.38.145) */
.vc-reviews-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:18px 0}
.vc-reviews-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;padding:8px 12px;background:var(--vc-theme-surface,#fff);border:1px solid var(--vc-theme-border,#ddd);border-radius:10px;color:inherit;text-decoration:none;font-weight:700}
.vc-reviews-pagination a.is-current{background:var(--vc-theme-accent,#9B6F92);color:#fff;border-color:transparent}
.vc-reviews-pagination a:focus-visible{outline:2px solid #7A5986;outline-offset:2px}

/* VisoClinic 0.5.38.147 — Tarjeta de cita fiel a la referencia visual.
   Conserva color por cita, botones originales, formularios y controles de acceso. */
.vc-app-shell .vc-agenda-card {
  align-items: start;
  column-gap: clamp(12px, 1.8vw, 22px);
  row-gap: 9px;
  border-radius: 17px;
  padding: clamp(15px, 1.6vw, 23px);
  grid-template-columns: minmax(135px, 170px) minmax(0, 1fr);
}
.vc-app-shell .vc-agenda-time {
  align-items: flex-start;
  gap: 11px;
}
.vc-app-shell .vc-agenda-time .vc-agenda-time-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  line-height: 1;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff !important;
}
.vc-agenda-time-icon svg { display: block; width: 19px; height: 19px; }
.vc-app-shell .vc-agenda-time strong { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.15; }
.vc-app-shell .vc-agenda-info > strong { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.18; }
.vc-app-shell .vc-agenda-info > small { margin: 4px 0 0; }
.vc-app-shell .vc-appointment-clinical-summary {
  gap: 9px;
  margin: 13px 0 11px;
}
.vc-app-shell .vc-appointment-clinical-summary > span {
  padding: 11px 12px;
  border-radius: 12px;
  min-height: 64px;
}
.vc-app-shell .vc-agenda-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, .62fr) minmax(225px, 1fr);
  align-items: start;
  gap: 16px;
  justify-content: initial;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.26);
}
.vc-agenda-action-main,
.vc-agenda-action-contact,
.vc-agenda-action-status { min-width: 0; }
.vc-agenda-action-main {
  display: flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 48px;
}
.vc-agenda-action-main form { margin: 0; }
.vc-app-shell .vc-agenda-action-main .vc-btn {
  min-height: 43px;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}
.vc-app-shell .vc-agenda-action-main .vc-btn-danger {
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(17,24,39,.11) !important;
  color: #252234 !important;
}
.vc-agenda-action-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}
.vc-agenda-action-contact form,
.vc-agenda-action-contact .vc-whatsapp-manual-missing { width: 100%; margin: 0; }
.vc-app-shell .vc-agenda-action-contact .vc-agenda-contact-btn,
.vc-app-shell .vc-agenda-action-contact .vc-confirmation-form button.vc-agenda-contact-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 45px;
  padding: 7px 12px;
  border: 1px solid rgba(17,24,39,.12) !important;
  border-radius: 11px;
  background: rgba(255,255,255,.97) !important;
  color: #252234 !important;
  text-shadow: none !important;
  font: 850 13px/1.2 Inter,Arial,Helvetica,sans-serif;
  width: 100%;
  cursor: pointer;
  white-space: normal;
  text-align: left;
}
.vc-app-shell .vc-agenda-action-contact .vc-agenda-contact-btn > span:last-child { flex: 1 1 auto; text-align: center; }
.vc-app-shell .vc-agenda-action-contact .vc-agenda-contact-btn:hover:not([disabled]) {
  background: #f9f1f7 !important;
  border-color: #ae86a4 !important;
}
.vc-agenda-action-icon {
  display: inline-flex;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.vc-agenda-action-icon img { display: block; width: 19px; height: 19px; object-fit: contain; }
.vc-agenda-icon-whatsapp { background: #25d366; }
.vc-agenda-icon-whatsapp img { filter: brightness(0) invert(1); }
.vc-agenda-icon-email { background: #f0f1f6; }
.vc-agenda-icon-email img { width: 20px; height: 20px; }
.vc-app-shell .vc-agenda-action-contact .vc-confirmation-sent,
.vc-app-shell .vc-agenda-action-contact .vc-confirmation-missing {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: -4px;
  opacity: .9;
}
.vc-agenda-action-status .vc-calendar-status-form {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 7px;
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
}
.vc-app-shell .vc-agenda-action-status .vc-calendar-status-form label {
  display: block;
  color: #fff !important;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.16);
  margin: 0 0 2px;
}
.vc-app-shell .vc-agenda-action-status .vc-calendar-status-form select,
.vc-app-shell .vc-agenda-action-status .vc-calendar-status-form button {
  display: block;
  box-sizing: border-box;
  background: rgba(255,255,255,.97) !important;
  color: #252234 !important;
  border: 1px solid rgba(17,24,39,.12) !important;
  border-radius: 9px;
  width: 100%;
  height: 39px;
  font-size: 12px;
  text-shadow: none;
  margin: 0;
}
.vc-app-shell .vc-agenda-action-status .vc-calendar-status-form button { font-weight: 850; cursor: pointer; }
.vc-app-shell .vc-agenda-action-status .vc-confirmation-sent,
.vc-app-shell .vc-agenda-action-status .vc-muted { display: block; margin-top: 8px; font-size: 11px; line-height: 1.4; }
.vc-app-shell .vc-agenda-actions :is(a, button, select):focus-visible {
  outline: 3px solid #fbd1ff;
  outline-offset: 2px;
}
@media (max-width: 1250px) {
  .vc-app-shell .vc-agenda-actions { grid-template-columns: minmax(0, 1.45fr) minmax(175px, .8fr); }
  .vc-app-shell .vc-agenda-action-status { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .vc-app-shell .vc-agenda-card { grid-template-columns: 1fr; }
  .vc-app-shell .vc-agenda-actions { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .vc-app-shell .vc-agenda-action-main { grid-column: 1 / -1; }
  .vc-app-shell .vc-agenda-action-status { grid-column: 2; }
  .vc-app-shell .vc-appointment-clinical-summary { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .vc-app-shell .vc-agenda-actions { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .vc-app-shell .vc-agenda-action-main,
  .vc-app-shell .vc-agenda-action-contact,
  .vc-app-shell .vc-agenda-action-status { grid-column: 1; width: 100%; }
  .vc-app-shell .vc-agenda-action-main > a,
  .vc-app-shell .vc-agenda-action-main > form { flex: 1 1 145px; }
  .vc-app-shell .vc-agenda-action-main .vc-btn { width: 100%; }
  .vc-app-shell .vc-appointment-clinical-summary { grid-template-columns: 1fr; }
  .vc-app-shell .vc-agenda-action-status .vc-calendar-status-form label { margin-top: 4px; }
}
/* La vista por profesional trabaja en columnas estrechas, sin desbordamiento horizontal. */
.vc-app-shell .vc-professional-day-column .vc-agenda-card { grid-template-columns: 1fr; }
.vc-app-shell .vc-professional-day-column .vc-agenda-actions { grid-template-columns: minmax(0,1fr); }
.vc-app-shell .vc-professional-day-column .vc-agenda-action-main,
.vc-app-shell .vc-professional-day-column .vc-agenda-action-contact,
.vc-app-shell .vc-professional-day-column .vc-agenda-action-status { grid-column: 1; }
.vc-app-shell .vc-professional-day-column .vc-appointment-clinical-summary { grid-template-columns: 1fr; }

/* 0.5.38.148 – Same weekly schedule editor reused in the Agenda drawer. */
.vc-schedule-interval{display:grid;gap:7px;padding:15px;margin:16px 0 4px;background:var(--vc-surface,#fff);border:1px solid var(--vc-line,#eadfea);border-radius:14px}
.vc-schedule-interval>label{font-weight:700}
.vc-schedule-interval-field{display:flex;align-items:center;gap:10px}
.vc-schedule-interval-field input{width:105px;min-height:41px;border:1px solid var(--vc-line,#eadfea);border-radius:9px;padding:8px 10px;color:var(--vc-ink,#302942);background:#fff;font:inherit}
.vc-schedule-interval small{display:block;color:var(--vc-muted,#756975);line-height:1.5}
.vc-schedule-drawer{width:min(630px,calc(100vw - 16px))!important;max-width:none!important}
.vc-schedule-drawer .vc-staff-schedule-editor{margin:0;padding:0;border:0;box-shadow:none;background:transparent}
.vc-schedule-drawer .vc-drawer-body{padding-bottom:60px}
.vc-schedule-drawer > .vc-drawer-head{flex:0 0 auto}
.vc-schedule-drawer > .vc-drawer-body{flex:1 1 0;min-height:0}
.vc-schedule-drawer .vc-schedule-days{grid-template-columns:1fr}
@media(max-width:600px){.vc-schedule-drawer .vc-form-actions{flex-direction:column;align-items:stretch}.vc-schedule-drawer .vc-form-actions>.vc-btn{width:100%}}

/* 0.5.38.149 — site-admin schedule picker (no membership required). */
.vc-schedule-member-picker{display:grid;gap:7px;margin:0 0 22px;padding:14px;border:1px solid #e7dbe7;border-radius:12px;background:#fbf8fb}
.vc-schedule-member-picker label{font-weight:700;font-size:13px}
.vc-schedule-member-picker select{width:100%;min-height:42px;border:1px solid #dacbda;border-radius:9px;background:#fff;padding:9px 12px}
.vc-schedule-member-picker small{font-size:12px;line-height:1.45;color:#6d6670}


/* 0.5.38.152: consistent service selectors and readable schedule buttons. */
.vc-app-shell .vc-front-form .vc-online-professional-checks{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 14px;align-items:center;
}
.vc-app-shell .vc-front-form .vc-online-professional-checks label{
  display:flex;align-items:center;gap:9px;min-width:0;margin:0;padding:4px 0;
  font-size:13px;line-height:1.4;font-weight:700;overflow-wrap:anywhere;
}
.vc-app-shell .vc-front-form .vc-online-professional-checks input[type="checkbox"],
.vc-app-shell .vc-front-form .vc-service-visibility-box input[type="checkbox"]{
  -webkit-appearance:checkbox!important;appearance:auto!important;
  display:inline-block!important;flex:0 0 17px!important;
  width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;
  max-width:17px!important;max-height:17px!important;
  padding:0!important;margin:0!important;box-sizing:border-box!important;vertical-align:middle;
  border-radius:3px!important;
}
.vc-app-shell .vc-front-form .vc-service-visibility-box label.vc-inline-check{
  display:flex!important;align-items:center!important;gap:10px!important;line-height:1.45;
}
.vc-app-shell .vc-online-staff-grid .vc-online-staff-card{
  display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;
  min-width:0;gap:13px;min-height:0;
}
.vc-app-shell .vc-online-staff-grid .vc-online-staff-card>div{min-width:0;width:100%}
.vc-app-shell .vc-online-staff-grid .vc-online-staff-card>.vc-btn{
  min-width:0;max-width:100%;width:auto;align-self:flex-start;
  white-space:normal;text-align:center;overflow-wrap:break-word;line-height:1.4;
  padding:10px 14px;
}
@media(max-width:690px){
  .vc-app-shell .vc-online-staff-grid .vc-online-staff-card>.vc-btn{width:100%;align-self:stretch}
}
/* VisoAtlas video: optional, configured by a WordPress site administrator. */
.vc-atlas-video-section{margin-top:25px}
.vc-atlas-video-frame{position:relative;aspect-ratio:16/9;width:100%;max-width:960px;
  background:#242038;overflow:hidden;border-radius:16px;border:1px solid #e8dbe8}
.vc-atlas-video-frame iframe,.vc-atlas-video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0}
.vc-atlas-video-settings{margin-top:25px;padding:18px;border-radius:16px;border:1px dashed #c39cbe;background:#fcf7fc}
.vc-atlas-video-settings h3{margin:0 0 6px;font-size:17px;color:#403454}
.vc-atlas-video-settings p,.vc-atlas-video-settings small{font-size:13px;line-height:1.5;color:#675a6a}
.vc-atlas-video-settings form{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0}
.vc-atlas-video-settings form label{width:100%;font-size:13px;font-weight:750}
.vc-atlas-video-settings input[type="url"]{flex:1 1 320px;min-width:0;min-height:42px;
  background:#fff;border:1px solid #d7c9d4;border-radius:9px;padding:9px 12px;color:#302942}
.vc-atlas-video-settings .vc-btn{min-height:42px}
.vc-atlas-video-settings .vc-atlas-video-saved{color:#256b40;font-weight:700}

/* 0.5.38.155 – VisoAtlas: fine marker adjustments for temporal, periocular and nasolabial regions. */
.vc-atlas-map-stage{min-width:920px;max-width:100%;aspect-ratio:1448 / 1086;background:#fff}
.vc-atlas-map-image{width:100%;height:100%;object-fit:contain}
.vc-atlas-marker-layer{position:absolute;inset:0;z-index:2;line-height:normal}
.vc-atlas-marker-layer[hidden]{display:none!important}
.vc-atlas-view-switch{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 14px}
.vc-atlas-view-switch button{appearance:none;border:1px solid #e4d4e5;background:#fff;color:#58496b;border-radius:999px;padding:9px 16px;font:600 13px/1.3 inherit;cursor:pointer}
.vc-atlas-view-switch button.is-selected{background:#735480;border-color:#735480;color:#fff}
.vc-atlas-view-switch button:focus-visible{outline:3px solid #a879a9;outline-offset:3px}
.vc-atlas-marker-layer .vc-atlas-hotspot{z-index:3;width:18px;height:18px;border:2px solid #fff;box-shadow:0 1px 6px #432a5480}
.vc-atlas-marker-layer .vc-atlas-hotspot-pulse{inset:-5px;border-width:1px;opacity:.72}
.vc-atlas-marker-layer .vc-atlas-hotspot:hover,.vc-atlas-marker-layer .vc-atlas-hotspot:focus-visible,.vc-atlas-marker-layer .vc-atlas-hotspot.is-atlas-related{z-index:11;transform:translate(-50%,-50%) scale(1.4);box-shadow:0 0 0 4px #fff9,0 1px 9px #4f306095}
.vc-atlas-marker-layer .vc-atlas-hitregions{z-index:1}
.vc-atlas-marker-layer .vc-atlas-hitarea{fill:#fff;fill-opacity:0;stroke:#fff;stroke-opacity:0;stroke-width:1;pointer-events:all}
.vc-atlas-marker-layer .vc-atlas-hitregions a:hover .vc-atlas-hitarea{fill-opacity:.14;stroke-opacity:.7}
.vc-atlas-marker-layer .vc-atlas-hotspot-label{font-size:11px}
@media(max-width:900px){.vc-atlas-map-stage{min-width:920px}.vc-atlas-marker-layer .vc-atlas-hotspot{width:17px;height:17px}}
@media(max-width:540px){.vc-atlas-map-stage{min-width:880px}.vc-atlas-marker-layer .vc-atlas-hotspot{width:16px;height:16px}.vc-atlas-view-switch button{font-size:12px;padding:8px 12px}}

/* VisoClinic 0.5.38.157 — presupuestos: catálogo único + profesional responsable. */
.vc-app-shell .vc-budget-editor-full .vc-budget-item {
  grid-template-columns: minmax(250px, 2fr) minmax(130px, .85fr) minmax(140px, .9fr) minmax(88px, auto) 38px;
  align-items: end;
}
.vc-budget-treatment-field { position: relative; min-width: 0; }
.vc-budget-treatment-search { position: relative; }
.vc-budget-treatment-suggestions { z-index: 100; }
.vc-budget-treatment-suggestions button[aria-selected="true"] { background: #fff1f7; }
.vc-budget-treatment-suggestions button strong { flex: 1; text-align: left; }
.vc-budget-head-fields { margin-bottom: 16px; }
.vc-budget-legacy-quantity { color: var(--vc-muted); font-size: 11px; display: block; grid-column: 1 / -1; }
.vc-budget-item [data-vc-budget-remove] { justify-self: end; }
.vc-budget-table .vc-budget-legacy-quantity { margin-top: 4px; }
@media (max-width: 1150px) {
  .vc-app-shell .vc-budget-editor-full .vc-budget-item {
    grid-template-columns: minmax(190px, 1.7fr) minmax(110px, 1fr) minmax(120px, 1fr);
  }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item .vc-budget-treatment-field { grid-column: 1 / -1; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > strong { grid-column: 1 / 3; justify-content: flex-start; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > [data-vc-budget-remove] { grid-column: 3; }
}
@media (max-width: 680px) {
  .vc-app-shell .vc-budget-editor-full .vc-budget-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item .vc-budget-treatment-field { grid-column: 1 / -1; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > strong { grid-column: 1; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > [data-vc-budget-remove] { grid-column: 2; }
  .vc-budget-treatment-suggestions { position: absolute; max-height: 220px; }
}


/* VisoClinic 0.5.38.158 — presupuesto final con historial y profesional por línea. */
.vc-budget-history-list{display:grid;gap:12px}
.vc-budget-history-card{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--vc-line);border-radius:14px;background:#fff}
.vc-budget-history-card.is-current{border-color:var(--vc-accent,#b06acb);box-shadow:0 0 0 1px rgba(176,106,203,.18)}
.vc-budget-history-card strong,.vc-budget-history-card span{display:block}
.vc-budget-history-card small{display:block;color:var(--vc-muted)}
.vc-budget-history-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}
.vc-budget-items-head{display:grid;grid-template-columns:minmax(250px,2fr) minmax(150px,1fr) minmax(145px,.9fr) minmax(145px,.9fr) minmax(90px,auto) 38px;gap:12px;padding:0 8px 10px;font-size:13px;font-weight:700;color:var(--vc-muted)}
.vc-budget-mobile-label{display:none;font-size:12px;font-weight:700;color:var(--vc-muted);margin-bottom:6px}
.vc-app-shell .vc-budget-editor-full .vc-budget-item{grid-template-columns:minmax(250px,2fr) minmax(150px,1fr) minmax(145px,.9fr) minmax(145px,.9fr) minmax(90px,auto) 38px;align-items:end}
.vc-budget-item>strong{align-self:center;font-size:17px;justify-self:end}
.vc-budget-item label{margin:0}
@media (max-width: 1150px){
  .vc-budget-items-head{display:none}
  .vc-budget-mobile-label{display:block}
  .vc-app-shell .vc-budget-editor-full .vc-budget-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .vc-app-shell .vc-budget-editor-full .vc-budget-item .vc-budget-treatment-field{grid-column:1 / -1}
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > strong{grid-column:1;justify-self:start}
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > [data-vc-budget-remove]{grid-column:2;justify-self:end}
}
@media (max-width: 720px){
  .vc-budget-history-card{flex-direction:column;align-items:flex-start}
  .vc-budget-history-card>div:last-child{width:100%}
  .vc-budget-history-actions{justify-content:flex-start}
}


/* v0.5.38.175 — herramientas de trazo en mapa clínico de aplicaciones */
.vc-application-drawing-tools { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 10px; }
.vc-application-drawing-tools .vc-drawing-tool {
  border:1px solid var(--vc-border,#e5d4e3); border-radius:9px; background:#fff;
  color:#594b60; font:inherit; font-size:12px; font-weight:700; cursor:pointer;
  padding:9px 12px; transition:background .15s,border-color .15s;
}
.vc-application-drawing-tools .vc-drawing-tool.is-active {
  background:#8d477b; border-color:#8d477b; color:#fff;
}
.vc-application-drawing-tools .vc-drawing-tool:focus-visible { outline:3px solid #c27aa9; outline-offset:2px; }
.vc-application-canvas canvas { touch-action:none; user-select:none; }
@media(max-width:680px){
  .vc-application-drawing-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .vc-application-drawing-tools .vc-drawing-tool { padding:9px 6px; font-size:11px; }
}

/* v0.5.38.176 - Custom service order (mouse, touch and keyboard). */
.vc-service-sort-help{margin:0 0 14px!important;line-height:1.55}
.vc-service-sort-item{grid-template-columns:34px 13px minmax(0,1fr) auto!important;transition:background .15s ease,border-color .15s ease}
.vc-service-sort-item.is-dragging{background:var(--vc-theme-surface-soft,#f9edf6)!important;border-style:dashed!important;border-color:var(--vc-theme-accent,#C27AA9)!important;pointer-events:none;opacity:.78}
.vc-service-sort-controls{display:flex;align-items:center;flex-direction:column;gap:2px}
.vc-service-sort-controls button{display:flex;align-items:center;justify-content:center;background:transparent;color:var(--vc-theme-text,#302942);border:1px solid transparent;border-radius:7px;min-height:25px;min-width:28px;line-height:1;font-size:17px;cursor:pointer}
.vc-service-sort-controls button:hover,.vc-service-sort-controls button:focus-visible{border-color:var(--vc-theme-line,#eadde5);background:var(--vc-theme-surface-soft,#faf2f7)}
.vc-service-sort-controls .vc-service-drag-handle{font-size:23px;touch-action:none;cursor:grab}
.vc-service-sort-controls .vc-service-drag-handle:active{cursor:grabbing}
.vc-service-order-form{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}
.vc-service-order-form [data-vc-save-service-order]:disabled{opacity:.48;cursor:not-allowed}
.vc-service-sort-item>.vc-form-actions{justify-self:end}
@media(max-width:720px){.vc-service-sort-item{grid-template-columns:34px 12px minmax(0,1fr)!important}.vc-service-sort-item>.vc-form-actions{grid-column:3;justify-self:start;flex-wrap:wrap}.vc-service-order-form{align-items:stretch;flex-direction:column}}

/* Friendly booking profile URL editor (v0.5.38.177). */
.vc-online-slug-preview{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;overflow-wrap:anywhere;padding:12px 14px;border-radius:12px;border:1px solid #e3d5de;background:#fbf8fa;font-size:14px}
.vc-online-slug-preview strong{color:var(--vc-primary,#a64279);font-weight:800}


/* VisoClinic v0.5.38.179 — navegación sin trazos accidentales en VisoMap móvil. */
.vc-application-map-viewport { width:100%; overflow:hidden; border-radius:16px; touch-action:pan-y; }
.vc-application-map-viewport .vc-application-canvas { width:100%; max-width:none; margin:0; transform-origin:0 0; will-change:transform; }
.vc-application-map-viewport .vc-application-canvas.is-navigating canvas { cursor:grab; }
.vc-application-map-viewport .vc-application-canvas.is-navigating canvas:active { cursor:grabbing; }
.vc-application-map-viewport canvas { touch-action:none; user-select:none; -webkit-user-select:none; }
.vc-map-zoom-controls { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; margin:10px 0; font-size:12px; font-weight:700; color:#655769; }
.vc-map-zoom-controls button { min-width:37px; min-height:37px; padding:7px 10px; border:1px solid #e3d4e0; background:#fff; border-radius:9px; color:#594b60; font:inherit; cursor:pointer; }
.vc-map-zoom-controls button:disabled { opacity:.4; cursor:not-allowed; }
.vc-map-zoom-controls output { min-width:47px; text-align:center; font-variant-numeric:tabular-nums; }
.vc-application-drawing-tools .vc-drawing-tool-navigate { border-style:dashed; }
@media(max-width:680px) {
  .vc-application-canvas-wrap { min-width:0; padding:10px; }
  .vc-application-drawing-tools { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .vc-map-zoom-controls { justify-content:center; }
  .vc-application-map-viewport { max-width:100%; }
}

/* v0.5.38.180 — agenda y ficha de paciente: jerarquía visual e identificación. */
.vc-ui-icon { display:inline-block; flex:0 0 auto; width:19px; height:19px; vertical-align:middle; }

/* La cabecera ocupa toda la tarjeta: no quedan espacios vacíos bajo la hora. */
.vc-app-shell .vc-agenda-card {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
}
.vc-agenda-heading { display:flex; align-items:center; gap:20px; min-width:0; width:100%; }
.vc-app-shell .vc-agenda-heading .vc-agenda-time {
  align-items:center;
  border-right:1px solid rgba(255,255,255,.68);
  flex:0 0 auto;
  gap:10px;
  min-height:54px;
  padding-right:20px;
}
.vc-agenda-heading .vc-agenda-info { min-width:0; flex:1 1 auto; }
.vc-app-shell .vc-agenda-card .vc-appointment-notes { margin:0; width:100%; }
.vc-app-shell .vc-agenda-card .vc-appointment-clinical-summary { margin:0; width:100%; }
.vc-agenda-badge-row { width:100%; }
.vc-app-shell .vc-agenda-card .vc-agenda-actions { margin:0; width:100%; }
.vc-app-shell .vc-agenda-action-main .vc-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.vc-app-shell .vc-agenda-action-main .vc-btn .vc-ui-icon { width:18px; height:18px; }
.vc-app-shell .vc-agenda-action-status {
  border-left:1px solid rgba(255,255,255,.55);
  padding-left:16px;
}

/* Acciones por función, con foto protegida e identificador legible. */
.vc-patient-back { display:inline-flex; align-items:center; color:var(--vc-theme-text,var(--vc-ink)); margin:0 0 13px; text-decoration:none; font-weight:750; }
.vc-patient-back:hover { text-decoration:underline; }
.vc-app-shell .vc-patient-profile-header {
  display:grid;
  grid-template-columns:minmax(230px,.8fr) minmax(0,2.2fr);
  gap:22px;
  align-items:stretch;
  padding:22px;
}
.vc-app-shell .vc-patient-profile-header .vc-patient-profile-identity {
  display:flex;
  gap:13px;
  align-items:flex-start;
  flex:initial;
  border-right:1px solid var(--vc-theme-line,var(--vc-line));
  padding-right:20px;
  min-width:0;
}
.vc-patient-avatar {
  width:66px;
  height:66px;
  flex:0 0 66px;
  display:grid;
  place-items:center;
  border:1px solid var(--vc-theme-line,var(--vc-line));
  border-radius:50%;
  overflow:hidden;
  background:var(--vc-theme-surface-soft,#e9f1ee);
  color:var(--vc-theme-accent,#618b7b);
}
.vc-patient-avatar .vc-ui-icon { width:32px; height:32px; }
.vc-patient-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.vc-app-shell .vc-patient-profile-header .vc-patient-name { min-width:0; flex:1 1 auto; display:block; }
.vc-patient-profile-kicker, .vc-profile-action-label {
  display:block;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:10px;
  font-weight:850;
  margin-bottom:9px;
  color:var(--vc-theme-muted,var(--vc-muted));
}
.vc-app-shell .vc-patient-profile-header h2 { font:650 clamp(20px,1.7vw,26px)/1.15 Inter,Arial,sans-serif; margin:0 0 7px; }
.vc-app-shell .vc-patient-profile-header p { font-size:12px; line-height:1.5; }
.vc-patient-avatar-form { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin:11px 0 0; }
.vc-patient-avatar-select, .vc-patient-avatar-save {
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  border:1px solid var(--vc-theme-line,var(--vc-line)); border-radius:8px;
  background:var(--vc-theme-surface,#fff); color:var(--vc-theme-text,var(--vc-ink));
  padding:7px 9px; font-size:11px; font-weight:750; cursor:pointer;
}
.vc-patient-avatar-select { position:relative; }
.vc-patient-avatar-select .vc-ui-icon { width:14px; height:14px; }
.vc-patient-avatar-select input[type=file] { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); opacity:0; }
.vc-patient-avatar-select:focus-within, .vc-patient-avatar-save:focus-visible { outline:2px solid var(--vc-theme-accent,#8e6791); outline-offset:2px; }
.vc-patient-avatar-save { background:var(--vc-theme-surface-soft,#f4edf3); }
.vc-patient-avatar-help { width:100%; font-size:10px; color:var(--vc-theme-muted,var(--vc-muted)); }
.vc-patient-avatar-remove-form { margin:3px 0 0; }
.vc-patient-avatar-remove-form button { border:0; background:transparent; color:#a43d55; padding:3px 0; font:600 11px/1.4 inherit; cursor:pointer; }
.vc-app-shell .vc-patient-profile-header .vc-patient-profile-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:22px;
  align-items:start;
  min-width:0;
}
.vc-app-shell .vc-patient-profile-header .vc-patient-clinical-actions,
.vc-app-shell .vc-patient-profile-header .vc-patient-management-actions { display:block; min-width:0; }
.vc-app-shell .vc-patient-profile-header > * { margin-bottom:0; }
.vc-patient-management-actions { border-left:1px solid var(--vc-theme-line,var(--vc-line)); padding-left:20px; }
.vc-patient-action-buttons { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.vc-patient-action-buttons form { margin:0; }
.vc-app-shell .vc-patient-action-buttons .vc-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:44px; padding:10px 12px; border-radius:10px;
  font-size:12px; font-weight:800; text-align:center; white-space:normal;
}
.vc-patient-action-buttons .vc-ui-icon { width:18px; height:18px; }
.vc-patient-management-actions .vc-btn-danger-outline { color:#b42e42; border-color:#edb6bf; }

/* Títulos con pictogramas, líneas sutiles e información fácil de recorrer. */
.vc-app-shell .vc-profile-grid .vc-patient-info-card { min-width:0; }
.vc-patient-info-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--vc-theme-line,var(--vc-line)); }
.vc-patient-info-heading h3 { display:flex; align-items:center; gap:12px; margin:0; font-size:16px; }
.vc-patient-info-heading .vc-ui-icon { width:23px; height:23px; }
.vc-patient-info-heading a { display:inline-flex; align-items:center; padding:3px; color:var(--vc-theme-text,var(--vc-ink)); }
.vc-patient-info-heading a:focus-visible { outline:2px solid var(--vc-theme-accent,#8e6791); outline-offset:2px; }
.vc-patient-info-body { padding-top:3px; }
.vc-patient-info-row { display:flex; align-items:flex-start; gap:13px; padding:12px 0; min-width:0; }
.vc-patient-info-row + .vc-patient-info-row { border-top:1px solid color-mix(in srgb,var(--vc-theme-line,var(--vc-line)) 65%,transparent); }
.vc-patient-info-row > .vc-ui-icon { margin-top:2px; flex:0 0 22px; width:22px; height:22px; }
.vc-app-shell .vc-patient-info-row p { margin:0; min-width:0; overflow-wrap:anywhere; }
.vc-app-shell .vc-patient-info-row b { display:inline-block; margin-bottom:2px; }
@media(max-width:1180px) {
  .vc-app-shell .vc-patient-profile-header { grid-template-columns:1fr; }
  .vc-app-shell .vc-patient-profile-header .vc-patient-profile-identity { border-right:0; border-bottom:1px solid var(--vc-theme-line,var(--vc-line)); padding:0 0 17px; }
}
@media(max-width:700px) {
  .vc-app-shell .vc-patient-profile-header .vc-patient-profile-actions { grid-template-columns:1fr; gap:17px; }
  .vc-patient-management-actions { border-left:0; border-top:1px solid var(--vc-theme-line,var(--vc-line)); padding:16px 0 0; }
  .vc-agenda-heading { gap:10px; flex-wrap:wrap; }
  .vc-app-shell .vc-agenda-heading .vc-agenda-time { min-height:42px; padding-right:12px; }
  .vc-app-shell .vc-agenda-action-status { border-left:0; border-top:1px solid rgba(255,255,255,.55); padding:12px 0 0; }
}

/* v0.5.38.181 — Administración Premium: producción, honorarios y pagos. */
.vc-admin-finance {
  --vc-adm-line: var(--vc-theme-line,var(--vc-line,#e6dbe6));
  --vc-adm-soft: var(--vc-theme-surface-soft,#fbf7fb);
  --vc-adm-accent: var(--vc-theme-accent,#aa6bd0);
  color:var(--vc-theme-text,var(--vc-ink,#2e2534));
  display:grid; gap:17px; min-width:0; padding-bottom:22px;
}
.vc-adm-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.vc-adm-heading h2 { font-size:clamp(24px,2.4vw,32px); margin:3px 0 5px; color:inherit; }
.vc-adm-heading p { margin:0; color:var(--vc-theme-muted,var(--vc-muted,#72687a)); font-size:13px; }
.vc-adm-premium-tag { border:1px solid var(--vc-adm-line); background:var(--vc-adm-soft); border-radius:999px; padding:6px 13px; font-size:11px; font-weight:850; color:var(--vc-adm-accent); }
.vc-adm-tabs { display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--vc-adm-line); }
.vc-adm-tabs a { padding:12px 15px; border-bottom:3px solid transparent; text-decoration:none; color:var(--vc-theme-muted,var(--vc-muted)); font-size:13px; font-weight:750; }
.vc-adm-tabs a.is-active { color:var(--vc-adm-accent); border-bottom-color:var(--vc-adm-accent); }
.vc-adm-tabs a:focus-visible,.vc-adm-period-switch a:focus-visible { outline:2px solid var(--vc-adm-accent); outline-offset:2px; }
.vc-adm-filters { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:end; column-gap:10px; row-gap:8px; min-width:0; }
.vc-adm-filters.is-custom { grid-template-columns:minmax(0,1fr); }
.vc-adm-period-switch { display:inline-flex; flex-wrap:nowrap; width:max-content; height:40px; border:1px solid var(--vc-adm-line); border-radius:10px; overflow:hidden; }
.vc-adm-period-switch a { display:flex; align-items:center; justify-content:center; white-space:nowrap; padding:8px 12px; text-decoration:none; color:var(--vc-theme-text,var(--vc-ink)); background:var(--vc-theme-surface,#fff); font-size:12px; font-weight:800; }
.vc-adm-period-switch a + a { border-left:1px solid var(--vc-adm-line); }
.vc-adm-period-switch a.is-active { background:var(--vc-adm-accent); color:#fff; }
.vc-adm-filter-form { display:grid; grid-template-columns:minmax(140px,175px) minmax(0,1fr) auto; align-items:end; gap:8px; width:100%; max-width:790px; min-width:0; }
.vc-adm-filters.is-custom .vc-adm-filter-form { grid-template-columns:repeat(3,minmax(120px,1fr)) minmax(230px,1.4fr) auto; }
.vc-adm-history-filter { display:flex; flex-wrap:wrap; align-items:end; gap:9px; min-width:0; }
.vc-adm-filter-form label,.vc-adm-history-filter label { display:grid; gap:5px; min-width:145px; font-size:11px; font-weight:800; color:var(--vc-theme-muted,var(--vc-muted)); }
.vc-adm-filter-form label { min-width:0; }
.vc-adm-filter-form input,.vc-adm-filter-form select,.vc-adm-history-filter input,.vc-adm-history-filter select {
  width:100%; min-width:0; min-height:40px; border:1px solid var(--vc-adm-line); border-radius:8px; padding:7px 9px; color:var(--vc-theme-text,var(--vc-ink)); background:var(--vc-theme-surface,#fff); font:inherit; font-size:12px;
}
.vc-adm-filter-form .vc-btn,.vc-adm-history-filter .vc-btn { min-height:40px; padding:9px 15px; }
.vc-adm-filter-form .vc-btn { align-self:end; white-space:nowrap; }
.vc-adm-period-caption { margin:-4px 0 0; color:var(--vc-theme-muted,var(--vc-muted)); font-size:11px; font-weight:700; line-height:1.5; }
.vc-adm-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.vc-adm-two-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.vc-adm-metric { min-width:0; border:1px solid var(--vc-adm-line); border-radius:13px; padding:17px 18px; background:var(--vc-theme-surface,#fff); }
.vc-adm-metric span,.vc-adm-metric strong,.vc-adm-metric small { display:block; }
.vc-adm-metric span { font-size:11px; color:var(--vc-theme-muted,var(--vc-muted)); font-weight:800; }
.vc-adm-metric strong { font-size:clamp(19px,2vw,27px); margin:8px 0 5px; line-height:1.1; overflow-wrap:anywhere; }
.vc-adm-metric small { font-size:11px; color:var(--vc-theme-muted,var(--vc-muted)); }
.vc-app-shell .vc-adm-panel { min-width:0; padding:19px; }
.vc-adm-section-heading { display:flex; gap:12px; justify-content:space-between; align-items:center; margin:0 0 15px; }
.vc-adm-section-heading h3 { margin:0; font-size:15px; font-weight:850; color:inherit; }
.vc-adm-section-heading p,.vc-adm-section-heading small { color:var(--vc-theme-muted,var(--vc-muted)); margin:5px 0 0; font-size:11px; }
.vc-adm-section-heading .vc-btn { flex:0 0 auto; }
.vc-adm-bar-group { padding:11px 0; }
.vc-adm-bar-group + .vc-adm-bar-group { border-top:1px solid var(--vc-adm-line); }
.vc-adm-bar-group.is-unassigned { background:rgba(203,136,51,.09); border:1px solid rgba(203,136,51,.25); border-radius:10px; margin-top:8px; padding:11px 12px; }
.vc-adm-bar-group.is-unassigned > div:first-child { flex-wrap:wrap; }
.vc-adm-bar-group.is-unassigned .vc-adm-bar-track > div { background:#c58737; }
.vc-adm-bar-group > div:first-child { display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:8px; font-size:12px; }
.vc-adm-bar-group strong { font-weight:800; }
.vc-adm-bar-group span { font-size:11px; font-weight:700; color:var(--vc-theme-muted,var(--vc-muted)); text-align:right; }
.vc-adm-bar-track { height:7px; background:var(--vc-adm-soft); border-radius:999px; overflow:hidden; }
.vc-adm-bar-track > div { height:100%; border-radius:inherit; background:var(--vc-adm-accent); }
.vc-adm-table-wrap { max-width:100%; overflow-x:auto; }
.vc-adm-table { width:100%; border-collapse:collapse; min-width:660px; font-size:12px; color:inherit; }
.vc-adm-fees-table { min-width:840px; }
.vc-adm-history-table { min-width:790px; table-layout:fixed; }
.vc-adm-history-table th:nth-child(1) { width:14%; }
.vc-adm-history-table th:nth-child(2) { width:19%; }
.vc-adm-history-table th:nth-child(3) { width:17%; }
.vc-adm-history-table th:nth-child(4) { width:34%; }
.vc-adm-history-table th:nth-child(5) { width:16%; }
.vc-adm-history-table td:nth-child(4) { overflow-wrap:anywhere; }
.vc-adm-history-range { font-variant-numeric:tabular-nums; }
.vc-adm-table th { color:var(--vc-theme-muted,var(--vc-muted)); font-size:10px; text-align:left; font-weight:800; border-bottom:1px solid var(--vc-adm-line); padding:10px 11px; }
.vc-adm-table td { padding:12px 11px; border-bottom:1px solid var(--vc-adm-line); vertical-align:top; }
.vc-adm-table tr:last-child td { border-bottom:0; }
.vc-adm-table td strong { font-weight:800; }
.vc-adm-table td small { display:block; color:var(--vc-theme-muted,var(--vc-muted)); margin-top:5px; line-height:1.4; font-size:10px; }
.vc-adm-table td.vc-adm-money { white-space:nowrap; font-variant-numeric:tabular-nums; text-align:right; }
.vc-adm-table .vc-adm-empty { padding:30px 10px; text-align:center; color:var(--vc-theme-muted,var(--vc-muted)); }
.vc-adm-fee-config { position:relative; margin-top:5px; }
.vc-adm-fee-config summary { color:var(--vc-adm-accent); text-decoration:underline; text-underline-offset:2px; cursor:pointer; font-size:11px; font-weight:700; }
.vc-adm-fee-config form,.vc-adm-payment-form form { display:grid; gap:10px; width:min(280px,72vw); margin:10px 0 5px; padding:14px; border:1px solid var(--vc-adm-line); border-radius:11px; background:var(--vc-adm-soft); box-shadow:0 9px 24px rgba(37,25,47,.07); }
.vc-adm-fee-config form label,.vc-adm-payment-form form label { display:grid; gap:5px; font-size:11px; font-weight:750; }
.vc-adm-fee-config form input,.vc-adm-fee-config form select,.vc-adm-payment-form form input { min-height:39px; border:1px solid var(--vc-adm-line); border-radius:8px; padding:8px; background:var(--vc-theme-surface,#fff); color:var(--vc-theme-text,var(--vc-ink)); width:100%; }
.vc-adm-fee-config form .vc-btn,.vc-adm-payment-form form .vc-btn { white-space:normal; }
.vc-adm-payment-form summary { cursor:pointer; display:inline-flex; justify-content:center; padding:9px 12px; list-style:none; }
.vc-adm-payment-form summary::-webkit-details-marker { display:none; }
.vc-adm-payment-form[open] { width:min(290px,75vw); }
.vc-adm-paid-label { display:inline-block; color:#2f8055; font-size:11px; font-weight:800; }
.vc-adm-footnote,.vc-adm-bottom-note { color:var(--vc-theme-muted,var(--vc-muted)); font-size:11px; line-height:1.5; }
.vc-adm-footnote { margin:13px 0 0; }
.vc-adm-bottom-note { margin:0; }
.vc-adm-history { scroll-margin-top:20px; }
.vc-adm-history-filter { margin:15px 0; padding:13px; border:1px solid var(--vc-adm-line); border-radius:12px; background:var(--vc-adm-soft); }
.vc-adm-history-summary { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px; margin:14px 0 6px; font-size:12px; }
.vc-adm-history-summary strong { font-size:15px; }
@media(max-width:1180px) {
  .vc-adm-filters { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:900px) {
  .vc-adm-metrics { grid-template-columns:1fr; }
  .vc-adm-two-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vc-adm-filters { grid-template-columns:minmax(0,1fr); }
  .vc-adm-filters.is-custom .vc-adm-filter-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .vc-adm-filters.is-custom .vc-adm-professional-filter { grid-column:span 2; }
}
@media(max-width:570px) {
  .vc-adm-two-metrics { grid-template-columns:1fr; }
  .vc-adm-period-switch { width:100%; }
  .vc-adm-period-switch a { flex:1 1 0; text-align:center; padding:8px 5px; }
  .vc-adm-filter-form,.vc-adm-filters.is-custom .vc-adm-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vc-adm-filters.is-custom .vc-adm-professional-filter { grid-column:auto; }
  .vc-adm-filter-form .vc-btn { grid-column:1 / -1; }
  .vc-adm-history-filter label { flex:1 1 45%; min-width:0; }
  .vc-adm-history-filter .vc-btn { flex:1 1 100%; }
  .vc-adm-section-heading { flex-direction:column; align-items:flex-start; }
  .vc-app-shell .vc-adm-panel { padding:14px; }
}
@media(max-width:430px) {
  .vc-adm-filter-form,.vc-adm-filters.is-custom .vc-adm-filter-form { grid-template-columns:minmax(0,1fr); }
}

/* v187: evolution reminder and compact clinical fields. */
.vc-evolution-row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.vc-evolution-note{position:relative;color:inherit}
.vc-evolution-note>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;padding:8px;border-radius:8px;font-weight:600}
.vc-evolution-note>summary::-webkit-details-marker{display:none}
.vc-evolution-note.has-note>summary{color:#b42318;background:#fff0ee}
.vc-evolution-note>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.vc-evolution-note-window{position:absolute;z-index:50;right:0;top:100%;width:340px;max-width:calc(100vw - 48px);padding:18px;border:1px solid #ddd;border-radius:12px;background:#fff;color:#292929;box-shadow:0 8px 28px #0003}
.vc-evolution-note-window form,.vc-evolution-note-window label{display:grid;gap:10px;margin-top:10px}
.vc-evolution-note-window textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:100px;padding:10px;border:1px solid #ccc;border-radius:8px;font:inherit}
.vc-evolution-note-window small{display:block;font-weight:400;white-space:normal}
.vc-evolution-history-row>div:first-child{min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){.vc-evolution-row-actions{width:100%;justify-content:space-between}.vc-evolution-note-window{width:280px}.vc-evolution-history-row{flex-wrap:wrap;gap:12px}}
.vc-evolution-history-row>.vc-evolution-row-actions{display:flex;gap:10px}
.vc-evolution-history-row .vc-evolution-note-window small{overflow:visible;white-space:normal}
.vc-evolution-history-row .vc-evolution-note-window{box-sizing:border-box}
.vc-evolution-history-row .vc-evolution-note-window label{font-weight:500;font-size:13px}
.vc-evolution-note .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.vc-evolution-row-actions>.vc-evolution-note{margin-left:auto}
@media(max-width:700px){.vc-evolution-history-row .vc-evolution-row-actions>.vc-btn{width:auto;flex:1}.vc-evolution-history-row>.vc-evolution-row-actions{justify-content:space-between}}
.vc-front-form .vc-clinical-extra-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.vc-clinical-extra-row>label,.vc-clinical-extra-row>.vc-binary-field{min-width:0}
.vc-clinical-extra-row input,.vc-clinical-extra-row textarea{box-sizing:border-box;max-width:100%}
@media(max-width:700px){.vc-front-form .vc-clinical-extra-row{grid-template-columns:1fr}}

/* v188: Keep the editor in document flow so panels cannot cover its fields. */
.vc-evolution-history-row:has(.vc-evolution-note[open]){grid-template-columns:minmax(0,1fr)}
.vc-evolution-history-row .vc-evolution-row-actions:has(.vc-evolution-note[open]){width:100%;align-items:flex-start}
.vc-evolution-row-actions>.vc-evolution-note[open]{flex:1 1 100%;margin-left:0;min-width:0}
.vc-evolution-history-row .vc-evolution-note-window{position:static;width:100%;max-width:100%;margin-top:8px;box-shadow:none}
.vc-evolution-note-window textarea{display:block;pointer-events:auto;font-size:16px}
.vc-evolution-form .vc-choice-heading{font-weight:700}
.vc-evolution-form .vc-choice-grid{display:flex;flex-wrap:wrap;gap:10px 20px}
.vc-evolution-form .vc-choice-option{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:7px;padding:4px 0;border:0;background:transparent;min-height:0;width:auto}
.vc-evolution-form .vc-choice-option input[type=checkbox]{appearance:auto;position:static;display:inline-block;flex:0 0 16px;width:16px;height:16px;min-width:16px;min-height:16px;margin:0;padding:0;opacity:1;pointer-events:auto;accent-color:var(--vc-theme-accent,#C27AA9)}
.vc-evolution-form .vc-choice-option span{font-size:14px;line-height:1.4}

/* v189: Evolution selection is a compact native checkbox beside each label,
 * overriding the shared intake-card and pseudo-checkbox styles. */
.vc-evolution-form .vc-evolution-written-grid > .vc-choice-field{min-width:0;padding:8px 10px;margin:0;align-self:start}
.vc-evolution-form .vc-choice-field .vc-choice-heading{display:block;font-size:13px;font-weight:800;line-height:1.3;margin:0 0 6px}
.vc-evolution-form .vc-choice-field .vc-choice-grid{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 14px;margin:0}
.vc-patient-intake-main .vc-evolution-form .vc-choice-field .vc-choice-option,
.vc-evolution-form .vc-choice-field .vc-choice-option{display:inline-flex;gap:6px;align-items:center;width:auto;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
.vc-patient-intake-main .vc-evolution-form .vc-choice-field .vc-choice-option input[type="checkbox"],
.vc-evolution-form .vc-choice-field .vc-choice-option input[type="checkbox"]{appearance:auto;position:static;opacity:1;width:14px;height:14px;min-width:14px;min-height:14px;flex:0 0 14px;margin:0;padding:0;pointer-events:auto;cursor:pointer;accent-color:var(--vc-theme-accent,#C27AA9)}
.vc-patient-intake-main .vc-evolution-form .vc-choice-field .vc-choice-option > span,
.vc-evolution-form .vc-choice-field .vc-choice-option > span{display:inline;font-size:13px;font-weight:600;line-height:1.4;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--vc-ink,#292929);transform:none}
.vc-patient-intake-main .vc-evolution-form .vc-choice-field .vc-choice-option > span::before,
.vc-evolution-form .vc-choice-field .vc-choice-option > span::before{content:none;display:none}
/* Open reminder editor is genuinely editable, with adequate tap targets. */
.vc-evolution-history-row .vc-evolution-note[open]{width:100%;min-width:0}
.vc-evolution-note-window form{display:flex;flex-direction:column;gap:10px}
.vc-evolution-note-window textarea{display:block;position:relative;z-index:1;box-sizing:border-box;width:100%;min-height:120px;padding:11px 12px;background:#fff;color:#242424;border:1px solid #b9aeb6;border-radius:8px;cursor:text;user-select:text;-webkit-user-select:text;touch-action:manipulation}
.vc-evolution-note-window textarea:focus-visible{outline:2px solid var(--vc-theme-accent,#C27AA9);outline-offset:2px}
.vc-evolution-note-window label{display:block;font-weight:700}
@media(max-width:700px){.vc-evolution-form .vc-choice-field .vc-choice-grid{gap:7px 12px}.vc-evolution-note-window{padding:12px}}

/* v0.5.38.190 — Searchable blocked shifts for every plan with Agenda access. */
.vc-availability-panel .vc-blocked-shifts-title {
  color: #19171c !important;
  margin: 0;
  font-weight: 800;
}
.vc-block-filter {
  display: grid;
  grid-template-columns: auto minmax(155px, .6fr) minmax(200px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 12px;
}
.vc-block-filter-modes { display: flex; align-items: stretch; align-self: end; min-height: 44px; }
.vc-block-filter-mode {
  border: 1px solid #e6d9e2;
  background: #fff;
  color: #292334;
  padding: 10px 13px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  margin-right: -1px;
}
.vc-block-filter-mode:first-child { border-radius: 10px 0 0 10px; }
.vc-block-filter-mode:last-child { border-radius: 0 10px 10px 0; margin-right: 0; }
.vc-block-filter-mode.is-active { color: #fff; background: #ae6a9c; border-color: #ae6a9c; }
.vc-block-filter-mode:focus-visible { outline: 2px solid #7d3f78; outline-offset: 2px; position: relative; z-index: 1; }
.vc-block-filter label { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; font-weight: 700; }
.vc-block-filter label > span { color: #6c6372; font-size: 12px; }
.vc-block-filter input[type="date"], .vc-block-filter select {
  width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px;
  background: #fff; color: #292334; border: 1px solid #e6d9e2; border-radius: 10px;
  box-sizing: border-box; font: inherit;
}
.vc-block-filter-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vc-block-filter [hidden] { display: none !important; }
.vc-block-filter .vc-block-filter-apply { min-height: 44px; align-self: end; }
.vc-block-filter-summary { color: #726a78; font-size: 12px; padding: 4px 0 12px; }
.vc-online-logo-help { color: #665e69; line-height: 1.5; font-size: 12px; }
.vc-online-logo-help strong { color: #3c3140; }
.vc-online-logo-field .vc-online-image-preview {
  object-fit: contain;
  background: #fff;
}
@media (max-width: 1200px) {
  .vc-block-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .vc-block-filter-modes { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .vc-block-filter { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vc-block-filter-modes { width: 100%; min-width: 0; overflow-x: auto; }
  .vc-block-filter-mode { flex: 1 0 auto; padding: 10px; }
  .vc-block-filter-custom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-block-filter-apply { width: 100%; justify-content: center; }
}

/* v0.5.38.193: Historial de consentimientos sin límite, paginado por paciente. */
.vc-consent-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--vc-theme-line,rgba(141,83,111,.16))}
.vc-consent-pagination span{font-size:13px;font-weight:600;color:var(--vc-theme-text,#453549)}

/* Consentimientos: filtros de histórico firmado y paginación protegida. */
.vc-consent-history-tabs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0 18px}
.vc-consent-history-tabs .vc-btn{font-size:12px;min-height:34px;padding:8px 13px}
.vc-consent-history-tabs .is-selected{border:2px solid var(--vc-theme-accent,var(--vc-plum));font-weight:800}
.vc-consent-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--vc-theme-line,rgba(141,83,111,.16))}
.vc-consent-pagination span{font-size:13px;font-weight:600;color:var(--vc-theme-text,#453549)}


/* 0.5.38.194.2 — Blocked-shifts filters use the selected professional's
   interface theme (previously the active Month button was hardcoded pink). */
.vc-app-shell .vc-availability-panel .vc-block-filter-modes > button.vc-block-filter-mode {
  background:var(--vc-theme-surface,#fff);
  border-color:var(--vc-theme-line,rgba(132,86,128,.18));
  color:var(--vc-theme-text,#2A2436);
}
.vc-app-shell .vc-availability-panel .vc-block-filter-modes > button.vc-block-filter-mode:not(.is-active):is(:hover,:focus-visible) {
  background:var(--vc-theme-surface-soft,#FDF3F8);
  border-color:var(--vc-theme-accent,#C27AA9);
  color:var(--vc-theme-text,#2A2436);
}
.vc-app-shell .vc-availability-panel .vc-block-filter-modes > button.vc-block-filter-mode.is-active,
.vc-app-shell .vc-availability-panel .vc-block-filter-modes > button.vc-block-filter-mode.is-active:is(:hover,:focus-visible) {
  background:var(--vc-theme-accent,#C27AA9);
  border-color:var(--vc-theme-accent,#C27AA9);
  color:var(--vc-theme-on-accent,#fff);
}
.vc-app-shell .vc-availability-panel .vc-block-filter-mode:focus-visible {
  outline-color:var(--vc-theme-accent-dark,#8C4F7A);
}
.vc-app-shell .vc-availability-panel .vc-block-filter label > span,
.vc-app-shell .vc-availability-panel .vc-block-filter-summary {
  color:var(--vc-theme-muted,#6E6572);
}
.vc-app-shell .vc-availability-panel .vc-block-filter input[type="date"],
.vc-app-shell .vc-availability-panel .vc-block-filter select {
  background:var(--vc-theme-input,#fff);
  color:var(--vc-theme-text,#2A2436);
  border-color:var(--vc-theme-line,rgba(132,86,128,.18));
}

/* v0.5.40.5: producción básica (Esencial y Profesional), solo lectura.
   Todas las superficies y los estados usan el tema elegido en Mi perfil. */
.vc-simple-production .vc-adm-heading { align-items:center; }
.vc-app-shell .vc-simple-production-panel { padding:22px; min-width:0; }
.vc-simple-production-filters { display:flex; flex-wrap:wrap; align-items:end; gap:14px; }
.vc-simple-production .vc-adm-period-switch { flex:0 0 auto; }
.vc-simple-production-form { display:flex; flex:1 1 250px; flex-wrap:wrap; align-items:end; gap:9px; min-width:0; }
.vc-simple-production-form label { display:grid; gap:5px; min-width:148px; flex:1 1 145px; color:var(--vc-theme-muted,var(--vc-muted)); font-size:12px; font-weight:700; }
.vc-simple-production-form input[type="date"] { width:100%; min-width:0; min-height:40px; border:1px solid var(--vc-adm-line); border-radius:9px; padding:8px 10px; background:var(--vc-theme-input,var(--vc-theme-surface,#fff)); color:var(--vc-theme-text,var(--vc-ink)); font:inherit; font-size:14px; color-scheme:light; }
.vc-app-shell[data-vc-theme="dark"] .vc-simple-production-form input[type="date"] { color-scheme:dark; }
.vc-simple-production-form .vc-btn { flex:0 0 auto; min-height:40px; }
.vc-simple-production .vc-adm-period-caption { margin:12px 0 0; }
.vc-simple-production-total { display:flex; flex-direction:column; gap:6px; margin:23px 0 21px; padding:21px 23px; border-radius:13px; border:1px solid var(--vc-adm-line); background:var(--vc-adm-soft); color:var(--vc-theme-text,var(--vc-ink)); }
.vc-simple-production-total span { font-size:13px; font-weight:750; }
.vc-simple-production-total strong { font-size:clamp(25px,3vw,36px); line-height:1.12; font-weight:850; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.vc-simple-production-total small { font-size:12px; color:var(--vc-theme-muted,var(--vc-muted)); }
.vc-simple-production-table { min-width:490px; }
.vc-simple-production-table th:not(:first-child),.vc-simple-production-table td:not(:first-child) { text-align:right; }
.vc-simple-production-table tfoot { background:var(--vc-adm-soft); }
.vc-simple-production-table tfoot th,.vc-simple-production-table tfoot td { border-top:1px solid var(--vc-adm-line); font-weight:800; padding-block:14px; }
.vc-simple-production-table td,.vc-simple-production-table th { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.vc-simple-production .vc-adm-bottom-note { margin:0; }
@media(max-width:760px) {
  .vc-simple-production-filters { display:grid; grid-template-columns:minmax(0,1fr); }
  .vc-simple-production .vc-adm-period-switch { width:100%; }
  .vc-simple-production .vc-adm-period-switch a { flex:1; padding-inline:5px; }
  .vc-simple-production-form { width:100%; }
}
@media(max-width:480px) {
  .vc-simple-production .vc-adm-heading { align-items:flex-start; }
  .vc-app-shell .vc-simple-production-panel { padding:16px; }
  .vc-simple-production-form .vc-btn { flex:1 1 100%; }
  .vc-simple-production-total { padding:18px; }
}

.vc-simple-production .vc-adm-period-switch a.is-active { color:var(--vc-theme-on-accent,#fff); }


/* v0.5.40.6: same persistent 2-row date selector as the Mi producción reference.
   Only the two single-professional plans are affected; Premium is untouched. */
.vc-app-shell .vc-simple-production-filters {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:end;
  gap:16px 18px;
  min-width:0;
}
.vc-simple-production .vc-adm-period-switch {
  display:flex;
  width:100%;
  height:56px;
  border-radius:15px;
  align-self:end;
  min-width:0;
}
.vc-simple-production .vc-adm-period-switch a {
  flex:1 1 auto;
  min-width:0;
  padding:10px 11px;
  font-size:clamp(12px,1.2vw,16px);
  font-weight:500;
  border-left:0;
  text-decoration:none;
}
.vc-simple-production .vc-adm-period-switch a.is-active,
.vc-simple-production .vc-adm-period-switch a.is-active:hover,
.vc-simple-production .vc-adm-period-switch a.is-active:focus-visible {
  background:var(--vc-theme-accent,#aa6bd0);
  color:var(--vc-theme-on-accent,#fff);
}
.vc-simple-production .vc-adm-period-switch a:not(.is-active):is(:hover,:focus-visible) {
  background:var(--vc-theme-surface-soft,#f8f2fa);
  color:var(--vc-theme-text,#302836);
}
.vc-app-shell .vc-simple-production-form { display:contents; }
.vc-simple-production-form .vc-simple-production-date {
  grid-column:2;
  min-width:0;
}
.vc-simple-production-form .vc-simple-production-range {
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
  min-width:0;
}
.vc-simple-production-form label {
  display:flex;
  flex-direction:column;
  gap:9px;
  min-width:0;
  color:var(--vc-theme-text,var(--vc-ink));
  font-size:14px;
  font-weight:500;
}
.vc-simple-production-form input[type="date"] {
  display:block;
  width:100%;
  min-width:0;
  min-height:56px;
  padding:12px 16px;
  border:1px solid var(--vc-theme-line,var(--vc-adm-line));
  border-radius:15px;
  background:var(--vc-theme-input,var(--vc-theme-surface,#fff));
  color:var(--vc-theme-text,var(--vc-ink));
  font:inherit;
  font-size:16px;
  font-weight:500;
  color-scheme:light;
}
.vc-app-shell[data-vc-theme="dark"] .vc-simple-production-form input[type="date"] { color-scheme:dark; }
.vc-simple-production-form input[type="date"]:focus-visible {
  outline:2px solid var(--vc-theme-accent,#aa6bd0);
  outline-offset:2px;
}
.vc-simple-production-form .vc-simple-production-date-error {
  grid-column:1/-1;
  margin:0;
  font-size:13px;
  color:var(--vc-theme-danger,#ba3a3a);
}
.vc-simple-production-form .vc-simple-production-apply { grid-column:1/-1; justify-self:start; }
.vc-simple-production-form.is-live .vc-simple-production-apply { display:none; }
.vc-simple-production .vc-adm-period-caption { margin:0; font-size:13px; font-weight:500; }
@media(max-width:680px) {
  .vc-app-shell .vc-simple-production-filters { grid-template-columns:minmax(0,1fr); gap:15px; }
  .vc-simple-production-form .vc-simple-production-date { grid-column:1; }
  .vc-simple-production-form .vc-simple-production-range { grid-column:1; gap:12px; }
  .vc-simple-production .vc-adm-period-switch a { padding-inline:6px; }
}
@media(max-width:395px) {
  .vc-simple-production-form .vc-simple-production-range { grid-template-columns:minmax(0,1fr); }
  .vc-simple-production .vc-adm-period-switch a { font-size:11px; padding-inline:3px; }
  .vc-simple-production .vc-adm-period-switch { height:50px; }
}


/* v0.5.40.8 — Presupuestos y detalle de producción, tres planes. */
@media (min-width: 1451px) {
  .vc-budget-items-head,
  .vc-app-shell .vc-budget-editor-full .vc-budget-item {
    grid-template-columns:minmax(190px,2fr) minmax(115px,1fr) minmax(112px,.85fr) minmax(118px,.9fr) minmax(142px,1fr) minmax(75px,auto) 34px;
    gap:9px;
  }
}
@media (max-width: 1450px) {
  .vc-budget-items-head { display:none; }
  .vc-budget-mobile-label { display:block; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:end;
  }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item .vc-budget-treatment-field { grid-column:1 / -1; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > strong { grid-column:1;justify-self:start; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > [data-vc-budget-remove] { grid-column:2;justify-self:end; }
}
@media (max-width: 560px) {
  .vc-app-shell .vc-budget-editor-full .vc-budget-item { grid-template-columns:minmax(0,1fr); }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item .vc-budget-treatment-field { grid-column:1; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > strong { grid-column:1; }
  .vc-app-shell .vc-budget-editor-full .vc-budget-item > [data-vc-budget-remove] { grid-column:1;justify-self:end; }
}
.vc-budget-payment-method-label { display:grid;gap:5px;font-size:12px;font-weight:650; }
.vc-budget-payment-method-label select { min-height:35px;max-width:200px;width:100%;padding:5px 8px;border:1px solid var(--vc-theme-line,var(--vc-line));border-radius:8px;background:var(--vc-theme-surface,#fff);color:inherit;font:inherit;font-weight:500; }
.vc-budget-payment-form { display:grid;justify-items:start;gap:6px; }
.vc-admin-finance .vc-adm-production-details { min-width:920px;font-family:inherit;font-size:13px;line-height:1.45; }
.vc-admin-finance .vc-adm-production-details th,
.vc-admin-finance .vc-adm-production-details td { font-family:inherit;font-size:13px;line-height:1.45; }
.vc-admin-finance .vc-adm-production-details thead th { font-weight:700; }
.vc-admin-finance .vc-adm-production-details td strong { font-weight:700; }
.vc-admin-finance .vc-adm-production-details td small { font-size:13px;line-height:1.45;font-weight:400; }
.vc-admin-finance .vc-adm-production-details tfoot th,
.vc-admin-finance .vc-adm-production-details tfoot td { padding:13px 11px;border-top:1px solid var(--vc-adm-line);font-weight:700; }
.vc-admin-finance .vc-adm-nowrap { white-space:nowrap; }
.vc-admin-finance .vc-adm-table-note { margin:9px 0 0;color:var(--vc-theme-muted,var(--vc-muted));font-family:inherit;font-size:12px;line-height:1.5; }
.vc-admin-finance .vc-adm-section-heading h3 { font-family:inherit; font-size:16px; font-weight:700; }
.vc-admin-finance .vc-adm-section-heading p,
.vc-admin-finance .vc-adm-section-heading small,
.vc-admin-finance .vc-adm-empty { font-family:inherit;font-size:13px;font-weight:400;line-height:1.5; }


/* v0.5.40.10 — Recuperación de la identidad tipográfica original de Administración.
 * Se conservan las dos fuentes de la cabecera original:
 *  - Lobster Two para Visoclinic y los subtítulos/rutas de sección.
 *  - Georgia para Administración y los títulos siguientes (Mi producción, etc.).
 * Solo afecta Administración (Esencial, Profesional y Premium).
 */
.vc-app-shell[data-vc-module="administration"] .vc-app-topbar .vc-kicker,
.vc-app-shell[data-vc-module="administration"] .vc-adm-heading .vc-kicker {
  font-family: var(--vc-script-font, "Lobster Two", cursive) !important;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.12;
  text-transform: none;
}
.vc-app-shell[data-vc-module="administration"] .vc-app-topbar h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.5px;
  line-height: 1.05;
}
.vc-app-shell[data-vc-module="administration"] .vc-adm-heading h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(27px, 2.4vw, 32px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.4px;
  line-height: 1.12;
}
.vc-app-shell[data-vc-module="administration"] .vc-adm-section-heading h3 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.2px;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .vc-app-shell[data-vc-module="administration"] .vc-app-topbar h1 { font-size: 29px; }
  .vc-app-shell[data-vc-module="administration"] .vc-adm-heading h2 { font-size: 26px; }
  .vc-app-shell[data-vc-module="administration"] .vc-adm-section-heading h3 { font-size: 19px; }
}

/* v0.5.40.11 — Cabecera única para Mi producción (Esencial/Profesional).
 * El texto de referencia sustituye los dos encabezados que se mostraban duplicados.
 * Rótulo en Lobster Two y título en Georgia. Se mantienen selectores y avatar.
 */
.vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar > div:first-child > .vc-kicker {
  display:block;
  font-family:var(--vc-script-font, "Lobster Two", cursive) !important;
  font-weight:700;
  font-size:18px;
  letter-spacing:.01em;
  line-height:1.12;
  margin-bottom:3px;
}
.vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar h1 {
  font-family:Georgia, "Times New Roman", serif !important;
  font-size:clamp(30px, 3vw, 38px);
  font-weight:400;
  line-height:1.08;
  letter-spacing:-.4px;
  margin:0;
}
.vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar {
  min-height:92px;
  padding-top:14px;
  padding-bottom:14px;
}
@media(max-width:680px) {
  .vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar {
    flex-wrap:wrap;
    align-items:flex-start;
    gap:12px;
  }
  .vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar h1 {
    font-size:clamp(28px, 7vw, 34px);
  }
  .vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar > .vc-userbox {
    width:100%;
  }
}


/* v0.5.40.13 — Encabezado reducido a los dos renglones solicitados:
 *  - VisoClinic (Lobster Two)
 *  - Administración (Georgia)
 * Mantiene selector de centro y perfil sin alterar funciones.
 */
.vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar {
  min-height: 92px;
  padding-top: 14px;
  padding-bottom: 14px;
  align-items: center;
}
.vc-app-shell[data-vc-module="administration"] .vc-simple-production-headings {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.vc-app-shell[data-vc-module="administration"] .vc-simple-production-headings .vc-simple-brand {
  display: block;
  font-family: var(--vc-script-font, "Lobster Two", cursive) !important;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
  margin: 0;
  text-transform: none;
}
.vc-app-shell[data-vc-module="administration"] .vc-simple-production-headings h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.4px;
  line-height: 1.06;
  margin: 0;
}
.vc-app-shell[data-vc-module="administration"] .vc-simple-production-headings h1 {
  font-size: clamp(30px, 3vw, 38px);
}
@media(max-width:680px) {
  .vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
  }
  .vc-app-shell[data-vc-module="administration"] .vc-simple-production-headings h1 {
    font-size: clamp(28px, 7vw, 34px);
  }
  .vc-app-shell[data-vc-module="administration"] .vc-simple-production-topbar > .vc-userbox {
    width: 100%;
  }
}

/* v0.5.40.14 — Egresos y resumen de Esencial/Profesional; Premium no se modifica. */
.vc-simple-production .vc-individual-finance-tabs { margin:0 0 4px; }
.vc-app-shell .vc-simple-production .vc-finance-panel { display:grid; gap:20px; }
.vc-simple-production .vc-finance-sectionhead { margin:3px 0 0; }
.vc-simple-production .vc-finance-toolbar { display:flex;flex-wrap:wrap;gap:12px;align-items:end; margin:0;padding:15px;border-radius:12px;border:1px solid var(--vc-adm-line); background:var(--vc-adm-soft); }
.vc-simple-production .vc-finance-field { display:grid;gap:6px;min-width:0;font-size:12px;font-weight:700;color:var(--vc-theme-text,var(--vc-ink)); }
.vc-simple-production .vc-finance-toolbar .vc-finance-field { flex:1 1 210px;max-width:380px; }
.vc-simple-production .vc-finance-field select,.vc-simple-production .vc-finance-field input { width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid var(--vc-adm-line);border-radius:9px;background:var(--vc-theme-surface,#fff);color:var(--vc-theme-text,var(--vc-ink));font-size:14px; }
.vc-simple-production .vc-finance-toolbar > .vc-btn { min-height:42px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none; }
.vc-simple-production .vc-finance-table { min-width:640px;width:100%; }
.vc-simple-production .vc-finance-table th,.vc-simple-production .vc-finance-table td { padding:13px 12px;vertical-align:middle; }
.vc-simple-production .vc-finance-num { text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums; }
.vc-simple-production .vc-finance-actions { white-space:nowrap; }
.vc-simple-production .vc-finance-inline-form { display:inline-block;margin:0; }
.vc-simple-production .vc-finance-link { background:none;border:0;padding:7px 8px;color:var(--vc-adm-accent);cursor:pointer;font:inherit;font-weight:700; }
.vc-simple-production .vc-finance-link.is-danger { color:#b4564d; }
.vc-simple-production .vc-finance-categories { border-top:1px solid var(--vc-adm-line);padding-top:14px; }
.vc-simple-production .vc-finance-categories summary { display:list-item;width:max-content;max-width:100%;color:var(--vc-theme-text,var(--vc-ink));font-weight:750;cursor:pointer; }
.vc-simple-production .vc-finance-category-list { display:grid;gap:7px;max-width:670px;padding-top:14px; }
.vc-simple-production .vc-finance-add-category { display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:8px; }
.vc-simple-production .vc-finance-add-category label { flex:1 1 220px; }
.vc-simple-production .vc-finance-add-category button { min-height:42px; }
.vc-simple-production .vc-finance-category-row { display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--vc-adm-line); }
.vc-simple-production .vc-finance-category-row span { flex:1 1 160px; }
.vc-simple-production .vc-finance-category-row small { color:var(--vc-theme-muted,var(--vc-muted)); }
.vc-simple-production .vc-finance-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px; }
.vc-simple-production .vc-finance-metric { border:1px solid var(--vc-adm-line);background:var(--vc-theme-surface,#fff);border-radius:12px;padding:17px 19px;min-width:0; }
.vc-simple-production .vc-finance-metric:first-child { background:#f3ede2;color:#352f28; }
.vc-simple-production .vc-finance-metric.is-balance { background:#f2f5ed;color:#293a30; }
.vc-simple-production .vc-finance-metric span,.vc-simple-production .vc-finance-metric strong,.vc-simple-production .vc-finance-metric small { display:block; }
.vc-simple-production .vc-finance-metric span { font-size:13px;font-weight:750; }
.vc-simple-production .vc-finance-metric strong { font-size:clamp(21px,2.4vw,28px);line-height:1.2;margin:10px 0 5px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums; }
.vc-simple-production .vc-finance-metric small { color:var(--vc-theme-muted,#797166);font-size:12px; }
.vc-simple-production .vc-finance-summary-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.vc-simple-production .vc-finance-summary-card { padding:18px;border:1px solid var(--vc-adm-line);border-radius:12px;min-width:0; }
.vc-simple-production .vc-finance-summary-card h4 { margin:0;font-size:13px;font-weight:700;color:var(--vc-theme-muted,var(--vc-muted)); }
.vc-simple-production .vc-finance-big { display:block;margin:8px 0 18px;font-size:clamp(22px,2.4vw,29px);font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.vc-simple-production .vc-finance-category-summary { padding:10px 0;border-top:1px solid var(--vc-adm-line); }
.vc-simple-production .vc-finance-category-summary > div:first-child,.vc-simple-production .vc-finance-category-row { display:flex;justify-content:space-between;gap:8px;align-items:center; }
.vc-simple-production .vc-finance-category-summary > div:first-child { flex-wrap:wrap; }
.vc-simple-production .vc-finance-category-row { padding:10px 0;border-top:1px solid var(--vc-adm-line); }
.vc-simple-production .vc-finance-progress { margin-top:8px;background:#eee7da;border-radius:99px;height:7px;overflow:hidden; }
.vc-simple-production .vc-finance-progress > span { display:block;background:#b49a69;border-radius:99px;height:100%; }
.vc-simple-production .vc-finance-notice { margin:16px 0 0;padding:11px 13px;background:#f8f3e8;border-left:3px solid #b49a69;border-radius:5px;color:#665640;font-size:12px; }
.vc-simple-production .is-negative { color:#b4564d!important; }
.vc-finance-modal-open { overflow:hidden; }
.vc-finance-modal-overlay[hidden],.vc-simple-production [hidden] { display:none!important; }
.vc-finance-modal-overlay { position:fixed;inset:0;z-index:99999;background:rgba(33,28,24,.64);display:flex;align-items:center;justify-content:center;padding:18px; }
.vc-finance-dialog { overflow-y:auto;max-height:90vh;width:min(520px,100%);background:var(--vc-theme-surface,#fffdf8);color:var(--vc-theme-text,#352f28);box-shadow:0 20px 70px rgba(0,0,0,.3);border-radius:16px;padding:24px; }
.vc-finance-dialog-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px; }
.vc-finance-dialog-head h3 { margin:0;font:400 23px Georgia,serif; }
.vc-finance-dialog-head button { background:none;border:0;font-size:28px;color:var(--vc-theme-muted,#797166);cursor:pointer; }
.vc-finance-dialog .vc-finance-formgrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }
.vc-finance-dialog .vc-finance-full { grid-column:1/-1; }
.vc-finance-dialog .vc-finance-category-inline { display:flex;gap:9px;align-items:center; }
.vc-finance-dialog .vc-finance-category-inline select { flex:1; }
.vc-finance-dialog .vc-finance-category-inline button { flex-shrink:0; }
.vc-finance-dialog .vc-finance-modal-actions { display:flex;justify-content:flex-end;gap:10px;margin-top:21px; }
@media(max-width:750px) { .vc-simple-production .vc-finance-metrics { grid-template-columns:1fr; } .vc-simple-production .vc-finance-summary-grid { grid-template-columns:1fr; } .vc-simple-production .vc-finance-toolbar { padding:12px; } }
@media(max-width:480px) { .vc-finance-dialog { padding:17px; } .vc-finance-dialog .vc-finance-formgrid { grid-template-columns:1fr; } .vc-finance-dialog .vc-finance-category-inline { flex-wrap:wrap; } .vc-finance-dialog .vc-finance-category-inline button { width:100%; } }


/* v0.5.40.15 — New Egresos/Resumen panes in Premium only.
   Do not override the pre-existing Premium Production / Honorarios panels. */
.vc-admin-finance .vc-premium-finance { --vc-adm-accent:#698fc4; --vc-adm-line:#d7e0ec; --vc-adm-soft:#f3f6fb; }
.vc-admin-finance .vc-premium-finance .vc-finance-panel { padding:18px 0; background:transparent; box-shadow:none; }
.vc-admin-finance .vc-premium-finance .vc-finance-toolbar { background:#f4f7fc; border-color:#d7e0ec; }
.vc-admin-finance .vc-premium-finance .vc-finance-table,
.vc-admin-finance .vc-premium-finance .vc-finance-summary-card { background:#fff; }
.vc-admin-finance .vc-premium-finance .vc-finance-metric { border-radius:16px; padding:20px 22px; }
.vc-admin-finance .vc-premium-finance .vc-finance-metric:first-child,
.vc-admin-finance .vc-premium-finance .vc-finance-metric.is-balance { background:#fff; color:#1a3553; }
.vc-admin-finance .vc-premium-finance .vc-finance-metric strong { color:#1a3553; }
.vc-admin-finance .vc-premium-finance .vc-finance-metric strong.is-negative { color:#b4564d; }
.vc-admin-finance .vc-premium-finance .vc-finance-progress > span { background:#7195c6; }
.vc-admin-finance .vc-premium-finance .vc-finance-notice { background:#eff4fb; border-left-color:#6e92c3; color:#526780; }
.vc-admin-finance .vc-premium-finance .vc-finance-summary-card { border-radius:16px; padding:22px; }
.vc-admin-finance .vc-premium-finance .vc-finance-toolbar a.vc-btn { color:#162e4d; }

/* v0.5.40.16 — Ficha clínica reorganizada. Scope is limited to patient intake. */
.vc-patient-intake-main .vc-intake-root,.vc-intake-root{--intake-ink:#302820;--intake-muted:#6d6154;--intake-gold:#967044;--intake-line:#ded3c4;font-size:14px;color:var(--intake-ink);}
.vc-intake-root *{box-sizing:border-box}
.vc-patient-intake-main .vc-intake-root [hidden],.vc-intake-root [hidden]{display:none!important}
.vc-intake-top{background:#fff;border:1px solid var(--intake-line);border-radius:14px 14px 0 0;padding:24px 26px}
.vc-intake-top>h2{font-size:27px!important;margin:6px 0 5px!important;color:#302820!important}
.vc-intake-top>p{font-size:13px;color:var(--intake-muted);margin:0 0 18px}
.vc-intake-eyebrow{color:#8b673b;font-size:11px;letter-spacing:1.7px;font-weight:800;margin:0 0 7px}
.vc-intake-patient{background:#f8f4ed;border:1px solid #e2d6c6;border-radius:12px;padding:21px}
.vc-intake-patient>h3{font-size:18px!important;margin:5px 0!important;color:#302820!important}
.vc-intake-patient>p{color:var(--intake-muted);font-size:13px;margin:0 0 15px}
.vc-intake-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.vc-intake-field{display:flex;flex-direction:column;gap:8px;min-width:0;margin:10px 0;font-size:13px;font-weight:700;color:var(--intake-ink)}
.vc-intake-field>span{display:block}
.vc-intake-root .vc-intake-field input,.vc-intake-root .vc-intake-field textarea,.vc-intake-root .vc-intake-field select{width:100%;min-width:0;background:#fff!important;border:1px solid #b8a794!important;border-radius:8px!important;padding:11px 12px!important;color:var(--intake-ink)!important;font-family:inherit;font-size:14px;font-weight:400;min-height:43px;max-width:100%}
.vc-intake-root .vc-intake-field textarea{min-height:85px;resize:vertical}
.vc-intake-consent{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid #e1d6c7;border-radius:9px;padding:13px;margin-top:14px;font-size:13px;font-weight:650}
.vc-intake-consent input{width:18px;height:18px;flex:0 0 auto}
.vc-intake-age{color:var(--intake-muted);font-size:12px;font-weight:700;margin:4px 0}
.vc-intake-progress{height:5px;background:#e9e0d5;overflow:hidden}
.vc-intake-progress span{height:100%;display:block;width:16.666%;background:#a37c4c;transition:width .2s}
.vc-intake-layout{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid var(--intake-line);border-top:0;background:#fbf9f5;align-items:stretch}
.vc-intake-nav{background:#efe8dd;padding:18px 9px;border-right:1px solid #d8c9b5}
.vc-intake-nav-label{font-size:11px;letter-spacing:1.2px;font-weight:800;color:#75532e;padding:0 10px 12px}
.vc-intake-root .vc-intake-nav-link{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:#403329;text-align:left;border-radius:9px;padding:12px 10px;margin-bottom:4px;font-weight:600;font-size:13px;cursor:pointer}
.vc-intake-root .vc-intake-nav-link strong{color:#805b2f;font-size:12px}
.vc-intake-root .vc-intake-nav-link.active{background:#fff;box-shadow:0 2px 10px #51391b12;border-left:3px solid #9a7446;font-weight:800}
.vc-intake-root .vc-intake-nav-link:last-child{margin-top:12px;border-top:1px solid #d7c6b1;border-radius:0;padding-top:16px}
.vc-intake-content{padding:22px 24px;min-width:0;scroll-margin-top:14px}
.vc-intake-step>h3{font-size:24px!important;margin:4px 0 6px!important;color:#302820!important}
.vc-intake-description{font-size:13px;color:var(--intake-muted);margin:0 0 17px}
.vc-intake-card{background:#fff;border:1px solid var(--intake-line);border-radius:11px;padding:17px 18px;margin:12px 0;min-width:0}
.vc-intake-card>h4{font-size:15px!important;font-weight:750!important;line-height:1.4;margin:0 0 13px!important;color:#302820!important}
.vc-intake-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.vc-intake-choices{display:flex;flex-wrap:wrap;gap:9px}
.vc-intake-choice{display:flex;align-items:center;gap:9px;border:1px solid #cdbfad;border-radius:8px;background:#fefdfa;padding:10px 12px;font-size:13px;font-weight:600;color:#372f25;cursor:pointer;min-width:0}
.vc-intake-choice:has(input:checked){border-color:#967044;background:#f8f0e4}
.vc-intake-choice input{flex:0 0 auto;width:17px;height:17px;accent-color:#967044}
.vc-intake-check-group{min-width:0}
.vc-intake-check-group>.vc-intake-choice{width:100%;height:auto;min-height:42px}
.vc-intake-check-group:has(.vc-intake-reveal:not([hidden]))>.vc-intake-choice{height:auto;border-radius:8px 8px 0 0}
.vc-intake-reveal{background:#faf6f0;border-left:3px solid #a7804a;padding:11px 13px;margin-top:10px;border-radius:7px;min-width:0}
.vc-intake-check-group>.vc-intake-reveal{margin-top:0;border:1px solid #e1d6c7;border-top:0;border-radius:0 0 8px 8px}
.vc-intake-subheading{font-size:16px;color:#302820;margin:21px 0 4px!important}
.vc-intake-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:19px 0 6px}
.vc-intake-actions>[data-vc-intake-count]{font-size:12px;color:var(--intake-muted)}
.vc-intake-prev{background:#fff!important;color:#493724!important;border-color:#c5af93!important}
.vc-intake-root .vc-intake-prev:disabled{opacity:.4;cursor:default}
@media(max-width:1020px){.vc-intake-layout{grid-template-columns:180px minmax(0,1fr)}.vc-intake-content{padding:17px}.vc-intake-check-grid{grid-template-columns:1fr}}
@media(max-width:720px){.vc-intake-top{padding:16px}.vc-intake-patient{padding:14px}.vc-intake-layout{display:block}.vc-intake-nav{display:flex;overflow-x:auto;gap:6px;padding:9px;border-right:0;border-bottom:1px solid var(--intake-line)}.vc-intake-nav-label{display:none}.vc-intake-root .vc-intake-nav-link{flex:0 0 166px;margin:0;padding:10px}.vc-intake-root .vc-intake-nav-link:last-child{margin-top:0;border-top:0;border-radius:9px;padding-top:10px}.vc-intake-content{padding:16px}.vc-intake-cols{grid-template-columns:1fr}.vc-intake-card{padding:13px}.vc-intake-step>h3{font-size:21px!important}}
@media print{.vc-intake-nav,.vc-intake-actions{display:none!important}.vc-intake-layout{display:block}.vc-intake-step[hidden]{display:block!important}}

/* 0.5.40.19 — Consentimientos: biblioteca, preparación e historial. */
.vc-consent-organized [hidden] { display:none !important; }
.vc-consent-organized .vc-consent-main-grid { grid-template-columns:minmax(0,1fr) 290px; gap:22px; }
.vc-consent-work-main { min-width:0; display:grid; gap:18px; }
.vc-consent-work-tabs { display:flex; gap:8px; padding:8px; border:1px solid var(--vc-line); border-radius:14px; background:var(--vc-soft,#f5f5f3); }
.vc-consent-work-tabs .vc-btn { flex:1; white-space:normal; min-height:48px; background:transparent; border-color:transparent; }
.vc-consent-work-tabs .is-selected { background:white; border-color:var(--vc-line); box-shadow:0 2px 8px #0000000a; }
.vc-consent-work-side { display:grid; gap:16px; position:sticky; top:20px; }
.vc-consent-work-side .vc-panel { margin:0; padding:22px; }
.vc-consent-work-side h3 { margin:0 0 14px; font-size:20px; }
.vc-consent-work-side ol { padding-left:22px; margin:0; color:var(--vc-muted); }
.vc-consent-work-side li { padding:5px 0 10px 5px; line-height:1.6; }
.vc-consent-work-side li::marker { color:var(--vc-mauve); font-weight:700; }
.vc-consent-work-side .vc-btn { width:100%; margin-top:8px; white-space:normal; }
.vc-consent-word-callout { display:flex; justify-content:space-between; align-items:center; gap:16px; background:var(--vc-soft,#f5f7f4); border:1px solid var(--vc-line); padding:15px; border-radius:12px; margin-top:18px; }
.vc-consent-word-callout p { margin:4px 0 0; }
.vc-consent-organized .vc-consent-template-catalog { grid-template-columns:1fr; gap:10px; }
.vc-consent-organized .vc-consent-template-card { grid-template-columns:44px minmax(0,1fr) auto; grid-template-areas:"icon copy action" ". footer footer"; min-height:106px; padding:14px 16px; gap:8px 14px; align-items:center; }
.vc-consent-organized .vc-consent-template-icon { grid-area:icon; }
.vc-consent-organized .vc-consent-template-copy { grid-area:copy; overflow-wrap:anywhere; }
.vc-consent-organized .vc-consent-template-actions { grid-area:action; width:auto; justify-content:flex-end; }
.vc-consent-organized .vc-consent-template-footer { grid-area:footer; }
.vc-consent-organized .vc-consent-template-main-action { grid-area:action; }
.vc-consent-organized .vc-consent-template-card .vc-btn { min-height:38px; }
.vc-consent-organized dialog.vc-consent-template-editor { width:min(680px,calc(100% - 32px)); max-height:88vh; overflow:auto; border:1px solid var(--vc-line); border-radius:20px; background:white; color:var(--vc-ink); padding:26px; margin:auto; box-shadow:0 24px 90px #0003; }
.vc-consent-organized dialog:not([open]) { display:none; }
.vc-consent-template-editor::backdrop { background:#1e2c2580; }
.vc-consent-modal-close { float:right; }
.vc-consent-organized .vc-consent-create-form { margin-top:16px; }
.vc-consent-preview { border:1px solid var(--vc-line); padding:20px; margin-top:20px; border-radius:14px; background:#fcfcfa; }
.vc-consent-preview p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.vc-consent-preview small { color:var(--vc-muted); }
.vc-consent-organized .vc-consent-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px; margin-top:12px; border:1px solid var(--vc-line); border-radius:14px; }
.vc-consent-organized .vc-consent-main { min-width:0; overflow-wrap:anywhere; }
.vc-consent-organized .vc-consent-actions { display:flex; flex-wrap:wrap; gap:8px; }
.vc-consent-organized .vc-consent-actions form { margin:0; }
.vc-consent-status { display:inline-flex; padding:4px 10px; border-radius:20px; background:#fdeaea; color:#ad2c34; font-size:12px; font-weight:700; }
.is-signed .vc-consent-status { background:#e6f4e8; color:#28673c; }
.vc-consent-organized .vc-consent-history-tabs { display:flex; flex-wrap:wrap; gap:10px; }
.vc-consent-history-tabs a:nth-child(2) { color:#28673c; }
.vc-consent-history-tabs a:nth-child(3) { color:#ad2c34; }
.vc-consent-organized .vc-consent-history-tabs .is-selected { box-shadow:0 0 0 2px currentColor; }
@media(max-width:1120px) {
 .vc-consent-organized .vc-consent-main-grid { grid-template-columns:1fr; }
 .vc-consent-work-side { position:static; grid-template-columns:1fr 1fr; }
}
@media(max-width:720px) {
 .vc-consent-work-tabs { flex-wrap:wrap; }
 .vc-consent-work-tabs .vc-btn { flex:1 1 100%; }
 .vc-consent-work-side { grid-template-columns:1fr; }
 .vc-consent-word-callout,.vc-consent-organized .vc-consent-row { flex-direction:column; align-items:stretch; }
 .vc-consent-organized .vc-consent-template-card { grid-template-columns:40px minmax(0,1fr); grid-template-areas:"icon copy" "action action" "footer footer"; }
 .vc-consent-organized .vc-consent-template-actions { justify-content:stretch; width:100%; }
 .vc-consent-organized .vc-consent-template-main-action { justify-self:stretch; }
 .vc-consent-organized .vc-consent-template-main-action .vc-btn { width:100%; }
}
@media(min-width:1360px) {
 .vc-consent-organized .vc-consent-create-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.8fr); gap:0 22px; align-items:start; }
 .vc-consent-create-panel > .vc-kicker,.vc-consent-create-panel > h2,.vc-consent-create-panel > .vc-muted,.vc-consent-create-panel > .vc-consent-selected-patient,.vc-consent-create-panel > .vc-consent-empty-state { grid-column:1/-1; }
 .vc-consent-create-panel .vc-consent-preview { margin-top:16px; }
}
@media(min-width:721px) {
 .vc-consent-organized .vc-consent-template-catalog { grid-auto-rows:1fr; }
}


/* VisoClinic 0.5.40.20 — Detalles de interfaz / revisión noviembre 2026. */
/* 1. Las acciones de Agenda arrancan blancas y adoptan el color elegido al pasar el cursor. */
.vc-app-shell .vc-agenda-primary-actions .vc-btn,
.vc-app-shell .vc-agenda-action-main .vc-btn,
.vc-app-shell .vc-patient-action-buttons .vc-btn:not(.vc-btn-danger-outline) {
  background: #fff !important;
  color: var(--vc-theme-text,#252234) !important;
  border: 1px solid var(--vc-theme-line,#d9d9df) !important;
  box-shadow: none !important;
  transition: background-color .18s ease,color .18s ease,border-color .18s ease;
}
.vc-app-shell .vc-agenda-primary-actions .vc-btn:hover,
.vc-app-shell .vc-agenda-primary-actions .vc-btn:focus-visible,
.vc-app-shell .vc-agenda-action-main .vc-btn:hover,
.vc-app-shell .vc-agenda-action-main .vc-btn:focus-visible,
.vc-app-shell .vc-patient-action-buttons .vc-btn:not(.vc-btn-danger-outline):hover,
.vc-app-shell .vc-patient-action-buttons .vc-btn:not(.vc-btn-danger-outline):focus-visible {
  background: var(--vc-theme-accent,#7b6693) !important;
  border-color: var(--vc-theme-accent,#7b6693) !important;
  color: #fff !important;
}
/* 2. Checkbox de las opiniones alineado con su texto. */
#vc-online-reviews .vc-inline-check {
  display:flex !important; flex-direction:row !important; align-items:center !important; gap:10px !important;
  margin:12px 0; line-height:1.45;
}
#vc-online-reviews .vc-inline-check input[type="checkbox"] {
  flex:0 0 18px; width:18px !important; height:18px !important; min-height:18px;
  margin:0 !important; padding:0 !important; align-self:center;
}
/* 3 y 5. Directorio alfabético y fotografías de búsqueda. */
.vc-patient-picker-standard-form .vc-patient-picker-fields > label:nth-child(2) { font-size:12px; }
.vc-search-patient-thumbnail { flex:0 0 34px;width:34px;height:34px;object-fit:cover;border-radius:50%; }
.vc-patient-live-results button,
.vc-appointment-patient-result { display:flex !important;gap:10px !important;align-items:center !important;text-align:left !important; }
.vc-patient-live-results button span { display:grid;gap:3px;min-width:0; }
/* Portrait belongs beside the name inside the live results, never outside the selector. */
.vc-patient-picker-standard .vc-patient-live-results button { justify-content:flex-start; }
.vc-patient-picker-standard .vc-patient-live-results .vc-search-patient-thumbnail { flex-shrink:0; }
/* 4. Separación de las etiquetas y campos en Nueva cita. */
.vc-appointment-drawer .vc-event-color-field { margin-top:18px; margin-bottom:24px; }
.vc-appointment-drawer .vc-event-color-field legend { padding-bottom:9px; }
.vc-appointment-drawer .vc-event-color-option small { margin-top:6px; }
.vc-appointment-drawer .vc-form-row.vc-date-row { margin-top:15px; gap:16px; }
.vc-appointment-drawer .vc-date-row label { gap:9px; }
.vc-appointment-drawer .vc-event-color-field + .vc-date-row { margin-top:23px; }
/* 5. Foto dentro de Nuevo / Editar paciente, no en el encabezado del perfil. */
.vc-patient-photo-editor { background:var(--vc-theme-surface-soft,#f8f4f8); border:1px solid var(--vc-theme-line,#e9dfe7); padding:18px; border-radius:15px; display:grid;gap:10px;margin-top:20px; }
.vc-patient-photo-editor h3 { margin:0;font-size:16px; }
.vc-patient-photo-editor .vc-muted,.vc-patient-photo-editor .vc-field-help { margin:0; }
.vc-patient-photo-editor-row { display:flex;align-items:center;flex-wrap:wrap;gap:16px; }
.vc-patient-photo-editor-row label { flex:1 1 240px; }
.vc-patient-photo-editor-preview { width:100px;height:100px;object-fit:cover;border-radius:50%;border:2px solid var(--vc-theme-line,#e9dfe7); }
.vc-patient-photo-remove { display:flex !important;flex-direction:row !important;gap:8px;align-items:center; }
.vc-patient-photo-remove input { flex:0 0 auto;width:auto !important; }
/* 6. Logo profesional único en documentos y Gift Cards. */
.vc-giftcard-brand-info { display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin:16px 0; }
.vc-giftcard-brand-info h3 { flex-basis:100%;margin:0; }
.vc-giftcard-brand-info .vc-muted { flex:1 1 220px; }
.vc-giftcard-brand-info img { max-width:150px;max-height:78px;object-fit:contain; }
/* 8. Ícono real de WhatsApp para seguimiento manual. */
.vc-follow-wa summary { display:flex;align-items:center;gap:9px;cursor:pointer; }
.vc-follow-wa summary img { width:20px;height:20px;object-fit:contain; }
/* 9. Descuentos visibles al cambiar el período de contratación. */
.vc-plan-saving:not([hidden]) { display:inline-block;margin:0 0 12px;padding:5px 11px;border-radius:999px;color:var(--vc-theme-accent-dark,#3d695b);background:var(--vc-theme-surface-soft,#e6f3ec);font-size:12px;font-weight:850; }
/* 10. Editar y eliminar en la esquina superior derecha; acciones de paciente abajo. */
.vc-app-shell .vc-agenda-card { position:relative; }
.vc-app-shell .vc-agenda-quick-actions { display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end;position:absolute;right:14px;top:14px;z-index:2; }
.vc-app-shell .vc-agenda-quick-actions form { margin:0; }
.vc-app-shell .vc-agenda-quick-actions .vc-btn { background:rgba(255,255,255,.98) !important;color:#272335 !important;border:1px solid rgba(17,24,39,.13) !important;min-height:35px;padding:6px 10px;font-size:11px;border-radius:9px; }
.vc-app-shell .vc-agenda-quick-actions .vc-btn:hover { background:var(--vc-theme-accent,#7b6693) !important;color:#fff !important; }
.vc-app-shell .vc-agenda-card .vc-agenda-heading { padding-right:225px; }
@media(max-width:700px) { .vc-app-shell .vc-agenda-quick-actions { position:static;justify-content:flex-end;margin:8px 0; }.vc-app-shell .vc-agenda-card .vc-agenda-heading { padding-right:0; } }
/* 13. VisoMap conservado en gran formato bajo los datos clínicos. */
.vc-patient-visomap-full { width:100%;margin:20px 0 24px; }
.vc-patient-visomap-full .vc-diagram-preview-panel { width:100%;box-sizing:border-box; }
.vc-patient-visomap-full .vc-diagram-preview-grid { grid-template-columns:minmax(0,1fr);gap:20px; }
.vc-patient-visomap-full .vc-diagram-preview-grid.has-multiple { grid-template-columns:repeat(2,minmax(0,1fr)); }
.vc-patient-visomap-full .vc-diagram-preview-item { max-width:none; }
.vc-patient-visomap-full .vc-face-preview { width:100%;max-width:1080px;margin:0 auto; }
@media(max-width:850px){ .vc-patient-visomap-full .vc-diagram-preview-grid.has-multiple { grid-template-columns:minmax(0,1fr); } }


/* v0.5.40.21 — Clínica: registros financieros delimitados y márgenes equilibrados.
   Solo presentación; no se cambian las cantidades, filtros ni cálculos. */
.vc-app-shell .vc-admin-finance .vc-adm-table-wrap,
.vc-app-shell .vc-simple-production .vc-adm-table-wrap {
  max-width:100%; min-width:0; overflow-x:auto;
  border:1px solid var(--vc-theme-line,var(--vc-adm-line,#d7dfe7));
  border-radius:12px;
  background:var(--vc-theme-surface,#fff);
}
.vc-app-shell .vc-admin-finance .vc-adm-table-wrap > .vc-adm-table,
.vc-app-shell .vc-simple-production .vc-adm-table-wrap > .vc-adm-table {
  border-collapse:separate; border-spacing:0; width:100%;
}
.vc-app-shell .vc-admin-finance .vc-adm-table-wrap .vc-adm-table :is(th,td),
.vc-app-shell .vc-simple-production .vc-adm-table-wrap .vc-adm-table :is(th,td) {
  border-bottom:1px solid var(--vc-theme-line,var(--vc-adm-line,#d7dfe7));
  background-clip:padding-box;
}
.vc-app-shell .vc-admin-finance .vc-adm-table-wrap .vc-adm-table :is(th,td):not(:last-child),
.vc-app-shell .vc-simple-production .vc-adm-table-wrap .vc-adm-table :is(th,td):not(:last-child) {
  border-right:1px solid var(--vc-theme-line,var(--vc-adm-line,#d7dfe7));
}
.vc-app-shell .vc-admin-finance .vc-adm-table-wrap .vc-adm-table > :last-child > tr:last-child > :is(th,td),
.vc-app-shell .vc-simple-production .vc-adm-table-wrap .vc-adm-table > :last-child > tr:last-child > :is(th,td) {
  border-bottom:0;
}
.vc-app-shell .vc-admin-finance .vc-adm-table-wrap .vc-adm-table thead th,
.vc-app-shell .vc-simple-production .vc-adm-table-wrap .vc-adm-table thead th {
  background:var(--vc-theme-surface-soft,var(--vc-adm-soft,#f4f6f8));
  font-size:11px; white-space:nowrap;
}
/* Separación discreta en el perímetro del área administrativa del plan Clínica. */
.vc-app-shell .vc-admin-finance:not(.vc-simple-production){
  box-sizing:border-box; padding-inline:clamp(8px,1.1vw,14px);
}
@media(max-width:680px){
  .vc-app-shell .vc-admin-finance:not(.vc-simple-production){padding-inline:6px;}
}
/* Se recupera el relleno lateral perdido en Egresos y Resumen de Clínica. */
.vc-app-shell .vc-admin-finance .vc-premium-finance .vc-finance-panel {
  padding:20px 23px; min-width:0;
}
.vc-app-shell .vc-admin-finance .vc-premium-finance .vc-finance-panel > *,
.vc-app-shell .vc-admin-finance .vc-premium-finance .vc-finance-toolbar {
  min-width:0; max-width:100%; box-sizing:border-box;
}
.vc-app-shell .vc-simple-production .vc-finance-category-row {
  border:1px solid var(--vc-theme-line,var(--vc-adm-line,#d7dfe7));
  border-radius:9px; padding:10px 12px; margin-top:7px;
  background:var(--vc-theme-surface,#fff);
}
@media(max-width:750px){
  .vc-app-shell .vc-admin-finance .vc-premium-finance .vc-finance-panel{padding:15px 13px;}
  .vc-app-shell .vc-admin-finance .vc-adm-table-wrap .vc-adm-table :is(th,td),
  .vc-app-shell .vc-simple-production .vc-adm-table-wrap .vc-adm-table :is(th,td){padding:10px 9px;}
}

/* v0.5.40.21 — Ficha clínica: tema por profesional y opciones compactas.
   Conserva los tipos nativos checkbox/radio y los nombres de campos originales. */
.vc-app-shell .vc-intake-root,
.vc-patient-intake-main .vc-intake-root,
.vc-intake-root {
  --intake-ink:var(--vc-theme-text,#302820);
  --intake-muted:var(--vc-theme-muted,#6d6154);
  --intake-gold:var(--vc-theme-accent,#967044);
  --intake-line:var(--vc-theme-line,#ded3c4);
  --intake-surface:var(--vc-theme-surface,#fff);
  --intake-soft:var(--vc-theme-surface-soft,#f8f4ed);
  --intake-highlight:color-mix(in srgb,var(--intake-gold) 9%,var(--intake-surface));
  color:var(--intake-ink);
}
.vc-intake-root .vc-intake-top{background:var(--intake-surface);border-color:var(--intake-line);padding:21px 23px;}
.vc-intake-root .vc-intake-top>h2,
.vc-intake-root .vc-intake-patient>h3,
.vc-intake-root .vc-intake-step>h3,
.vc-intake-root .vc-intake-card>h4,
.vc-intake-root .vc-intake-subheading{color:var(--intake-ink)!important;}
.vc-intake-root .vc-intake-eyebrow,
.vc-intake-root .vc-intake-nav-label,
.vc-intake-root .vc-intake-nav-link strong {color:var(--intake-gold);}
.vc-intake-root .vc-intake-patient,
.vc-intake-root .vc-intake-nav {background:var(--intake-soft);border-color:var(--intake-line);}
.vc-intake-root .vc-intake-layout{background:var(--intake-surface);border-color:var(--intake-line);}
.vc-intake-root .vc-intake-progress{background:var(--intake-line);}
.vc-intake-root .vc-intake-progress span{background:var(--intake-gold);}
.vc-intake-root .vc-intake-nav-link{color:var(--intake-ink);}
.vc-intake-root .vc-intake-nav-link.active{background:var(--intake-surface);border-left-color:var(--intake-gold);box-shadow:0 1px 7px color-mix(in srgb,var(--intake-gold) 12%,transparent);}
.vc-intake-root .vc-intake-nav-link:last-child{border-top-color:var(--intake-line);}
.vc-intake-root .vc-intake-card {background:var(--intake-surface);border-color:var(--intake-line);padding:14px 16px;margin:10px 0;}
.vc-intake-root .vc-intake-card>h4{margin-bottom:9px!important;}
.vc-intake-root .vc-intake-content{padding:20px 22px;}
.vc-intake-root .vc-intake-cols{gap:11px;}
.vc-intake-root .vc-intake-field {gap:6px;margin:7px 0;color:var(--intake-ink);}
.vc-intake-root .vc-intake-field :is(input,textarea,select){
  background:var(--vc-theme-input,var(--intake-surface))!important;
  border-color:var(--intake-line)!important;
  color:var(--intake-ink)!important;
}
.vc-intake-root .vc-intake-consent{
  display:flex;align-items:center;gap:8px;min-height:31px;
  background:var(--intake-surface);border-color:var(--intake-line);
  padding:7px 9px;margin-top:9px;font-size:12px;line-height:1.4;
}
.vc-intake-root .vc-intake-consent input[type="checkbox"],
.vc-intake-root .vc-intake-choice input[type="checkbox"]{
  appearance:auto!important; -webkit-appearance:checkbox!important;
  width:14px!important;height:14px!important;min-width:14px!important;
  min-height:14px!important;flex:0 0 14px!important;
  margin:0!important;padding:0!important;accent-color:var(--intake-gold)!important;
  border-radius:3px!important;box-shadow:none!important;
}
.vc-intake-root .vc-intake-choice input[type="radio"]{
  appearance:auto!important; -webkit-appearance:radio!important;
  width:14px!important;height:14px!important;min-width:14px!important;
  min-height:14px!important;flex:0 0 14px!important;
  margin:0!important;padding:0!important;accent-color:var(--intake-gold)!important;
  border-radius:50%!important;box-shadow:none!important;
}
.vc-intake-root .vc-intake-check-grid{gap:7px;}
.vc-intake-root .vc-intake-choices{gap:6px;}
.vc-intake-root .vc-intake-choice{
  display:inline-flex;align-items:center;justify-content:flex-start;
  gap:7px;padding:6px 9px;min-height:30px;line-height:1.3;
  border:1px solid var(--intake-line);border-radius:7px;
  background:var(--intake-surface);color:var(--intake-ink);
  font-size:12px;font-weight:600;
}
.vc-intake-root .vc-intake-choice:has(input:checked){
  border-color:var(--intake-gold);background:var(--intake-highlight);
}
.vc-intake-root .vc-intake-check-group>.vc-intake-choice{width:100%;min-height:34px;height:auto;}
.vc-intake-root .vc-intake-check-group>.vc-intake-reveal{
  border-color:var(--intake-line);background:var(--intake-soft);
}
.vc-intake-root .vc-intake-reveal{background:var(--intake-soft);border-left-color:var(--intake-gold);padding:9px 11px;margin-top:8px;}
.vc-intake-root .vc-intake-prev{background:var(--intake-surface)!important;color:var(--intake-ink)!important;border-color:var(--intake-line)!important;}
.vc-intake-root :is(button,input,textarea,select):focus-visible {outline:2px solid var(--intake-gold)!important;outline-offset:2px;}
@media(max-width:720px){
  .vc-intake-root .vc-intake-top{padding:16px;}
  .vc-intake-root .vc-intake-content{padding:14px;}
  .vc-intake-root .vc-intake-card{padding:11px 12px;}
  .vc-intake-root .vc-intake-check-grid{grid-template-columns:1fr;}
}

/* v0.5.40.22 — Correcciones revisadas con videos de 10/11/2026.
   Solo presentación de registros y consentimientos; importes sin cambios. */
/* Controles de consentimiento: únicamente la pestaña elegida se resalta. */
.vc-app-shell .vc-consent-organized .vc-consent-work-tabs .vc-btn:not(.is-selected) {
  background:transparent !important; border:1px solid transparent !important;
  color:var(--vc-theme-text,var(--vc-ink)) !important; box-shadow:none !important;
  font-weight:500 !important;
}
.vc-app-shell .vc-consent-organized .vc-consent-work-tabs .vc-btn.is-selected {
  background:var(--vc-theme-surface,#fff) !important;
  border:1.5px solid var(--vc-theme-accent,#4f8b61) !important;
  color:var(--vc-theme-text,#25382c) !important;
  font-weight:800 !important; box-shadow:0 2px 10px #0000000c !important;
}
.vc-app-shell .vc-consent-organized .vc-consent-work-tabs .vc-btn:focus-visible {
  outline:2px solid var(--vc-theme-accent,#4f8b61); outline-offset:2px;
}
/* Separar bien la letra pequeña de campos/acciones, sin agrandar innecesariamente el formulario. */
.vc-app-shell .vc-consent-organized .vc-consent-create-form > label {
  display:flex; flex-direction:column; align-items:stretch; gap:10px;
  margin:0 0 15px; min-width:0; line-height:1.5;
}
.vc-app-shell .vc-consent-organized .vc-consent-create-form .vc-field-help {
  display:block; margin-top:8px; line-height:1.7; font-size:12px;
}
.vc-app-shell .vc-consent-organized .vc-consent-create-form input[type="file"] { margin-top:6px; }
.vc-app-shell .vc-consent-organized .vc-consent-create-form > .vc-btn[type="submit"] { margin-top:12px; }
.vc-app-shell .vc-consent-organized .vc-consent-preview { line-height:1.7; }
.vc-app-shell .vc-consent-organized .vc-consent-history-tabs .vc-btn {
  border:1px solid var(--vc-theme-line,#d7dfe7) !important;
  background:var(--vc-theme-surface,#fff) !important; color:var(--vc-theme-text,#3c4140) !important;
  border-radius:9px; font-weight:600; box-shadow:none;
}
.vc-app-shell .vc-consent-organized .vc-consent-history-tabs .vc-consent-filter-firmados {
  background:#e4f3e8 !important; border-color:#a8d3b1 !important;
  color:#27673b !important; font-weight:750;
}
.vc-app-shell .vc-consent-organized .vc-consent-history-tabs .vc-consent-filter-sin_firmar {
  background:#fbe8e9 !important; border-color:#e6b4b8 !important;
  color:#a62d3a !important; font-weight:750;
}
.vc-app-shell .vc-consent-organized .vc-consent-history-tabs .vc-btn.is-selected {
  font-weight:850 !important; box-shadow:inset 0 0 0 1px currentColor !important;
}
/* En cada tabla financiera: cabecera y total sobre el color suave del profesional. */
.vc-app-shell .vc-admin-finance .vc-adm-table-wrap > .vc-adm-table thead th,
.vc-app-shell .vc-simple-production .vc-adm-table-wrap > .vc-adm-table thead th {
  background:#e8f3ea;
  background:color-mix(in srgb,var(--vc-theme-accent,#478b5a) 16%,white);
  color:var(--vc-theme-text,#274233); font-size:12px; font-weight:800 !important;
  line-height:1.45; padding-block:12px;
}
.vc-app-shell .vc-admin-finance .vc-adm-table-wrap > .vc-adm-table tfoot > tr > :is(th,td),
.vc-app-shell .vc-simple-production .vc-adm-table-wrap > .vc-adm-table tfoot > tr > :is(th,td) {
  background:#d9ebdd;
  background:color-mix(in srgb,var(--vc-theme-accent,#478b5a) 23%,white);
  color:var(--vc-theme-text,#203f2b);
  font-weight:850 !important;
  font-size:13px;
  border-top:2px solid var(--vc-theme-accent,#478b5a);
  padding-block:15px;
}
.vc-app-shell .vc-admin-finance .vc-adm-production-details tfoot tr > :last-child,
.vc-app-shell .vc-admin-finance .vc-finance-table tfoot tr > :nth-last-child(2),
.vc-app-shell .vc-simple-production .vc-finance-table tfoot tr > :nth-last-child(2) {
  font-size:15px !important; font-weight:900 !important; font-variant-numeric:tabular-nums;
}
.vc-app-shell .vc-admin-finance .vc-finance-table tbody td,
.vc-app-shell .vc-simple-production .vc-finance-table tbody td { font-weight:400; }
/* Acciones de egresos reducidas; caben editar y eliminar en una celda contenida. */
.vc-app-shell .vc-admin-finance .vc-finance-table :is(th,td):last-child,
.vc-app-shell .vc-simple-production .vc-finance-table :is(th,td):last-child {
  width:108px; min-width:102px; max-width:118px; white-space:nowrap;
}
.vc-app-shell .vc-admin-finance .vc-finance-table .vc-finance-actions,
.vc-app-shell .vc-simple-production .vc-finance-table .vc-finance-actions { white-space:nowrap; }
.vc-app-shell .vc-admin-finance .vc-finance-table .vc-finance-link,
.vc-app-shell .vc-simple-production .vc-finance-table .vc-finance-link {
  padding:5px 4px; font-size:11px; font-weight:600;
}
/* La separación de fechas/formulario usa el mismo ritmo en ambos módulos. */
.vc-app-shell .vc-simple-production .vc-adm-period-caption,
.vc-app-shell .vc-simple-production .vc-finance-sectionhead { margin-top:16px; }
.vc-app-shell .vc-appointment-drawer .vc-event-color-field + .vc-date-row { margin-top:30px; }
.vc-app-shell .vc-appointment-drawer .vc-date-row label { gap:12px; }
/* Gift Card: solo dos entradas comprensibles, con enlace de prueba. */
.vc-app-shell .vc-giftcard-booking-fields {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
  gap:16px; align-items:start; margin:14px 0 20px;
}
.vc-app-shell .vc-giftcard-booking-fields > label { display:grid; gap:9px; min-width:0; }
.vc-app-shell .vc-giftcard-booking-fields input {
  display:block; width:100%; min-width:0; min-height:44px; box-sizing:border-box;
  border:1px solid var(--vc-theme-line,#d7dfe7); border-radius:9px;
}
.vc-app-shell .vc-giftcard-booking-fields small { line-height:1.6; font-weight:400; }
.vc-app-shell .vc-giftcard-test-link { width:max-content; max-width:100%; font-size:12px; }
.vc-app-shell .vc-giftcard-test-link[hidden] { display:none !important; }
@media(max-width:720px) { .vc-app-shell .vc-giftcard-booking-fields { grid-template-columns:1fr; } }
/* Foto solo después de seleccionar ficha; búsqueda limpia y retrato circular más grande. */
.vc-app-shell .vc-clinical-file-selected { gap:20px; }
.vc-app-shell .vc-clinical-file-identity { display:flex; align-items:center; gap:18px; flex:1 1 auto; min-width:0; }
.vc-app-shell .vc-clinical-file-details { flex:1 1 auto; min-width:0; }
.vc-app-shell .vc-clinical-file-details h2 { font-size:clamp(20px,2vw,26px); line-height:1.22; overflow-wrap:anywhere; }
.vc-app-shell .vc-clinical-file-avatar {
  display:flex; align-items:center; justify-content:center; width:82px; height:82px;
  flex:0 0 82px; border-radius:50%; object-fit:cover;
  border:3px solid var(--vc-theme-accent,#4a8d5c); background:var(--vc-theme-surface-soft,#e7eee9);
}
.vc-app-shell .vc-clinical-file-avatar-empty { color:var(--vc-theme-text,#34543e); font-size:27px; font-weight:750; }
.vc-app-shell .vc-clinical-file-selected > .vc-btn { flex:0 0 auto; margin-left:auto; }
@media(max-width:700px) {
  .vc-app-shell .vc-clinical-file-identity { width:100%; }
  .vc-app-shell .vc-clinical-file-selected > .vc-btn { margin-left:0; }
  .vc-app-shell .vc-clinical-file-avatar { width:72px; height:72px; flex-basis:72px; }
}

/* v0.5.40.29 — Vista de ficha clínica: tarjetas compactas y respuestas condicionadas.
   Solo afecta a la lectura del perfil, no al formulario de edición ni a VisoMap. */
.vc-app-shell .vc-patient-profile-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:min-content;
  align-items:start;
  gap:16px;
  margin-bottom:20px;
}
.vc-app-shell .vc-patient-profile-grid .vc-patient-clinical-card {
  min-width:0;
  align-self:start;
  overflow:hidden;
  border:1px solid var(--vc-theme-line,var(--vc-line));
  background:var(--vc-theme-surface,#fff);
}
.vc-app-shell .vc-patient-profile-grid .vc-patient-clinical-wide {grid-column:1/-1}
.vc-patient-profile-grid .vc-patient-info-heading {padding-bottom:12px;margin-bottom:3px}
.vc-patient-profile-grid .vc-patient-info-heading h3 {font-size:16px;min-width:0;line-height:1.35}
.vc-patient-profile-grid .vc-patient-info-heading .vc-ui-icon {color:var(--vc-theme-accent,var(--vc-primary));width:21px;height:21px}
.vc-app-shell .vc-patient-clinical-fields {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  column-gap:22px;
  row-gap:0;
  align-content:start;
}
.vc-app-shell .vc-patient-clinical-three .vc-patient-clinical-fields {grid-template-columns:repeat(3,minmax(0,1fr))}
.vc-app-shell .vc-patient-clinical-field {
  min-width:0;
  align-self:start;
  padding:12px 0;
  border-bottom:1px solid var(--vc-theme-line,var(--vc-line));
  break-inside:avoid;
}
.vc-app-shell .vc-patient-clinical-question {
  font-size:12px;
  line-height:1.45;
  font-weight:750;
  color:var(--vc-theme-text,var(--vc-ink));
  overflow-wrap:anywhere;
}
.vc-app-shell .vc-patient-clinical-answer {
  margin-top:4px;
  font-size:12px;
  line-height:1.55;
  color:var(--vc-theme-muted,var(--vc-muted));
  overflow-wrap:anywhere;
}
.vc-app-shell .vc-patient-clinical-answer.is-yes {
  color:var(--vc-theme-accent,var(--vc-primary));
  font-weight:800;
}
.vc-app-shell .vc-patient-clinical-details {
  display:grid;
  gap:8px;
  min-width:0;
  margin-top:9px;
  padding:10px 12px;
  border:1px solid var(--vc-theme-line,var(--vc-line));
  border-left:3px solid var(--vc-theme-accent,var(--vc-primary));
  border-radius:9px;
  background:var(--vc-theme-surface-soft,#f6f8f7);
}
.vc-app-shell .vc-patient-clinical-detail {display:grid;gap:2px;min-width:0}
.vc-app-shell .vc-patient-clinical-detail+.vc-patient-clinical-detail {padding-top:7px;border-top:1px solid var(--vc-theme-line,var(--vc-line))}
.vc-app-shell .vc-patient-clinical-detail strong {font-size:11px;line-height:1.4;color:var(--vc-theme-text,var(--vc-ink))}
.vc-app-shell .vc-patient-clinical-detail span {font-size:12px;line-height:1.5;color:var(--vc-theme-muted,var(--vc-muted));overflow-wrap:anywhere}
@media(max-width:1100px) {
  .vc-app-shell .vc-patient-clinical-three .vc-patient-clinical-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:750px) {
  .vc-app-shell .vc-patient-profile-grid {grid-template-columns:minmax(0,1fr);gap:12px}
  .vc-app-shell .vc-patient-clinical-three .vc-patient-clinical-fields {grid-template-columns:minmax(0,1fr)}
  .vc-app-shell .vc-patient-profile-grid .vc-patient-clinical-wide {grid-column:auto}
  .vc-app-shell .vc-patient-clinical-field {padding:10px 0}
}


/* v0.5.40.29.1 — Integración de mejoras responsive previamente verificadas */
/* v0.5.40.27.2 — Ajustes visuales: ficha clínica y filtros de producción.
   Mantener estas reglas acotadas a los módulos afectados. */

/* Perfil clínico de solo lectura: ambas tarjetas de cada fila alcanzan la
   altura de la más larga. Las respuestas, detalles y notas nunca se recortan. */
.vc-app-shell .vc-patient-profile-grid {
  grid-auto-rows:auto;
  align-items:stretch;
}
.vc-app-shell .vc-patient-profile-grid .vc-patient-clinical-card {
  align-self:stretch;
}

/* Registro del paciente: Safari/iPhone no debe agrandar de forma distinta
   el control nativo de fecha frente a nombre, apellido, teléfono y correo. */
.vc-app-shell .vc-intake-root .vc-intake-patient .vc-intake-field > input:not([type="hidden"]) {
  display:block;
  width:100%;
  height:45px !important;
  min-height:45px !important;
  max-height:45px !important;
  padding:0 12px !important;
  margin-top:0 !important;
  box-sizing:border-box;
  line-height:normal;
}
.vc-app-shell .vc-intake-root .vc-intake-patient .vc-intake-field > input[type="date"] {
  -webkit-min-logical-width:0;
  min-width:0;
}

/* Administración Clínica: fecha, profesional y Aplicar con altura idéntica,
   sin solapamientos; no cambia la lógica ni las opciones de filtrado. */
.vc-app-shell .vc-admin-finance .vc-adm-filter-form {
  align-items:end;
}
.vc-app-shell .vc-admin-finance .vc-adm-filter-form :is(input[type="date"],select) {
  display:block;
  width:100%;
  min-width:0;
  height:44px !important;
  min-height:44px !important;
  max-height:44px !important;
  padding:0 12px !important;
  margin:0 !important;
  line-height:normal;
  box-sizing:border-box;
}
.vc-app-shell .vc-admin-finance .vc-adm-filter-form > .vc-btn {
  min-height:44px;
  height:44px;
  box-sizing:border-box;
}
.vc-app-shell .vc-admin-finance .vc-adm-filter-form .vc-adm-professional-filter select {
  text-overflow:ellipsis;
}
@media (max-width:720px) {
  /* 48px de toque en móvil y mismo tamaño incluso en el selector de fecha. */
  .vc-app-shell .vc-intake-root .vc-intake-patient .vc-intake-field > input:not([type="hidden"]) {
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    font-size:16px !important;
  }
}

/* El área de notas de edición conserva tamaño inicial compacto y altura
   progresiva calculada al escribir, pegar o abrir un registro existente. */
.vc-app-shell .vc-intake-root [data-vc-intake-step="6"] textarea[name="notes"] {
  overflow-y:hidden;
  min-height:85px;
  resize:vertical;
}

/* v0.5.40.27.3 — Viso Anatomy / ficha clínica / administración:
   diseño móvil real (no reducir la interfaz de escritorio).
   No modifica los controladores ni los valores enviados por formularios. */
@media (max-width: 1100px) {
  /* El registro de un paciente debe tener espacio completo para el selector
     de fecha de iOS. Los campos mantienen sus cajas cerradas y alineadas. */
  .vc-app-shell .vc-patient-intake-main,
  .vc-app-shell .vc-intake-root,
  .vc-app-shell .vc-intake-top,
  .vc-app-shell .vc-intake-patient {min-width:0;max-width:100%;}
  .vc-app-shell .vc-intake-patient .vc-intake-cols {
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }
  .vc-app-shell .vc-intake-patient .vc-intake-field {
    display:flex;flex-direction:column;min-width:0;max-width:100%;
    width:100%;margin:8px 0;gap:7px;
  }
  .vc-app-shell .vc-intake-patient .vc-intake-field > input:not([type="hidden"]),
  .vc-app-shell .vc-intake-patient .vc-intake-field > select {
    flex:none;display:block;min-width:0;width:100%;max-width:100%;
    box-sizing:border-box;
  }
  .vc-app-shell .vc-intake-patient input[type="date"] {
    -webkit-min-logical-width:0;
    min-inline-size:0;
    max-inline-size:100%;
  }
  .vc-app-shell .vc-intake-patient input[type="date"]::-webkit-date-and-time-value {
    min-width:0;min-height:1em;text-align:left;
  }

  /* Administración Clínica: controles en filas legibles en teléfonos y tablets.
     El filtro de profesional nunca puede invadir el botón Aplicar. */
  .vc-app-shell .vc-admin-finance .vc-adm-filters,
  .vc-app-shell .vc-admin-finance .vc-adm-filters.is-custom {
    display:grid;grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  .vc-app-shell .vc-admin-finance .vc-adm-filter-form,
  .vc-app-shell .vc-admin-finance .vc-adm-filters.is-custom .vc-adm-filter-form {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;max-width:none;min-width:0;gap:12px;
  }
  .vc-app-shell .vc-admin-finance .vc-adm-filter-form > label {
    min-width:0;width:100%;max-width:100%;
  }
  .vc-app-shell .vc-admin-finance .vc-adm-filters.is-custom .vc-adm-professional-filter {
    grid-column:auto;
  }
  .vc-app-shell .vc-admin-finance .vc-adm-filter-form > .vc-btn {
    grid-column:1 / -1;width:100%;justify-self:stretch;
  }
  .vc-app-shell .vc-admin-finance .vc-adm-tabs {
    display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;
    max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:thin;
  }
  .vc-app-shell .vc-admin-finance .vc-adm-tabs a {
    flex:0 0 auto;white-space:nowrap;
  }

  /* Viso Atlas: eliminar las anchuras forzadas de 880/920px que ocultaban
     parte de las figuras en el móvil. Conserva posiciones de puntos y SVG. */
  .vc-app-shell .vc-atlas-home,
  .vc-app-shell .vc-atlas-study,
  .vc-app-shell .vc-atlas-map-scroll {min-width:0;max-width:100%;}
  .vc-app-shell .vc-atlas-map-scroll {overflow-x:hidden;}
  .vc-app-shell .vc-atlas-map-stage {
    min-width:0!important;width:100%;max-width:100%;
    aspect-ratio:1448 / 1086;
  }
  .vc-app-shell .vc-atlas-map-image {width:100%;height:100%;object-fit:contain;}
  .vc-app-shell .vc-atlas-study-heading {flex-wrap:wrap;}
}
@media (max-width: 650px) {
  .vc-app-shell .vc-intake-top {padding:12px;}
  .vc-app-shell .vc-intake-patient {padding:12px;}
  .vc-app-shell .vc-intake-patient .vc-intake-field > input:not([type="hidden"]),
  .vc-app-shell .vc-intake-patient .vc-intake-field > select {
    height:48px!important;min-height:48px!important;max-height:48px!important;
    padding:0 12px!important;font-size:16px!important;
  }
  .vc-app-shell .vc-intake-patient .vc-intake-consent {align-items:flex-start;}
  .vc-app-shell .vc-intake-patient .vc-intake-consent input[type="checkbox"] {
    flex:0 0 18px;width:18px;height:18px;margin-top:1px;
  }
  .vc-app-shell .vc-admin-finance .vc-adm-filter-form,
  .vc-app-shell .vc-admin-finance .vc-adm-filters.is-custom .vc-adm-filter-form {
    grid-template-columns:minmax(0,1fr);
  }
  .vc-app-shell .vc-admin-finance .vc-adm-filter-form > .vc-btn {grid-column:1;}
  .vc-app-shell .vc-admin-finance .vc-adm-period-switch {
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
    width:100%;max-width:100%;height:auto;min-height:44px;
  }
  .vc-app-shell .vc-admin-finance .vc-adm-period-switch a {
    display:flex;align-items:center;justify-content:center;
    min-width:0;min-height:44px;padding:8px 3px;
    text-align:center;white-space:normal;overflow-wrap:break-word;
    font-size:clamp(11px,3vw,13px);
  }
  .vc-app-shell .vc-admin-finance .vc-adm-metrics,
  .vc-app-shell .vc-admin-finance .vc-adm-two-metrics {
    grid-template-columns:minmax(0,1fr);
  }
  .vc-app-shell .vc-atlas-home {padding:12px;}
  .vc-app-shell .vc-atlas-intro {flex-wrap:wrap;gap:9px;}
  .vc-app-shell .vc-atlas-brand {min-width:0;}
  .vc-app-shell .vc-atlas-instructions {line-height:1.5;}
  .vc-app-shell .vc-atlas-marker-layer .vc-atlas-hotspot {
    width:20px;height:20px;border-width:2px;
  }
  .vc-app-shell .vc-atlas-zone-grid {grid-template-columns:minmax(0,1fr);}
  .vc-app-shell .vc-atlas-zone-link {min-height:44px;}
  .vc-app-shell .vc-atlas-dialog {width:96vw;max-height:92dvh;}
  .vc-app-shell .vc-atlas-dialog-content {max-height:calc(92dvh - 55px);}
  .vc-app-shell .vc-atlas-dialog-content img {max-height:calc(92dvh - 55px);}
}

/* VisoClinic v0.5.40.35 — Esencial: formulario clásico, campos en horizontal.
 * Scoped to the Esencial editor; the stage editor of Profesional/Clínica
 * and the shared history are deliberately unaffected.
 */
.vc-app-shell .vc-budget-essential .vc-budget-essential-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) minmax(0,.85fr);
  gap: 14px;
  align-items: start;
}
.vc-app-shell .vc-budget-essential .vc-budget-essential-head > * { min-width: 0; }
.vc-app-shell .vc-budget-essential .vc-budget-head-fields {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 0;
  margin: 0;
}
.vc-app-shell .vc-budget-essential .vc-budget-head-fields label { min-width:0; }
.vc-app-shell .vc-budget-essential .vc-budget-essential-head small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--vc-theme-muted,var(--vc-muted));
}
/* Keep services, professional, price, status, payment method, total and remove
 * in one row on desktop, including widths below the old 1450px breakpoint. */
.vc-app-shell .vc-budget-essential .vc-budget-items-head,
.vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item {
  grid-template-columns: minmax(150px,2fr) minmax(97px,1fr) minmax(90px,.82fr) minmax(96px,.9fr) minmax(106px,1fr) minmax(68px,auto) 34px;
  gap: 8px;
}
.vc-app-shell .vc-budget-essential .vc-budget-items-head {
  display: grid;
  padding-inline: 12px;
  font-size: 12px;
}
.vc-app-shell .vc-budget-essential .vc-budget-mobile-label { display: none; }
.vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item .vc-budget-treatment-field,
.vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item > strong,
.vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item > [data-vc-budget-remove] {
  grid-column: auto;
}
.vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item > strong {
  justify-self: end;
  justify-content: flex-end;
}
.vc-app-shell .vc-budget-essential .vc-budget-item input,
.vc-app-shell .vc-budget-essential .vc-budget-item select {
  min-width: 0;
  width: 100%;
}
@media (max-width: 1050px) {
  .vc-app-shell .vc-budget-essential .vc-budget-essential-head {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .vc-app-shell .vc-budget-essential .vc-budget-head-fields { grid-column: 1 / -1; }
  .vc-app-shell .vc-budget-essential .vc-budget-items-head { display: none; }
  .vc-app-shell .vc-budget-essential .vc-budget-mobile-label { display: block; }
  .vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item {
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: end;
  }
  .vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item .vc-budget-treatment-field { grid-column: 1 / -1; }
  .vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item > strong { grid-column: 2; justify-self: end; }
  .vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item > [data-vc-budget-remove] { grid-column: 3; justify-self: end; }
}
@media (max-width: 600px) {
  .vc-app-shell .vc-budget-essential .vc-budget-essential-head { grid-template-columns: 1fr; }
  .vc-app-shell .vc-budget-essential .vc-budget-head-fields { grid-column: auto; }
  .vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item .vc-budget-treatment-field { grid-column: 1 / -1; }
  .vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item > strong { grid-column: 1; justify-self: start; }
  .vc-app-shell .vc-budget-editor-full.vc-budget-essential .vc-budget-item > [data-vc-budget-remove] { grid-column: 2; justify-self: end; }
}


/* VisoClinic 0.5.40.38 — evolución: mismo ancho, filtro de lote VisoMap e historial oculto con búsqueda. */
.vc-evolution-workspace > .vc-panel,
.vc-evolution-workspace .vc-evolution-patient-picker {width:100%;max-width:none;min-width:0;box-sizing:border-box}
.vc-evolution-lot-search {border-top:1px solid var(--vc-theme-line,var(--vc-line));margin-top:22px;padding-top:13px}
.vc-evolution-lot-toggle {display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--vc-theme-primary,#54769e);padding:9px 3px;font-weight:750;cursor:pointer;text-align:left}
.vc-evolution-lot-toggle:hover {color:var(--vc-theme-text,var(--vc-ink))}
.vc-evolution-lot-toggle-icon {width:25px;height:25px;border:1px solid var(--vc-theme-line,var(--vc-line));border-radius:6px;display:grid;place-items:center;font-size:20px;line-height:1}
.vc-evolution-lot-chevron {font-size:20px;transition:transform .2s}
.vc-evolution-lot-toggle[aria-expanded="true"] .vc-evolution-lot-chevron {transform:rotate(180deg)}
.vc-evolution-lot-panel[hidden],.vc-history-filter-item[hidden],.vc-evolution-history-empty[hidden] {display:none!important}
.vc-evolution-lot-panel {border:1px solid var(--vc-theme-line,var(--vc-line));border-radius:12px;background:var(--vc-theme-surface-soft,#faf8f6);padding:18px;margin-top:7px}
.vc-evolution-lot-form {display:grid;gap:14px;margin-top:15px;max-width:650px}
.vc-evolution-lot-form label,.vc-evolution-history-controls label {display:flex;flex-direction:column;gap:6px;font-weight:750;font-size:13px;min-width:0}
.vc-evolution-lot-form input,.vc-evolution-history-controls input,.vc-evolution-history-controls select {width:100%;min-height:43px;border:1px solid var(--vc-theme-line,var(--vc-line));border-radius:9px;padding:9px 11px;background:#fff;color:var(--vc-theme-text,var(--vc-ink));box-sizing:border-box}
.vc-evolution-lot-form small {font-weight:400;color:var(--vc-theme-muted,var(--vc-muted))}
.vc-evolution-lot-actions,.vc-evolution-lot-item-actions,.vc-evolution-lot-pagination {display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.vc-evolution-lot-results {margin-top:19px;border-top:1px solid var(--vc-theme-line,var(--vc-line));padding-top:17px;scroll-margin-top:90px}
.vc-evolution-lot-results-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:12px}
.vc-evolution-lot-results-head span {font-size:12px;color:var(--vc-theme-muted,var(--vc-muted))}
.vc-evolution-lot-list {display:grid;gap:8px}
.vc-evolution-lot-item {display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,.75fr) minmax(155px,1.6fr) auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--vc-theme-line,var(--vc-line));border-radius:11px;padding:12px;min-width:0}
.vc-evolution-lot-item > div {min-width:0;overflow-wrap:anywhere}
.vc-evolution-lot-item strong {display:block;font-size:13px}
.vc-evolution-lot-item small {display:block;font-size:11px;color:var(--vc-theme-muted,var(--vc-muted));margin-top:3px}
.vc-evolution-lot-item-actions .vc-btn {font-size:12px;white-space:nowrap}
.vc-evolution-lot-pagination {justify-content:center;margin-top:14px}
.vc-evolution-lot-empty {padding:16px;border:1px dashed var(--vc-theme-line,var(--vc-line));border-radius:9px;background:#fff}
.vc-evolution-patient-history .vc-panel-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.vc-evolution-history-disclosure {margin-top:14px}
.vc-evolution-history-disclosure > summary {width:max-content;max-width:100%;border:1px solid var(--vc-theme-line,var(--vc-line));border-radius:9px;padding:10px 14px;cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;font-weight:750;color:var(--vc-theme-text,var(--vc-ink));background:#fff}
.vc-evolution-history-disclosure > summary::-webkit-details-marker {display:none}
.vc-evolution-history-disclosure > summary:hover {background:var(--vc-theme-surface-soft,#faf8f6)}
.vc-evolution-history-disclosure:not([open]) .vc-history-summary-hide,.vc-evolution-history-disclosure[open] .vc-history-summary-show {display:none}
.vc-evolution-history-disclosure[open] + .vc-evolution-history-collapsed-hint {display:none}
.vc-evolution-history-collapsed-hint {background:var(--vc-theme-surface-soft,#faf8f6);padding:13px 15px;margin:11px 0 0;border:1px dashed var(--vc-theme-line,var(--vc-line));border-radius:9px;color:var(--vc-theme-muted,var(--vc-muted));font-size:13px}
.vc-evolution-history-controls {display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);gap:12px 17px;margin:15px 0}
.vc-evolution-history-empty {background:var(--vc-theme-surface-soft,#faf8f6);padding:18px;border:1px dashed var(--vc-theme-line,var(--vc-line));border-radius:9px}
.vc-history-filter-item {min-width:0}
@media(max-width:970px){.vc-evolution-lot-item{grid-template-columns:1fr 1fr}.vc-evolution-lot-item-actions{grid-column:1/-1}}
@media(max-width:640px){.vc-evolution-history-controls,.vc-evolution-lot-item{grid-template-columns:1fr}.vc-evolution-lot-item-actions{grid-column:auto}.vc-evolution-lot-item-actions .vc-btn {flex:1;text-align:center}.vc-evolution-lot-panel {padding:13px}.vc-evolution-lot-results-head{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.vc-evolution-lot-chevron{transition:none}}

/* v0.5.40.39 — Ficha del paciente: módulos completos plegados, fotos sin cambios. */
.vc-app-shell .vc-patient-fold { width:100%; min-width:0; margin-bottom:12px; padding:18px 22px; }
.vc-app-shell .vc-patient-fold-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;flex-wrap:wrap}
.vc-app-shell .vc-patient-fold-title {min-width:0;flex:1}
.vc-app-shell .vc-patient-fold-title .vc-kicker {display:block;margin-bottom:4px}
.vc-app-shell .vc-patient-fold-title h3 {margin:0;font-size:17px;font-weight:700;line-height:1.45}
.vc-app-shell .vc-patient-fold-toggle {display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;text-align:center;border-color:var(--vc-theme-line,var(--vc-line,#ded8dd));color:var(--vc-theme-accent,var(--vc-primary,#496a91));font-weight:700;font-size:12px;max-width:100%;white-space:normal}
.vc-app-shell .vc-patient-fold-toggle:hover {background:var(--vc-theme-surface-soft,#f7f7fa)}
.vc-app-shell .vc-patient-fold-chevron {display:inline-block;font-size:20px;line-height:1;transition:transform .2s ease}
.vc-app-shell .vc-patient-fold.is-open .vc-patient-fold-chevron {transform:rotate(180deg)}
.vc-app-shell .vc-patient-fold-body[hidden] {display:none!important}
.vc-app-shell .vc-patient-fold-body {padding-top:16px;margin-top:14px;border-top:1px solid var(--vc-theme-line,var(--vc-line,#e7e9ed));min-width:0}
.vc-app-shell .vc-patient-fold-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0 0 15px}
.vc-app-shell .vc-patient-app-filter {min-width:0}
.vc-app-shell .vc-patient-app-filter-summary {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px;font-size:12px}
.vc-app-shell .vc-patient-app-filter-controls {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(180px,.8fr);gap:14px;align-items:end;margin-bottom:16px}
.vc-app-shell .vc-patient-app-filter-controls label {display:grid;gap:6px;min-width:0;font-size:12px;font-weight:700}
.vc-app-shell .vc-patient-app-filter-controls input,
.vc-app-shell .vc-patient-app-filter-controls select {display:block;width:100%;min-width:0;min-height:42px;padding:9px 12px;border:1px solid var(--vc-theme-line,var(--vc-line,#dce3ec));border-radius:9px;color:var(--vc-theme-text,var(--vc-ink,#303943));background:var(--vc-theme-surface,#fff);font:inherit}
.vc-app-shell .vc-patient-app-filter .vc-application-table-wrap {max-width:100%;overflow-x:auto}
.vc-app-shell .vc-patient-app-filter .vc-application-table tr[hidden] {display:none!important}
.vc-app-shell .vc-patient-app-empty[hidden] {display:none!important}
.vc-app-shell .vc-patient-app-empty {padding:20px 0 8px;text-align:center}
@media(max-width:720px){
 .vc-app-shell .vc-patient-fold {padding:16px;margin-bottom:10px}
 .vc-app-shell .vc-patient-fold-heading {align-items:stretch;gap:12px}
 .vc-app-shell .vc-patient-fold-title {flex-basis:100%}
 .vc-app-shell .vc-patient-fold-toggle {width:100%;min-height:44px}
 .vc-app-shell .vc-patient-app-filter-controls {grid-template-columns:minmax(0,1fr)}
 .vc-app-shell .vc-patient-app-filter-controls input,
 .vc-app-shell .vc-patient-app-filter-controls select {font-size:16px}
}
@media(prefers-reduced-motion:reduce){.vc-app-shell .vc-patient-fold-chevron{transition:none}}


/* VisoClinic 0.5.40.41 — casillas junto al texto en agendamiento y Servicios.
   No modifica el estilo de los demas controles ni los colores por profesional. */
.vc-app-shell .vc-online-settings-form label.vc-online-main-toggle,
.vc-app-shell .vc-online-settings-form label.vc-online-remove-toggle,
.vc-app-shell .vc-front-form .vc-online-deposit-box label.vc-inline-check,
.vc-app-shell .vc-front-form .vc-service-visibility-box label.vc-inline-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-width: 0;
  line-height: 1.45;
  cursor: pointer;
}
.vc-app-shell .vc-online-settings-form label.vc-online-main-toggle > input[type="checkbox"],
.vc-app-shell .vc-online-settings-form label.vc-online-remove-toggle > input[type="checkbox"],
.vc-app-shell .vc-front-form .vc-online-deposit-box label.vc-inline-check > input[type="checkbox"],
.vc-app-shell .vc-front-form .vc-service-visibility-box label.vc-inline-check > input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  display: inline-block !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
  vertical-align: middle;
  accent-color: var(--vc-theme-accent, #C27AA9);
}
.vc-app-shell .vc-online-settings-form label.vc-online-main-toggle > span,
.vc-app-shell .vc-online-settings-form label.vc-online-remove-toggle > span,
.vc-app-shell .vc-front-form .vc-online-deposit-box label.vc-inline-check > span,
.vc-app-shell .vc-front-form .vc-service-visibility-box label.vc-inline-check > span {
  display: inline !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  overflow-wrap: break-word;
}
.vc-app-shell .vc-online-settings-form .vc-online-image-field .vc-online-image-title {
  display: block;
  font-weight: 850;
  cursor: pointer;
}
.vc-app-shell .vc-online-settings-form .vc-online-image-field label.vc-online-remove-toggle {
  margin: 3px 0 0 !important;
  width: 100%;
}
/* En Servicios: dejar aire debajo de la casilla de abono, antes de los campos. */
.vc-app-shell .vc-front-form .vc-online-deposit-box > label.vc-inline-check {
  margin: 4px 0 14px !important;
}


/* VisoClinic 0.5.40.42 — separacion del texto de ayuda y microalineacion de Servicios. */
.vc-app-shell .vc-front-form .vc-service-duration-help {
  display: block;
  margin: 8px 0 10px !important;
  line-height: 1.5;
}
/* En los checks de Servicios, la tipografia queda a la altura de su control,
   aun con el estilo general heredado de formularios. */
.vc-app-shell .vc-front-form .vc-online-deposit-box label.vc-inline-check > span,
.vc-app-shell .vc-front-form .vc-service-visibility-box label.vc-inline-check > span {
  position: relative;
  top: 2px;
}

/* v0.5.40.43 — Nueva cita: espacio real entre las etiquetas y sus cuadros.
   Se limita al editor de citas; no afecta colores, calendario ni otros módulos. */
.vc-app-shell .vc-appointment-drawer .vc-appointment-form > label > :is(input:not([type="hidden"]), select, textarea) {
  margin-top: 12px;
}
.vc-app-shell .vc-appointment-drawer .vc-appointment-form .vc-date-row > label {
  display: flex; flex-direction: column; gap: 11px;
}
.vc-app-shell .vc-appointment-drawer .vc-appointment-form .vc-date-row > label > input {
  margin-top: 0;
}
.vc-app-shell .vc-appointment-drawer .vc-appointment-patient-search > label + :is(input, select) {
  margin-top: 5px;
}

/* v0.5.40.47 — Jornadas bloqueadas: panel plegable. */
.vc-availability-panel .vc-blocked-shifts-toggle { display:flex; align-items:center; gap:12px; min-height:44px; cursor:pointer; list-style:none; }
.vc-availability-panel .vc-blocked-shifts-toggle::-webkit-details-marker { display:none; }
.vc-availability-panel .vc-blocked-shifts-toggle::marker { content:""; }
.vc-availability-panel .vc-blocked-shifts-toggle:focus-visible { outline:2px solid var(--vc-theme-accent,#496a91); outline-offset:4px; border-radius:6px; }
.vc-availability-panel .vc-blocked-shifts-title { flex:1; min-width:0; }
.vc-blocked-shifts-count { color:var(--vc-theme-muted,var(--vc-muted)); font-size:12px; font-weight:600; white-space:nowrap; }
.vc-blocked-shifts-chevron { flex:0 0 10px; width:10px; height:10px; margin:0 5px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; color:var(--vc-theme-accent,var(--vc-ink)); transform:rotate(45deg); }
.vc-blocked-shifts-disclosure[open] > summary .vc-blocked-shifts-chevron { transform:rotate(225deg); }
.vc-blocked-shifts-content { margin-top:12px; }
