/* ============================================================
   MEDMATCH — Estilos unificados del proyecto
   1. Reset · 2. Tokens · 3. Animaciones · 4. Base
   5. Componentes compartidos (dashboards)
   6. Específico paciente · 7. Específico profesional
   8. Específico landing (aislado por body.page-landing)
   ============================================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---------- 2. TOKENS DE DISEÑO ---------- */
:root {
  --cream: #F7F3EE;
  --cream-d: #EDE6DC;
  --sand: #D9CEBF;
  /* Color de marca: turquesa/azul, más amigable para salud. Se dejan los
     nombres --teal* por lo extendidos que están en el CSS y en estilos
     inline del HTML/JS -- cambiar solo el valor aquí lo actualiza en toda
     la app sin tocar cientos de sitios. */
  --teal: #0D9488;
  --teal-d: #0F766E;
  --teal-l: #E6F7F5;
  --teal-m: #14B8A6;
  --warm: #C4601A;
  --warm-l: #F2E8DF;
  --ink: #1C1917;
  --ink-m: #3D3832;
  --muted: #7A7166;
  --white: #FFFFFF;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --warm-m: #E07340;
  --gold: #E6A817;
  --muted-l: #7D7565; /* antes #A39A8D (contraste 2.77:1, ilegible) -- ahora 4.56:1, cumple AA */
  --red: #C2410C;
  --red-l: #FBEAE2;
  --shadow: 0 4px 24px rgba(28,25,23,0.06);
  --shadow-lg: 0 20px 50px rgba(28,25,23,0.14);
  --blue: #1E5A96;
  --blue-l: #E6EEF7;
}

/* ---------- 3. ANIMACIONES ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalUp { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- 4. BASE / BODY ---------- */
body { font-family: var(--sans); background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.page-app { display: flex; min-height: 100vh; }

/* ---------- 5. COMPONENTES COMPARTIDOS (dashboards) ---------- */
.logo span { color: var(--teal); }
.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-l);
  padding: 16px 12px 8px;
}
.nav-item:hover { background: var(--cream); }
.nav-item.active {
  background: var(--teal-l);
  color: var(--teal-d);
  font-weight: 500;
}
.nav-item .ico { font-size: 18px; width: 22px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: var(--warm);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  min-width: 19px;
  height: 19px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--cream-d);
  padding-top: 16px;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.18s;
}
.user-pill:hover { background: var(--cream); }
.user-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.main {
  flex: 1;
  min-width: 0;
  margin-left: 248px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.icon-btn {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--cream-d);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.icon-btn:hover { border-color: var(--sand); background: var(--cream); }
.icon-btn .dot {
  position: absolute;
  top: 9px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--warm);
  border: 2px solid var(--white);
}
.view { display: none; animation: fadeIn 0.4s ease; }
.view.active { display: block; }
.page-sub { font-size: 15px; color: var(--muted); font-weight: 300; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-d); }
.btn-ghost { background: transparent; color: var(--ink-m); border: 1.5px solid var(--sand); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-warm { background: var(--warm); color: var(--white); }
.btn-warm:hover { filter: brightness(1.07); }
.btn-block { width: 100%; justify-content: center; }
.tab.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.st-confirmed { background: var(--teal-l); color: var(--teal-d); }
.st-pending { background: var(--warm-l); color: var(--warm); }
.conv-list { border-right: 1px solid var(--cream-d); overflow-y: auto; }
.conv-search {
  padding: 16px;
  border-bottom: 1px solid var(--cream-d);
}
.conv-search input {
  width: 100%;
  border: 1px solid var(--cream-d);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  font-family: var(--sans);
  font-size: 13.5px;
  outline: none;
}
.conv-item {
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--cream-d);
  transition: background 0.16s;
}
.conv-item:hover { background: var(--cream); }
.conv-item.active { background: var(--teal-l); }
.conv-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.conv-top { display: flex; align-items: center; justify-content: space-between; }
.conv-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.conv-time { font-size: 11.5px; color: var(--muted-l); }
.chat-area { display: flex; flex-direction: column; }
.chat-back-btn { display: none; border: none; background: none; font-size: 20px; color: var(--ink-m); cursor: pointer; padding: 4px 8px 4px 0; line-height: 1; }
.chat-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.bubble { max-width: 70%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.bubble-them { background: var(--white); border: 1px solid var(--cream-d); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-me { background: var(--teal); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-time { font-size: 10.5px; opacity: 0.6; margin-top: 4px; }
.chat-input-bar {
  padding: 16px 22px;
  border-top: 1px solid var(--cream-d);
  display: flex;
  gap: 12px;
  align-items: center;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--cream-d);
  border-radius: 100px;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
}
.send-btn:hover { background: var(--teal-d); }
.hamburger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--cream-d);
  align-items: center; justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--ink-m);
}
.hamburger:hover { background: var(--cream); border-color: var(--sand); }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.45);
  backdrop-filter: blur(2px);
  z-index: 49;
}
.sidebar-backdrop.show { display: block; }

/* overrides por página (mismo nombre, valor distinto) */
body.page-patient .sidebar {
  width: 248px;
  background: var(--white);
  border-right: 1px solid var(--cream-d);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
}
body.page-patient .logo {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--teal);
  letter-spacing: -0.5px;
  padding: 0 12px 24px;
}
body.page-patient .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-m);
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  position: relative;
}
body.page-patient .user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
body.page-patient .topbar {
  height: 72px;
  background: rgba(247,243,238,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-d);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
}
body.page-patient .topbar-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
body.page-patient .content { padding: 36px; flex: 1; }
body.page-patient .page-head { margin-bottom: 28px; }
body.page-patient .page-title {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 6px;
}
body.page-patient .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-sm);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
}
body.page-patient .btn-sm { padding: 8px 16px; font-size: 13px; }
body.page-patient .tabs {
  display: flex;
  gap: 4px;
  background: var(--cream-d);
  padding: 4px;
  border-radius: var(--r-sm);
  width: fit-content;
  margin-bottom: 24px;
}
body.page-patient .tab {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--sans);
  transition: all 0.16s;
}
body.page-patient .msg-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: calc(100vh - 230px);
}
body.page-patient .conv-preview { font-size: 13px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
body.page-patient .chat-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--cream-d);
  display: flex;
  align-items: center;
  gap: 12px;
}
body.page-patient .chat-body { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; background: var(--cream); }
body.page-patient .chat-day { text-align: center; font-size: 12px; color: var(--muted-l); margin: 8px 0; }
body.page-patient .bubble-ai {
  background: var(--warm-l);
  border: 1px solid var(--warm-l);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  position: relative;
}
body.page-patient .send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  color: white;
  font-size: 17px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}
body.page-professional .sidebar {
  width: 248px;
  background: var(--white);
  border-right: 1px solid var(--cream-d);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  overflow-y: auto;
}
body.page-professional .logo {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--teal);
  letter-spacing: -0.5px;
  padding: 0 12px 6px;
}
body.page-professional .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--ink-m);
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
}
body.page-professional .user-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-l); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
body.page-professional .topbar {
  height: 72px;
  background: rgba(247,243,238,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-d);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 16px;
  position: sticky; top: 0; z-index: 40;
}
body.page-professional .topbar-actions { margin-left: auto; display: flex; gap: 14px; align-items: center; }
body.page-professional .content { padding: 32px 36px; flex: 1; }
body.page-professional .page-head { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.page-professional .page-title { font-family: var(--serif); font-size: 32px; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 4px; }
body.page-professional .btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 14px; font-weight: 500; border-radius: var(--r-sm); padding: 10px 18px; cursor: pointer; transition: all 0.18s; border: none; }
body.page-professional .btn-sm { padding: 8px 14px; font-size: 13px; }
body.page-professional .tabs { display: flex; gap: 4px; background: var(--cream-d); padding: 4px; border-radius: var(--r-sm); width: fit-content; margin-bottom: 22px; }
body.page-professional .tab { padding: 8px 18px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; border: none; background: none; font-family: var(--sans); transition: all 0.16s; }
body.page-professional .msg-layout { display: grid; grid-template-columns: 320px 1fr; background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); overflow: hidden; height: calc(100vh - 220px); }
body.page-professional .conv-preview { font-size: 13px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
body.page-professional .chat-head { padding: 14px 22px; border-bottom: 1px solid var(--cream-d); display: flex; align-items: center; gap: 12px; }
body.page-professional .chat-body { flex: 1; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; background: var(--cream); }
body.page-professional .chat-day { text-align: center; font-size: 12px; color: var(--muted-l); margin: 6px 0; }
body.page-professional .bubble-ai { background: var(--warm-l); align-self: flex-end; border-bottom-right-radius: 4px; border: 1px dashed var(--warm-m); }
body.page-professional .send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); border: none; color: #fff; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.18s; }

