/* TuTurno Pro - Ultra-Intuitive Executive Precision Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --primary-navy: #0F172A;
  --primary-container: #1E293B;
  --secondary-amber: #D97706;
  --amber-dark: #92400E;
  --amber-light: #FEF3C7;
  --bg-neutral: #F8FAFC;
  --surface-card: #FFFFFF;
  --surface-subtle: #F1F5F9;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-soft: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-elevated: 0 12px 28px -4px rgba(15, 23, 42, 0.16);
}

/* Variables Oficiales Bella Donna — Warm Salmon Silk & Peach Glow (Stitch Design) */
:root.theme-belladonna,
html.theme-belladonna,
body.theme-belladonna,
html.theme-belladonna.dark,
body.theme-belladonna.dark-theme {
  --primary-navy: #F08064 !important;
  --primary-container: #DE6B48 !important;
  --secondary-amber: #F08064 !important;
  --amber-dark: #DE6B48 !important;
  --amber-light: #FDE5DC !important;
  --bg-neutral: #FFF8F3 !important;
  --surface-card: #FFFFFF !important;
  --surface-subtle: #FFF0E8 !important;
  --text-dark: #38221D !important;
  --text-muted: #7E6963 !important;
  --border-light: #FADBCF !important;
  --shadow-soft: 0 4px 16px -2px rgba(240, 128, 100, 0.08) !important;
  --shadow-elevated: 0 12px 28px -4px rgba(240, 128, 100, 0.2) !important;
}

html:not(.theme-belladonna).dark,
body:not(.theme-belladonna).dark-theme,
[data-theme="dark"]:not(.theme-belladonna) {
  --primary-navy: #F4F4F6;
  --primary-container: #25302E;
  --secondary-amber: #D6C265;
  --amber-dark: #E6D585;
  --amber-light: rgba(214, 194, 101, 0.18);
  --bg-neutral: #1D2524;
  --surface-card: rgba(37, 48, 46, 0.92);
  --surface-subtle: rgba(29, 37, 36, 0.85);
  --text-dark: #F4F4F6;
  --text-muted: #94A3B8;
  --border-light: rgba(106, 106, 71, 0.35);
  --shadow-soft: 0 8px 24px 0 rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 16px 44px 0 rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--bg-neutral, #F8FAFC);
}

html:not(.theme-belladonna).dark {
  background-color: #1D2524 !important;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-neutral);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   PRONTOTURNO ANIMATED SPLASH SCREEN (BREATHING LOGO & SLIDING TEXT)
   ========================================================================== */
.splash-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--bg-neutral, #F8FAFC);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  pointer-events: all;
}

html:not(.theme-belladonna).dark .splash-screen-overlay,
body:not(.theme-belladonna).dark-theme .splash-screen-overlay {
  background-color: #1D2524 !important;
}

.splash-screen-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content-box {
  position: relative;
  width: 100%;
  height: 100%;
  user-select: none;
}

/* Isotipo anclado en el CENTRO GEOMÉTRICO EXACTO (50% X, 50% Y), idéntico al splash nativo */
.splash-logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: splashBreathe 2.2s ease-in-out infinite;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Universal Light/Dark Theme Visibility */
.dark-only {
  display: none !important;
}
.light-only {
  display: block !important;
}
span.light-only, a.light-only, svg.light-only {
  display: inline-block !important;
}

html.dark .dark-only,
body.dark-theme .dark-only {
  display: block !important;
}
html.dark span.dark-only,
body.dark-theme span.dark-only,
html.dark svg.dark-only,
body.dark-theme svg.dark-only {
  display: inline-block !important;
}

html.dark .light-only,
body.dark-theme .light-only {
  display: none !important;
}

@keyframes splashBreathe {
  0%   { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.08)); }
  50%  { transform: translate(-50%, -50%) scale(1.08); filter: drop-shadow(0 8px 22px rgba(214, 194, 101, 0.28)); }
  100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.08)); }
}

/* Nombre de marca ubicado suavemente DEBAJO del centro, sin mover el logo ni un píxel */
.splash-brand-title {
  position: absolute;
  top: calc(50% + 46px);
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  align-items: baseline;
  gap: 5px;
  opacity: 0;
  animation: splashTextFadeIn 0.35s cubic-bezier(0.25, 1, 0.35, 1) 0.12s forwards;
}

.splash-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0F172A;
}

html.dark .splash-brand-name,
body.dark-theme .splash-brand-name {
  color: #F4F4F6 !important;
}

.splash-brand-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #D97706;
}

html.dark .splash-brand-badge,
body.dark-theme .splash-brand-badge {
  color: #D6C265 !important;
}

@keyframes splashTextFadeIn {
  0%  { opacity: 0; transform: translate(-50%, 8px); }
  100%{ opacity: 1; transform: translate(-50%, 0); }
}

/* App Main Container */
.app-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 16px calc(115px + env(safe-area-inset-bottom, 0px)) 16px;
  position: relative;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 680px;
    padding: 20px 24px calc(125px + env(safe-area-inset-bottom, 0px)) 24px;
  }
}

/* Sticky Header Corporativo Fijo (Fondo dinámico según tenant, 100% integrado sin líneas divisorias) */
.brand-header-sticky {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-neutral, #F8FAFC);
  padding: 14px 16px 8px 16px;
  margin: 0 -16px 10px -16px;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.sticky-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Logo Oficial ProntoTurno App 100% Transparente y Nítido */
.tuturno-logo-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  padding: 0;
}

