/* Complementos a Tailwind — agenda, admin shell, modo oscuro */

.hidden {
  display: none !important;
}

/* ── Modo oscuro (componentes custom) ── */
.dark body {
  color: #fafaf9;
}

.dark .card {
  background: #0f1c30;
  border-color: #136D5C;
  color: #fafaf9;
}

.dark .stat {
  background: #0f1c30;
  border-color: #136D5C;
}

.dark .stat strong {
  color: #5A8A7E;
}

.dark .admin-main {
  background: #051F1A;
}

.dark .table-wrap,
.dark table:not(.table-wrap table) {
  background: #1c1917;
  border-color: #292524;
}

.dark .table-wrap th,
.dark table:not(.table-wrap table) th {
  background: #292524;
  color: #a8a29e;
  border-color: #44403c;
}

.dark .table-wrap td,
.dark table:not(.table-wrap table) td {
  color: #e7e5e4;
  border-color: #292524;
}

.dark .toolbar h2,
.dark .toolbar h3 {
  color: #fafaf9;
}

.dark .form-grid label {
  color: #d6d3d1;
}

.dark .form-grid input,
.dark .form-grid textarea,
.dark .form-grid select {
  background: #292524;
  border-color: #44403c;
  color: #fafaf9;
}

.dark .form-grid input:focus,
.dark .form-grid textarea:focus,
.dark .form-grid select:focus {
  border-color: #136D5C;
  box-shadow: 0 0 0 3px rgba(19, 109, 92, 0.25);
}

.dark .hint {
  color: #a8a29e;
}

.dark .legacy-login,
.dark .legacy-login summary {
  color: #a8a29e;
}

.dark .form-section {
  border-color: #292524;
}

.dark .form-section h2 {
  color: #fafaf9;
}

.dark .slug-field span {
  color: #a8a29e;
}

.dark .agenda-day {
  background: #1c1917;
  border-color: #292524;
}

.dark .agenda-day-head small {
  color: #a8a29e;
}

.dark .agenda-slot {
  background: #292524;
  color: #a8a29e;
}

.dark .agenda-slot.closed {
  background: rgba(127, 29, 29, 0.25);
  color: #fca5a5;
}

.dark .agenda-item {
  background: #292524;
  border-color: #44403c;
}

.dark .agenda-item small {
  color: #a8a29e;
}

.dark .agenda-item-client {
  color: #fafaf9;
}

.dark .agenda-item-meta {
  color: #a8a29e;
}

.dark .agenda-item-notes {
  border-top-color: #44403c;
  color: #d6d3d1;
}

.dark .message.inbound {
  background: rgba(8, 145, 178, 0.15);
  border-color: rgba(8, 145, 178, 0.3);
  color: #e7e5e4;
}

.dark .message.outbound {
  background: #292524;
  border-color: #44403c;
  color: #e7e5e4;
}

.dark .pill-success {
  background: rgba(6, 95, 70, 0.35);
  color: #6ee7b7;
}

.dark .pill-warning {
  background: rgba(146, 64, 14, 0.35);
  color: #fcd34d;
}

.dark .pill-danger {
  background: rgba(153, 27, 27, 0.35);
  color: #fca5a5;
}

.dark .pill-brand {
  background: rgba(19, 109, 92, 0.22);
  color: #9DD4C6;
}

.dark .pill-neutral {
  background: #292524;
  color: #a8a29e;
}

.dark .code-tag {
  background: #292524;
  color: #d6d3d1;
}

.dark .info-box {
  background: rgba(10, 60, 52, 0.12) !important;
  border-color: rgba(122, 151, 181, 0.25) !important;
}

.dark .price {
  color: #5A8A7E;
}

.dark .btn.ghost {
  border-color: #44403c;
  color: #e7e5e4;
}

.dark .btn.ghost:hover {
  background: #292524;
}

/* Login / reset mesh — ink + coral */
.login-mesh {
  background:
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(19, 109, 92, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 80%, rgba(42, 79, 122, 0.35), transparent 50%),
    linear-gradient(145deg, #051F1A 0%, #0A3C34 48%, #136D5C 100%);
}

.dark .login-mesh {
  background:
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(19, 109, 92, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 80%, rgba(26, 55, 96, 0.4), transparent 50%),
    linear-gradient(145deg, #031612 0%, #051F1A 55%, #0A3C34 100%);
}

.dark #login-view .card {
  background: #0f1c30;
  border-color: #136D5C;
}

.dark #login-view .card h1 {
  color: #fafaf9;
}

.dark .register-actions p {
  color: #a8a29e;
}

/* Admin layout */
.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .admin-shell {
    flex-direction: row;
  }
}

.sidebar {
  background: linear-gradient(180deg, #0A3C34 0%, #0F5A4C 100%);
  color: #e7e5e4;
  padding: 1.25rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .sidebar {
    width: 16rem;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16.5rem;
    max-width: 85vw;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(12, 10, 9, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Stats con icono */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card .stat-icon-wrap {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 60, 52, 0.1);
  color: #0A3C34;
}

.dark .stat-card .stat-icon-wrap {
  background: rgba(122, 151, 181, 0.15);
  color: #5A8A7E;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e7e5e4;
}

.dark .admin-topbar {
  border-color: #292524;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  background: #ffffff;
  color: #57534e;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms;
}

.theme-toggle:hover {
  background: #fafaf9;
  border-color: #d6d3d1;
}

.dark .theme-toggle {
  background: #292524;
  border-color: #44403c;
  color: #d6d3d1;
}

.dark .theme-toggle:hover {
  background: #44403c;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Dashboard charts */
.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .dashboard-charts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chart-card {
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 1.125rem 1.25rem !important;
}

.chart-card-wide {
  grid-column: 1 / -1;
}

.chart-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: -0.01em;
}

.dark .chart-card h3 {
  color: #fafaf9;
}

.chart-wrap {
  position: relative;
  flex: 1;
  min-height: 11.5rem;
}

.chart-wrap-doughnut {
  min-height: 13rem;
  max-width: 18rem;
  margin: 0 auto;
  width: 100%;
}


.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.sidebar-brand .brand-mark {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark-sm {
  width: 1.75rem;
  height: 1.75rem;
}

.brand-mark-xs {
  width: 1.15rem;
  height: 1.15rem;
  vertical-align: -0.15rem;
}

.brand-logo-nav {
  height: 2.65rem;
  max-width: 11.5rem;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 0.5rem;
}

.brand-logo-nav-invert {
  height: 2.35rem;
  max-width: 10rem;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 0.45rem;
  background: rgba(247, 248, 247, 0.96);
  padding: 0.2rem 0.35rem;
}

.platform-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.store-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.store-powered .brand-mark {
  display: inline-block;
}

.sidebar h1 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: #fafaf9;
  letter-spacing: -0.02em;
}

.sidebar-top {
  flex: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-group-title {
  margin: 0 0 0.2rem;
  padding: 0 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78716c;
}

.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-align: left;
  background: transparent;
  border: none;
  color: #a8a29e;
  padding: 0.55rem 0.75rem;
  border-radius: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 150ms, color 150ms;
  width: 100%;
}

.sidebar-nav button .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  flex-shrink: 0;
}

.sidebar-nav button .nav-label {
  flex: 1;
  min-width: 0;
}

.sidebar-nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fafaf9;
}

.sidebar-nav button.active {
  background: rgba(19, 109, 92, 0.22);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #136D5C;
}

.sidebar-nav button.hidden {
  display: none;
}

.sidebar-footer {
  flex: none;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(120, 113, 108, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-user {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.sidebar-user-line {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fafaf9;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-main {
  flex: 1;
  padding: 1.25rem 1.5rem 2.5rem;
  background: #F7F8F7;
  min-width: 0;
}

.role-badge {
  display: none;
}

.tenant-picker {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: #a8a29e;
}

.tenant-picker select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.625rem;
  border: 1px solid #2A4F7A;
  background: #083028;
  color: #fafaf9;
  font-size: 0.875rem;
}

.legacy-login {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #78716c;
}

.legacy-login summary {
  cursor: pointer;
  color: #57534e;
}

/* Onboarding — primeros pasos */
.onboarding-card {
  border-left: 4px solid var(--brand-500, #2563eb);
}

.onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  background: #ffffff;
}

.onboarding-step.is-done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.onboarding-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e7e5e4;
  color: #57534e;
}

.onboarding-check.done {
  background: #16a34a;
  color: #ffffff;
}

.onboarding-step-label {
  flex: 1 1 auto;
  font-size: 0.9rem;
  color: #292524;
}

.onboarding-step.is-done .onboarding-step-label {
  color: #57534e;
}

.onboarding-done-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
}

.dark .onboarding-step {
  background: #1c1917;
  border-color: #44403c;
}

.dark .onboarding-step.is-done {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
}

.dark .onboarding-step-label {
  color: #e7e5e4;
}

.dark .onboarding-check {
  background: #44403c;
  color: #d6d3d1;
}

/* Agenda semanal */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
}

.agenda-day {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 0.875rem;
  min-height: 11rem;
  box-shadow: 0 4px 20px -4px rgba(28, 25, 23, 0.06);
}

.agenda-day.is-today {
  border-color: #0A3C34;
  box-shadow: 0 0 0 2px rgba(10, 60, 52, 0.15);
}

.agenda-day-head {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.agenda-day-head small {
  color: #78716c;
  font-weight: 600;
}

.agenda-slot {
  font-size: 0.75rem;
  color: #78716c;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: #fafaf9;
  border-radius: 0.5rem;
}

.agenda-slot.closed {
  background: #fef2f2;
  color: #991b1b;
}

.agenda-item {
  border: 1px solid #e7e5e4;
  border-radius: 0.625rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 150ms;
  min-height: calc(var(--duration-minutes, 60) / 30 * 2.25rem);
}

.agenda-item:hover {
  border-color: #0A3C34;
}

.agenda-item strong {
  display: block;
  font-size: 0.8125rem;
}

.agenda-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.agenda-item-service {
  flex: 1;
  min-width: 0;
}

.agenda-item-client {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 0.25rem;
}

.agenda-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: #78716c;
  font-size: 0.75rem;
  line-height: 1.35;
}

.agenda-item-contact {
  margin-top: 0.15rem;
}

.agenda-item-notes {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed #e7e5e4;
  color: #57534e;
  font-size: 0.75rem;
  line-height: 1.35;
}

.agenda-item small {
  color: #78716c;
  font-size: 0.75rem;
}

.agenda-item.status-confirmed {
  border-left: 3px solid #059669;
}
.agenda-item.status-scheduled {
  border-left: 3px solid #d97706;
}
.agenda-item.status-completed {
  border-left: 3px solid #6b7280;
}
.agenda-item.status-cancelled {
  opacity: 0.55;
  border-left: 3px solid #dc2626;
}
.agenda-status-select {
  min-width: 8.5rem;
  max-width: 11rem;
  font-size: 0.82rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #1c1917;
}
.dark .agenda-status-select {
  border-color: #57534e;
  background: #1c1917;
  color: #fafaf9;
}

/* Tablas — inputs inline */
#availability-table input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #0A3C34;
  cursor: pointer;
}