/* ---------- 6. ESPECÍFICO: PACIENTE ---------- */
.user-mail { font-size: 12px; color: var(--muted); }
.location-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 13.5px;
  color: var(--ink-m);
  cursor: pointer;
  transition: border-color 0.18s;
}
.location-pill:hover { border-color: var(--sand); }
.location-pill .pin { color: var(--warm); }
.topbar-search {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: var(--r-sm);
  padding: 10px 14px;
}
.topbar-search input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  width: 100%;
}
.topbar-search input::placeholder { color: var(--muted-l); }
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--ink-m);
  cursor: pointer;
  transition: all 0.16s;
  font-family: var(--sans);
}
.filter-chip:hover { border-color: var(--sand); }
.filter-chip.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.filter-divider { width: 1px; height: 24px; background: var(--cream-d); margin: 0 4px; }
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 16px;
}
.results-count { font-size: 14px; color: var(--muted); }
.results-count b { color: var(--ink); font-weight: 600; }
.sort-select {
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 13.5px;
  font-family: var(--sans);
  color: var(--ink-m);
  cursor: pointer;
  outline: none;
}
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}
.pro-card {
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.pro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pro-head { display: flex; gap: 14px; margin-bottom: 16px; }
.pro-avatar {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.pro-name-row { display: flex; align-items: center; gap: 8px; }
.pro-name { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.pro-verified { color: var(--teal-m); font-size: 14px; }
.pro-spec { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pro-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 100px;
  margin-top: 7px;
}
.tag-nurse { background: var(--teal-l); color: var(--teal-d); }
.tag-doctor { background: #E6EEF7; color: #1E5A96; }
.tag-intern { background: var(--warm-l); color: var(--warm); }
.tag-specialist { background: #F0EAF7; color: #6741A5; }
.pro-meta {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--cream-d);
  border-bottom: 1px solid var(--cream-d);
  margin-bottom: 14px;
}
.pro-meta-item { display: flex; flex-direction: column; gap: 2px; }
.pmi-val { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.pmi-label { font-size: 11.5px; color: var(--muted-l); }
.stars-sm { color: var(--gold); font-size: 13px; }
.pro-services { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.svc-chip {
  background: var(--cream);
  border: 1px solid var(--cream-d);
  font-size: 11.5px;
  color: var(--ink-m);
  padding: 4px 10px;
  border-radius: 100px;
}
.pro-foot { display: flex; align-items: center; justify-content: space-between; }
.pro-price { display: flex; align-items: baseline; gap: 4px; }
.pp-num { font-family: var(--serif); font-size: 24px; color: var(--teal); }
.pp-num.free { color: var(--warm); }
.pp-unit { font-size: 13px; color: var(--muted); }
.appt-list { display: flex; flex-direction: column; gap: 14px; }
.appt-card {
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.appt-date {
  background: var(--teal-l);
  border-radius: var(--r-md);
  padding: 12px 16px;
  text-align: center;
  min-width: 72px;
}
.ad-day { font-family: var(--serif); font-size: 26px; color: var(--teal-d); line-height: 1; }
.ad-month { font-size: 12px; font-weight: 600; color: var(--teal); text-transform: uppercase; margin-top: 4px; }
.ad-time { font-size: 12px; color: var(--teal-d); margin-top: 6px; font-weight: 500; }
.appt-info { display: flex; gap: 14px; align-items: center; }
.appt-avatar {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.appt-pro-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.appt-svc { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.appt-loc { font-size: 12.5px; color: var(--muted-l); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.appt-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.appt-status {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
}
.st-done { background: var(--cream-d); color: var(--muted); }
.appt-actions { display: flex; gap: 8px; }
.exp-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.account-switcher { display: flex; flex-direction: column; gap: 10px; }
.account-card {
  background: var(--white);
  border: 1.5px solid var(--cream-d);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  gap: 12px;
  align-items: center;
}
.account-card:hover { border-color: var(--sand); }
.account-card.active { border-color: var(--teal); background: var(--teal-l); }
.acc-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.account-card.active .acc-avatar { background: var(--white); }
.acc-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.acc-rel { font-size: 12px; color: var(--muted); margin-top: 1px; }
.acc-plan {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--warm-l);
  color: var(--warm);
}
.add-account {
  border: 1.5px dashed var(--sand);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  background: none;
  font-family: var(--sans);
}
.add-account:hover { border-color: var(--teal); color: var(--teal); }
.exp-main { background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); overflow: hidden; }
.exp-patient-head {
  padding: 24px;
  border-bottom: 1px solid var(--cream-d);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: linear-gradient(120deg, var(--teal-l) 0%, transparent 100%);
}
.eph-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow);
}
.eph-name { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: -0.4px; }
.eph-detail { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; gap: 12px; }
.eph-lock {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  background: var(--white);
  border: 1px solid var(--teal-m);
  color: var(--teal-d);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
}
.exp-vitals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cream-d);
  border-bottom: 1px solid var(--cream-d);
}
.vital { background: var(--white); padding: 16px 20px; }
.vital-label { font-size: 11.5px; color: var(--muted-l); margin-bottom: 4px; }
.vital-val { font-size: 15px; font-weight: 600; color: var(--ink); }
.exp-tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--cream-d);
}
.exp-tab {
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--sans);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.16s;
}
.exp-tab:hover { color: var(--ink); }
.exp-tab.active { color: var(--teal-d); border-bottom-color: var(--teal); }
.exp-body { padding: 24px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--cream-d);
}
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -28px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--cream-d);
}
.dot-teal { background: var(--teal-m); }
.dot-warm { background: var(--warm); }
.dot-blue { background: #1E5A96; }
.dot-gray { background: var(--muted-l); }
.tl-card {
  background: var(--cream);
  border: 1px solid var(--cream-d);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.tl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tl-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.tl-type {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 100px;
}
.tl-date { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.tl-desc { font-size: 13.5px; color: var(--ink-m); line-height: 1.6; }
.tl-by {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--cream-d);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.access-section { display: flex; flex-direction: column; gap: 14px; }
.access-intro {
  background: var(--teal-l);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--teal-d);
  line-height: 1.6;
  display: flex;
  gap: 12px;
}
.access-intro .ai-icon { font-size: 20px; }
.access-item {
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.access-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.access-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.access-detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.access-type {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 100px;
  margin-top: 6px;
  display: inline-block;
}
.at-write { background: #E6EEF7; color: #1E5A96; }
.at-read { background: var(--cream-d); color: var(--muted); }
.access-state { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.state-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sb-active { background: var(--teal-l); color: var(--teal-d); }
.sb-pending { background: var(--warm-l); color: var(--warm); }
.conv-unread {
  background: var(--warm);
  color: white;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px; height: 18px;
  border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
}
.chat-status { font-size: 12px; color: var(--teal-m); display: flex; align-items: center; gap: 5px; }
.chat-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-m); }
.ai-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--warm);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--cream);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalUp 0.3s ease;
}
.modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--cream-d);
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 2;
}
.modal-close {
  margin-left: auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream-d);
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-m);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.modal-close:hover { background: var(--sand); }
.modal-pro-avatar {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.modal-pro-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.modal-pro-spec { font-size: 13px; color: var(--muted); margin-top: 2px; }
.modal-body { padding: 24px 28px; }
.modal-step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-m);
  margin-bottom: 12px;
}
.svc-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.svc-option {
  background: var(--white);
  border: 1.5px solid var(--cream-d);
  border-radius: var(--r-md);
  padding: 15px 18px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.svc-option:hover { border-color: var(--sand); }
.svc-option.selected { border-color: var(--teal); background: var(--teal-l); }
.svc-opt-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.svc-opt-detail { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.svc-opt-price { font-family: var(--serif); font-size: 20px; color: var(--teal); }
.cal-widget { margin-bottom: 20px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-d);
  background: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.16s;
}
.cal-nav-btn:hover:not(:disabled) { border-color: var(--sand); }
.cal-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-month-label { font-size: 14.5px; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--muted-l); margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1;
  border: 1.5px solid var(--cream-d);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
}
.cal-day.empty { visibility: hidden; cursor: default; }
.cal-day.past { color: var(--muted-l); background: var(--cream); border-color: var(--cream); cursor: not-allowed; }
.cal-day.green { background: var(--teal-l); color: var(--teal-d); border-color: var(--teal-l); }
.cal-day.green:hover { border-color: var(--teal-m); }
.cal-day.yellow { background: #FBF3DC; color: #8A6414; border-color: #FBF3DC; }
.cal-day.yellow:hover { border-color: var(--gold); }
.cal-day.red { background: var(--red-l); color: var(--red); border-color: var(--red-l); cursor: not-allowed; }
.cal-day.selected { border-color: var(--teal); background: var(--teal); color: white; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.cal-legend-item { display: flex; align-items: center; gap: 5px; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cal-dot-green { background: var(--teal-m); }
.cal-dot-yellow { background: var(--gold); }
.cal-dot-red { background: var(--red); }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.time-cell {
  background: var(--white);
  border: 1.5px solid var(--cream-d);
  border-radius: var(--r-sm);
  padding: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
}
.time-cell:hover { border-color: var(--sand); }
.time-cell.selected { border-color: var(--teal); background: var(--teal); color: white; }
.time-cell.taken { background: var(--cream); color: var(--muted-l); cursor: not-allowed; border-color: var(--cream); }
.tc-taken-label { display: block; font-size: 9.5px; margin-top: 2px; }
.modal-summary {
  background: var(--white);
  border: 1px solid var(--cream-d);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 20px;
}
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; }
.summary-row .sr-label { color: var(--muted); }
.summary-row .sr-val { color: var(--ink); font-weight: 500; }
.summary-total {
  border-top: 1px solid var(--cream-d);
  margin-top: 8px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.st-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.st-val { font-family: var(--serif); font-size: 26px; color: var(--teal); }
body.page-patient {
  @media (max-width: 1100px) {
    .exp-layout { grid-template-columns: 1fr; }
    .msg-layout { grid-template-columns: 1fr; }
    .chat-area { display: none; }
    .chat-back-btn { display: inline-flex; align-items: center; }
    .msg-layout.chat-open .conv-list { display: none; }
    .msg-layout.chat-open .chat-area { display: flex; }
  }
}
body.page-patient {
  @media (max-width: 880px) {
  
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.28s ease;
    }
    .sidebar.open {
      transform: translateX(0);
      box-shadow: 0 0 48px rgba(28,25,23,0.28);
    }
    .main { margin-left: 0; }
    .hamburger { display: flex; }

    .topbar { padding: 0 16px; gap: 12px; }
    .location-pill { display: none; }
    .topbar-search { max-width: none; }

    .content { padding: 20px 16px; }
    .page-title { font-size: 27px; }

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

  
    .appt-card { grid-template-columns: 1fr; gap: 14px; }
    .appt-date {
      display: flex; align-items: baseline; gap: 8px;
      width: fit-content;
      padding: 8px 14px;
    }
    .ad-day { font-size: 20px; }
    .ad-month, .ad-time { margin-top: 0; }
    .appt-right { align-items: flex-start; }

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

  
    .access-item { flex-wrap: wrap; }
    .access-state { margin-left: 0; width: 100%; justify-content: space-between; }

    .msg-layout { height: calc(100vh - 200px); }
  }
}
body.page-patient {
  @media (max-width: 480px) {
    .topbar-actions { gap: 8px; }
    .icon-btn { width: 38px; height: 38px; font-size: 16px; }
    .page-title { font-size: 23px; }
    .page-sub { font-size: 14px; }

    .exp-tabs { gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .exp-tab { white-space: nowrap; font-size: 13px; }

    .tabs { width: 100%; }
    .tab { flex: 1; text-align: center; padding: 8px 6px; font-size: 12.5px; }

  
    .modal-head { padding: 18px 20px; }
    .modal-body { padding: 20px; }
    .cal-grid { gap: 3px; }
    .cal-day { font-size: 12px; }
    .time-grid { grid-template-columns: repeat(3, 1fr); }
  }
}

/* ---------- 7. ESPECÍFICO: PROFESIONAL ---------- */
.logo-sub {
  font-size: 11px;
  color: var(--muted-l);
  padding: 0 12px 20px;
  letter-spacing: 0.04em;
}
.nav-badge.teal { background: var(--teal); }
.user-name-row { display: flex; align-items: center; gap: 5px; }
.user-verified { color: var(--teal-m); font-size: 12px; }
.user-role { font-size: 12px; color: var(--muted); }
.topbar-greeting { font-size: 15px; color: var(--ink-m); }
.topbar-greeting b { font-weight: 600; color: var(--ink); }
.avail-toggle { display: flex; align-items: center; gap: 9px; background: var(--white); border: 1px solid var(--cream-d); border-radius: 100px; padding: 7px 14px 7px 16px; }
.avail-label { font-size: 13px; font-weight: 500; color: var(--teal-d); }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { display: none; }
.switch .slider { position: absolute; inset: 0; border-radius: 100px; background: var(--sand); transition: 0.2s; cursor: pointer; }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.btn-danger { background: var(--red-l); color: var(--red); }
.btn-danger:hover { filter: brightness(0.97); }
.card { background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); }
.card-pad { padding: 22px; }
.card-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--cream-d); }
.link-more { font-size: 13px; color: var(--teal); font-weight: 500; cursor: pointer; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); padding: 20px 22px; }
.sc-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.sc-val { font-family: var(--serif); font-size: 29px; color: var(--ink); letter-spacing: -0.5px; line-height: 1; }
.sc-label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sc-trend { font-size: 12px; margin-top: 10px; display: flex; align-items: center; gap: 4px; }
.trend-up { color: var(--teal); }
.trend-down { color: var(--red); }
.resumen-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.mini-appt { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--cream-d); }
.mini-appt:last-child { border-bottom: none; }
.ma-time { font-family: var(--serif); font-size: 17px; color: var(--teal-d); min-width: 54px; }
.ma-avatar { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ma-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ma-svc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ma-status { margin-left: auto; font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 100px; }
.ai-summary { background: linear-gradient(150deg, var(--warm-l) 0%, var(--cream) 100%); border: 1px solid var(--cream-d); border-radius: var(--r-lg); padding: 22px; }
.ai-sum-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ai-sum-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--warm); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.ai-sum-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.ai-sum-on { font-size: 12px; color: var(--teal-d); display: flex; align-items: center; gap: 5px; }
.ai-sum-on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-m); }
.ai-stat { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--cream-d); }
.ai-stat:last-of-type { border-bottom: none; }
.ai-stat-num { font-family: var(--serif); font-size: 24px; color: var(--warm); }
.ai-stat-label { font-size: 13px; color: var(--ink-m); }
.agenda-list { display: flex; flex-direction: column; gap: 14px; }
.agenda-card { background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); padding: 18px 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.agenda-card.pending { border-color: var(--warm); border-left-width: 4px; }
.ag-time-block { text-align: center; min-width: 70px; background: var(--teal-l); border-radius: var(--r-md); padding: 10px 14px; }
.ag-time-block.pending { background: var(--warm-l); }
.ag-hour { font-family: var(--serif); font-size: 20px; color: var(--teal-d); line-height: 1; }
.ag-time-block.pending .ag-hour { color: var(--warm); }
.ag-dur { font-size: 11px; color: var(--muted); margin-top: 4px; }
.ag-info { display: flex; gap: 14px; align-items: center; }
.ag-avatar { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.ag-patient { font-size: 16px; font-weight: 600; color: var(--ink); }
.ag-svc { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.ag-loc { font-size: 12.5px; color: var(--muted-l); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.ag-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ag-ai-note { font-size: 11.5px; color: var(--warm); display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.ai-hero { background: linear-gradient(135deg, var(--ink) 0%, #2a2622 100%); border-radius: var(--r-xl); padding: 28px; color: #fff; margin-bottom: 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ai-hero-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--warm); display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
.ai-hero-title { font-family: var(--serif); font-size: 24px; letter-spacing: -0.4px; }
.ai-hero-desc { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 4px; max-width: 440px; line-height: 1.6; }
.ai-hero-toggle { margin-left: auto; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 100px; padding: 10px 14px 10px 20px; }
.ai-hero-status { font-size: 14px; font-weight: 500; }
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.setting-group { margin-bottom: 20px; }
.setting-group:last-child { margin-bottom: 0; }
.sg-label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal-m); margin-bottom: 12px; }
.tone-options { display: flex; gap: 8px; }
.tone-opt { flex: 1; background: var(--white); border: 1.5px solid var(--cream-d); border-radius: var(--r-md); padding: 14px 12px; text-align: center; cursor: pointer; transition: all 0.18s; }
.tone-opt:hover { border-color: var(--sand); }
.tone-opt.active { border-color: var(--teal); background: var(--teal-l); }
.tone-emoji { font-size: 22px; }
.tone-name { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.tone-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rule-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--cream-d); }
.rule-item:last-child { border-bottom: none; }
.rule-text { flex: 1; }
.rule-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.rule-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.faq-item { background: var(--cream); border: 1px solid var(--cream-d); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; }
.faq-q { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.faq-a { font-size: 13px; color: var(--ink-m); margin-top: 6px; line-height: 1.55; padding-left: 22px; }
.faq-edit { margin-left: auto; font-size: 12px; color: var(--teal); cursor: pointer; }
.ai-preview { background: var(--cream); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.prev-bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.prev-them { background: var(--white); border: 1px solid var(--cream-d); align-self: flex-start; border-bottom-left-radius: 4px; }
.prev-ai { background: var(--warm-l); align-self: flex-start; border-bottom-left-radius: 4px; }
.prev-ai-tag { font-size: 10.5px; font-weight: 600; color: var(--warm); display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cream-d); }
.activity-row:last-child { border-bottom: none; }
.act-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--warm-l); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.act-text { font-size: 13.5px; color: var(--ink-m); }
.act-text b { color: var(--ink); font-weight: 600; }
.act-time { margin-left: auto; font-size: 12px; color: var(--muted-l); }
.profile-header { display: flex; gap: 22px; align-items: center; padding: 26px; flex-wrap: wrap; }
.profile-avatar { width: 90px; height: 90px; border-radius: 24px; background: var(--blue-l); display: flex; align-items: center; justify-content: center; font-size: 42px; flex-shrink: 0; }
.profile-name { font-family: var(--serif); font-size: 26px; color: var(--ink); letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.verified-badge { font-size: 13px; font-weight: 500; color: var(--teal-d); background: var(--teal-l); padding: 4px 12px; border-radius: 100px; display: inline-flex; align-items: center; gap: 5px; }
.profile-spec { font-size: 15px; color: var(--muted); margin-top: 4px; }
.profile-meta { display: flex; gap: 20px; margin-top: 12px; }
.pm-item { font-size: 13.5px; color: var(--ink-m); display: flex; align-items: center; gap: 6px; }
.pm-item b { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.verif-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--cream-d); }
.verif-row:last-child { border-bottom: none; }
.verif-check { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-l); color: var(--teal-d); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.verif-check.pending { background: var(--warm-l); color: var(--warm); }
.verif-check.rejected { background: var(--red-l); color: var(--red); }
.verif-name { font-size: 14px; color: var(--ink); }
.verif-state { margin-left: auto; font-size: 12.5px; font-weight: 500; }
.verif-note { font-size: 12.5px; color: var(--muted); padding: 0 0 12px; margin-top: -6px; }
.vs-ok { color: var(--teal-d); }
.vs-pending { color: var(--warm); }
.vs-rejected { color: var(--red); }
.sched-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--cream-d); }
.sched-row:last-child { border-bottom: none; }
.sched-day { font-size: 13.5px; font-weight: 500; color: var(--ink); min-width: 90px; }
.sched-hours { font-size: 13.5px; color: var(--muted); }
.sched-off { font-size: 13px; color: var(--muted-l); font-style: italic; }
.zone-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--cream); border: 1px solid var(--cream-d); border-radius: 100px; padding: 6px 14px; font-size: 13px; color: var(--ink-m); margin: 0 6px 6px 0; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.svc-card { background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); padding: 20px; }
.svc-card.inactive { opacity: 0.6; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.svc-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.svc-mod { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 100px; margin-top: 6px; }
.mod-home { background: var(--teal-l); color: var(--teal-d); }
.mod-office { background: var(--blue-l); color: var(--blue); }
.mod-video { background: var(--warm-l); color: var(--warm); }
.svc-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--cream-d); }
.svc-price { font-family: var(--serif); font-size: 22px; color: var(--teal); }
.svc-dur { font-size: 12.5px; color: var(--muted-l); }
.add-svc-card { border: 1.5px dashed var(--sand); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; cursor: pointer; color: var(--muted); transition: all 0.18s; min-height: 180px; }
.add-svc-card:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-l); }
.income-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.stripe-banner { display: flex; align-items: center; gap: 14px; background: var(--teal-l); border: 1px solid var(--teal-m); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 24px; }
.stripe-icon { width: 40px; height: 40px; border-radius: 10px; background: #635BFF; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.stripe-text { font-size: 14px; color: var(--teal-d); }
.stripe-text b { font-weight: 600; }
.chart-wrap { padding: 22px; }
.chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 44px; background: linear-gradient(var(--teal-m), var(--teal)); border-radius: 8px 8px 0 0; transition: height 0.4s ease; position: relative; }
.bar:hover::after { content: attr(data-val); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--teal-d); white-space: nowrap; }
.bar-label { font-size: 12px; color: var(--muted); }
.tx-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--cream-d); }
.tx-row:last-child { border-bottom: none; }
.tx-avatar { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.tx-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tx-detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tx-amounts { margin-left: auto; text-align: right; }
.tx-gross { font-size: 15px; font-weight: 600; color: var(--ink); }
.tx-net { font-size: 12px; color: var(--teal-d); margin-top: 2px; }
.conv-ai-flag { font-size: 11px; color: var(--warm); display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.chat-meta { font-size: 12px; color: var(--muted); }
.ai-banner { background: var(--warm-l); border-bottom: 1px solid var(--cream-d); padding: 10px 22px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--warm); }
.ai-banner .ab-text { flex: 1; }
.bubble-ai-tag { font-size: 10.5px; font-weight: 600; color: var(--warm); display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
body.page-professional {
  @media (max-width: 1100px) {
    .resumen-grid { grid-template-columns: 1fr; }
    .ai-layout { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .income-grid { grid-template-columns: 1fr; }
    .msg-layout { grid-template-columns: 1fr; }
    .chat-area { display: none; }
    .chat-back-btn { display: inline-flex; align-items: center; }
    .msg-layout.chat-open .conv-list { display: none; }
    .msg-layout.chat-open .chat-area { display: flex; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
  }
}
body.page-professional {
  @media (max-width: 880px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.28s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 48px rgba(28,25,23,0.28); }
    .main { margin-left: 0; }
    .hamburger { display: flex; }
    .topbar { padding: 0 16px; gap: 10px; }
    .topbar-greeting { display: none; }
    .avail-toggle { padding: 7px 12px 7px 14px; }
    .avail-label { font-size: 12px; }
    .content { padding: 20px 16px; }
    .page-title { font-size: 26px; }

    .agenda-card { grid-template-columns: 1fr; gap: 14px; }
    .ag-time-block { display: flex; align-items: baseline; gap: 8px; width: fit-content; padding: 8px 14px; }
    .ag-dur { margin-top: 0; }
    .ag-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }

    .msg-layout { height: calc(100vh - 195px); }
  }
}
body.page-professional {
  @media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .sc-val { font-size: 24px; }
    .topbar-actions { gap: 8px; }
    .icon-btn { width: 38px; height: 38px; font-size: 16px; }
    .page-title { font-size: 23px; }
    .tone-options { flex-direction: column; }
    .tone-opt { display: flex; align-items: center; gap: 12px; text-align: left; }
    .tone-emoji { font-size: 20px; }
    .tone-name, .tone-desc { margin-top: 0; }
    .ai-hero { padding: 22px; }
    .ai-hero-toggle { margin-left: 0; width: 100%; justify-content: space-between; }
    .tabs { width: 100%; }
    .tab { flex: 1; text-align: center; padding: 8px 6px; font-size: 12.5px; }
    .chart { gap: 8px; }
    .profile-meta { flex-wrap: wrap; gap: 10px 18px; }
  }
}

/* ---------- 8. ESPECÍFICO: LANDING (aislado) ---------- */
body.page-landing {
  overflow-x: hidden;
  --r-lg: 24px;
  --r-xl: 40px;

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: rgba(247,243,238,0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217,206,191,0.5);
    transition: padding 0.3s;
  }

  .logo {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--teal);
    letter-spacing: -0.5px;
    text-decoration: none;
  }

  .logo span { color: var(--teal); }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }

  .nav-links a {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink-m);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--teal); }

  .nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--r-sm);
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
  }

  .btn-ghost {
    background: transparent;
    color: var(--ink-m);
    border: 1.5px solid var(--sand);
  }

  .btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

  .btn-primary {
    background: var(--teal);
    color: var(--white);
  }

  .btn-primary:hover { background: var(--teal-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,122,110,0.25); }

  .btn-warm {
    background: var(--warm);
    color: var(--white);
    font-size: 16px;
    padding: 14px 32px;
    border-radius: var(--r-md);
  }

  .btn-warm:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,96,26,0.3); }

  .btn-lg {
    font-size: 16px;
    padding: 15px 36px;
    border-radius: var(--r-md);
  }

  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 48px 80px;
    gap: 60px;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -200px;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42,157,142,0.1) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-l);
    color: var(--teal-d);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    animation: fadeUp 0.6s ease both;
  }

  .hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal-m);
    display: inline-block;
  }

  .hero-title {
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: 24px;
    animation: fadeUp 0.7s 0.1s ease both;
  }

  .hero-title em {
    font-style: italic;
    color: var(--teal);
  }

  .hero-title .accent {
    color: var(--warm);
    font-style: normal;
  }

  .hero-sub {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 40px;
    animation: fadeUp 0.7s 0.2s ease both;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.3s ease both;
  }

  .hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--cream-d);
    animation: fadeUp 0.7s 0.4s ease both;
  }

  .stat-num {
    font-family: var(--serif);
    font-size: 36px;
    color: var(--teal);
    letter-spacing: -1px;
    line-height: 1;
    display: block;
  }

  .stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    display: block;
    font-weight: 400;
  }

  .hero-visual {
    position: relative;
    animation: fadeUp 0.8s 0.2s ease both;
  }

  .hero-card-main {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: 0 20px 60px rgba(28,25,23,0.1);
    border: 1px solid var(--cream-d);
    position: relative;
  }

  .card-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
  }

  .avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
  }

  .avatar-teal { background: var(--teal-l); }

  .avatar-warm { background: var(--warm-l); }

  .profile-name {
    font-weight: 500;
    font-size: 16px;
    color: var(--ink);
  }

  .profile-role {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
  }

  .badge-verified {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--teal-l);
    color: var(--teal-d);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
  }

  .service-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .chip {
    background: var(--cream);
    color: var(--ink-m);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--cream-d);
  }

  .chip-active {
    background: var(--teal-l);
    color: var(--teal-d);
    border-color: transparent;
  }

  .card-divider { height: 1px; background: var(--cream-d); margin: 20px 0; }

  .rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ink-m);
  }

  .stars { color: #E6A817; letter-spacing: 1px; }

  .rating-num { font-weight: 500; }

  .rating-count { color: var(--muted); font-size: 13px; }

  .price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 16px;
  }

  .price-num {
    font-family: var(--serif);
    font-size: 32px;
    color: var(--teal);
    letter-spacing: -0.5px;
  }

  .price-unit { font-size: 14px; color: var(--muted); }

  .card-book-btn {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
  }

  .float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--r-md);
    padding: 14px 18px;
    box-shadow: 0 12px 32px rgba(28,25,23,0.1);
    border: 1px solid var(--cream-d);
    font-size: 13px;
    animation: float 4s ease-in-out infinite;
  }

  .float-card-1 {
    top: -32px; right: -24px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation-delay: 0s;
  }

  .float-card-2 {
    bottom: 60px; left: -32px;
    animation-delay: 2s;
  }

  .fc-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--teal-l);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  .fc-title { font-weight: 500; color: var(--ink); }

  .fc-sub { color: var(--muted); margin-top: 2px; font-size: 12px; }

  section { padding: 100px 48px; }

  .section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-m);
    margin-bottom: 16px;
    display: block;
  }

  .section-title {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 20px;
  }

  .section-sub {
    font-size: 17px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
  }

  .audiences {
    background: var(--white);
  }

  .audiences-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .audiences-header {
    text-align: center;
    margin-bottom: 64px;
  }

  .audiences-header .section-sub { margin: 0 auto; }

  .audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .audience-card {
    border-radius: var(--r-lg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .audience-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(28,25,23,0.12); }

  .audience-card-patient { background: var(--teal-l); }

  .audience-card-pro     { background: var(--teal); color: var(--white); }

  .audience-card-intern  { background: var(--warm-l); }

  .aud-icon { font-size: 40px; margin-bottom: 20px; display: block; }

  .aud-title {
    font-family: var(--serif);
    font-size: 26px;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }

  .audience-card-pro .aud-title { color: var(--white); }

  .aud-desc {
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
  }

  .audience-card-patient .aud-desc,
  .audience-card-intern  .aud-desc { color: var(--ink-m); }

  .audience-card-pro .aud-desc { color: rgba(255,255,255,0.8); }

  .aud-features {
    margin-top: 24px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .aud-features li {
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .audience-card-patient .aud-features li,
  .audience-card-intern .aud-features li { color: var(--ink-m); }

  .audience-card-pro .aud-features li { color: rgba(255,255,255,0.85); }

  .check {
    width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .audience-card-patient .check,
  .audience-card-intern  .check { background: var(--teal); color: var(--white); }

  .audience-card-pro .check { background: rgba(255,255,255,0.2); color: var(--white); }

  .how {
    background: var(--cream);
  }

  .how-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
  }

  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    position: relative;
  }

  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(var(--cream-d), transparent);
  }

  .step-num {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 20px;
    flex-shrink: 0;
    z-index: 1;
  }

  .step:nth-child(1) .step-num { background: var(--teal-l); color: var(--teal-d); }

  .step:nth-child(2) .step-num { background: var(--warm-l); color: var(--warm); }

  .step:nth-child(3) .step-num { background: var(--teal); color: var(--white); }

  .step:nth-child(4) .step-num { background: var(--ink); color: var(--white); }

  .step-content { padding-bottom: 40px; }

  .step-title { font-weight: 500; font-size: 17px; color: var(--ink); margin-bottom: 6px; }

  .step-desc { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 300; }

  .how-visual {
    position: relative;
  }

  .phone-frame {
    background: var(--ink);
    border-radius: 36px;
    padding: 14px;
    width: 280px;
    margin: 0 auto;
    box-shadow: 0 40px 80px rgba(28,25,23,0.25);
    position: relative;
  }

  .phone-screen {
    background: var(--cream);
    border-radius: 26px;
    overflow: hidden;
    min-height: 500px;
    padding: 20px 16px;
  }

  .phone-notch {
    width: 80px; height: 10px;
    background: var(--ink);
    border-radius: 100px;
    margin: 0 auto 20px;
  }

  .phone-search {
    background: var(--white);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--cream-d);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .phone-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .phone-card {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 14px;
    border: 1px solid var(--cream-d);
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .phone-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  .phone-card-name { font-size: 13px; font-weight: 500; color: var(--ink); }

  .phone-card-role { font-size: 11px; color: var(--muted); }

  .phone-card-price { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--teal); }

  .expediente {
    background: var(--ink);
    color: var(--white);
  }

  .expediente-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .expediente .section-label { color: var(--teal-m); }

  .expediente .section-title { color: var(--white); }

  .expediente .section-sub { color: rgba(255,255,255,0.55); }

  .exp-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
  }

  .exp-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .exp-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: rgba(42,157,142,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid rgba(42,157,142,0.2);
  }

  .exp-title { font-weight: 500; font-size: 15px; color: var(--white); margin-bottom: 4px; }

  .exp-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; font-weight: 300; }

  .exp-visual {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    padding: 28px;
  }

  .exp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .exp-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(42,157,142,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(42,157,142,0.3);
  }

  .exp-patient-name { font-weight: 500; color: var(--white); font-size: 15px; }

  .exp-patient-id { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

  .exp-lock {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--teal-m);
    background: rgba(42,157,142,0.12);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(42,157,142,0.2);
  }

  .exp-records {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .exp-record {
    background: rgba(255,255,255,0.04);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.05);
  }

  .rec-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .rec-dot-teal { background: var(--teal-m); }

  .rec-dot-warm { background: var(--warm); }

  .rec-dot-gray { background: rgba(255,255,255,0.3); }

  .rec-title { font-size: 13px; color: rgba(255,255,255,0.8); }

  .rec-date { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

  .rec-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 100px;
  }

  .rb-teal { background: rgba(42,157,142,0.15); color: var(--teal-m); }

  .rb-warm { background: rgba(196,96,26,0.15); color: #E07340; }

  .exp-access-row {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .access-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .ap-active { background: rgba(42,157,142,0.15); color: var(--teal-m); }

  .ap-pending { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }

  .access-label { font-size: 12px; color: rgba(255,255,255,0.3); margin-right: auto; }

  .interns {
    background: var(--cream-d);
  }

  .interns-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }

  .interns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
  }

  .intern-card {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 28px 20px;
    border: 1px solid var(--sand);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .intern-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28,25,23,0.08); }

  .intern-emoji { font-size: 36px; margin-bottom: 14px; display: block; }

  .intern-area { font-weight: 500; font-size: 15px; color: var(--ink); margin-bottom: 6px; }

  .intern-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

  .cta-section {
    background: var(--teal);
    text-align: center;
    padding: 100px 48px;
    position: relative;
    overflow: hidden;
  }

  .cta-section::before {
    content: '';
    position: absolute;
    top: -200px; left: -200px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
  }

  .cta-section::after {
    content: '';
    position: absolute;
    bottom: -150px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
  }

  .cta-section .section-title { color: var(--white); margin-bottom: 16px; }

  .cta-section .section-sub { color: rgba(255,255,255,0.65); margin: 0 auto 40px; text-align: center; }

  .cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-white {
    background: var(--white);
    color: var(--teal-d);
    font-size: 16px;
    padding: 14px 32px;
    border-radius: var(--r-md);
    font-weight: 500;
  }

  .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

  .btn-outline-white {
    background: transparent;
    color: var(--white);
    font-size: 16px;
    padding: 14px 32px;
    border-radius: var(--r-md);
    border: 2px solid rgba(255,255,255,0.4);
  }

  .btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

  footer {
    background: var(--ink);
    color: rgba(255,255,255,0.5);
    padding: 60px 48px 40px;
  }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }

  .footer-logo {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--white);
    margin-bottom: 12px;
    display: block;
  }

  .footer-logo span { color: var(--teal-m); }

  .footer-desc { font-size: 14px; line-height: 1.7; font-weight: 300; }

  .footer-col-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

  .footer-links a { color: rgba(255,255,255,0.45); font-size: 14px; text-decoration: none; transition: color 0.2s; }

  .footer-links a:hover { color: var(--white); }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  @media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
    .hero-visual { display: none; }
    section { padding: 70px 24px; }
    .audience-grid { grid-template-columns: 1fr; }
    .how-inner { grid-template-columns: 1fr; }
    .phone-frame { display: none; }
    .expediente-inner { grid-template-columns: 1fr; }
    .interns-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 24px; }
  }

  @media (max-width: 600px) {
    nav { padding: 14px 18px; }
    .logo { font-size: 22px; }
    .nav-cta .btn-ghost { display: none; }        
    .hero { padding: 92px 18px 52px; }
    .hero-title { font-size: 37px; letter-spacing: -1px; }
    .hero-sub { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 20px 32px; margin-top: 40px; padding-top: 28px; }
    .stat-num { font-size: 30px; }
    section { padding: 56px 18px; }
    .section-title { font-size: 30px; }
    .interns-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .cta-btns { flex-direction: column; }
    .cta-btns .btn { justify-content: center; }
  }

  @media (max-width: 380px) {
    .hero-title { font-size: 32px; }
    .hero-badge { font-size: 12px; }
    .hero-stats { gap: 16px 22px; }
    .stat-num { font-size: 26px; }
    .stat-label { font-size: 12px; }
    .section-title { font-size: 27px; }
  }
}