.prontoturno-header-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-title-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-badge-app {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--secondary-amber);
  letter-spacing: -0.01em;
}

/* Encabezado Principal del Negocio Cliente (Dr. Alejandro Pérez / Bella Donna) */
.client-business-header {
  background: var(--bg-neutral, #F8FAFC);
  color: var(--primary-navy);
  border-radius: var(--radius-md);
  padding: 10px 4px 4px 4px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-doctor-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.client-doctor-sub {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}

/* Section Cards & Bento Grid (Efecto Vidrio / Glassmorphism) */
.section-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin-bottom: 16px;
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.section-card.collapsed {
  display: none !important;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.title-icon {
  width: 32px;
  height: 32px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--primary-navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Barra Compacta del Tratamiento Seleccionado */
.service-collapsed-bar {
  display: none;
  background: var(--primary-navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
  animation: slideDownFade 0.3s ease forwards;
}

.service-collapsed-bar.active {
  display: flex;
}

.collapsed-service-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
}

/* Botón Cambiar Discreto y Elegante */
.collapsed-change-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--secondary-amber);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.collapsed-change-btn:hover,
.collapsed-change-btn:active {
  background: var(--secondary-amber);
  color: #FFFFFF;
}

/* Service Grid (2 Columnas Bento - Efecto Vidrio Translúcido) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px;
}

.service-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 115px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 4px 16px 0 rgba(15, 23, 42, 0.04);
}

.service-card > div:first-child {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card:hover {
  border-color: var(--secondary-amber);
  background: rgba(255, 255, 255, 0.85);
}

.service-card.active {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--secondary-amber);
  box-shadow: 0 8px 24px -2px rgba(217, 119, 6, 0.25);
}

.service-card.active::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: var(--secondary-amber);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

.service-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
  line-height: 1.3;
  min-height: 2.6em;
}

.service-duration {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.service-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--secondary-amber);
  margin-top: 10px;
}

/* Tarjeta del Calendario (Efecto Vidrio Translúcido) */
.calendar-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin-bottom: 80px;
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
  /* Aislar layout para que clicks en date-pill no propaguen reflow fuera de la tarjeta */
  contain: layout;
  overflow-anchor: none;
}

.calendar-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background: rgba(241, 245, 249, 0.7);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.month-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary-navy);
  text-transform: capitalize;
}

.month-nav-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.month-nav-btn:hover,
.month-nav-btn:active {
  background: var(--secondary-amber);
  color: #FFFFFF;
  border-color: var(--secondary-amber);
}

/* Stacked Day Cards Deck - Fixed No-Shift Layout */
.date-scroll {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 8px 0 12px 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  /* Altura fija para que el row de dias nunca cambie su alto */
  min-height: 80px;
  overflow-anchor: none;
}

.date-pill {
  flex: 1 1 0px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 2px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.date-pill:hover {
  border-color: var(--secondary-amber);
}

.date-pill.active {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.date-pill.active .date-day,
.date-pill.active .date-num {
  color: #FFFFFF !important;
}

.date-day {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.date-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 2px;
}

/* Time Slots Grid (Instant rendering & Fixed Height for zero shift) */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  min-height: 210px;
  align-content: start;
}

.slot-pill {
  padding: 13px 6px;
  text-align: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  transition: all 0.15s ease;
}

.slot-pill:hover:not(.disabled) {
  border-color: var(--secondary-amber);
  color: var(--secondary-amber);
  transform: translateY(-1px);
}

.slot-pill.selected {
  background: var(--secondary-amber);
  border-color: var(--secondary-amber);
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
  transform: scale(1.03);
}

.slot-pill.disabled {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #94A3B8 !important;
  text-decoration: line-through !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.35 !important;
}

/* 100% Fixed Bottom Bar Wrapper (Fondo dinámico integrado, Sin líneas de corte) */
.fixed-bottom-bar-wrapper {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  z-index: 9999 !important;
  padding: 12px 16px 16px 16px !important;
  background: var(--bg-neutral, #F8FAFC) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: none !important;
  display: flex !important;
  justify-content: center !important;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.03) !important;
}

.btn-primary-sticky {
  position: relative !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 488px !important;
  min-height: 52px !important;
  padding: 15px 22px !important;
  background: var(--primary-navy) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: var(--shadow-elevated) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.btn-primary-sticky:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.65;
}

.btn-primary-sticky:not(:disabled):hover,
.btn-primary-sticky:not(:disabled):active {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(15, 23, 42, 0.4);
}

/* Banner de Resumen Claro en el Modal de Confirmación */
.booking-summary-card {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary-amber);
  box-shadow: var(--shadow-soft);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-label {
  color: #94A3B8;
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.summary-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #FFFFFF;
  font-size: 13.5px;
}

.summary-value-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--secondary-amber);
  font-size: 14px;
}

/* Modal Overlay & Drawer (z-index superior a la barra inferior) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10000 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modales Centrados Ejecutivos (Mayor Presencia Visual y Calce Perfecto) */
.modal-overlay-centered {
  align-items: center !important;
  padding: 18px;
}

.modal-card-centered {
  max-width: 440px !important;
  border-radius: 28px !important;
  padding: 32px 26px !important;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35) !important;
  transform: scale(0.92) translateY(12px) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

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