#availability-table input[type="time"] {
  width: auto;
  min-width: 7.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

#availability-table td {
  vertical-align: middle;
}

/* Registro */
.form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e7e5e4;
}

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

.form-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1c1917;
}

.slug-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.slug-field span {
  color: #78716c;
  font-size: 0.875rem;
  white-space: nowrap;
}

.slug-field input {
  flex: 1;
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.register-actions p {
  margin: 0;
  color: #78716c;
  font-size: 0.875rem;
}

/* Registro — formulario */
.register-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 120% at 10% -20%, rgba(45, 212, 191, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 90% at 90% 10%, rgba(14, 165, 233, 0.22), transparent 50%),
    linear-gradient(145deg, #0A3C34 0%, #123456 48%, #0f2a4a 100%);
  padding: 0 0 2.5rem;
  overflow: hidden;
}
.register-hero-inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 0;
}
@media (min-width: 640px) {
  .register-hero-inner {
    padding: 1rem 1.5rem 0;
  }
}
.register-hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.register-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 750;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.register-brand .brand-logo {
  height: 2.75rem;
  max-width: 12rem;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  background: rgba(247, 248, 247, 0.96);
  padding: 0.2rem 0.4rem;
}
.register-nav-link {
  font-size: 0.875rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.register-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
.register-hero-copy {
  max-width: 36rem;
  padding-bottom: 0.5rem;
}
.register-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(153, 246, 228, 0.95);
  margin-bottom: 0.55rem;
}
.register-hero-title {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}
.register-hero-sub {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.9);
  max-width: 34rem;
}

.register-main {
  width: 100%;
  max-width: 56rem;
  margin: -1.25rem auto 0;
  padding: 0 1rem 2.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .register-main {
    padding: 0 1.5rem 3rem;
  }
}

.register-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 960px) {
  .register-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.85fr);
    gap: 1.5rem;
  }
}

.register-form-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
}
@media (min-width: 640px) {
  .register-form-card {
    padding: 1.5rem 1.6rem 1.65rem;
  }
}
.dark .register-form-card {
  background: #1c1917;
  border-color: #44403c;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.7);
}

.register-block {
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f0eeec;
}
.register-block-last {
  border-bottom: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
}
.dark .register-block {
  border-bottom-color: #292524;
}
.register-block-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}
.register-block-head h2 {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #1c1917;
}
.dark .register-block-head h2 {
  color: #fafaf9;
}
.register-step {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 750;
  color: #0A3C34;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}
.dark .register-step {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
}

.register-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  background: #fafaf9;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #44403c;
  cursor: pointer;
}
.register-terms input {
  margin-top: 0.2rem;
}
.register-terms a {
  color: #0d9488;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dark .register-terms {
  border-color: #44403c;
  background: #292524;
  color: #d6d3d1;
}

.register-aside {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e7e5e4;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.dark .register-aside {
  border-color: #44403c;
  background: linear-gradient(180deg, #1c1917 0%, #292524 100%);
}
.register-aside-kicker {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 0.65rem;
}
.register-aside-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.register-aside-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #44403c;
}
.register-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #14b8a6;
}
.dark .register-aside-list li {
  color: #d6d3d1;
}

.register-footer {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #a8a29e;
}
.register-footer a {
  color: inherit;
  text-decoration: none;
}
.register-footer a:hover {
  text-decoration: underline;
}

/* Site header gradient overlay */
.site-header {
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(19, 109, 92, 0.28), transparent 55%),
    linear-gradient(135deg, #051F1A 0%, #0A3C34 45%, #136D5C 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.site-header > .container {
  position: relative;
  z-index: 1;
}

.site-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.site-header p {
  margin: 0;
  opacity: 0.92;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.55;
}

.site-header.compact {
  padding: 1.5rem 0 2.25rem;
}

.site-header:not(.compact) {
  padding: 2rem 0 3rem;
}

.top-nav a:not(.btn) {
  color: white;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 150ms;
}

.top-nav a:not(.btn):hover {
  opacity: 1;
  text-decoration: underline;
}

.dark .site-header {
  background: linear-gradient(135deg, #051F1A 0%, #0A3C34 50%, #136D5C 100%);
}

footer.container,
footer.container p {
  transition: color 150ms;
}

.dark footer.container {
  color: #78716c;
  border-color: #292524;
}

/* —— Carga masiva (servicios / productos) —— */
.import-dropzone {
  position: relative;
  border: 2px dashed #d6d3d1;
  border-radius: 0.75rem;
  background: #fafaf9;
  transition: border-color 150ms, background 150ms;
  cursor: pointer;
}

.import-dropzone:focus {
  outline: 2px solid #136D5C;
  outline-offset: 2px;
}

.import-dropzone:hover,
.import-dropzone.import-dropzone-active {
  border-color: #136D5C;
  background: #F0F7F5;
}

.import-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.import-dropzone-body {
  padding: 2rem 1.25rem;
  text-align: center;
  pointer-events: none;
}

.import-filename {
  margin-top: 0.75rem !important;
  font-size: 0.875rem;
  color: #0A3C34;
  font-weight: 600;
}

.import-result {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.import-result.import-result-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.import-result.import-result-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.import-result.import-result-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.import-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.import-preview-table th,
.import-preview-table td {
  padding: 0.5rem 0.625rem;
  border: 1px solid #e7e5e4;
  text-align: left;
}

.import-preview-table th {
  background: #f5f5f4;
  font-weight: 600;
}

.import-columns-help summary::-webkit-details-marker {
  display: none;
}

.dark .import-dropzone {
  border-color: #44403c;
  background: #1c1917;
}

.dark .import-dropzone:hover,
.dark .import-dropzone.import-dropzone-active {
  border-color: #5A8A7E;
  background: #0A3C3433;
}

.dark .import-filename {
  color: #9DD4C6;
}

.dark .import-preview-table th,
.dark .import-preview-table td {
  border-color: #44403c;
}

.dark .import-preview-table th {
  background: #292524;
}

.dark .import-result.import-result-ok {
  background: #0A3C3444;
  border-color: #5A8A7E55;
  color: #9DD4C6;
}

.dark .import-result.import-result-warn {
  background: #78350f44;
  border-color: #fbbf2455;
  color: #fde68a;
}

.dark .import-result.import-result-error {
  background: #7f1d1d44;
  border-color: #f8717155;
  color: #fecaca;
}

/* —— Filtros de gestión (pedidos / citas) —— */
.management-filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .management-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .management-filters-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .management-filter-search {
    grid-column: span 2;
  }
}

.management-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #44403c;
}

.management-filter-field-wide {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .management-filter-field-wide {
    grid-column: span 2;
  }
}

.management-filter-field span {
  color: #57534e;
}

.management-filter-field input,
.management-filter-field select {
  width: 100%;
  min-height: 2.375rem;
}