/* ---------- 9. ESPECÍFICO: REGISTRO / ONBOARDING (aislado) ---------- */
@keyframes ob-spin { to { transform: rotate(360deg); } }

body.page-registro {
  .ob-shell { min-height: 100vh; display: grid; grid-template-columns: 0.85fr 1.15fr; }

  /* Panel de marca */
  .ob-brand {
    background: linear-gradient(155deg, var(--teal) 0%, var(--teal-d) 100%);
    color: #fff; padding: 40px 44px; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
  }
  .ob-brand::before { content: ''; position: absolute; top: -120px; right: -140px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,0.05); }
  .ob-brand::after { content: ''; position: absolute; bottom: -100px; left: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.04); }
  .ob-logo { font-family: var(--serif); font-size: 26px; color: #fff; text-decoration: none; letter-spacing: -0.5px; position: relative; z-index: 1; }
  .ob-logo span { color: var(--teal-m); }
  .ob-brand-body { margin: auto 0; position: relative; z-index: 1; }
  .ob-brand-title { font-family: var(--serif); font-size: 32px; letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 14px; }
  .ob-brand-sub { font-size: 15px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.7); max-width: 360px; margin-bottom: 36px; }

  .ob-steps { list-style: none; }
  .ob-step { display: flex; gap: 14px; padding: 13px 0; position: relative; opacity: 0.5; transition: opacity 0.25s; }
  .ob-step.active, .ob-step.done { opacity: 1; }
  .ob-step:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 47px; bottom: -1px; width: 2px; background: rgba(255,255,255,0.18); }
  .ob-step-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; background: transparent; transition: all 0.25s; }
  .ob-step.active .ob-step-num { background: #fff; color: var(--teal-d); border-color: #fff; }
  .ob-step.done .ob-step-num { background: var(--warm); color: #fff; border-color: var(--warm); }
  .ob-step-name { font-size: 14.5px; font-weight: 500; }
  .ob-step-desc { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 1px; }

  .ob-trust { display: flex; gap: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md); padding: 16px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.8); margin-top: 36px; position: relative; z-index: 1; }
  .ob-trust-icon { font-size: 18px; }

  /* Área de formulario */
  .ob-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
  .ob-card { width: 100%; max-width: 520px; }

  .ob-progress-mobile { display: none; width: 100%; max-width: 520px; margin-bottom: 24px; }
  .ob-progress-track { height: 6px; background: var(--cream-d); border-radius: 100px; overflow: hidden; }
  .ob-progress-fill { height: 100%; width: 20%; background: var(--teal); border-radius: 100px; transition: width 0.35s ease; }
  .ob-progress-label { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-weight: 500; }

  .ob-panel { display: none; }
  .ob-panel.active { display: block; animation: fadeIn 0.3s ease; }
  .ob-panel-head { margin-bottom: 22px; }
  .ob-panel-title { font-family: var(--serif); font-size: 27px; letter-spacing: -0.6px; color: var(--ink); margin-bottom: 6px; }
  .ob-panel-sub { font-size: 14.5px; color: var(--muted); font-weight: 300; line-height: 1.6; }

  .ob-field { margin-bottom: 16px; }
  .ob-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .ob-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-m); margin-bottom: 7px; }
  .ob-input { width: 100%; border: 1.5px solid var(--cream-d); border-radius: var(--r-sm); padding: 12px 14px; font-family: var(--sans); font-size: 14.5px; color: var(--ink); background: var(--white); outline: none; transition: border-color 0.18s; }
  .ob-input::placeholder { color: var(--muted-l); }
  .ob-input:focus { border-color: var(--teal); }
  .ob-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%237A7166' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
  .ob-textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
  .ob-hint { font-size: 12px; color: var(--muted-l); margin-top: 6px; }
  .ob-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-m); line-height: 1.5; margin-top: 4px; cursor: pointer; }
  .ob-check input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0; }
  .ob-check a { color: var(--teal); }

  /* Verificación de cédula */
  .ob-verify-input { display: flex; gap: 10px; }
  .ob-verify-input .ob-input { flex: 1; }
  .ob-verify-btn { background: var(--teal); color: #fff; border: none; border-radius: var(--r-sm); padding: 0 18px; font-family: var(--sans); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 0.18s; }
  .ob-verify-btn:hover { background: var(--teal-d); }
  .ob-verify-btn:disabled { background: var(--sand); cursor: default; }

  .ob-verify-result { display: none; margin-top: 12px; }
  .ob-verify-result.show { display: block; }
  .ob-vr-loading { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--cream-d); border-radius: var(--r-md); padding: 16px; font-size: 13.5px; color: var(--muted); }
  .ob-spinner { width: 20px; height: 20px; border: 2.5px solid var(--cream-d); border-top-color: var(--teal); border-radius: 50%; animation: ob-spin 0.7s linear infinite; flex-shrink: 0; }
  .ob-vr-ok { background: var(--teal-l); border: 1px solid var(--teal-m); border-radius: var(--r-md); padding: 16px 18px; }
  .ob-vr-ok-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--teal-d); margin-bottom: 12px; }
  .ob-vr-ok-check { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
  .ob-vr-data { display: flex; flex-direction: column; gap: 7px; }
  .ob-vr-data-row { display: flex; justify-content: space-between; font-size: 13px; }
  .ob-vr-dl { color: var(--teal-d); opacity: 0.7; }
  .ob-vr-dv { color: var(--teal-d); font-weight: 500; text-align: right; }

  /* Subida de archivos */
  .ob-upload { border: 1.5px dashed var(--sand); border-radius: var(--r-md); padding: 26px 20px; text-align: center; cursor: pointer; transition: all 0.18s; background: var(--white); }
  .ob-upload:hover { border-color: var(--teal); background: var(--teal-l); }
  .ob-upload.loaded { border-style: solid; border-color: var(--teal-m); background: var(--teal-l); }
  .ob-upload-icon { font-size: 30px; margin-bottom: 8px; }
  .ob-upload-text { font-size: 14px; color: var(--ink-m); }
  .ob-upload-text b { color: var(--teal-d); font-weight: 600; }
  .ob-upload-hint { font-size: 12px; color: var(--muted-l); margin-top: 5px; }

  .ob-note { display: flex; gap: 10px; background: var(--warm-l); border-radius: var(--r-md); padding: 14px 16px; font-size: 13px; color: var(--ink-m); line-height: 1.55; margin-top: 4px; }

  /* Navegación */
  .ob-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--cream-d); }
  .ob-btn-primary { display: inline-flex; align-items: center; gap: 7px; background: var(--teal); color: #fff; border: none; border-radius: var(--r-sm); padding: 12px 24px; font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.18s; text-decoration: none; }
  .ob-btn-primary:hover { background: var(--teal-d); }
  .ob-btn-ghost { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--ink-m); border: 1.5px solid var(--sand); border-radius: var(--r-sm); padding: 12px 22px; font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.18s; }
  .ob-btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
  .ob-btn-ghost.hidden { visibility: hidden; }
  .ob-btn-block { width: 100%; justify-content: center; }

  .ob-login-hint { font-size: 13.5px; color: var(--muted); margin-top: 22px; }
  .ob-login-hint a { color: var(--teal); font-weight: 500; }

  /* Éxito */
  .ob-success { text-align: center; padding: 10px 0; }
  .ob-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 18px; }
  .ob-success-title { font-family: var(--serif); font-size: 27px; letter-spacing: -0.6px; color: var(--ink); margin-bottom: 8px; }
  .ob-success-sub { font-size: 14.5px; color: var(--muted); font-weight: 300; line-height: 1.65; max-width: 400px; margin: 0 auto 24px; }
  .ob-summary { background: var(--cream); border: 1px solid var(--cream-d); border-radius: var(--r-md); padding: 16px 18px; text-align: left; margin-bottom: 20px; }
  .ob-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--cream-d); }
  .ob-summary-row:last-child { border-bottom: none; }
  .ob-sr-label { color: var(--muted); }
  .ob-sr-val { font-weight: 500; }
  .ob-sr-val.ok { color: var(--teal-d); }
  .ob-sr-val.pending { color: var(--warm); }
  .ob-next-steps { background: var(--warm-l); border-radius: var(--r-md); padding: 16px 18px; text-align: left; margin-bottom: 22px; }
  .ob-ns-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
  .ob-ns-item { font-size: 13.5px; color: var(--ink-m); padding: 5px 0; }

  /* Fases y selector de rol */
  .ob-phase { display: none; }
  .ob-phase.active { display: block; animation: fadeIn 0.3s ease; }
  .ob-phase-back { background: none; border: none; font-family: var(--sans); font-size: 13.5px; color: var(--muted); cursor: pointer; padding: 0; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 6px; }
  .ob-phase-back:hover { color: var(--teal); }
  .ob-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
  .ob-role { text-align: left; background: var(--white); border: 1.5px solid var(--cream-d); border-radius: var(--r-lg); padding: 26px 22px; cursor: pointer; transition: all 0.2s; font-family: var(--sans); display: flex; flex-direction: column; }
  .ob-role:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .ob-role.role-pro:hover { border-color: var(--warm); }
  .ob-role-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--teal-l); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
  .ob-role.role-pro .ob-role-icon { background: var(--warm-l); }
  .ob-role-name { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
  .ob-role-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
  .ob-role-cta { font-size: 13.5px; font-weight: 600; color: var(--teal); margin-top: 18px; }
  .ob-role.role-pro .ob-role-cta { color: var(--warm); }

  /* Responsive */
  @media (max-width: 900px) {
    .ob-shell { grid-template-columns: 1fr; }
    .ob-roles { grid-template-columns: 1fr; }
    .ob-brand { padding: 24px; }
    .ob-brand-body { margin: 20px 0; }
    .ob-brand-title { font-size: 24px; }
    .ob-brand-sub { margin-bottom: 22px; }
    .ob-steps { display: none; }
    .ob-trust { margin-top: 20px; }
    .ob-main { padding: 28px 18px; justify-content: flex-start; }
    .ob-progress-mobile { display: block; }
  }
  @media (max-width: 480px) {
    .ob-row { grid-template-columns: 1fr; gap: 16px; }
    .ob-panel-title { font-size: 23px; }
    .ob-verify-input { flex-direction: column; }
    .ob-verify-btn { padding: 12px; }
    .ob-nav { gap: 10px; }
    .ob-btn-primary, .ob-btn-ghost { padding: 12px 16px; flex: 1; justify-content: center; }
  }
}