.success-icon-badge {
  width: 58px;
  height: 58px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 2px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

html.theme-belladonna .success-icon-badge {
  background: rgba(240, 128, 100, 0.14) !important;
  color: #F08064 !important;
  border-color: rgba(240, 128, 100, 0.3) !important;
  box-shadow: 0 0 20px rgba(240, 128, 100, 0.2) !important;
}

html.dark .success-icon-badge {
  background: rgba(116, 158, 144, 0.16) !important;
  color: #749E90 !important;
  border-color: rgba(116, 158, 144, 0.35) !important;
}

.form-group {
  margin-bottom: 16px;
}

/* Thin subtle loading sweep line for submit button (Barrida delgada y sutil continua) */
.btn-loading-sweep {
  position: relative !important;
  overflow: hidden !important;
}

.btn-loading-sweep::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #D97706, #F59E0B, #FBBF24);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.9);
}

@keyframes continuousSweep {
  0% { width: 0%; left: 0%; }
  50% { width: 75%; left: 15%; }
  100% { width: 100%; left: 0%; }
}

.btn-loading-sweep.loading::after {
  animation: continuousSweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  background: var(--bg-neutral);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-navy);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

/* Animations */
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Phone Lookup Section ─── */
.phone-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.phone-input-field {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 0 13px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-navy);
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input-field:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}

.phone-lookup-btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 15px;
  background: var(--primary-navy);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.2s ease, transform 0.1s ease;
}

.phone-lookup-btn:hover {
  background: var(--primary-container);
}

.phone-lookup-btn:active {
  transform: scale(0.97);
}

/* ─── Active Appointment Card (Minimalist Premium) ─── */
.active-appt-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px 20px;
  margin-bottom: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  animation: slideDownFade 0.25s ease;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.active-appt-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 26px -4px rgba(15, 23, 42, 0.08);
}

.active-appt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.active-appt-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.active-appt-service-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
}

.active-appt-patient-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
}

.active-appt-patient-name strong {
  color: #334155;
  font-weight: 600;
}

.active-appt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  background: #ECFDF5;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.active-appt-datetime {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid #F1F5F9;
  color: #334155;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.appt-datetime-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.appt-datetime-item svg {
  color: #64748B;
  flex-shrink: 0;
}

.appt-datetime-divider {
  color: #CBD5E1;
  font-weight: 700;
}

.active-appt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appt-btn-reschedule {
  width: 100%;
  padding: 11px 16px;
  background: #0F172A;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
  text-align: center;
}

.appt-btn-reschedule:hover {
  background: #1E293B;
}

/* Bella Donna Palette: Coral Peach Glow */
html.theme-belladonna .appt-btn-reschedule,
body.theme-belladonna .appt-btn-reschedule {
  background: #F08064 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px 0 rgba(240, 128, 100, 0.35) !important;
}

html.theme-belladonna .appt-btn-reschedule:hover,
body.theme-belladonna .appt-btn-reschedule:hover {
  background: #DE6B48 !important;
}

/* Modo Oscuro: Obsidian Gold */
html.dark .appt-btn-reschedule,
body.dark-theme .appt-btn-reschedule {
  background: #D6C265 !important;
  color: #1D2524 !important;
  box-shadow: 0 4px 14px rgba(214, 194, 101, 0.25) !important;
}

html.dark .appt-btn-reschedule:hover,
body.dark-theme .appt-btn-reschedule:hover {
  background: #C4B154 !important;
}

.mgmt-feedback-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
}

html.theme-belladonna .mgmt-feedback-box {
  background: #FFF8F3 !important;
  border-color: rgba(240, 128, 100, 0.25) !important;
}

html.dark .mgmt-feedback-box {
  background: rgba(37, 48, 46, 0.9) !important;
  border-color: rgba(106, 106, 71, 0.35) !important;
}

.appt-btn-cancel {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  color: #94A3B8;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  text-align: center;
}

.appt-btn-cancel:hover {
  color: #DC2626;
  background: #FEF2F2;
}

.appt-btn-reschedule:active,
.appt-btn-cancel:active {
  transform: scale(0.98);
}

/* ==========================================================================
   PRONTOTURNO OBSIDIAN GOLD DARK THEME (HIGH-END INDUSTRIAL DESIGN)
   ========================================================================== */

/* Theme Toggle Button Premium */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: scale(1.06);
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Base Dark Canvas */
html.dark body,
body.dark-theme {
  background-color: #1D2524 !important;
  color: #F4F4F6 !important;
}