.management-filters-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e7e5e4;
}

.dark .management-filter-field,
.dark .management-filter-field span {
  color: #d6d3d1;
}

.dark .management-filters-actions {
  border-color: #44403c;
}

/* —— Tablero de pedidos (estilo Monday) —— */
.orders-panel {
  --order-pending: #fdab3d;
  --order-confirmed: #579bfc;
  --order-paid: #00c875;
  --order-cancelled: #9aabbc;
  max-width: 100%;
}

.orders-panel .orders-header {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.orders-panel .orders-header-title-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.orders-panel .orders-header h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1c1917;
  margin: 0;
}

.orders-panel .orders-header-sub {
  margin-top: 0.35rem !important;
  font-size: 0.8125rem;
  color: #78716c;
}

.orders-panel .orders-live-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.orders-panel .orders-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #10b981;
  animation: orders-pulse 1.5s ease-in-out infinite;
}

@keyframes orders-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

.orders-panel .orders-view-toggle {
  display: inline-flex !important;
  padding: 0.2rem;
  border-radius: 0.625rem;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  flex-shrink: 0;
}

.orders-panel .orders-view-btn {
  border: 0;
  background: transparent;
  color: #57534e;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: background 150ms, color 150ms, box-shadow 150ms;
}

.orders-panel .orders-view-btn.is-active {
  background: #fff;
  color: #1c1917;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Pipeline — franja horizontal de resumen */
.orders-panel .orders-pipeline {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.625rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.orders-panel .orders-pipeline-step {
  position: relative;
  flex: 0 0 11.5rem;
  min-width: 11.5rem;
  border: 1px solid #e8e8ef;
  text-align: left;
  cursor: pointer;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem 0.7rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  transition: transform 150ms, box-shadow 150ms;
  overflow: hidden;
}

.orders-panel .orders-pipeline-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
}

.orders-panel .orders-pipeline-step.is-cancelled {
  opacity: 0.88;
}

.orders-panel .orders-pipeline-accent {
  display: block;
  height: 4px;
  border-radius: 4px 4px 0 0;
  margin: -0.75rem -0.85rem 0.55rem;
}

.orders-panel .orders-pipeline-step-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.orders-panel .orders-pipeline-label {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.2;
}

.orders-panel .orders-pipeline-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.orders-panel .orders-pipeline-hint {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #78716c;
}

.orders-panel .orders-toolbar {
  margin-bottom: 1rem !important;
}

.orders-panel .orders-board-hint {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #a8a29e;
  text-align: right;
}

.orders-panel .orders-board-wrap {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 1rem;
  padding: 0.85rem 0.85rem 1rem;
  box-shadow: 0 4px 24px -8px rgba(16, 24, 40, 0.12);
}

/* Kanban — columnas en fila */
.orders-panel .orders-board {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  min-height: 24rem;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
}

.orders-panel .orders-column {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 17.5rem;
  width: 17.5rem;
  min-width: 17.5rem;
  max-height: calc(100vh - 15rem);
  min-height: 20rem;
  background: #f6f7fb;
  border-radius: 0.875rem;
  border: 1px solid #e8e8ef;
  overflow: hidden;
}

.orders-panel .orders-column-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-top: 4px solid var(--column-color, #9aabbc);
  background: #fff;
  border-bottom: 1px solid #ececf1;
}

.orders-panel .orders-column-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #1c1917;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.orders-panel .orders-column-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--column-color, #9aabbc) 20%, white);
  color: #1c1917;
  font-size: 0.6875rem;
  font-weight: 800;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.orders-panel .orders-column-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.6rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem;
  min-height: 4rem;
}

.orders-panel .orders-column-body.is-drag-over {
  background: color-mix(in srgb, var(--column-color, #9aabbc) 10%, #f6f7fb);
  outline: 2px dashed color-mix(in srgb, var(--column-color, #9aabbc) 50%, transparent);
  outline-offset: -3px;
}

.orders-panel .orders-column-empty {
  margin: 0.25rem 0;
  padding: 1.5rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: #a8a29e;
  border: 1px dashed #d6d3d1;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
}

.orders-panel .order-card {
  display: block !important;
  background: #fff;
  border: 1px solid #ececf1;
  border-left: 4px solid var(--card-accent, #9aabbc);
  border-radius: 0.5rem;
  padding: 0.7rem 0.75rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  cursor: grab;
  transition: box-shadow 150ms, transform 150ms;
}

.orders-panel .order-card:hover {
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.1);
  transform: translateY(-1px);
}

.orders-panel .order-card.is-dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.orders-panel .order-card-is-new {
  animation: order-card-new 1.1s ease-in-out 3;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--card-accent, #fdab3d) 65%, transparent),
    0 10px 24px rgba(16, 24, 40, 0.14);
}

@keyframes order-card-new {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-3px); }
}

.orders-panel .order-card-top {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.orders-panel .order-card-customer {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.orders-panel .order-card-details {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #57534e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.orders-panel .order-card-footer {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: #78716c;
  margin-bottom: 0.45rem;
}

.orders-panel .order-card-amount {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0A3C34;
}

.orders-panel .order-card-open {
  display: inline-block;
  border: 0;
  background: #F0F7F5;
  color: #0A3C34;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  border-radius: 0.35rem;
  transition: background 150ms;
}

.orders-panel .order-card-open:hover {
  background: #D5DEEA;
  text-decoration: none;
}

.orders-panel .orders-table-row {
  cursor: pointer;
}

.orders-panel .orders-table-row:hover {
  background: #fafaf9;
}

.order-modal-card {
  padding: 1.25rem 1.35rem !important;
}

.order-modal-header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #78716c;
}

.order-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0;
}

.order-modal-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .order-modal-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.order-flow-step {
  border: 1px solid #e7e5e4;
  background: #fafaf9;
  border-radius: 0.625rem;
  padding: 0.55rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #57534e;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms;
}

.order-flow-step.is-current {
  color: #fff;
  border-color: transparent;
}

.order-flow-step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.order-modal-meta div { margin: 0; }

.order-modal-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: #78716c;
  margin-bottom: 0.15rem;
}

.order-modal-meta dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1c1917;
}

.order-modal-total {
  color: #0A3C34 !important;
  font-size: 1.05rem !important;
}

.order-modal-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #44403c;
  margin-bottom: 0.5rem !important;
}

.order-modal-details {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #292524;
  white-space: pre-wrap;
}

.order-modal-actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e7e5e4;
}