/* ---------- 10. ESPECÍFICO: PRACTICANTE (aislado) ---------- */
body.page-intern {
  /* Shell (acento cálido para diferenciar del profesional) */
  .sidebar { width: 248px; background: var(--white); border-right: 1px solid var(--cream-d); display: flex; flex-direction: column; padding: 24px 16px; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; overflow-y: auto; }
  .logo { font-family: var(--serif); font-size: 24px; color: var(--teal); letter-spacing: -0.5px; padding: 0 12px 6px; }
  .logo span { color: var(--teal); }
  .logo-sub { font-size: 11px; color: var(--muted-l); padding: 0 12px 20px; letter-spacing: 0.04em; }
  .nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-m); cursor: pointer; transition: all 0.18s; border: none; background: none; width: 100%; text-align: left; font-family: var(--sans); }
  .nav-item:hover { background: var(--cream); }
  .nav-item.active { background: var(--warm-l); color: var(--warm); font-weight: 500; }
  .nav-item .ico { font-size: 18px; width: 22px; text-align: center; }
  .nav-badge { margin-left: auto; background: var(--warm); color: #fff; font-size: 11px; font-weight: 600; min-width: 19px; height: 19px; border-radius: 100px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
  .sidebar-footer { margin-top: auto; border-top: 1px solid var(--cream-d); padding-top: 16px; }
  .user-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--warm-l); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .user-name-row { display: flex; align-items: center; gap: 5px; }
  .user-name { font-size: 14px; font-weight: 500; color: var(--ink); }
  .user-verified { color: var(--teal-m); font-size: 12px; }
  .user-role { font-size: 12px; color: var(--muted); }
  .main { flex: 1; min-width: 0; margin-left: 248px; display: flex; flex-direction: column; min-height: 100vh; }
  .topbar { height: 72px; background: rgba(247,243,238,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--cream-d); display: flex; align-items: center; padding: 0 36px; gap: 16px; position: sticky; top: 0; z-index: 40; }
  .topbar-greeting { font-size: 15px; color: var(--ink-m); }
  .topbar-greeting b { font-weight: 600; color: var(--ink); }
  .topbar-actions { margin-left: auto; display: flex; gap: 14px; align-items: center; }
  .content { padding: 32px 36px; flex: 1; }
  .page-head { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .page-title { font-family: var(--serif); font-size: 32px; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 4px; }
  .btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 14px; font-weight: 500; border-radius: var(--r-sm); padding: 10px 18px; cursor: pointer; transition: all 0.18s; border: none; }
  .btn-sm { padding: 8px 14px; font-size: 13px; }
  .tabs { display: flex; gap: 4px; background: var(--cream-d); padding: 4px; border-radius: var(--r-sm); width: fit-content; margin-bottom: 22px; }
  .tab { padding: 8px 18px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; border: none; background: none; font-family: var(--sans); transition: all 0.16s; }

  /* Banner de validación */
  .iv-banner { display: flex; align-items: center; gap: 14px; background: var(--teal-l); border: 1px solid var(--teal-m); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 24px; }
  .iv-banner-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
  .iv-banner-text { font-size: 14px; color: var(--teal-d); flex: 1; }
  .iv-banner-text b { font-weight: 600; }

  /* Nota informativa */
  .iv-note { display: flex; gap: 10px; background: var(--warm-l); border-radius: var(--r-md); padding: 14px 16px; font-size: 13px; color: var(--ink-m); line-height: 1.55; margin-bottom: 18px; }

  /* Barra de progreso de horas */
  .prog-card { padding: 22px; }
  .prog-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
  .prog-label { font-size: 14px; font-weight: 600; color: var(--ink); }
  .prog-val { font-family: var(--serif); font-size: 22px; color: var(--warm); }
  .prog-bar { height: 10px; background: var(--cream-d); border-radius: 100px; overflow: hidden; }
  .prog-fill { height: 100%; background: linear-gradient(90deg, var(--warm-m), var(--warm)); border-radius: 100px; }
  .prog-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

  /* Tarjeta de supervisor */
  .sup-card { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
  .sup-avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-l); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
  .sup-name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
  .sup-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .sup-stat { font-size: 12.5px; color: var(--teal-d); margin-top: 5px; }

  /* Bitácora */
  .log-item { background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 14px; }
  .log-item.validated { border-left: 4px solid var(--teal-m); }
  .log-item.rejected { border-left: 4px solid var(--red); }
  .log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
  .log-title { font-size: 15.5px; font-weight: 600; color: var(--ink); }
  .log-status { font-size: 11.5px; font-weight: 500; padding: 4px 11px; border-radius: 100px; white-space: nowrap; }
  .lg-validated { background: var(--teal-l); color: var(--teal-d); }
  .lg-sent { background: var(--warm-l); color: var(--warm); }
  .lg-rejected { background: var(--red-l); color: var(--red); }
  .lg-draft { background: var(--cream-d); color: var(--muted); }
  .log-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
  .log-notes { font-size: 13.5px; color: var(--ink-m); line-height: 1.6; }
  .log-feedback { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.55; display: flex; gap: 9px; }
  .log-feedback.ok { background: var(--teal-l); color: var(--teal-d); }
  .log-feedback.bad { background: var(--red-l); color: var(--red); }
  .log-feedback-by { font-weight: 600; }
  .log-actions { margin-top: 12px; display: flex; gap: 8px; }

  /* Responsive (incluye componentes globales reutilizados) */
  @media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .resumen-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 880px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.28s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 48px rgba(28,25,23,0.28); }
    .main { margin-left: 0; }
    .hamburger { display: flex; }
    .topbar { padding: 0 16px; gap: 10px; }
    .topbar-greeting { display: none; }
    .content { padding: 20px 16px; }
    .page-title { font-size: 26px; }
    .agenda-card { grid-template-columns: 1fr; gap: 14px; }
    .ag-time-block { display: flex; align-items: baseline; gap: 8px; width: fit-content; padding: 8px 14px; }
    .ag-dur { margin-top: 0; }
    .ag-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
    .log-head { flex-wrap: wrap; }
  }
  @media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .sc-val { font-size: 24px; }
    .tabs { width: 100%; }
    .tab { flex: 1; text-align: center; padding: 8px 6px; font-size: 12.5px; }
    .profile-meta { flex-wrap: wrap; gap: 10px 18px; }
    .avail-toggle { padding: 7px 12px 7px 14px; }
    .avail-label { font-size: 12px; }
  }
}