/* Header Fijo Corporativo */
html.dark .brand-header-sticky,
body.dark-theme .brand-header-sticky,
html.dark .client-business-header,
body.dark-theme .client-business-header {
  background: #1D2524 !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

html.dark .brand-name,
body.dark-theme .brand-name,
html.dark .client-doctor-name,
body.dark-theme .client-doctor-name {
  color: #F4F4F6 !important;
}

html.dark .brand-badge-app,
body.dark-theme .brand-badge-app {
  color: #D6C265 !important;
}

html.dark .client-doctor-sub,
body.dark-theme .client-doctor-sub {
  color: #94A3B8 !important;
}

/* Theme Toggle Button Dark */
html.dark .theme-toggle-btn,
body.dark-theme .theme-toggle-btn {
  background: rgba(45, 58, 56, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(214, 194, 101, 0.35) !important;
  color: #D6C265 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html.dark .theme-toggle-btn:hover,
body.dark-theme .theme-toggle-btn:hover {
  border-color: #D6C265 !important;
  color: #E6D585 !important;
  box-shadow: 0 4px 14px rgba(214, 194, 101, 0.3) !important;
}

/* Tarjetas Principales & Calendario (Dark Olive Surface) */
html.dark .section-card,
body.dark-theme .section-card,
html.dark .calendar-card,
body.dark-theme .calendar-card,
html.dark .citaly-card,
body.dark-theme .citaly-card {
  background: rgba(37, 48, 46, 0.92) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(106, 106, 71, 0.35) !important;
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(214, 194, 101, 0.08) !important;
  color: #F4F4F6 !important;
}

html.dark .section-title,
body.dark-theme .section-title {
  color: #F4F4F6 !important;
}

html.dark .section-title .title-icon,
body.dark-theme .section-title .title-icon {
  background: rgba(63, 69, 58, 0.7) !important;
  color: #D6C265 !important;
  border: 1px solid rgba(214, 194, 101, 0.25) !important;
}

/* Tarjetas de Tratamiento / Servicio (2 Columnas Bento) */
html.dark .service-card,
body.dark-theme .service-card,
html.dark .service-item,
body.dark-theme .service-item {
  background: rgba(31, 41, 39, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(63, 69, 58, 0.8) !important;
  color: #F4F4F6 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

html.dark .service-card .service-name,
body.dark-theme .service-card .service-name,
html.dark .service-item .service-name,
body.dark-theme .service-item .service-name {
  color: #F4F4F6 !important;
}

html.dark .service-card .service-duration,
body.dark-theme .service-card .service-duration,
html.dark .service-item .service-duration,
body.dark-theme .service-item .service-duration {
  color: #94A3B8 !important;
}

html.dark .service-card .service-price,
body.dark-theme .service-card .service-price,
html.dark .service-item .service-price,
body.dark-theme .service-item .service-price {
  color: #D6C265 !important;
}

html.dark .service-card:hover,
body.dark-theme .service-card:hover,
html.dark .service-item:hover,
body.dark-theme .service-item:hover {
  background: rgba(45, 58, 56, 0.9) !important;
  border-color: rgba(214, 194, 101, 0.45) !important;
}

html.dark .service-card.active,
body.dark-theme .service-card.active,
html.dark .service-item.selected,
body.dark-theme .service-item.selected {
  background: rgba(45, 58, 56, 0.98) !important;
  border: 1.5px solid #D6C265 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

html.dark .service-card.active::before,
body.dark-theme .service-card.active::before {
  background: #D6C265 !important;
  color: #1D2524 !important;
  font-weight: 900 !important;
}

html.dark .service-card.active .service-name,
body.dark-theme .service-card.active .service-name,
html.dark .service-item.selected .service-name,
body.dark-theme .service-item.selected .service-name {
  color: #D6C265 !important;
  font-weight: 800 !important;
}

html.dark .service-card.active .service-duration,
body.dark-theme .service-card.active .service-duration,
html.dark .service-item.selected .service-duration,
body.dark-theme .service-item.selected .service-duration {
  color: #CBD5E1 !important;
}

html.dark .service-card.active .service-price,
body.dark-theme .service-card.active .service-price,
html.dark .service-item.selected .service-price,
body.dark-theme .service-item.selected .service-price {
  color: #E6D585 !important;
}

/* Barra Compacta del Tratamiento Seleccionado */
html.dark .service-collapsed-bar,
body.dark-theme .service-collapsed-bar {
  background: rgba(37, 48, 46, 0.95) !important;
  border: 1px solid rgba(214, 194, 101, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

html.dark .collapsed-service-name,
body.dark-theme .collapsed-service-name {
  color: #D6C265 !important;
}

html.dark .collapsed-change-btn,
body.dark-theme .collapsed-change-btn {
  background: rgba(214, 194, 101, 0.15) !important;
  color: #D6C265 !important;
  border: 1px solid rgba(214, 194, 101, 0.4) !important;
}

html.dark .collapsed-change-btn:hover,
body.dark-theme .collapsed-change-btn:hover {
  background: #D6C265 !important;
  color: #1D2524 !important;
}

/* Navegador del Calendario (Mes / Semana) */
html.dark .calendar-header-nav,
body.dark-theme .calendar-header-nav {
  background: rgba(29, 37, 36, 0.9) !important;
  border: 1px solid rgba(106, 106, 71, 0.4) !important;
}

html.dark .month-title,
body.dark-theme .month-title {
  color: #F4F4F6 !important;
}

html.dark .month-nav-btn,
body.dark-theme .month-nav-btn {
  background: rgba(37, 48, 46, 0.9) !important;
  border: 1px solid rgba(106, 106, 71, 0.5) !important;
  color: #D6C265 !important;
}

html.dark .month-nav-btn:hover,
body.dark-theme .month-nav-btn:hover {
  background: rgba(45, 58, 56, 1) !important;
  border-color: #D6C265 !important;
  color: #E6D585 !important;
}

/* Píldoras de Fechas (Date Pills) */
html.dark .date-pill,
body.dark-theme .date-pill,
html.dark .date-chip,
body.dark-theme .date-chip {
  background: rgba(31, 41, 39, 0.85) !important;
  border: 1px solid rgba(63, 69, 58, 0.8) !important;
  color: #A1A1AA !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

html.dark .date-pill .date-day,
body.dark-theme .date-pill .date-day,
html.dark .date-chip .date-day,
body.dark-theme .date-chip .date-day {
  color: #94A3B8 !important;
}

html.dark .date-pill .date-num,
body.dark-theme .date-pill .date-num,
html.dark .date-chip .date-num,
body.dark-theme .date-chip .date-num {
  color: #F4F4F6 !important;
}

html.dark .date-pill:hover:not(.disabled),
body.dark-theme .date-pill:hover:not(.disabled),
html.dark .date-chip:hover:not(.disabled),
body.dark-theme .date-chip:hover:not(.disabled) {
  border-color: rgba(214, 194, 101, 0.45) !important;
  background: rgba(45, 58, 56, 0.9) !important;
}

html.dark .date-pill.active,
body.dark-theme .date-pill.active,
html.dark .date-chip.selected,
body.dark-theme .date-chip.selected {
  background: #D6C265 !important;
  border-color: #D6C265 !important;
  color: #1D2524 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

html.dark .date-pill.active .date-day,
body.dark-theme .date-pill.active .date-day,
html.dark .date-pill.active .date-num,
body.dark-theme .date-pill.active .date-num,
html.dark .date-chip.selected .date-day,
body.dark-theme .date-chip.selected .date-day,
html.dark .date-chip.selected .date-num,
body.dark-theme .date-chip.selected .date-num {
  color: #1D2524 !important;
  font-weight: 800 !important;
}

/* Botones de Horarios (Slots Grid) */
html.dark .slot-pill,
body.dark-theme .slot-pill,
html.dark .slot-btn,
body.dark-theme .slot-btn {
  background: rgba(31, 41, 39, 0.85) !important;
  border: 1px solid rgba(63, 69, 58, 0.8) !important;
  color: #F4F4F6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

html.dark .slot-pill.available:hover:not(.disabled),
body.dark-theme .slot-pill.available:hover:not(.disabled),
html.dark .slot-btn:hover:not(:disabled),
body.dark-theme .slot-btn:hover:not(:disabled) {
  background: rgba(45, 58, 56, 0.95) !important;
  border-color: rgba(214, 194, 101, 0.6) !important;
  color: #D6C265 !important;
}

html.dark .slot-pill.selected,
body.dark-theme .slot-pill.selected,
html.dark .slot-btn.selected,
body.dark-theme .slot-btn.selected {
  background: #D6C265 !important;
  border-color: #D6C265 !important;
  color: #1D2524 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

html.dark .slot-pill.disabled,
body.dark-theme .slot-pill.disabled,
html.dark .slot-btn:disabled,
body.dark-theme .slot-btn:disabled {
  background: rgba(29, 37, 36, 0.45) !important;
  border-color: rgba(63, 69, 58, 0.35) !important;
  color: #64748B !important;
  text-decoration: line-through !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.35 !important;
}

/* Barra Inferior Fija & Botón Principal de Confirmación */
html.dark .fixed-bottom-bar-wrapper,
body.dark-theme .fixed-bottom-bar-wrapper {
  background: rgba(29, 37, 36, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: none !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4) !important;
}

html.dark .btn-primary-sticky,
body.dark-theme .btn-primary-sticky {
  background: #D6C265 !important;
  color: #1D2524 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

html.dark .btn-primary-sticky:hover:not(:disabled),
body.dark-theme .btn-primary-sticky:hover:not(:disabled) {
  background: #E6D585 !important;
  box-shadow: 0 6px 20px rgba(214, 194, 101, 0.3) !important;
}

html.dark .btn-primary-sticky:disabled,
body.dark-theme .btn-primary-sticky:disabled {
  background: rgba(63, 69, 58, 0.6) !important;
  color: rgba(244, 244, 246, 0.4) !important;
  border: 1px solid rgba(106, 106, 71, 0.3) !important;
  opacity: 0.7 !important;
  box-shadow: none !important;
}

/* Consultar Turno por Celular */
html.dark .phone-input-field,
body.dark-theme .phone-input-field,
html.dark .input-field,
body.dark-theme .input-field,
html.dark input[type="text"],
body.dark-theme input[type="text"],
html.dark input[type="tel"],
body.dark-theme input[type="tel"] {
  background: rgba(29, 37, 36, 0.92) !important;
  border: 1px solid rgba(106, 106, 71, 0.5) !important;
  color: #F4F4F6 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html.dark .phone-input-field:focus,
body.dark-theme .phone-input-field:focus,
html.dark input:focus,
body.dark-theme input:focus {
  border-color: #D6C265 !important;
  box-shadow: 0 0 0 3px rgba(214, 194, 101, 0.25) !important;
}

html.dark .phone-lookup-btn,
body.dark-theme .phone-lookup-btn {
  background: #D6C265 !important;
  color: #1D2524 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html.dark .phone-lookup-btn:hover,
body.dark-theme .phone-lookup-btn:hover {
  background: #E6D585 !important;
}

/* Tarjeta de Cita Activa */
html.dark .active-appt-card,
body.dark-theme .active-appt-card {
  background: rgba(37, 48, 46, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(106, 106, 71, 0.45) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

html.dark .active-appt-patient-name,
body.dark-theme .active-appt-patient-name {
  color: #F4F4F6 !important;
}

html.dark .active-appt-badge,
body.dark-theme .active-appt-badge {
  background: rgba(116, 158, 144, 0.2) !important;
  color: #749E90 !important;
  border: 1px solid rgba(116, 158, 144, 0.4) !important;
}

html.dark .active-appt-label,
body.dark-theme .active-appt-label {
  color: #94A3B8 !important;
}

html.dark .active-appt-value,
body.dark-theme .active-appt-value {
  color: #F4F4F6 !important;
}

html.dark .appt-btn-reschedule,
body.dark-theme .appt-btn-reschedule {
  background: #D6C265 !important;
  color: #1D2524 !important;
  font-weight: 800 !important;
  border: none !important;
}

html.dark .appt-btn-reschedule:hover,
body.dark-theme .appt-btn-reschedule:hover {
  background: #E6D585 !important;
}

html.dark .appt-btn-cancel,
body.dark-theme .appt-btn-cancel {
  background: rgba(45, 58, 56, 0.8) !important;
  color: #CBD5E1 !important;
  border: 1px solid rgba(106, 106, 71, 0.45) !important;
}

html.dark .appt-btn-cancel:hover,
body.dark-theme .appt-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Banner de Reprogramación Express */
html.dark #express-reschedule-banner,
body.dark-theme #express-reschedule-banner {
  background: rgba(37, 48, 46, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid rgba(214, 194, 101, 0.45) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

html.dark #express-greeting-title,
body.dark-theme #express-greeting-title {
  color: #D6C265 !important;
}

html.dark #express-current-slot-box,
body.dark-theme #express-current-slot-box {
  background: rgba(29, 37, 36, 0.85) !important;
  border: 1px solid rgba(106, 106, 71, 0.35) !important;
  color: #CBD5E1 !important;
}

html.dark #express-current-datetime,
body.dark-theme #express-current-datetime {
  color: #D6C265 !important;
}

/* Modales y Formularios */
html.dark .modal-card,
body.dark-theme .modal-card,
html.dark .modal-container,
body.dark-theme .modal-container {
  background: rgba(35, 46, 44, 0.98) !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  border: 1.5px solid rgba(106, 106, 71, 0.45) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
  color: #F4F4F6 !important;
}

html.dark .modal-card h3,
body.dark-theme .modal-card h3 {
  color: #F4F4F6 !important;
}

html.dark .modal-card p,
body.dark-theme .modal-card p {
  color: #CBD5E1 !important;
}

html.dark .form-label,
body.dark-theme .form-label {
  color: #CBD5E1 !important;
}

html.dark .form-input,
body.dark-theme .form-input {
  background: rgba(29, 37, 36, 0.92) !important;
  border: 1px solid rgba(106, 106, 71, 0.5) !important;
  color: #F4F4F6 !important;
}

html.dark .form-input:focus,
body.dark-theme .form-input:focus {
  border-color: #D6C265 !important;
  box-shadow: 0 0 0 3px rgba(214, 194, 101, 0.25) !important;
}

html.dark .booking-summary-card,
body.dark-theme .booking-summary-card {
  background: rgba(29, 37, 36, 0.9) !important;
  border: 1px solid rgba(106, 106, 71, 0.4) !important;
  border-left: 4px solid #D6C265 !important;
}

html.dark .summary-label,
body.dark-theme .summary-label {
  color: #94A3B8 !important;
}

html.dark .summary-value,
body.dark-theme .summary-value {
  color: #F4F4F6 !important;
}

html.dark .summary-value-price,
body.dark-theme .summary-value-price {
  color: #D6C265 !important;
}

html.dark #btn-submit-modal,
body.dark-theme #btn-submit-modal,
html.dark #btn-close-success-modal,
body.dark-theme #btn-close-success-modal,
html.dark #btn-reschedule-existing,
body.dark-theme #btn-reschedule-existing {
  background: #D6C265 !important;
  color: #1D2524 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

html.dark #btn-submit-modal:hover,
body.dark-theme #btn-submit-modal:hover,
html.dark #btn-close-success-modal:hover,
body.dark-theme #btn-close-success-modal:hover,
html.dark #btn-reschedule-existing:hover,
body.dark-theme #btn-reschedule-existing:hover {
  background: #E6D585 !important;
}

html.dark #success-details-card,
body.dark-theme #success-details-card {
  background: rgba(29, 37, 36, 0.9) !important;
  border: 1px solid rgba(106, 106, 71, 0.4) !important;
}

html.dark #success-service-name,
body.dark-theme #success-service-name,
html.dark #success-doctor-name,
body.dark-theme #success-doctor-name {
  color: #F4F4F6 !important;
}

html.dark #success-date-time,
body.dark-theme #success-date-time {
  color: #D6C265 !important;
}

html.dark #btn-close-modal,
body.dark-theme #btn-close-modal,
html.dark #btn-close-existing-modal,
body.dark-theme #btn-close-existing-modal {
  color: #94A3B8 !important;
}
html.dark #btn-close-modal:hover,
body.dark-theme #btn-close-modal:hover,
html.dark #btn-close-existing-modal:hover,
body.dark-theme #btn-close-existing-modal:hover {
  color: #F4F4F6 !important;
}

/* ================================================================
   BELLA DONNA ATELIER — WARM SALMON SILK & PEACH GLOW (STITCH MCP SYSTEM)
   Paleta extraída fielmente del diseño Stitch:
   Canvas: #FFF8F3 | Surface: #FFF0E8 | Primary: #F08064 | Primary Hover: #DE6B48
   Card: #FFFFFF | Border: #FADBCF | Text: #38221D | Muted: #7E6963
   ================================================================ */
:root.theme-belladonna,
html.theme-belladonna,
body.theme-belladonna {
  --belladonna-canvas: #FFF8F3;
  --belladonna-surface: #FFF0E8;
  --belladonna-primary: #F08064;
  --belladonna-primary-hover: #DE6B48;
  --belladonna-card: #FFFFFF;
  --belladonna-border: #FADBCF;
  --belladonna-text: #38221D;
  --belladonna-muted: #7E6963;
}

html.theme-belladonna,
html.theme-belladonna body {
  background-color: #FFF8F3 !important;
  color: #38221D !important;
}

/* Header Institucional */
html.theme-belladonna .brand-header-sticky,
html.theme-belladonna header {
  background-color: #FFF8F3 !important;
  border-bottom: 1px solid #FADBCF !important;
}

html.theme-belladonna .brand-name,
html.theme-belladonna .client-doctor-name,
html.theme-belladonna h1,
html.theme-belladonna h2,
html.theme-belladonna h3,
html.theme-belladonna .font-display {
  color: #38221D !important;
}

html.theme-belladonna .brand-badge-app,
html.theme-belladonna .badge-vip {
  background-color: #FDE5DC !important;
  color: #E27453 !important;
  border: 1px solid #FADBCF !important;
}

html.theme-belladonna .client-doctor-sub,
html.theme-belladonna .service-duration,
html.theme-belladonna .slot-duration-badge {
  color: #7E6963 !important;
}

/* Tarjetas Principales */
html.theme-belladonna .citaly-card,
html.theme-belladonna .section-card,
html.theme-belladonna .calendar-card,
html.theme-belladonna .active-appt-card,
html.theme-belladonna .service-card {
  background: #FFFFFF !important;
  border: 1.5px solid #FADBCF !important;
  box-shadow: 0 4px 20px -2px rgba(240, 128, 100, 0.07), 0 2px 6px -1px rgba(56, 34, 29, 0.03) !important;
}

html.theme-belladonna .section-title {
  color: #38221D !important;
}

html.theme-belladonna .title-icon {
  background-color: #FEECE5 !important;
  color: #F08064 !important;
}

/* Consulta por Celular */
html.theme-belladonna .phone-input-field {
  border-color: #FADBCF !important;
  background-color: #FFFFFF !important;
  color: #38221D !important;
}

html.theme-belladonna .phone-input-field:focus {
  border-color: #F08064 !important;
  box-shadow: 0 0 0 3px rgba(240, 128, 100, 0.2) !important;
}

html.theme-belladonna .phone-lookup-btn {
  background-color: #F08064 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px 0 rgba(240, 128, 100, 0.3) !important;
}

html.theme-belladonna .phone-lookup-btn:hover {
  background-color: #DE6B48 !important;
}

/* Tarjeta de Servicio Colapsada */
html.theme-belladonna .service-collapsed-bar {
  background: #FFFFFF !important;
  border: 1.5px solid #FADBCF !important;
}

html.theme-belladonna .collapsed-service-name {
  color: #38221D !important;
}

html.theme-belladonna .collapsed-change-btn {
  background-color: #FEECE5 !important;
  color: #F08064 !important;
}

html.theme-belladonna .collapsed-change-btn:hover {
  background-color: #F08064 !important;
  color: #FFFFFF !important;
}

/* Tarjetas de Tratamientos / Especialidades */
html.theme-belladonna .service-card {
  background: #FFFFFF !important;
  border: 1.5px solid #FADBCF !important;
}

html.theme-belladonna .service-card:hover {
  border-color: #F08064 !important;
  background-color: #FFF9F6 !important;
}

html.theme-belladonna .service-card.active {
  border: 2px solid #F08064 !important;
  background-color: #FFF5F0 !important;
  box-shadow: 0 6px 18px 0 rgba(240, 128, 100, 0.15) !important;
}

html.theme-belladonna .service-card.active .service-name {
  color: #F08064 !important;
}

html.theme-belladonna .service-card .service-name {
  color: #38221D !important;
}

html.theme-belladonna .service-card .service-price {
  color: #38221D !important;
}

html.theme-belladonna .service-card.active .service-price {
  color: #F08064 !important;
}

/* Calendario y Navegación de Semanas */
html.theme-belladonna .month-title {
  color: #38221D !important;
}

html.theme-belladonna .month-nav-btn {
  background-color: #FEECE5 !important;
  color: #F08064 !important;
  border: 1px solid #FADBCF !important;
}

html.theme-belladonna .month-nav-btn:hover {
  background-color: #F08064 !important;
  color: #FFFFFF !important;
}

/* Pastillas de Fecha (.date-pill) */
html.theme-belladonna .date-pill {
  background-color: #FFF9F6 !important;
  border: 1.5px solid #FADBCF !important;
  color: #7E6963 !important;
}

html.theme-belladonna .date-pill .date-day {
  color: #7E6963 !important;
}

html.theme-belladonna .date-pill .date-num {
  color: #38221D !important;
}

html.theme-belladonna .date-pill:hover {
  border-color: #F08064 !important;
  background-color: #FFF0E8 !important;
}

html.theme-belladonna .date-pill.active {
  background-color: #F08064 !important;
  border-color: #F08064 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px 0 rgba(240, 128, 100, 0.35) !important;
}

html.theme-belladonna .date-pill.active .date-day,
html.theme-belladonna .date-pill.active .date-num {
  color: #FFFFFF !important;
}

/* Grilla de Horarios (.slot-pill) */
html.theme-belladonna .slot-pill.available {
  border: 1.5px solid #FADBCF !important;
  background-color: #FFFFFF !important;
  color: #38221D !important;
}

html.theme-belladonna .slot-pill.available:hover {
  border-color: #F08064 !important;
  background-color: #FFF0E8 !important;
  color: #F08064 !important;
}

html.theme-belladonna .slot-pill.selected {
  background-color: #F08064 !important;
  border-color: #F08064 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px 0 rgba(240, 128, 100, 0.4) !important;
}

html.theme-belladonna .slot-pill.disabled {
  background-color: #FFF5F0 !important;
  border-color: #FCE8E1 !important;
  color: #C4B4AF !important;
  text-decoration: line-through !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.35 !important;
}

/* Botón Principal Sticky (Paso Final de Reserva) */
html.theme-belladonna .fixed-bottom-bar-wrapper {
  background: linear-gradient(to top, #FFF8F3 85%, transparent) !important;
}

html.theme-belladonna .btn-primary-sticky,
html.theme-belladonna .btn-primary,
html.theme-belladonna button.bg-navy,
html.theme-belladonna .bg-navy,
html.theme-belladonna #btn-open-modal,
html.theme-belladonna #btn-submit-modal {
  background-color: #F08064 !important;
  border-color: #F08064 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px 0 rgba(240, 128, 100, 0.35) !important;
}

html.theme-belladonna .btn-primary-sticky:hover:not(:disabled),
html.theme-belladonna .btn-primary:hover,
html.theme-belladonna button.bg-navy:hover,
html.theme-belladonna #btn-open-modal:hover:not(:disabled),
html.theme-belladonna #btn-submit-modal:hover:not(:disabled) {
  background-color: #DE6B48 !important;
}

html.theme-belladonna .btn-primary-sticky:disabled,
html.theme-belladonna #btn-open-modal:disabled {
  background-color: #FADBCF !important;
  color: #FFF5F0 !important;
  box-shadow: none !important;
}

/* Modales (Confirmación y Éxito) */
html.theme-belladonna .modal-card {
  background: #FFFFFF !important;
  border: 1.5px solid #FADBCF !important;
  box-shadow: 0 20px 50px -10px rgba(56, 34, 29, 0.15) !important;
}

html.theme-belladonna .booking-summary-card {
  background-color: #FFF5F0 !important;
  border: 1px solid #FADBCF !important;
}

html.theme-belladonna .summary-label {
  color: #7E6963 !important;
}

html.theme-belladonna .summary-value {
  color: #38221D !important;
}

html.theme-belladonna .summary-value-price {
  color: #F08064 !important;
}

html.theme-belladonna .form-label {
  color: #38221D !important;
}

html.theme-belladonna .form-input {
  border-color: #FADBCF !important;
  color: #38221D !important;
}

html.theme-belladonna .form-input:focus {
  border-color: #F08064 !important;
  box-shadow: 0 0 0 3px rgba(240, 128, 100, 0.2) !important;
}

html.theme-belladonna #btn-close-modal {
  color: #7E6963 !important;
}

html.theme-belladonna #btn-close-modal:hover {
  color: #38221D !important;
}

/* Modal de Éxito */
html.theme-belladonna #success-details-card {
  border-color: #FADBCF !important;
  background-color: #FFF9F6 !important;
}

html.theme-belladonna #success-service-name {
  color: #38221D !important;
}

html.theme-belladonna #success-date-time {
  color: #F08064 !important;
}

html.theme-belladonna #btn-close-success-modal {
  background-color: #F08064 !important;
  color: #FFFFFF !important;
}

/* Banner Express de Reprogramación */
html.theme-belladonna #express-reschedule-banner {
  border-color: #FADBCF !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(240, 128, 100, 0.08) !important;
}

html.theme-belladonna #express-greeting-title {
  color: #38221D !important;
}

html.theme-belladonna #express-service-name {
  color: #F08064 !important;
}

html.theme-belladonna #express-current-slot-box {
  background-color: #FEECE5 !important;
  color: #7E6963 !important;
}

html.theme-belladonna #express-current-datetime {
  color: #38221D !important;
}

/* Navegación y Dashboard */
html.theme-belladonna .desktop-tab-btn.active,
html.theme-belladonna .mobile-tab-btn.active {
  background-color: #FEECE5 !important;
  color: #F08064 !important;
  border-color: #FADBCF !important;
}

html.theme-belladonna #mobile-nav-container {
  background-color: #FFF8F3 !important;
  border-top: 1px solid #FADBCF !important;
}

html.theme-belladonna .splash-screen-overlay {
  background-color: #FFF8F3 !important;
}

html.theme-belladonna .splash-brand-badge {
  color: #F08064 !important;
}