.order-modal-quick-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.order-modal-payment-status {
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.order-modal-bank-pre {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.order-modal-proofs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.order-proof-card {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  background: #fff;
}

.order-proof-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.order-proof-notes {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #57534e;
}

.order-proof-media {
  margin-top: 0.5rem;
}

.order-proof-image {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 0.5rem;
  border: 1px solid #e7e5e4;
  object-fit: contain;
  background: #fafaf9;
}

.order-modal-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.order-card-payment-badge {
  margin: 0.15rem 0 0.35rem;
}

.order-card.has-payment-pending {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.dark .order-modal-bank-pre,
.dark .order-proof-card {
  background: #1c1917;
  border-color: #44403c;
  color: #fafaf9;
}

.dark .order-proof-notes {
  color: #d6d3d1;
}

.dark .orders-panel .orders-header h2,
.dark .orders-panel .orders-column-title,
.dark .orders-panel .order-card-customer,
.dark .orders-panel .orders-pipeline-label,
.dark .order-modal-header h3,
.dark .order-modal-meta dd {
  color: #fafaf9;
}

.dark .orders-panel .orders-view-toggle {
  background: #292524;
  border-color: #44403c;
}

.dark .orders-panel .orders-view-btn { color: #a8a29e; }

.dark .orders-panel .orders-view-btn.is-active {
  background: #1c1917;
  color: #fafaf9;
}

.dark .orders-panel .orders-pipeline-step,
.dark .orders-panel .order-card,
.dark .orders-panel .orders-board-wrap {
  background: #1c1917;
  border-color: #44403c;
}

.dark .orders-panel .orders-column {
  background: #141210;
  border-color: #44403c;
}

.dark .orders-panel .orders-column-head {
  background: #1c1917;
  border-color: #44403c;
}

.dark .orders-panel .orders-column-body.is-drag-over {
  background: color-mix(in srgb, var(--column-color, #9aabbc) 12%, #141210);
}

.dark .orders-panel .order-card-details,
.dark .orders-panel .orders-header-sub,
.dark .orders-panel .orders-pipeline-hint,
.dark .orders-panel .orders-board-hint {
  color: #a8a29e;
}

.dark .orders-panel .order-card-open {
  background: #0A3C3455;
  color: #9DD4C6;
}

.dark .orders-panel .orders-live-badge {
  background: #0A3C3466;
  color: #9DD4C6;
}

.dark .orders-panel .orders-table-row:hover {
  background: #292524;
}

.dark .order-modal-details,
.dark .order-flow-step {
  background: #292524;
  border-color: #44403c;
  color: #e7e5e4;
}

/* Catálogo tienda — cards con imagen */
.catalog-card {
  padding: 0 !important;
}

.catalog-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #F0F7F5 0%, #D5DEEA 100%);
  overflow: hidden;
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.catalog-card:hover .catalog-card-media img {
  transform: scale(1.03);
}

.catalog-card-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4D7399;
}

.catalog-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.dark .catalog-card-media {
  background: linear-gradient(145deg, #0f1c30 0%, #136D5C 100%);
}

.dark .catalog-card-media--empty {
  color: #9DD4C6;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 9999px;
  background: #136D5C;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid #d5dee8;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A3C34;
  cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
}

.slot-chip:hover {
  border-color: #136D5C;
}

.slot-chip.is-selected {
  background: #136D5C;
  border-color: #136D5C;
  color: #fff;
}

.dark .slot-chip {
  background: #0f1c30;
  border-color: #136D5C;
  color: #e7e5e4;
}

.dark .slot-chip.is-selected {
  background: #136D5C;
  border-color: #136D5C;
  color: #fff;
}

#product-detail-modal .form-grid input,
#cart-modal .form-grid input,
#cart-modal .form-grid textarea,
#booking-modal .form-grid input,
#booking-modal .form-grid textarea,
#product-detail-qty {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  background: #fff;
}

.dark #product-detail-modal .form-grid input,
.dark #cart-modal .form-grid input,
.dark #cart-modal .form-grid textarea,
.dark #booking-modal .form-grid input,
.dark #booking-modal .form-grid textarea,
.dark #product-detail-qty {
  background: #292524;
  border-color: #44403c;
  color: #fafaf9;
}

/* ═══════════════ Tienda pública — shell moderno ═══════════════ */
.store-shell {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(19, 109, 92, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(42, 79, 122, 0.1), transparent 45%),
    linear-gradient(180deg, #F7F8F7 0%, #F0F7F5 100%);
}

.dark .store-shell {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(19, 109, 92, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(42, 79, 122, 0.18), transparent 45%),
    linear-gradient(180deg, #051F1A 0%, #0A3C34 100%);
}

.store-wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .store-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.store-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  transition: background 220ms ease, backdrop-filter 220ms ease, box-shadow 220ms ease;
}

.store-nav.is-solid {
  background: rgba(244, 246, 249, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(10, 60, 52, 0.06);
}

.dark .store-nav.is-solid {
  background: rgba(7, 21, 41, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.store-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.store-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  transition: color 180ms ease;
}
.store-nav-brand .brand-mark {
  flex: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.store-nav.is-solid .store-nav-brand .brand-mark {
  filter: none;
}

.store-nav.is-solid .store-nav-brand {
  color: #0A3C34;
}

.dark .store-nav.is-solid .store-nav-brand {
  color: #fff;
}

.store-nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.store-nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 150ms;
}

.store-nav-links a:hover {
  color: #fff;
}

.store-nav.is-solid .store-nav-links a {
  color: #475569;
}

.store-nav.is-solid .store-nav-links a:hover {
  color: #136D5C;
}

.dark .store-nav.is-solid .store-nav-links a {
  color: #9DD4C6;
}

@media (min-width: 768px) {
  .store-nav-links { display: flex; }
}

.store-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.store-icon-btn,
.store-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, transform 150ms;
}

.store-icon-btn:hover,
.store-cart-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.store-nav.is-solid .store-icon-btn,
.store-nav.is-solid .store-cart-btn {
  border-color: #d5dee8;
  background: #fff;
  color: #0A3C34;
}

.dark .store-nav.is-solid .store-icon-btn,
.dark .store-nav.is-solid .store-cart-btn {
  border-color: #136D5C;
  background: #0f1c30;
  color: #e7e5e4;
}

.store-cta-sm {
  display: none;
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  background: #136D5C;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms, transform 150ms;
}

.store-cta-sm:hover {
  background: #0F5A4C;
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .store-cta-sm { display: inline-flex; }
}

/* Hero */
.store-hero {
  position: relative;
  min-height: min(78vh, 36rem);
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 3.5rem;
  overflow: hidden;
  color: #fff;
}

.store-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(19, 109, 92, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(122, 151, 181, 0.2), transparent 50%),
    linear-gradient(145deg, #051F1A 0%, #0A3C34 48%, #136D5C 100%);
  z-index: 0;
}

.store-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.store-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.store-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 41, 0.35) 0%, rgba(7, 21, 41, 0.78) 55%, rgba(7, 21, 41, 0.92) 100%);
}

.store-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.store-hero-copy {
  max-width: 36rem;
  animation: store-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.store-hero-brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.store-hero-brand span {
  color: #136D5C;
}

.store-hero-lead {
  margin: 0 0 0.65rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-hero-more {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff9a7a;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.store-hero-more:hover {
  color: #fff;
}

.store-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store-hero-actions .btn {
  box-shadow: 0 10px 28px -12px rgba(19, 109, 92, 0.55);
}

.store-hero-actions .btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
}

.store-hero-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.store-hero-loading {
  margin: 0;
  opacity: 0.8;
}

@keyframes store-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.store-main {
  position: relative;
}

.store-section-head {
  margin-bottom: 1.75rem;
}

.store-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #136D5C;
}

.store-section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0A3C34;
}

.dark .store-section-head h2 {
  color: #fff;
}

.store-section-lead {
  margin: 0.5rem 0 0;
  color: #64748b;
  max-width: 40ch;
}

.dark .store-section-lead {
  color: #9DD4C6;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .store-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}

.store-catalog {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.store-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.35rem 0 1.35rem;
}

.store-category-chip {
  appearance: none;
  border: 1px solid rgba(10, 60, 52, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.store-category-chip:hover {
  border-color: rgba(19, 109, 92, 0.35);
  color: #0A3C34;
}

.store-category-chip.is-active {
  border-color: rgba(19, 109, 92, 0.55);
  background: rgba(19, 109, 92, 0.1);
  color: #0A3C34;
}

.dark .store-category-chip {
  background: rgba(15, 28, 48, 0.72);
  border-color: rgba(168, 187, 207, 0.16);
  color: #9DD4C6;
}

.dark .store-category-chip:hover,
.dark .store-category-chip.is-active {
  color: #fff;
  border-color: rgba(19, 109, 92, 0.45);
  background: rgba(19, 109, 92, 0.14);
}

.store-category-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.store-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(10, 60, 52, 0.08);
}

.dark .store-category-head {
  border-bottom-color: rgba(168, 187, 207, 0.14);
}

.store-category-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #0A3C34;
}

.dark .store-category-head h3 {
  color: #fff;
}

.store-category-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.dark .store-category-count {
  color: #9DD4C6;
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 60, 52, 0.06);
  box-shadow: 0 18px 40px -28px rgba(10, 60, 52, 0.35);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: store-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(10, 60, 52, 0.4);
  border-color: rgba(19, 109, 92, 0.28);
}

.dark .store-card {
  background: rgba(15, 28, 48, 0.88);
  border-color: rgba(168, 187, 207, 0.12);
}

.store-card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #F0F7F5, #D5DEEA);
}

.dark .store-card-media {
  background: linear-gradient(145deg, #0f1c30, #136D5C);
}

.store-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.store-card:hover .store-card-media img {
  transform: scale(1.05);
}

.store-card-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4D7399;
}

.store-card-price-tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(7, 21, 41, 0.78);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.store-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.1rem;
  flex: 1;
}

.store-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.store-card-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5A8A7E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-card-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

.store-card-more {
  display: inline-flex;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #136D5C;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.store-card-more:hover {
  color: #e04a28;
}

.store-card-title-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.store-card-title-btn:hover {
  color: #136D5C;
}

.dark .store-card-desc {
  color: #9DD4C6;
}

.store-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.store-hours {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 60, 52, 0.06);
  font-size: 0.875rem;
  color: #475569;
}

.dark .store-hours {
  background: rgba(15, 28, 48, 0.7);
  border-color: rgba(168, 187, 207, 0.12);
  color: #9DD4C6;
}

.store-contact {
  display: grid;
  gap: 0.85rem;
}

.store-contact-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 60, 52, 0.06);
}

.dark .store-contact-row {
  background: rgba(15, 28, 48, 0.8);
  border-color: rgba(168, 187, 207, 0.12);
}

.store-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F0F7F5;
  color: #0A3C34;
  flex-shrink: 0;
}

.dark .store-contact-icon {
  background: rgba(122, 151, 181, 0.15);
  color: #9DD4C6;
}

.store-map-embed {
  width: 100%;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(10, 60, 52, 0.08);
  aspect-ratio: 16 / 10;
  min-height: 220px;
  background: #F0F7F5;
}

.dark .store-map-embed {
  border-color: rgba(168, 187, 207, 0.12);
  background: rgba(15, 28, 48, 0.9);
}