/* ---------- Navegación global: logo como enlace a inicio + cerrar sesión ---------- */
.logo { text-decoration: none; }
.logo-icon { height: 1.15em; width: auto; vertical-align: -0.22em; margin-right: 6px; }
.logout-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-top: 6px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); text-decoration: none; transition: all 0.18s; }
.logout-link:hover { background: var(--cream); color: var(--red); }

/* ---------- 11. INICIO / FEED (global, reutilizable en los 3 paneles) ---------- */
.feed { display: flex; flex-direction: column; gap: 30px; }

/* Hero de bienvenida (acento por panel más abajo) */
.feed-hero { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-d) 100%); border-radius: var(--r-lg); padding: 30px 32px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.feed-hero-title { font-family: var(--serif); font-size: 26px; letter-spacing: -0.5px; margin-bottom: 6px; }
.feed-hero-sub { font-size: 14.5px; opacity: 0.9; line-height: 1.5; max-width: 520px; }
.feed-hero .btn-white { background: #fff; color: var(--teal-d); white-space: nowrap; }
body.page-professional .feed-hero { background: linear-gradient(135deg, #2E6FB0 0%, #1E4E80 100%); }
body.page-professional .feed-hero .btn-white { color: #1E4E80; }
body.page-intern .feed-hero { background: linear-gradient(135deg, var(--warm) 0%, #9A4A12 100%); }
body.page-intern .feed-hero .btn-white { color: #9A4A12; }

/* Accesos rápidos */
.quick-row { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--cream-d); border-radius: 100px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink-m); cursor: pointer; transition: all 0.18s; font-family: var(--sans); }
.quick-chip:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* Encabezado de sección del feed */
.feed-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.feed-section-title { font-family: var(--serif); font-size: 20px; letter-spacing: -0.4px; color: var(--ink); }

/* Fila horizontal de tarjetas promocionales */
.promo-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.promo-row::-webkit-scrollbar { height: 6px; }
.promo-row::-webkit-scrollbar-thumb { background: var(--cream-d); border-radius: 100px; }
.promo-card { min-width: 270px; max-width: 270px; background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all 0.2s; scroll-snap-align: start; display: flex; flex-direction: column; }
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo-media { height: 96px; display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; }
.promo-tag { position: absolute; top: 10px; right: 10px; background: rgba(28,25,23,0.55); color: #fff; font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 100px; backdrop-filter: blur(4px); }
.promo-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.promo-title { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.promo-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.promo-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.promo-cta { font-size: 13px; font-weight: 600; color: var(--teal); }
.promo-by { font-size: 11.5px; color: var(--muted-l); }

/* Recomendados (tarjeta compacta de profesional) */
.reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.reco-card { background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); padding: 16px; cursor: pointer; transition: all 0.2s; }
.reco-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--teal-m); }
.reco-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reco-avatar { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.reco-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.reco-spec { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.reco-foot { display: flex; align-items: center; justify-content: space-between; }
.reco-rating { font-size: 12.5px; color: var(--ink-m); }
.reco-rating .stars-sm { color: #E0A93C; }
.reco-price { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.reco-price.free { color: var(--warm); }

/* Noticias */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--cream-d); border-radius: var(--r-lg); padding: 14px; cursor: pointer; transition: all 0.18s; }
.news-card:hover { border-color: var(--teal-m); transform: translateY(-2px); }
.news-thumb { width: 84px; height: 84px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; }
.news-body { display: flex; flex-direction: column; justify-content: center; }
.news-cat { font-size: 11px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.news-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.news-snippet { font-size: 13px; color: var(--muted); line-height: 1.5; }
.news-date { font-size: 12px; color: var(--muted-l); margin-top: 6px; }

/* Banner de aviso (recordatorios) */
.feed-banner { display: flex; align-items: center; gap: 14px; background: var(--warm-l); border: 1px solid var(--warm-m); border-radius: var(--r-md); padding: 16px 20px; }
.feed-banner-icon { font-size: 24px; }
.feed-banner-text { font-size: 14px; color: var(--ink-m); flex: 1; line-height: 1.5; }
.feed-banner-text b { color: var(--ink); }

/* Responsive del feed */
@media (max-width: 760px) {
  .feed { gap: 22px; }
  .feed-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .feed-hero-title { font-size: 22px; }
  .feed-hero-sub { font-size: 14px; }
  .feed-hero .btn-white { width: 100%; justify-content: center; }
  .feed-section-title { font-size: 18px; }
  .news-card { gap: 12px; padding: 12px; }
  .news-thumb { width: 60px; height: 60px; font-size: 24px; }
  .news-title { font-size: 14px; }
  .news-snippet { font-size: 12.5px; }
  .promo-card { min-width: 240px; max-width: 240px; }
  .reco-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 440px) {
  .promo-card { min-width: 82%; max-width: 82%; }
  .reco-grid { grid-template-columns: 1fr; }
  .quick-chip { font-size: 12.5px; padding: 8px 13px; }
  .news-snippet { display: none; }
}