.store-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.store-footer {
  border-top: 1px solid rgba(10, 60, 52, 0.06);
  padding: 1.75rem 0 2.5rem;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.dark .store-footer {
  border-top-color: rgba(168, 187, 207, 0.12);
}

.store-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.store-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
}

.store-legal a {
  color: #64748b;
  text-decoration: none;
}

.store-legal a:hover {
  color: #136D5C;
}

.store-fab {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  border: none;
  border-radius: 9999px;
  background: #136D5C;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(19, 109, 92, 0.55);
  cursor: pointer;
  animation: store-rise 400ms ease both;
}

.store-fab:hover {
  background: #0F5A4C;
}

@media (min-width: 768px) {
  .store-fab {
    display: none !important;
  }
}

.store-toast.is-ok {
  background: #0A3C34;
}

.store-toast {
  position: sticky;
  top: 4.75rem;
  z-index: 30;
  padding: 0.85rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #0A3C34;
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(10, 60, 52, 0.5);
  animation: store-rise 320ms ease both;
}

.store-toast.is-error {
  background: #991b1b;
}

.store-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms, transform 220ms;
}

/* Modals */
.store-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(7, 21, 41, 0.45);
  backdrop-filter: blur(6px);
}

@media (min-width: 640px) {
  .store-modal {
    align-items: center;
    padding: 1rem;
  }
}

.store-modal-panel {
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 24px 60px -20px rgba(7, 21, 41, 0.45);
  animation: store-sheet 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 640px) {
  .store-modal-panel {
    border-radius: 1.25rem;
  }
}

.dark .store-modal-panel {
  background: #0f1c30;
}

@keyframes store-sheet {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.store-modal-panel--media {
  max-width: 28rem;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.store-modal-media {
  aspect-ratio: 5 / 4;
  background: linear-gradient(145deg, #F0F7F5, #D5DEEA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4D7399;
}

.store-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-modal-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.store-modal-title {
  margin: 0.15rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.store-modal-text {
  margin: 0;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.store-modal-desc {
  margin-top: 0.75rem;
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
}

.dark .store-modal-text {
  color: #9DD4C6;
}

.store-price {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A3C34;
}

.dark .store-price {
  color: #9DD4C6;
}

.store-form {
  display: grid;
  gap: 0.9rem;
}

.store-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.dark .store-field {
  color: #d6d3d1;
}

.store-field-label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.store-field input,
.store-field textarea,
.store-modal-body input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d5dee8;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  background: #fff;
  color: inherit;
}

.dark .store-field input,
.dark .store-field textarea,
.dark .store-modal-body input[type="number"] {
  background: #083028;
  border-color: #136D5C;
}

.store-field input:focus,
.store-field textarea:focus {
  outline: none;
  border-color: #136D5C;
  box-shadow: 0 0 0 3px rgba(19, 109, 92, 0.18);
}

.store-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.store-cart-lines {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.store-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(10, 60, 52, 0.08);
}

.dark .store-cart-total {
  border-top-color: rgba(168, 187, 207, 0.12);
}

.store-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

body.store-modal-open {
  overflow: hidden;
}

.store-empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #64748b;
  border: 1px dashed rgba(10, 60, 52, 0.15);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.45);
}

.dark .store-empty {
  border-color: rgba(168, 187, 207, 0.2);
  background: rgba(15, 28, 48, 0.45);
  color: #9DD4C6;
}

.store-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-social-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #F0F7F5;
  color: #0A3C34;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms, color 150ms, transform 150ms;
}

.store-social-chip:hover {
  background: #136D5C;
  color: #fff;
  transform: translateY(-1px);
}

.dark .store-social-chip {
  background: rgba(122, 151, 181, 0.15);
  color: #E7E5E4;
}

.store-bank-list {
  display: grid;
  gap: 0.65rem;
}

.store-bank-item {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: #F7F8F7;
}

.dark .store-bank-item {
  background: rgba(7, 21, 41, 0.55);
}

.store-track-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 60, 52, 0.06);
}

.dark .store-track-form {
  background: rgba(15, 28, 48, 0.88);
  border-color: rgba(168, 187, 207, 0.12);
}

.store-track-result {
  margin-top: 1rem;
  max-width: 28rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.15rem;
  background: rgba(10, 60, 52, 0.04);
  border: 1px solid rgba(10, 60, 52, 0.08);
}

.dark .store-track-result {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 187, 207, 0.12);
}

.store-track-code {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  background: #0A3C34;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Bank account tabs (admin negocio) */
.bank-accounts-editor {
  display: grid;
  gap: 0.75rem;
}

.bank-accounts-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bank-account-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #d6dee8;
  background: #fff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms, box-shadow 150ms;
}

.bank-account-tab:hover {
  border-color: #136D5C;
  color: #0A3C34;
}

.bank-account-tab.is-active {
  background: #0A3C34;
  border-color: #0A3C34;
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(10, 60, 52, 0.55);
}

.bank-account-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}

.bank-account-tab-hint {
  opacity: 0.72;
  font-weight: 500;
  font-size: 0.75rem;
}

.bank-account-tab-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(19, 109, 92, 0.16);
  color: #0F5A4C;
}

.bank-account-tab.is-active .bank-account-tab-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.dark .bank-account-tab {
  background: #0f1c30;
  border-color: #136D5C;
  color: #9DD4C6;
}

.dark .bank-account-tab:hover {
  color: #fff;
  border-color: #136D5C;
}

.dark .bank-account-tab.is-active {
  background: #136D5C;
  border-color: #136D5C;
  color: #fff;
}

.bank-accounts-panels {
  border: 1px solid #d6dee8;
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.95rem;
}

.dark .bank-accounts-panels {
  border-color: #136D5C;
  background: #0f1c30;
}

.bank-account-panel[hidden] {
  display: none !important;
}

/* Promotion product picker */
.promo-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 1.5rem;
}

.promo-product-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #d6dee8;
  background: #F7F8F7;
  color: #0A3C34;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.promo-product-chip:hover {
  border-color: #136D5C;
  color: #0F5A4C;
}

.dark .promo-product-chip {
  background: #0f1c30;
  border-color: #136D5C;
  color: #E7E5E4;
}

.promo-product-picker {
  max-height: 14rem;
  overflow: auto;
  border: 1px solid #d6dee8;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.35rem;
}

.dark .promo-product-picker {
  border-color: #136D5C;
  background: #0f1c30;
}

.promo-product-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.promo-product-option:hover {
  background: rgba(10, 60, 52, 0.05);
}

.dark .promo-product-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.promo-product-option input {
  margin-top: 0.2rem;
}

.promo-product-option-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.promo-preview-products {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(10, 60, 52, 0.08);
}

.dark .promo-preview-products {
  border-top-color: rgba(168, 187, 207, 0.15);
}

.store-location-box {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(10, 60, 52, 0.04);
  border: 1px solid rgba(10, 60, 52, 0.08);
}

.dark .store-location-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 187, 207, 0.12);
}

/* ── Conversaciones (admin chat) ── */
.conversation-modal-card {
  min-height: min(70vh, 36rem);
}

.conversation-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(10, 60, 52, 0.1);
  background: rgba(244, 246, 249, 0.9);
}

.dark .conversation-modal-header {
  border-bottom-color: rgba(168, 187, 207, 0.12);
  background: rgba(7, 21, 41, 0.85);
}

.conversation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #78716c;
}

.dark .conversation-meta {
  color: #a8a29e;
}

.conversation-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.conversation-thread.messages {
  flex: 1;
  max-height: none;
  min-height: 18rem;
  gap: 0.65rem;
  padding: 1rem 1.1rem 1.25rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(122, 151, 181, 0.12), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(10, 60, 52, 0.06), transparent 40%),
    #eef2f6;
  overflow-y: auto;
}

.dark .conversation-thread.messages {
  background:
    radial-gradient(circle at 12% 8%, rgba(122, 151, 181, 0.08), transparent 42%),
    #0a1628;
}

.conversation-day-sep {
  align-self: center;
  margin: 0.35rem 0;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #57534e;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 60, 52, 0.08);
}

.dark .conversation-day-sep {
  color: #d6d3d1;
  background: rgba(15, 28, 48, 0.9);
  border-color: rgba(168, 187, 207, 0.15);
}

.conversation-thread .message {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: min(88%, 28rem);
  box-shadow: 0 1px 2px rgba(10, 60, 52, 0.06);
}

.conversation-thread .message.inbound {
  align-self: flex-start;
  border-radius: 1rem 1rem 1rem 0.35rem;
  background: #ffffff;
  border: 1px solid rgba(10, 60, 52, 0.08);
  color: #1c1917;
}

.conversation-thread .message.outbound {
  align-self: flex-end;
  border-radius: 1rem 1rem 0.35rem 1rem;
  background: #0A3C34;
  border: 1px solid rgba(10, 60, 52, 0.2);
  color: #f8fafc;
}

.dark .conversation-thread .message.inbound {
  background: #13233a;
  border-color: rgba(168, 187, 207, 0.14);
  color: #f5f5f4;
}

.dark .conversation-thread .message.outbound {
  background: #1e3a5f;
  border-color: rgba(122, 151, 181, 0.35);
  color: #f8fafc;
}

.message-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.72;
}

.message-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.message-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  opacity: 0.7;
}

.message-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(10, 60, 52, 0.08);
}

.conversation-thread .message.outbound .message-type-chip {
  background: rgba(255, 255, 255, 0.14);
}

.conversation-empty,
.conversation-loading {
  margin: auto;
  text-align: center;
  color: #78716c;
  font-size: 0.875rem;
  padding: 2rem 1rem;
}

.dark .conversation-empty,
.dark .conversation-loading {
  color: #a8a29e;
}

.conversation-row {
  cursor: pointer;
}

.conversation-row:hover td {
  background: rgba(122, 151, 181, 0.08);
}

.conversation-client {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.conversation-avatar {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0A3C34;
  background: #dbe4ee;
}

.dark .conversation-avatar {
  color: #e8eef5;
  background: #1a3760;
}

.conversation-client-text {
  min-width: 0;
}

.conversation-client-text strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-client-sub {
  font-size: 0.72rem;
  color: #78716c;
}

.dark .conversation-client-sub {
  color: #a8a29e;
}

/* Odontograma FDI — historial clínico */
.clinical-odo-mode {
  display: inline-flex;
  border: 1px solid #d6d3d1;
  border-radius: 0.5rem;
  overflow: hidden;
}
.dark .clinical-odo-mode {
  border-color: #57534e;
}
.clinical-odo-mode-btn {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #57534e;
  cursor: pointer;
}
.dark .clinical-odo-mode-btn {
  color: #a8a29e;
}
.clinical-odo-mode-btn.is-active {
  background: #1c1917;
  color: #fafaf9;
}
.dark .clinical-odo-mode-btn.is-active {
  background: #fafaf9;
  color: #1c1917;
}
.clinical-odontogram {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  user-select: none;
}
.clinical-odo-arch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.7rem;
}
.clinical-odo-quad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.clinical-odo-tooth {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.35rem;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #44403c;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.dark .clinical-odo-tooth {
  background: #292524;
  border-color: #57534e;
  color: #e7e5e4;
}
.clinical-odo-tooth:hover {
  border-color: #78716c;
}
.clinical-odo-tooth.is-caries {
  background: #fecaca;
  border-color: #ef4444;
  color: #7f1d1d;
}
.dark .clinical-odo-tooth.is-caries {
  background: #7f1d1d;
  border-color: #f87171;
  color: #fecaca;
}
.clinical-odo-tooth.is-sealant {
  background: #bfdbfe;
  border-color: #3b82f6;
  color: #1e3a8a;
}
.dark .clinical-odo-tooth.is-sealant {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #bfdbfe;
}
.clinical-odo-tooth.is-caries.is-sealant {
  background: linear-gradient(135deg, #fecaca 50%, #bfdbfe 50%);
  border-color: #78716c;
  color: #1c1917;
}
.dark .clinical-odo-tooth.is-caries.is-sealant {
  background: linear-gradient(135deg, #7f1d1d 50%, #1e3a8a 50%);
  color: #fafaf9;
}
.clinical-odo-midline {
  width: 1px;
  align-self: stretch;
  background: #d6d3d1;
  margin: 0 0.15rem;
}
.dark .clinical-odo-midline {
  background: #57534e;
}

/* Indicadores de calidad — audio clínico */
.clinical-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .clinical-quality-grid {
    grid-template-columns: 1fr;
  }
}
.clinical-quality-card {
  border: 1px solid #e7e5e4;
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
}
.dark .clinical-quality-card {
  background: #1c1917;
  border-color: #44403c;
}
.clinical-quality-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #57534e;
  margin-bottom: 0.45rem;
}
.dark .clinical-quality-head {
  color: #a8a29e;
}
.clinical-quality-head strong {
  font-size: 1.05rem;
  color: #1c1917;
}
.dark .clinical-quality-head strong {
  color: #fafaf9;
}
.clinical-quality-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #e7e5e4;
  overflow: hidden;
}
.dark .clinical-quality-bar {
  background: #44403c;
}
.clinical-quality-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0d9488;
  transition: width 0.35s ease;
}
.clinical-quality-bar.is-mid > span {
  background: #d97706;
}
.clinical-quality-bar.is-low > span {
  background: #dc2626;
}
.clinical-quality-label {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #78716c;
}
.dark .clinical-quality-label {
  color: #a8a29e;
}

/* —— Historial clínico: listado y modal —— */
.clinical-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}
.dark .clinical-kicker {
  color: #5eead4;
}
.clinical-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid #ccfbf1;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(45, 212, 191, 0.18), transparent 55%),
    linear-gradient(135deg, #f0fdfa 0%, #f8fafc 48%, #ecfeff 100%);
}
.dark .clinical-hero {
  border-color: #134e4a;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
    linear-gradient(135deg, #042f2e 0%, #1c1917 55%, #0c4a6e 140%);
}
.clinical-hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #134e4a;
  margin-top: 0.2rem !important;
}
.dark .clinical-hero-title {
  color: #ccfbf1;
}
.clinical-hero-sub {
  margin-top: 0.35rem !important;
  max-width: 36rem;
  color: #57534e;
  font-size: 0.92rem;
  line-height: 1.45;
}
.dark .clinical-hero-sub {
  color: #a8a29e;
}
.clinical-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.clinical-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 900px) {
  .clinical-shortcuts {
    grid-template-columns: 1fr;
  }
}
.clinical-shortcut {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #e7e5e4;
  background: #fff;
}
.dark .clinical-shortcut {
  background: #1c1917;
  border-color: #44403c;
}
.clinical-shortcut-index {
  flex: none;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ccfbf1;
  color: #115e59;
  font-size: 0.72rem;
  font-weight: 800;
}
.dark .clinical-shortcut-index {
  background: #134e4a;
  color: #99f6e4;
}
.clinical-shortcut strong {
  display: block;
  font-size: 0.9rem;
  color: #1c1917;
}
.dark .clinical-shortcut strong {
  color: #fafaf9;
}
.clinical-shortcut p {
  margin-top: 0.15rem !important;
  font-size: 0.78rem;
  color: #78716c;
  line-height: 1.35;
}
.dark .clinical-shortcut p {
  color: #a8a29e;
}
.clinical-import-modal-card {
  border-radius: 1rem;
}
.clinical-import-modal-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.clinical-import-modal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.clinical-import-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.clinical-import-result {
  color: inherit;
}
.clinical-import-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.clinical-import-metric {
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  background: rgba(12, 74, 110, 0.06);
  border: 1px solid rgba(12, 74, 110, 0.12);
}
.dark .clinical-import-metric {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}
.clinical-import-metric span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
}
.clinical-import-metric strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
}
.clinical-import-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.9rem;
}
@media (min-width: 720px) {
  .clinical-import-columns {
    grid-template-columns: 1fr 1fr;
  }
}
.clinical-import-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
}
.clinical-import-notes {
  white-space: pre-wrap;
  font-size: 0.78rem;
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.04);
  max-height: 12rem;
  overflow: auto;
}
.dark .clinical-import-notes {
  background: rgba(255, 255, 255, 0.05);
}
.clinical-table-shell {
  overflow: hidden;
}
.clinical-table-head {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #e7e5e4;
  background: #fafaf9;
}
.dark .clinical-table-head {
  background: #292524;
  border-bottom-color: #44403c;
}
.clinical-table-head h3 {
  color: #1c1917;
}
.dark .clinical-table-head h3 {
  color: #fafaf9;
}
.clinical-table td,
.clinical-table th {
  vertical-align: middle;
}
.clinical-date-chip {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dark .clinical-date-chip {
  background: #164e63;
  color: #a5f3fc;
}
.clinical-patient-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 10rem;
}
.clinical-patient-cell strong {
  color: #1c1917;
  font-size: 0.92rem;
}
.dark .clinical-patient-cell strong {
  color: #fafaf9;
}
.clinical-patient-cell span {
  color: #78716c;
  font-size: 0.72rem;
}
.dark .clinical-patient-cell span {
  color: #a8a29e;
}
.clinical-patient-row {
  cursor: pointer;
}
.clinical-patient-row:hover {
  background: rgba(13, 148, 136, 0.06);
}
.dark .clinical-patient-row:hover {
  background: rgba(45, 212, 191, 0.08);
}
.clinical-patient-row.is-selected {
  background: rgba(13, 148, 136, 0.12);
}
.dark .clinical-patient-row.is-selected {
  background: rgba(45, 212, 191, 0.14);
}
.clinical-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.clinical-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.clinical-modal-card {
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.18);
}
.clinical-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #e7e5e4;
  background:
    linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%);
  position: sticky;
  top: 0;
  z-index: 3;
}
.dark .clinical-modal-header {
  border-bottom-color: #44403c;
  background: linear-gradient(180deg, #042f2e 0%, #1c1917 75%);
}
.clinical-modal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid #e7e5e4;
  background: #fafaf9;
  position: sticky;
  top: 0;
  z-index: 2;
}
.dark .clinical-modal-nav {
  border-bottom-color: #44403c;
  background: #1c1917;
}
.clinical-nav-chip {
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #44403c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}
.dark .clinical-nav-chip {
  background: #292524;
  border-color: #57534e;
  color: #e7e5e4;
}
.clinical-nav-chip:hover,
.clinical-nav-chip.is-active {
  border-color: #14b8a6;
  background: #f0fdfa;
  color: #115e59;
}
.dark .clinical-nav-chip:hover,
.dark .clinical-nav-chip.is-active {
  background: #134e4a;
  border-color: #2dd4bf;
  color: #ccfbf1;
}
.clinical-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #134e4a;
}
.dark .clinical-modal-title {
  color: #ccfbf1;
}
.clinical-modal-body {
  padding: 0.75rem 1rem 1rem;
  flex: 1;
  min-height: 0;
}
.clinical-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.clinical-key-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .clinical-key-pair {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
.clinical-section {
  border: 1px solid #e7e5e4;
  border-radius: 0.8rem;
  padding: 0.85rem 0.95rem;
  background: #fff;
}
.clinical-section-compact {
  padding: 0.7rem 0.85rem;
}
.clinical-section-key {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 45%);
}
.dark .clinical-section {
  background: #1c1917;
  border-color: #44403c;
}
.dark .clinical-section-key {
  border-color: #134e4a;
  background: linear-gradient(180deg, #042f2e 0%, #1c1917 50%);
}
.clinical-form-dense {
  gap: 0.55rem 0.75rem !important;
}
.clinical-form-dense label {
  font-size: 0.8rem;
}
.clinical-form-dense input,
.clinical-form-dense select,
.clinical-form-dense textarea,
.clinical-field-block textarea,
#clinical-form textarea {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid #d6d3d1;
  border-radius: 0.55rem;
  background: #fff;
  color: #1c1917;
  font: inherit;
  line-height: 1.45;
  padding: 0.55rem 0.7rem;
  resize: vertical;
  min-height: 2.5rem;
  box-shadow: none;
}
.dark .clinical-form-dense input,
.dark .clinical-form-dense select,
.dark .clinical-form-dense textarea,
.dark .clinical-field-block textarea,
.dark #clinical-form textarea {
  background: #292524;
  border-color: #57534e;
  color: #fafaf9;
}
#clinical-form textarea.clinical-autosize {
  overflow: hidden;
  field-sizing: content;
  min-height: 2.75rem;
  max-height: 14rem;
}
#clinical-form input[type="number"]::-webkit-outer-spin-button,
#clinical-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#clinical-form input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.clinical-field-block {
  display: block;
}
.clinical-details {
  padding: 0;
  overflow: hidden;
}
.clinical-details-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  margin: 0 !important;
  user-select: none;
}
.clinical-details-summary::-webkit-details-marker {
  display: none;
}
.clinical-details-hint {
  margin-left: 0.15rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #a8a29e;
}
.clinical-details-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid #f5f5f4;
}
.dark .clinical-details-body {
  border-top-color: #292524;
}
.clinical-details[open] .clinical-details-hint {
  display: none;
}
.clinical-section-audio {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(14, 165, 233, 0.1), transparent 50%),
    #fff;
}
.dark .clinical-section-audio {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    #1c1917;
}
.clinical-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.clinical-section-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
}
.dark .clinical-section-eyebrow {
  color: #5eead4;
}
.clinical-section-title {
  margin-top: 0.15rem !important;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1c1917;
}
.dark .clinical-section-title {
  color: #fafaf9;
}
.clinical-section-legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  float: none;
  width: 100%;
  padding: 0;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c1917;
}
.dark .clinical-section-legend {
  color: #fafaf9;
}
.clinical-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 0.45rem;
  background: #134e4a;
  color: #ecfdf5;
  font-size: 0.72rem;
  font-weight: 800;
}
.dark .clinical-step {
  background: #14b8a6;
  color: #042f2e;
}
.clinical-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
@media (max-width: 720px) {
  .clinical-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.clinical-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid #e7e5e4;
  background: #fafaf9;
  font-size: 0.8rem;
  color: #44403c;
  cursor: pointer;
}
.dark .clinical-check {
  background: #292524;
  border-color: #57534e;
  color: #e7e5e4;
}
.clinical-check:has(input:checked) {
  border-color: #14b8a6;
  background: #f0fdfa;
  color: #115e59;
}
.dark .clinical-check:has(input:checked) {
  background: #134e4a;
  border-color: #2dd4bf;
  color: #ccfbf1;
}
.clinical-mic-timer {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #b91c1c;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #fef2f2;
}
.dark .clinical-mic-timer {
  background: #7f1d1d;
  color: #fecaca;
}
.clinical-odontogram-panel {
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px dashed #99f6e4;
  background: #f0fdfa;
}
.dark .clinical-odontogram-panel {
  border-color: #134e4a;
  background: #042f2e;
}
.clinical-fees-wrap {
  border: 1px solid #e7e5e4;
  border-radius: 0.65rem;
}
.dark .clinical-fees-wrap {
  border-color: #44403c;
}
.clinical-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: sticky;
  bottom: 0;
  padding: 0.85rem 0 0.15rem;
  margin-top: 0.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
}
.dark .clinical-modal-footer {
  background: linear-gradient(180deg, rgba(28,25,23,0), #1c1917 28%);
}

.clinical-section-disabled {
  display: none !important;
}
.clinical-template-modal-card {
  border: 1px solid #e7e5e4;
}
.dark .clinical-template-modal-card {
  border-color: #44403c;
}
.clinical-template-editor {
  padding: 1rem 1.15rem 1.25rem;
}
.clinical-template-library {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .clinical-template-library {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}
.clinical-template-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.clinical-template-block-title {
  font-size: 0.85rem;
  font-weight: 650;
  color: #44403c;
}
.dark .clinical-template-block-title {
  color: #e7e5e4;
}
.clinical-template-sections,
.clinical-template-flags {
  display: grid;
  gap: 0.55rem;
}
.clinical-template-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.65rem;
  background: #fafaf9;
}
.dark .clinical-template-row {
  border-color: #44403c;
  background: #292524;
}
.clinical-template-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.clinical-template-row input[type="text"] {
  min-width: 12rem;
  flex: 1;
}
.clinical-template-row-extra {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.15rem;
}
.clinical-template-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin: 0;
}

.clinical-section-legend {
  justify-content: flex-start;
  gap: 0.55rem;
}
.clinical-section-legend .clinical-dictar-btn {
  margin-left: auto;
}
.clinical-recording-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0;
  padding: 0.75rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}
.dark .clinical-recording-bar {
  background: #7f1d1d;
  border-color: #f87171;
  color: #fecaca;
}
.clinical-recording-bar strong {
  margin-right: 0.4rem;
}
.clinical-recording-bar .clinical-mic-timer {
  margin-left: 0.5rem;
}

/* Historial clínico — panel del paciente + línea de tiempo */
.clinical-history-panel {
  overflow: hidden;
}
.clinical-history-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.05rem;
  border-bottom: 1px solid #99f6e4;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(45, 212, 191, 0.18), transparent 55%),
    linear-gradient(135deg, #f0fdfa 0%, #ffffff 55%, #ecfeff 120%);
}
.dark .clinical-history-hero {
  border-bottom-color: #134e4a;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(45, 212, 191, 0.14), transparent 55%),
    linear-gradient(135deg, #042f2e 0%, #1c1917 58%, #0c4a6e 140%);
}
.clinical-history-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: min(100%, 22rem);
}
.clinical-patient-avatar {
  flex: none;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: #134e4a;
  color: #ecfdf5;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.dark .clinical-patient-avatar {
  background: #14b8a6;
  color: #042f2e;
}
.clinical-history-patient-name {
  margin-top: 0.15rem !important;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #134e4a;
  line-height: 1.2;
}
.dark .clinical-history-patient-name {
  color: #ccfbf1;
}
.clinical-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.clinical-history-sub {
  margin-top: 0.4rem !important;
  font-size: 0.78rem;
  color: #57534e;
  line-height: 1.35;
}
.dark .clinical-history-sub {
  color: #a8a29e;
}
.clinical-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: #44403c;
  font-size: 0.72rem;
  font-weight: 600;
}
.dark .clinical-meta-chip {
  background: rgba(28, 25, 23, 0.55);
  border-color: rgba(94, 234, 212, 0.22);
  color: #e7e5e4;
}
.clinical-meta-chip.is-accent {
  background: #ccfbf1;
  border-color: #5eead4;
  color: #115e59;
}
.dark .clinical-meta-chip.is-accent {
  background: #134e4a;
  border-color: #2dd4bf;
  color: #99f6e4;
}
.clinical-meta-chip.is-count {
  background: #134e4a;
  border-color: #134e4a;
  color: #ecfdf5;
}
.dark .clinical-meta-chip.is-count {
  background: #0f766e;
  border-color: #0f766e;
  color: #ecfdf5;
}
.clinical-history-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}
.clinical-view-toggle {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 118, 110, 0.18);
  gap: 0.15rem;
}
.dark .clinical-view-toggle {
  background: rgba(28, 25, 23, 0.55);
  border-color: rgba(94, 234, 212, 0.22);
}
.clinical-view-toggle-btn {
  border: 0;
  background: transparent;
  color: #57534e;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
.dark .clinical-view-toggle-btn {
  color: #a8a29e;
}
.clinical-view-toggle-btn.is-active {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.dark .clinical-view-toggle-btn.is-active {
  background: #134e4a;
  color: #99f6e4;
  box-shadow: none;
}
.clinical-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.15rem 1.15rem 1.4rem;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 30%);
}
.dark .clinical-timeline {
  background: linear-gradient(180deg, #0c1220 0%, #1c1917 35%);
}
.clinical-summary-empty {
  margin: 0.35rem 0;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed #d6d3d1;
  border-radius: 0.9rem;
  background: #fafaf9;
  color: #78716c;
}
.dark .clinical-summary-empty {
  border-color: #44403c;
  background: #292524;
  color: #a8a29e;
}
.clinical-summary-empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #1c1917;
  font-size: 0.95rem;
}
.dark .clinical-summary-empty strong {
  color: #fafaf9;
}
.clinical-timeline-item {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.85rem;
  position: relative;
}
.clinical-timeline-item + .clinical-timeline-item {
  margin-top: 0.85rem;
}
.clinical-timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.clinical-timeline-item:not(:last-child) .clinical-timeline-rail::after {
  content: "";
  position: absolute;
  top: 2.15rem;
  bottom: -0.85rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #5eead4 0%, #cbd5e1 100%);
}
.dark .clinical-timeline-item:not(:last-child) .clinical-timeline-rail::after {
  background: linear-gradient(180deg, #14b8a6 0%, #44403c 100%);
}
.clinical-timeline-dot {
  position: relative;
  z-index: 1;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #134e4a;
  color: #ecfdf5;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(204, 251, 241, 0.9);
}
.dark .clinical-timeline-dot {
  background: #14b8a6;
  color: #042f2e;
  box-shadow: 0 0 0 4px rgba(19, 78, 74, 0.8);
}
.clinical-timeline-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 0.95rem 1rem 1.05rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.dark .clinical-timeline-card {
  background: #1c1917;
  border-color: #44403c;
  box-shadow: none;
}
.clinical-timeline-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #f1f5f9;
}
.dark .clinical-timeline-card-head {
  border-bottom-color: #292524;
}
.clinical-timeline-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.clinical-visit-index {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 0.4rem;
  background: #134e4a;
  color: #ecfdf5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dark .clinical-visit-index {
  background: #14b8a6;
  color: #042f2e;
}
.clinical-visit-date {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dark .clinical-visit-date {
  background: #164e63;
  color: #a5f3fc;
}
.clinical-fees-compact {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.dark .clinical-fees-compact {
  background: #292524;
  border-color: #44403c;
}
.clinical-fees-compact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
.clinical-fees-compact-head > span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f766e;
}
.dark .clinical-fees-compact-head > span {
  color: #5eead4;
}
.clinical-fees-compact-head strong {
  font-size: 0.9rem;
  color: #1c1917;
}
.dark .clinical-fees-compact-head strong {
  color: #f5f5f4;
}
.clinical-fees-compact-head small {
  margin-left: 0.35rem;
  font-weight: 500;
  color: #78716c;
  font-size: 0.78rem;
}
.clinical-fees-compact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.clinical-fee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #44403c;
}
.dark .clinical-fee-chip {
  background: #1c1917;
  border-color: #57534e;
  color: #e7e5e4;
}
.clinical-fee-chip strong {
  font-weight: 700;
}
.clinical-fee-chip em {
  font-style: normal;
  font-weight: 800;
  color: #0f766e;
}
.dark .clinical-fee-chip em {
  color: #5eead4;
}
.clinical-fee-chip-more {
  color: #78716c;
  font-weight: 700;
}
.clinical-summary-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.clinical-visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .clinical-visit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.clinical-visit-block {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  min-height: 5.5rem;
}
.clinical-visit-block h4 {
  margin: 0 0 0.35rem !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.clinical-visit-block p {
  margin: 0 !important;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1c1917;
  white-space: pre-wrap;
  word-break: break-word;
  text-transform: none;
}
.dark .clinical-visit-block p {
  color: #f5f5f4;
}
.clinical-visit-block p .is-muted,
.clinical-summary-field dd.is-muted {
  color: #a8a29e;
  font-style: italic;
}
.clinical-visit-block-motivo {
  background: #fff7ed;
  border-color: #fed7aa;
}
.clinical-visit-block-motivo h4 { color: #c2410c; }
.dark .clinical-visit-block-motivo {
  background: rgba(154, 52, 18, 0.22);
  border-color: rgba(251, 146, 60, 0.35);
}
.dark .clinical-visit-block-motivo h4 { color: #fdba74; }
.clinical-visit-block-dx {
  background: #f0fdfa;
  border-color: #99f6e4;
}
.clinical-visit-block-dx h4 { color: #0f766e; }
.dark .clinical-visit-block-dx {
  background: rgba(15, 118, 110, 0.22);
  border-color: rgba(45, 212, 191, 0.35);
}
.dark .clinical-visit-block-dx h4 { color: #5eead4; }
.clinical-visit-block-plan {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.clinical-visit-block-plan h4 { color: #1d4ed8; }
.dark .clinical-visit-block-plan {
  background: rgba(29, 78, 216, 0.2);
  border-color: rgba(147, 197, 253, 0.35);
}
.dark .clinical-visit-block-plan h4 { color: #93c5fd; }
.clinical-visit-exam-line {
  margin-top: 0.7rem !important;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.4;
}
.dark .clinical-visit-exam-line {
  background: #292524;
  color: #a8a29e;
}
.clinical-visit-exam-line span {
  display: inline-block;
  margin-right: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  font-size: 0.68rem;
}
.dark .clinical-visit-exam-line span {
  color: #5eead4;
}
.clinical-visit-fees {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #e2e8f0;
}
.dark .clinical-visit-fees {
  border-top-color: #44403c;
}
.clinical-summary-fields {
  display: grid;
  gap: 0.7rem;
}
.clinical-summary-fields-extra {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e7e5e4;
}
.dark .clinical-summary-fields-extra {
  border-top-color: #44403c;
}
.clinical-summary-field {
  margin: 0;
}
.clinical-summary-field dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
}
.dark .clinical-summary-field dt {
  color: #5eead4;
}
.clinical-summary-field dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1c1917;
  white-space: pre-wrap;
  word-break: break-word;
}
.dark .clinical-summary-field dd {
  color: #f5f5f4;
}
.clinical-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.clinical-antecedent-notes {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.clinical-antecedent-note {
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.dark .clinical-antecedent-note {
  background: #292524;
  border-color: #44403c;
}
.clinical-antecedent-note-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
}
.dark .clinical-antecedent-note-label {
  color: #5eead4;
}
.clinical-antecedent-note p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1c1917;
  white-space: pre-wrap;
  word-break: break-word;
}
.dark .clinical-antecedent-note p {
  color: #f5f5f4;
}
.clinical-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ccfbf1;
  color: #115e59;
}
.dark .clinical-summary-chip {
  background: #134e4a;
  color: #99f6e4;
}
.clinical-summary-fees {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.clinical-summary-fees th,
.clinical-summary-fees td {
  text-align: left;
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid #e7e5e4;
}
.dark .clinical-summary-fees th,
.dark .clinical-summary-fees td {
  border-bottom-color: #44403c;
}
.clinical-history-table-wrap {
  padding: 0.85rem 1rem 1.1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
}
.dark .clinical-history-table-wrap {
  background: linear-gradient(180deg, #0c1220 0%, #1c1917 40%);
}
.clinical-history-table-wrap .clinical-table {
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
}
.dark .clinical-history-table-wrap .clinical-table {
  border-color: #44403c;
  background: #1c1917;
}
@media (max-width: 720px) {
  .clinical-history-hero {
    padding: 1rem;
  }
  .clinical-history-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .clinical-history-patient-name {
    font-size: 1.1rem;
  }
  .clinical-timeline {
    padding: 0.9rem;
  }
  .clinical-timeline-item {
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.65rem;
  }
  .clinical-timeline-dot {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.65rem;
  }
  .clinical-timeline-card {
    padding: 0.8rem;
  }
}
.clinical-summary-modal-card {
  border-radius: 1rem;
}
.clinical-summary-modal-body {
  padding: 1rem 1.15rem 1.25rem;
}
.clinical-summary-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid #e7e5e4;
  background: #fafaf9;
}
.dark .clinical-summary-modal-footer {
  border-top-color: #44403c;
  background: #1c1917;
}
