/* ══ VARIABLES (minimalista: neutros · verde de marca) ══ */
:root {
  --primary:       #146B57;
  --primary-dark:  #0F5544;
  --primary-light: #E8F3EF;
  --primary-mid:   #BFE0D6;
  --primary-ring:  rgba(20,107,87,0.16);

  --bg:         #FBFBF9;
  --sidebar-bg: #14160F;
  --card-bg:    #FFFFFF;
  --surface-alt: #F5F4F0;

  --text:       #17160F;
  --text-2:     #6B675C;
  --text-3:     #9C988B;

  --border:        #E7E4DC;
  --border-2:      #F0EEE7;
  --border-strong: #DBD7CC;

  --amber:      #A9720C;
  --amber-bg:   #FBF1DC;
  --green:      #12805F;
  --green-bg:   #E3F5EC;
  --rose:       #B23B63;
  --rose-bg:    #FBEAF0;
  --blue:       #3457C9;
  --blue-bg:    #E9EDFC;
  --red:        #C62F2B;
  --red-bg:     #FDECEA;

  --ink:    #17160F;
  --off:    1px;
  --sh-sm:  0 1px 2px rgba(20,20,15,0.06);
  --sh:     0 8px 20px -6px rgba(20,20,15,0.12), 0 2px 6px rgba(20,20,15,0.05);
  --sh-lg:  0 24px 60px -16px rgba(20,20,15,0.20), 0 8px 20px -8px rgba(20,20,15,0.08);

  --r:    12px;
  --r-sm: 8px;
  --r-lg: 18px;

  --accent:      #146B57;
  --accent-dark: #0F5544;

  --f-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sidebar-w: 248px;
  --ease: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
svg { display: block; }
h1, h2, h3 { font-family: var(--f-display); }

/* ══ VIDEO INTRO ══ */
#video-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

#video-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-video {
  position: relative;
  z-index: 1;
  width: 50%;
  height: 50%;
  object-fit: cover;
  display: block;
}

#intro-spinner {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.spinner-ring {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(20, 17, 15, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ══ LOGIN ══ */
.page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg);
}

.login-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--sh-lg);
}

.login-tab {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.login-tab-alt { background: var(--text); }

@keyframes loginCardIn {
  0%   { opacity: 0; transform: translateY(18px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loginCardOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.98); }
}

.login-card.entering {
  animation: loginCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card.leaving {
  animation: loginCardOut 0.25s ease both;
  pointer-events: none;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.login-logo-img {
  width: 168px;
  height: auto;
  display: block;
}

.login-card h2 {
  text-align: center;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.login-subtitle { text-align: center; color: var(--text-2); font-size: 0.875rem; margin-bottom: 1.75rem; }

.login-error {
  display: block;
  background: var(--rose-bg);
  color: #9A2020;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.login-hint { text-align: center; font-size: 0.78rem; color: var(--text-2); margin-top: 1.25rem; }
.login-hint a, .login-error a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.login-legal { margin-top: 0.4rem; font-size: 0.7rem; }
.login-legal a { font-weight: 500; color: var(--text-3); }

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-3);
  font-size: 0.75rem;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.page-login .form-group label,
.page-login .form-group span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}
.page-login .form-group input {
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.8rem;
  width: 100%;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.page-login .form-group input::placeholder { color: var(--text-3); }
.page-login .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.page-login .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  box-shadow: none;
  transition: background 0.15s ease;
}
.page-login .btn-primary:hover { background: var(--primary-dark); }
.page-login .btn-primary:active { background: var(--primary-dark); }

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-google:hover { background: var(--surface-alt); border-color: var(--border-strong); }
.btn-google:active { background: var(--surface-alt); }
.btn-google.btn-full { width: 100%; }

/* ══ SELECCIÓN DE PLAN (Citali es de pago) ══ */
.plan-selector-card { max-width: 720px; }
.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.plan-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.plan-card-destacado { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.plan-card-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
.plan-card-nombre {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}
.plan-card-precio { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.plan-card-precio span { font-size: 0.72rem; font-weight: 600; color: var(--text-2); margin-left: 0.3rem; }
.plan-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-2);
  flex: 1;
}
.plan-card-features li { padding-left: 1.15rem; position: relative; }
.plan-card-features li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; color: var(--green); }

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

/* ══ AGENDAR PÚBLICO ══ */
.page-agendar {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  background-image: radial-gradient(var(--border-2) 1px, transparent 1px);
  background-size: 22px 22px;
}

.agendar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--sh-lg);
  animation: loginCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.agendar-header { text-align: center; margin-bottom: 1.75rem; }
.agendar-header .agendar-avatar {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 2.15rem;
  margin: 0 auto 1rem;
  overflow: hidden;
}
.agendar-header .agendar-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agendar-header h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.3rem; margin-bottom: 0.25rem; }
.agendar-header p { color: var(--text-2); font-size: 0.85rem; }

.agendar-error {
  color: #9A2020;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--rose-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.agendar-resumen {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg);
}
.agendar-resumen span { color: var(--text-2); font-family: var(--f-mono); font-size: 0.9em; }
.agendar-resumen strong { color: var(--text); font-weight: 700; }

.agendar-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-ink, var(--green));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.agendar-check svg { width: 28px; height: 28px; }

.agendar-card .btn-primary.btn-full { margin-bottom: 0.75rem; }
.conf-acciones .btn-secondary.btn-full { margin-bottom: 0.75rem; }
.conf-calendar svg { width: 17px; height: 17px; }

/* ── Flujo por pasos ── */
.agendar-card.ag-flujo { max-width: 780px; padding: 1.75rem 2rem 1.5rem; }
.page-agendar:has(.ag-flujo) { align-items: flex-start; padding-top: 2.5rem; padding-bottom: 2.5rem; }

.ag-cargando { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 2.5rem 0; color: var(--text-2); font-size: 0.85rem; }

.ag-brand { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-2); margin-bottom: 1.25rem; }
.ag-brand-logo {
  width: 94px; height: 94px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 2rem;
}
.ag-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.ag-brand-nombre { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.ag-brand-sub { font-size: 0.78rem; color: var(--text-2); }

.ag-stepper { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.ag-step { display: flex; align-items: center; gap: 0.45rem; color: var(--text-3); font-size: 0.8rem; font-weight: 600; flex-shrink: 0; cursor: default; }
.ag-step:disabled { cursor: default; }
.ag-step.hecho { color: var(--primary); cursor: pointer; }
.ag-step.hecho:hover .ag-step-lbl { text-decoration: underline; }
.ag-step.actual { color: var(--text); }
.ag-step-num {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; background: var(--card-bg);
}
.ag-step-num svg { width: 14px; height: 14px; }
.ag-step.actual .ag-step-num { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-ring); }
.ag-step.hecho .ag-step-num { background: var(--primary-light); border-color: var(--primary-mid); color: var(--primary); }
.ag-step-line { flex: 1; height: 2px; min-width: 12px; background: var(--border); border-radius: 2px; }

.ag-paso-head { margin-bottom: 1.25rem; }
.ag-paso-de { font-family: var(--f-mono); font-size: 0.72rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ag-paso-head h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; margin: 0.15rem 0 0.2rem; }
.ag-paso-head p { color: var(--text-2); font-size: 0.88rem; }

.ag-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--border-2); }
.ag-footer .btn-primary { padding: 0.7rem 1.4rem; font-size: 0.92rem; }
.ag-footer .btn-primary svg { width: 16px; height: 16px; }

.ag-vacio { padding: 1.25rem; border: 1px dashed var(--border-strong); border-radius: var(--r); color: var(--text-2); font-size: 0.86rem; text-align: center; background: var(--bg); }

/* Selección común a tarjetas */
.ag-sel-check {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center;
}
.ag-sel-check svg { width: 12px; height: 12px; }
.sel > .ag-sel-check { display: flex; }

/* Profesionales */
.ag-pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.85rem; }
.ag-pro {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem;
  padding: 1.35rem 0.9rem 1.15rem; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--card-bg);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.ag-pro:hover { border-color: var(--primary-mid); box-shadow: var(--sh); transform: translateY(-1px); }
.ag-pro.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.ag-pro-foto {
  width: 100%; max-width: 194px; aspect-ratio: 1; flex-shrink: 0; border-radius: 50%; overflow: hidden; margin-bottom: 0.45rem;
  background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 3.8rem;
}
.ag-pro-foto img { width: 100%; height: 100%; object-fit: cover; }
.ag-pro-foto svg { width: 76px; height: 76px; }
.ag-pro-nombre { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.ag-pro-esp { font-size: 0.78rem; color: var(--text-2); line-height: 1.35; }
.ag-pro-cualquiera { border-style: dashed; }
.ag-pro-cualquiera .ag-pro-foto { background: var(--surface-alt); color: var(--text-2); }

/* Servicios */
.ag-servicios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.ag-serv {
  position: relative; display: flex; flex-direction: column; text-align: left; overflow: hidden;
  border: 1.5px solid var(--border); border-radius: var(--r); background: var(--card-bg);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.ag-serv:hover { border-color: var(--primary-mid); box-shadow: var(--sh); transform: translateY(-1px); }
.ag-serv.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.ag-serv-img { aspect-ratio: 16 / 10; background: var(--surface-alt); color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.ag-serv-img img { width: 100%; height: 100%; object-fit: cover; }
.ag-serv-img svg { width: 34px; height: 34px; }
.ag-serv-info { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.85rem 0.95rem 0.95rem; flex: 1; }
.ag-serv-nombre { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.ag-serv-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Al seleccionar el servicio se muestra la descripción completa */
.ag-serv.sel .ag-serv-desc { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: pre-line; overflow-wrap: anywhere; }
.ag-serv-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.45rem; font-size: 0.8rem; color: var(--text-2); }
.ag-serv-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ag-serv-meta svg { width: 14px; height: 14px; }
.ag-serv-meta strong { color: var(--primary); font-size: 0.95rem; font-weight: 800; }

/* Fecha y hora */
.ag-horario { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ag-cal { border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; background: var(--card-bg); }
.ag-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.ag-cal-head strong { font-size: 0.95rem; }
.ag-cal-head .btn-icon { border-color: var(--border); }
.ag-cal-head .btn-icon svg { width: 16px; height: 16px; }
.ag-cal-head .btn-icon:disabled { opacity: 0.35; pointer-events: none; }
.ag-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.ag-cal-sem span { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-3); padding-bottom: 0.35rem; }
.ag-dia {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 0.85rem; color: var(--text-3); position: relative;
}
.ag-dia.disp { color: var(--primary-dark); font-weight: 700; background: var(--primary-light); transition: background var(--ease), color var(--ease); }
.ag-dia.disp:hover { background: var(--primary-mid); }
.ag-dia.sel, .ag-dia.sel:hover { background: var(--primary); color: #fff; }
.ag-dia.hoy::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.ag-cal-leyenda { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.8rem; font-size: 0.74rem; color: var(--text-2); }
.ag-ley-disp { width: 12px; height: 12px; border-radius: 50%; background: var(--primary-light); border: 1px solid var(--primary-mid); }

.ag-horas-col { min-width: 0; }
.ag-duracion-nota { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; color: var(--text-2); background: var(--surface-alt); padding: 0.3rem 0.65rem; border-radius: 999px; margin-bottom: 0.75rem; }
.ag-duracion-nota svg { width: 13px; height: 13px; }
.ag-horas-fecha { font-weight: 700; font-size: 0.98rem; margin-bottom: 0.75rem; }
.ag-horas-grupo { margin-bottom: 0.9rem; }
.ag-horas-titulo { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 0.45rem; }
.ag-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.45rem; }
.ag-hora {
  padding: 0.6rem 0.4rem; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--card-bg);
  font-size: 0.85rem; font-weight: 600; color: var(--text); transition: all var(--ease);
}
.ag-hora:hover { border-color: var(--primary); color: var(--primary); }
.ag-hora.sel { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Confirmación */
.ag-resumen { border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); margin-bottom: 1.35rem; }
.ag-res-fila { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; }
.ag-res-fila + .ag-res-fila { border-top: 1px solid var(--border-2); }
.ag-res-fila > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-res-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-res-ico svg { width: 17px; height: 17px; }
.ag-res-lbl { font-size: 0.72rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ag-res-fila strong { font-size: 0.93rem; }
.ag-res-fila small { font-size: 0.8rem; color: var(--text-2); }
/* Mensaje personalizado del servicio al terminar de agendar */
.ag-leyenda { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; margin-bottom: 1.35rem; border-radius: var(--r); background: var(--primary-light); color: var(--text); }
.ag-leyenda-ico { color: var(--primary); flex-shrink: 0; display: flex; margin-top: 0.1rem; }
.ag-leyenda-ico svg { width: 18px; height: 18px; }
.ag-leyenda p { margin: 0; font-size: 0.9rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.ag-cambiar { font-size: 0.8rem; font-weight: 600; color: var(--primary); padding: 0.3rem 0.5rem; border-radius: var(--r-sm); }
.ag-cambiar:hover { background: var(--primary-light); }
.ag-opcional { font-weight: 400; color: var(--text-3); }
#form-agendar-publico .form-group input,
#form-agendar-publico .form-group textarea { padding: 0.7rem 0.9rem; font-size: 0.95rem; }

@media (max-width: 720px) {
  .page-agendar { padding: 0; align-items: stretch; }
  .page-agendar:has(.ag-flujo) { padding: 0; }
  .agendar-card, .agendar-card.ag-flujo { border-radius: 0; border: none; box-shadow: none; padding: 1.25rem 1rem 1.5rem; min-height: 100vh; }
  .ag-step-lbl { display: none; }
  .ag-step.actual .ag-step-lbl { display: inline; }
  .ag-paso-head h2 { font-size: 1.25rem; }
  .ag-horario { grid-template-columns: 1fr; gap: 1.1rem; }
  .ag-pros { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .ag-pro-foto { max-width: 153px; font-size: 3rem; }
  .ag-servicios { grid-template-columns: 1fr; }
  .ag-serv { flex-direction: row; }
  .ag-serv-img { width: 104px; aspect-ratio: auto; flex-shrink: 0; }
  .ag-footer { position: sticky; bottom: 0; background: var(--card-bg); margin: 1.25rem -1rem 0; padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom)); }
  .ag-footer .btn-primary { flex: 1; justify-content: center; }
  #form-agendar-publico .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ══ ADMIN: PÁGINA DE AGENDADO ══ */
.agendado-nota { font-size: 0.8rem; color: var(--text-2); margin-top: 0.9rem; }
.agendado-nota strong { color: var(--text); }
.agendado-nota a, .serv-link-txt a { color: var(--primary); font-weight: 600; }
.agendado-nota a:hover { text-decoration: underline; }

/* ══ SERVICIOS (página) ══ */
.serv-link-banner {
  display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
  padding: 0.85rem 1rem; margin-bottom: 1.25rem;
  border: 1px solid var(--primary-mid); background: var(--primary-light); border-radius: var(--r);
}
.serv-link-banner:empty { display: none; }
.serv-link-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--card-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.serv-link-ico svg { width: 17px; height: 17px; }
.serv-link-txt { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
.serv-link-txt strong { font-size: 0.88rem; }
.serv-link-txt span { font-size: 0.8rem; color: var(--text-2); }
.serv-link-txt span strong { font-size: inherit; color: var(--text); }

.servicios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.serv-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; transition: transform var(--ease), box-shadow var(--ease);
}
.serv-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.serv-card-img {
  position: relative; aspect-ratio: 16 / 10; background: var(--surface-alt); color: var(--text-3);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.serv-card-img img { width: 100%; height: 100%; object-fit: cover; }
.serv-card-img svg { width: 36px; height: 36px; }
.serv-card-badge { position: absolute; top: 0.6rem; left: 0.6rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: var(--text); color: var(--bg); }
.serv-card.inactivo .serv-card-img img, .serv-card.inactivo .serv-card-body { opacity: 0.55; }
.serv-card-body { padding: 0.95rem 1rem 0.8rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.serv-card-nombre { font-weight: 700; font-size: 0.97rem; line-height: 1.3; }
.serv-card-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.serv-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.4rem; font-size: 0.8rem; color: var(--text-2); }
.serv-card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.serv-card-meta svg { width: 14px; height: 14px; }
.serv-card-meta strong { color: var(--primary); font-size: 1rem; font-weight: 800; }
.serv-sin-precio { font-size: 0.78rem; font-weight: 600; color: var(--text-3); }
.serv-card-pros { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.serv-card-pro { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--surface-alt); color: var(--text-2); }
.serv-card-foot { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.85rem 0.6rem 1rem; border-top: 1px solid var(--border-2); }
.serv-card-estado { flex: 1; font-size: 0.76rem; font-weight: 600; color: var(--text-2); }

/* ══ EQUIPO: atiende citas ══ */
.equipo-atiende { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.65rem 0.75rem; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--border-2); font-size: 0.8rem; color: var(--text-2); }
.equipo-atiende.on { background: var(--primary-light); border-color: var(--primary-mid); color: var(--primary-dark); }
.equipo-atiende:not(:has(.equipo-atiende-row)) { flex-direction: row; align-items: center; }
.equipo-atiende-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.equipo-atiende.on .equipo-atiende-dot { background: var(--primary); }
.equipo-atiende-row { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; cursor: pointer; }
.equipo-esp { width: 100%; padding: 0.4rem 0.65rem; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 0.8rem; background: var(--card-bg); color: var(--text); outline: none; }
.equipo-esp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

/* ══ HORARIO DE TRABAJO (Configuración) ══ */
.hor-semana { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 1.25rem; }
.hor-dia { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: start; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-2); }
.hor-dia:last-child { border-bottom: none; }
.hor-dia.cerrado { background: var(--surface-alt); }
.hor-dia-toggle { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; padding-top: 0.35rem; user-select: none; }
.hor-dia-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.hor-switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong); flex-shrink: 0; transition: background var(--ease); }
.hor-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform var(--ease); }
.hor-dia-toggle input:checked + .hor-switch { background: var(--primary); }
.hor-dia-toggle input:checked + .hor-switch::after { transform: translateX(14px); }
.hor-dia-toggle input:focus-visible + .hor-switch { box-shadow: 0 0 0 3px var(--primary-ring); }
.hor-dia-nombre { font-weight: 600; font-size: 0.875rem; }
.hor-dia.cerrado .hor-dia-nombre { color: var(--text-2); }
.hor-dia-cuerpo { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.hor-cerrado-txt { font-size: 0.82rem; color: var(--text-3); padding-top: 0.4rem; }
.hor-rango, .hor-break { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-2); }
.hor-semana input, .hor-seccion input, .hor-seccion select {
  padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 0.82rem;
  background: var(--bg); color: var(--text); outline: none; font-family: inherit;
}
.hor-semana input:focus, .hor-seccion input:focus, .hor-seccion select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.hor-break { padding: 0.35rem 0.4rem 0.35rem 0.55rem; border-radius: var(--r-sm); background: var(--amber-bg); }
.hor-break-ico { display: inline-flex; color: var(--amber); }
.hor-break-ico svg { width: 15px; height: 15px; }
.hor-break-nota, .hor-esp-nota { flex: 1; min-width: 140px; }
.hor-quitar { width: 26px; height: 26px; border-radius: 50%; font-size: 1.05rem; line-height: 1; color: var(--text-3); flex-shrink: 0; transition: all var(--ease); }
.hor-quitar:hover { background: var(--rose-bg); color: var(--rose); }
.hor-acciones { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.hor-link { font-size: 0.78rem; font-weight: 600; color: var(--primary); padding: 0.15rem 0; }
.hor-link:hover { text-decoration: underline; }
.hor-seccion { margin-bottom: 1.25rem; }
.hor-seccion-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.hor-seccion-head h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.15rem; }
.hor-seccion-head p { font-size: 0.8rem; color: var(--text-2); }
.hor-seccion-head .btn-sm { flex-shrink: 0; }
#cfg-horarios-especiales { display: flex; flex-direction: column; gap: 0.5rem; }
.hor-esp { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--card-bg); }
.hor-esp.cerrado { background: var(--surface-alt); }
.hor-esp-fila { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hor-esp-vacio { font-size: 0.8rem; color: var(--text-3); padding: 0.9rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--r); text-align: center; }

@media (max-width: 640px) {
  .hor-dia { grid-template-columns: 1fr; gap: 0.5rem; }
  .hor-dia-toggle { padding-top: 0; }
  .hor-seccion-head { flex-direction: column; }
}

/* Sombreado de la Agenda según el horario (js/horario.js) */
.agenda-bloque {
  position: absolute; left: 0; right: 0; pointer-events: none; z-index: 0; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
}
.agenda-bloque span { margin-top: 4px; font-size: 0.64rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 95%; }
.agenda-bloque-fuera { background: rgba(20,17,15,0.035); }
.agenda-bloque-cerrado {
  background: repeating-linear-gradient(135deg, rgba(20,17,15,0.04) 0 6px, rgba(20,17,15,0.07) 6px 12px);
  color: var(--text-3);
}
.agenda-bloque-break {
  background: repeating-linear-gradient(135deg, var(--amber-bg) 0 6px, rgba(169,114,12,0.12) 6px 12px);
  border-top: 1px dashed var(--amber); border-bottom: 1px dashed var(--amber);
  color: var(--amber);
}

.serv-hint { font-size: 0.8rem; color: var(--text-2); margin-bottom: 0.9rem; }
.serv-hint a { color: var(--primary); font-weight: 600; }
.serv-vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; padding: 1.75rem 1rem 1.25rem; }
.serv-vacio-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; }
.serv-vacio-ico svg { width: 24px; height: 24px; }
.serv-vacio p { font-size: 0.82rem; color: var(--text-2); max-width: 360px; }


.serv-img-upload {
  height: 170px; border: 1.5px dashed var(--border-strong); border-radius: var(--r); overflow: hidden; cursor: pointer;
  background: var(--bg); display: flex; align-items: center; justify-content: center; transition: border-color var(--ease);
}
.serv-img-upload:hover { border-color: var(--primary); }
.serv-img-upload img { width: 100%; height: 100%; object-fit: cover; }
.serv-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--text-3); font-size: 0.8rem; }
.serv-img-placeholder svg { width: 30px; height: 30px; }
.serv-img-actions { display: flex; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.serv-pros { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.serv-pro-chk { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.8rem; cursor: pointer; background: var(--bg); }
.form-group .serv-pro-chk input, .serv-activo-chk input { width: auto; accent-color: var(--primary); }
.serv-activo-chk { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.serv-leyenda { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border-2); }
.serv-leyenda .form-group { margin: 0.6rem 0 0; }
.serv-leyenda-hint { display: block; margin-top: 0.3rem; font-size: 0.75rem; color: var(--text-3); }


.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background var(--ease); }
.switch-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform var(--ease); box-shadow: var(--sh-sm); }
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(16px); }
.switch input:focus-visible + .switch-slider { box-shadow: 0 0 0 3px var(--primary-ring); }


/* ══ APP LAYOUT ══ */
.app-layout { display: flex; min-height: 100vh; }

/* ══ SIDEBAR ══ */
#sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--ease);
}

.sidebar-header {
  padding: 1.25rem 1.125rem 1rem;
}

.sidebar-logo-img {
  width: 108px;
  height: auto;
  display: block;
  margin-bottom: 0.3rem;
  filter: brightness(0) invert(1);
}

.empresa-switcher {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.5rem 0.6rem;
  border-radius: 11px;
  background: rgba(244,243,238,0.06);
  border: 1px solid rgba(244,243,238,0.1);
  color: var(--card-bg);
  text-align: left;
  transition: all var(--ease);
}
.empresa-switcher:hover { background: rgba(244,243,238,0.11); border-color: rgba(244,243,238,0.2); }
.empresa-switcher-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.empresa-switcher-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244,243,238,0.4); }
.empresa-switcher-nombre { font-size: 0.82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empresa-switcher > svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.55; }

.empresa-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.empresa-avatar img { width: 100%; height: 100%; object-fit: cover; }

.lista-empresas { display: flex; flex-direction: column; gap: 0.5rem; }
.empresa-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  text-align: left;
  transition: all var(--ease);
}
.empresa-row:hover { border-color: var(--primary); }
.empresa-row-active { border-color: var(--primary); background: var(--primary-ring); }
.empresa-row .empresa-avatar { width: 38px; height: 38px; font-size: 0.8rem; }
.empresa-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.empresa-row-nombre { font-size: 0.9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empresa-row-rol { font-size: 0.75rem; color: var(--text-3); font-weight: 600; }
.empresa-check { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.config-solo-lectura .perfil-foto-actions, .config-solo-lectura form button[type="submit"] { display: none; }
.config-solo-lectura .perfil-foto-wrap { pointer-events: none; }
.config-solo-lectura input[type="text"] { pointer-events: none; opacity: 0.7; }

.sidebar-nav {
  flex: 1;
  padding: 0.875rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  color: rgba(244,243,238,0.56);
  font-size: 0.83rem;
  font-weight: 600;
  transition: all var(--ease);
}

.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }
.nav-item:hover { background: rgba(244,243,238,0.05); color: var(--card-bg); }
.nav-item.active {
  background: rgba(244,243,238,0.09);
  color: #fff;
}
.nav-item.active svg { color: var(--primary-mid); opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: rgba(244,243,238,0.12);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.nav-item.active .nav-badge { background: var(--primary); color: #fff; }

.sidebar-footer {
  padding: 0.875rem 0.625rem;
  border-top: 1px solid rgba(244,243,238,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.375rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--ease);
}

.user-row:hover { background: rgba(244,243,238,0.06); }

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-text { flex: 1; min-width: 0; }
.user-name { font-size: 0.8rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 0.68rem; color: rgba(244,243,238,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-icon { width: 14px; height: 14px; color: rgba(244,243,238,0.4); flex-shrink: 0; }

/* ══ MOBILE HEADER ══ */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hamburger { padding: 0.25rem; color: #fff; }
.mobile-header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ══ BARRA SUPERIOR + NOTIFICACIONES ══ */
.app-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 52px;
  padding: 0 2.25rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: background var(--ease), color var(--ease);
}
.notif-btn:hover { background: var(--primary-light); color: var(--primary); }
.notif-btn svg { width: 18px; height: 18px; }
.mobile-header .notif-btn { width: 34px; height: 34px; color: #fff; background: transparent; border-color: rgba(255,255,255,0.18); }
.mobile-header .notif-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Botón "Break": bloquea la agenda un rato (js/break.js) */
.app-topbar { gap: 0.625rem; }
.break-btn {
  height: 38px;
  min-width: 38px;
  padding: 0 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 19px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.break-btn:hover { background: var(--primary-light); color: var(--primary); }
.break-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.break-btn.activo { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.mobile-header .break-btn { height: 34px; min-width: 34px; padding: 0; color: #fff; background: transparent; border-color: rgba(255,255,255,0.18); }
.mobile-header .break-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.mobile-header .break-btn.activo { background: var(--amber); border-color: var(--amber); color: #fff; }

.break-intro { font-size: 0.85rem; color: var(--text-2); margin-bottom: 1rem; }
.break-opciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.break-opcion {
  padding: 0.65rem 0.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--ease);
}
.break-opcion:hover { border-color: var(--primary); }
.break-opcion.activa { background: var(--primary); border-color: var(--primary); color: #fff; }
.break-activos { margin-bottom: 1rem; padding: 0.75rem; border-radius: var(--r-sm); background: var(--amber-bg); }
.break-activos-titulo { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber); margin-bottom: 0.4rem; }
.break-activo { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; }
.break-activo + .break-activo { border-top: 1px solid rgba(169,114,12,0.2); }
.break-activo strong { display: block; font-size: 0.875rem; color: var(--text); }
.break-activo span { font-size: 0.78rem; color: var(--text-2); }

/* Motivo del break: campo libre + desplegable de opciones rápidas */
.break-combo { position: relative; }
.break-combo input { padding-right: 2.5rem; }
.break-combo-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text-2);
}
.break-combo-toggle svg { width: 16px; height: 16px; transition: transform var(--ease); }
.break-combo.abierto .break-combo-toggle svg { transform: rotate(180deg); }
.break-combo-lista {
  margin-top: 0.35rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--card-bg); box-shadow: 0 6px 18px rgba(0,0,0,0.08); overflow: hidden;
}
.break-motivos-items { max-height: 180px; overflow-y: auto; }
.break-motivo { display: flex; align-items: center; }
.break-motivo + .break-motivo { border-top: 1px solid var(--border); }
.break-motivo-elegir {
  flex: 1; text-align: left; padding: 0.55rem 0.75rem; background: transparent; border: none;
  color: var(--text); font-size: 0.875rem;
}
.break-motivo:hover, .break-motivo.resaltado { background: var(--primary-light); }
.break-motivo-borrar {
  width: 2rem; align-self: stretch; background: transparent; border: none;
  color: var(--text-2); font-size: 1rem; opacity: 0.6;
}
.break-motivo-borrar:hover { opacity: 1; color: var(--red, #d33); }
.break-motivos-vacio { padding: 0.6rem 0.75rem; font-size: 0.8rem; color: var(--text-2); }
.break-motivo-agregar {
  width: 100%; text-align: left; padding: 0.6rem 0.75rem; border: none; border-top: 1px solid var(--border);
  background: var(--bg); color: var(--primary); font-size: 0.85rem; font-weight: 600;
}
.break-motivo-agregar:hover { background: var(--primary-light); }
.break-motivo-nuevo { display: flex; gap: 0.4rem; padding: 0.5rem; border-top: 1px solid var(--border); background: var(--bg); }
.break-motivo-nuevo input { flex: 1; min-width: 0; padding-right: 0.75rem; }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--rose);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.notif-panel {
  position: fixed;
  top: 56px;
  right: 1.5rem;
  z-index: 200;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  animation: toastIn 0.2s ease;
}
.notif-panel-header { padding: 0.9rem 1rem 0.7rem; border-bottom: 1px solid var(--border); }
.notif-panel-header strong { display: block; font-size: 0.95rem; }
.notif-panel-sub { font-size: 0.75rem; color: var(--text-3); }
.notif-lista { overflow-y: auto; padding: 0.35rem; }
.notif-vacio { padding: 2rem 1rem; text-align: center; font-size: 0.82rem; color: var(--text-3); line-height: 1.5; }

.notif-item {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--text);
  transition: background var(--ease);
}
.notif-item:hover { background: var(--surface-alt); }
.notif-item.notif-nueva { background: var(--primary-light); }
.notif-item.notif-nueva:hover { background: var(--primary-mid); }
.notif-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 0.4rem; border-radius: 50%; background: transparent; }
.notif-nueva .notif-dot { background: var(--primary); }
.notif-texto { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.notif-titulo { font-size: 0.84rem; line-height: 1.35; }
.notif-detalle { font-size: 0.76rem; color: var(--text-2); text-transform: capitalize; }
.notif-tiempo { font-size: 0.7rem; color: var(--text-3); }
.notif-cancelada .notif-titulo { text-decoration: line-through; color: var(--text-3); }
.hamburger svg { width: 22px; height: 22px; }

/* ══ AVISO DE PRUEBA GRATUITA ══ */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--amber-bg);
  color: #8A5209;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.trial-banner .btn-primary { padding: 0.35rem 0.9rem; font-size: 0.72rem; }

.mobile-logo-img { height: 32px; width: auto; display: block; filter: brightness(0) invert(1); }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,17,15,0.5);
  z-index: 99;
}

/* ══ MAIN WRAPPER ══ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content {
  flex: 1;
  padding: 0.5rem 2.25rem 3rem;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

#main-content .btn-primary,
#main-content .agenda-tab.active { color: #fff; }

#main-content .estado-pendiente  { background: var(--amber-bg); color: var(--amber); }
#main-content .estado-completada { background: var(--green-bg); color: var(--green); }
#main-content .estado-cancelada  { background: var(--rose-bg); color: var(--rose); }

#main-content .prioridad-alta  { background: var(--rose-bg); color: var(--rose); }
#main-content .prioridad-media { background: var(--amber-bg); color: var(--amber); }
#main-content .prioridad-baja  { background: var(--green-bg); color: var(--green); }

#main-content .cal-day.other-month { background: var(--surface-alt); }
#main-content .agenda-slot:hover   { background: rgba(20,17,15,0.045); }

/* ══ APP PAGES ══ */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(22px) scale(0.995); }
  to   { opacity: 1; transform: translateY(0)    scale(1);     }
}
@keyframes pageOut {
  from { opacity: 1; transform: translateY(0) scale(1);     }
  to   { opacity: 0; transform: translateY(-12px) scale(0.995); }
}

.app-page { display: none; }
.app-page.active {
  display: block;
  animation: pageIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.app-page.leaving {
  display: block;
  position: absolute;
  top: 0.5rem; left: 2rem; right: 2rem;
  pointer-events: none;
  animation: pageOut 0.18s ease both;
}

/* ══ PAGE HEADER ══ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.page-header h1 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.65rem; line-height: 1.15; }
.date-label { color: var(--text-3); font-size: 0.82rem; margin-top: 0.3rem; }

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.page-subtitle { color: var(--text-2); font-size: 0.875rem; margin-top: 0.3rem; }

/* ══ BUTTONS ══ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  padding: 0.6rem 1.15rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none;
  transition: background var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { background: var(--accent-dark); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary svg { width: 15px; height: 15px; }
.btn-primary.btn-full { width: 100%; justify-content: center; }
.btn-primary.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.6rem 1.15rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none;
  transition: background var(--ease), border-color var(--ease);
}
.btn-secondary.btn-full { width: 100%; justify-content: center; }
.btn-secondary:hover { background: var(--surface-alt); border-color: var(--border-strong); }
.btn-secondary:active { background: var(--surface-alt); }
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--text-2);
  padding: 0.575rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-ghost svg { width: 15px; height: 15px; }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }

.btn-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--text-2);
  transition: all var(--ease);
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--surface-alt); border-color: var(--border); color: var(--text); }
.btn-icon svg { width: 14px; height: 14px; }

/* ══ STATS GRID ══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--r);
  padding: 1.15rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 1px solid var(--border);
}

.stat-card-clickable {
  cursor: pointer;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.stat-card-clickable:hover {
  box-shadow: var(--sh);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

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

.stat-red   { background: var(--primary-light); color: var(--primary); }
.stat-amber { background: var(--amber-bg);      color: var(--amber); }
.stat-green { background: var(--green-bg);      color: var(--green); }
.stat-rose  { background: var(--rose-bg);       color: var(--rose); }
.stat-blue  { background: var(--blue-bg);       color: var(--blue); }

.stat-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.stat-num-amber { color: var(--amber); }
.stat-num-green { color: var(--green); }
.stat-lbl { font-size: 0.8rem; color: var(--text-3); margin-top: 0.35rem; font-weight: 500; }

/* ══ SECTION ══ */
.section { }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
.section-header h2 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

.link-ver-todas { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.link-ver-todas:hover { text-decoration: underline; }

/* ══ DASHBOARD (INICIO) ══ */
.dashboard-body { display: flex; flex-direction: column; gap: 1.5rem; }
.dashboard-main { display: flex; flex-direction: column; gap: 1.5rem; }
.dashboard-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dashboard-col { display: flex; flex-direction: column; min-height: 0; }
.dashboard-col .section-header { flex-shrink: 0; }
.dashboard-scroll { overflow-y: auto; }

.weekly-card { padding: 1.25rem 1.375rem; }
.weekly-card .section-header { margin-bottom: 1rem; }
.weekly-range { font-size: 0.8rem; color: var(--text-3); font-weight: 500; }

.weekly-body { display: flex; align-items: stretch; gap: 1.75rem; flex-wrap: wrap; }
.weekly-chart { flex: 1 1 320px; min-width: 240px; }

.weekly-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 130px;
  border-bottom: 1px solid var(--border);
}
.weekly-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.weekly-bar-total { font-size: 0.75rem; font-weight: 700; color: var(--text-2); min-height: 1em; }
.weekly-bar-stack { width: 100%; max-width: 26px; display: flex; flex-direction: column-reverse; gap: 2px; }
.weekly-bar-seg { width: 100%; border-radius: 4px; flex-shrink: 0; }
.seg-pendiente  { background: var(--amber); }
.seg-completada { background: var(--green); }
.seg-cancelada  { background: var(--rose); }
.weekly-bar-dow { font-size: 0.72rem; font-weight: 700; color: var(--text-3); }
.weekly-bar-col.hoy .weekly-bar-dow { color: var(--primary); }

.weekly-side {
  flex: 0 0 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.125rem;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}
.weekly-total-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.weekly-total-lbl { font-size: 0.8rem; color: var(--text-3); margin-top: 0.3rem; }
.weekly-trend { font-size: 0.76rem; font-weight: 700; margin-top: 0.4rem; }
.weekly-trend.up   { color: var(--green); }
.weekly-trend.down { color: var(--rose); }
.weekly-trend.flat { color: var(--text-3); }

.weekly-legend { display: flex; flex-direction: column; gap: 0.45rem; }
.weekly-legend-row { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-2); }
.weekly-legend-row b { margin-left: auto; color: var(--text); }
.w-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.w-dot-amber { background: var(--amber); }
.w-dot-green { background: var(--green); }
.w-dot-rose  { background: var(--rose); }

/* ══ CITA CARD ══ */
.cita-card {
  background: var(--card-bg);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.55rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.cita-card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--border-strong); }

.cita-date-chip {
  text-align: center;
  min-width: 46px;
  padding: 0.35rem 0.5rem;
  background: var(--surface-alt);
  border-radius: 8px;
  flex-shrink: 0;
}
.cita-date-day { font-size: 1.2rem; font-weight: 800; color: var(--text); line-height: 1; }
.cita-date-mon { font-size: 0.64rem; color: var(--text-3); font-weight: 700; }

.cita-info { flex: 1; min-width: 0; }
.cita-nombre { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cita-meta {
  display: flex;
  gap: 0.875rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}
.cita-meta span {
  font-size: 0.775rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.cita-meta svg { width: 12px; height: 12px; flex-shrink: 0; }

.cita-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }

.estado-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.estado-pendiente  { background: var(--amber-bg); color: var(--amber); }
.estado-completada { background: var(--green-bg); color: var(--green); }
.estado-cancelada  { background: var(--rose-bg); color: var(--rose); }

/* Estado visual de la cita (js/confirmar.js → estadoVisualCita):
   amarillo sin confirmar · verde confirmada · rojo cancelada · azul completada */
.cita-estado-sin-confirmar { background: var(--amber-bg); color: var(--amber); }
.cita-estado-confirmada    { background: var(--green-bg); color: var(--green); }
.cita-estado-cancelada     { background: var(--red-bg);   color: var(--red); }
.cita-estado-completada    { background: var(--blue-bg);  color: var(--blue); }

.cita-card { border-left-width: 4px; }
.cita-card-sin-confirmar { border-left-color: var(--amber); }
.cita-card-confirmada    { border-left-color: var(--green); }
.cita-card-cancelada     { border-left-color: var(--red); background: color-mix(in srgb, var(--red-bg) 45%, var(--card-bg)); }
.cita-card-cancelada .cita-nombre { text-decoration: line-through; color: var(--text-2); }
.cita-card-completada    { border-left-color: var(--blue); }
.cita-card-sin-confirmar:hover { border-left-color: var(--amber); }
.cita-card-confirmada:hover    { border-left-color: var(--green); }
.cita-card-cancelada:hover     { border-left-color: var(--red); }
.cita-card-completada:hover    { border-left-color: var(--blue); }

.citas-leyenda { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: -0.25rem 0 0.75rem; font-size: 0.75rem; color: var(--text-2); }
.citas-leyenda span { display: inline-flex; align-items: center; gap: 0.35rem; }
.leyenda-punto { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cita-punto-sin-confirmar { background: var(--amber); }
.cita-punto-confirmada    { background: var(--green); }
.cita-punto-cancelada     { background: var(--red); }
.cita-punto-completada    { background: var(--blue); }

.btn-icon-confirmar:hover,
.btn-icon-confirmar.activo { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.btn-icon-whatsapp svg { fill: currentColor; stroke: none; }
.btn-icon-whatsapp:hover { background: var(--green-bg); border-color: var(--green); color: var(--green); }

/* ══ TAREAS ══ */
.tareas-group { margin-bottom: 1.5rem; }

.tareas-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 0.625rem;
}
.tareas-group-title-vencidas { color: var(--rose); }

.tareas-group-count {
  background: var(--surface-alt);
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
}

.tarea-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--r);
  padding: 0.85rem 1.1rem;
  display: flex;
  gap: 0.875rem;
  margin-bottom: 0.55rem;
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease), border-color var(--ease);
}
.tarea-card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--border-strong); }
.tarea-vencida { border-left-color: var(--rose); }
.tarea-completada { opacity: 0.55; }
.tarea-completada .tarea-titulo { text-decoration: line-through; }

.tarea-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: transparent;
  transition: all var(--ease);
}
.tarea-check svg { width: 14px; height: 14px; }
.tarea-check:hover { border-color: var(--accent); }
.tarea-completada .tarea-check { background: var(--green); border-color: var(--green); color: #fff; }

.tarea-info { flex: 1; min-width: 0; }

.tarea-titulo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tarea-titulo { font-weight: 700; font-size: 0.9rem; }

.prioridad-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.prioridad-alta  { background: var(--rose-bg); color: var(--rose); }
.prioridad-media { background: var(--amber-bg); color: var(--amber); }
.prioridad-baja  { background: var(--green-bg); color: var(--green); }

.tarea-subtareas { margin-top: 0.625rem; }

.tarea-subtareas-bar {
  height: 5px;
  background: var(--border-2);
  border: none;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.tarea-subtareas-fill { height: 100%; background: var(--green); transition: width var(--ease); }

.tarea-subtareas-items { display: flex; flex-direction: column; gap: 0.3rem; }

.subtarea-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-2);
  cursor: pointer;
}
.subtarea-row input { accent-color: var(--primary); cursor: pointer; }
.subtarea-hecha { text-decoration: line-through; color: var(--text-3); }

/* ── Subtareas dentro del modal ── */
.subtarea-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.85rem;
}
.subtarea-item span { flex: 1; }

.subtarea-add-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.subtarea-add-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.subtarea-add-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.subtarea-add-row button { flex-shrink: 0; padding: 0.5rem 0.9rem; }

/* ══ EMPTY STATE ══ */
.empty-state {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border-strong);
  padding: 3rem 2rem;
  text-align: center;
}
.empty-state svg { width: 48px; height: 48px; color: var(--text-3); margin: 0 auto 1rem; }
.empty-state p { color: var(--text-2); font-size: 0.9rem; margin-bottom: 1.125rem; }

/* ══ FILTER BAR ══ */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  background: var(--card-bg);
  outline: none;
  transition: box-shadow var(--ease), transform var(--ease);
}
.search-input:focus { box-shadow: 0 0 0 3px var(--primary-ring); }

.select-input {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  background: var(--card-bg);
  outline: none;
  cursor: pointer;
  transition: box-shadow var(--ease), transform var(--ease);
}
.select-input:focus { box-shadow: 0 0 0 3px var(--primary-ring); }

/* ══ CONTACTOS GRID ══ */
.contactos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.contacto-card {
  background: var(--card-bg);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contacto-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }

.contacto-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contacto-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto-nombre { font-weight: 700; font-size: 0.925rem; }
.contacto-citas { font-size: 0.78rem; color: var(--text-3); margin-top: 0.1rem; }

.contacto-details { display: flex; flex-direction: column; gap: 0.3rem; }

.contacto-detail {
  display: flex;
  align-items: center;
  gap: 0.425rem;
  font-size: 0.8rem;
  color: var(--text-2);
}
.contacto-detail svg { width: 13px; height: 13px; color: var(--text-3); flex-shrink: 0; }

.contacto-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-2);
}

/* ══ NOTAS GRID ══ */
.notas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.nota-card {
  background: var(--card-bg);
  border-radius: var(--r);
  border: 1px solid var(--border);
  border-top-width: 8px;
  padding: 1.1rem 1.25rem 1rem;
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 160px;
}
.nota-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }

.nota-amarillo { border-top-color: var(--amber); }
.nota-rose     { border-top-color: var(--rose); }
.nota-blue     { border-top-color: var(--blue); }
.nota-green    { border-top-color: var(--green); }
.nota-red      { border-top-color: var(--primary); }

.nota-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.nota-titulo {
  font-weight: 700;
  font-size: 0.925rem;
  word-break: break-word;
}

.nota-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }

.nota-contenido {
  font-size: 0.825rem;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nota-fecha {
  font-size: 0.74rem;
  color: var(--text-3);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-2);
}

.color-swatch-row { display: flex; gap: 0.6rem; }

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform var(--ease), box-shadow var(--ease);
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 4px var(--text); transform: scale(1.1); }

.color-swatch.color-amarillo { background: var(--amber); }
.color-swatch.color-rose     { background: var(--rose); }
.color-swatch.color-blue     { background: var(--blue); }
.color-swatch.color-green    { background: var(--green); }
.color-swatch.color-red      { background: var(--primary); }

/* ══ CARPETAS DE NOTAS ══ */
.carpetas-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
}

.carpeta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}
.carpeta-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.carpeta-chip:hover { background: var(--surface-alt); border-color: var(--border-strong); }
.carpeta-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.carpeta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-2);
}
.carpeta-item input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.2rem 0;
  outline: none;
}
.carpeta-item input:focus { box-shadow: none; border-bottom: 1.5px solid var(--accent); }

/* ══ ETIQUETAS ══ */
.etiquetas-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.etiquetas-row:not(:empty) { margin-bottom: 0.6rem; }
.tarea-etiquetas:not(:empty) { margin-top: 0.4rem; }

.etiqueta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: none;
  background: var(--surface-alt);
  color: var(--text-2);
  white-space: nowrap;
  font-family: inherit;
}
button.etiqueta-chip { cursor: pointer; transition: opacity var(--ease); }
button.etiqueta-chip:hover { opacity: 0.8; }

.etiqueta-chip.etiqueta-amarillo { background: var(--amber-bg); color: var(--amber); }
.etiqueta-chip.etiqueta-rose     { background: var(--rose-bg); color: var(--rose); }
.etiqueta-chip.etiqueta-blue     { background: var(--blue-bg); color: var(--blue); }
.etiqueta-chip.etiqueta-green    { background: var(--green-bg); color: var(--green); }
.etiqueta-chip.etiqueta-red      { background: var(--primary-light); color: var(--accent-dark); }

button.etiqueta-chip.etiqueta-amarillo.selected { background: var(--amber); color: #fff; }
button.etiqueta-chip.etiqueta-rose.selected     { background: var(--rose); color: #fff; }
button.etiqueta-chip.etiqueta-blue.selected     { background: var(--blue); color: #fff; }
button.etiqueta-chip.etiqueta-green.selected    { background: var(--green); color: #fff; }
button.etiqueta-chip.etiqueta-red.selected      { background: var(--primary); color: #fff; }

/* ══ CATÁLOGO DE ETIQUETAS (Configuración) ══ */
.etiquetas-catalogo-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.etiqueta-cat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
}
.etiqueta-cat-item input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.2rem 0;
  outline: none;
}
.etiqueta-cat-item input:focus { box-shadow: none; border-bottom: 1.5px solid var(--accent); }
.etiqueta-cat-item .color-swatch-row { flex-shrink: 0; gap: 0.35rem; }

.etiqueta-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  flex-shrink: 0;
}
.etiqueta-color-dot.etiqueta-color-amarillo { background: var(--amber); }
.etiqueta-color-dot.etiqueta-color-rose     { background: var(--rose); }
.etiqueta-color-dot.etiqueta-color-blue     { background: var(--blue); }
.etiqueta-color-dot.etiqueta-color-green    { background: var(--green); }
.etiqueta-color-dot.etiqueta-color-red      { background: var(--primary); }

.color-swatch-sm { width: 18px; height: 18px; }

.etiqueta-crear-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.etiqueta-crear-row input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: box-shadow var(--ease), transform var(--ease);
}
.etiqueta-crear-row input[type="text"]:focus { box-shadow: 0 0 0 3px var(--primary-ring); }

.nota-carpeta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: var(--text-3);
}
.nota-carpeta-tag svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ══ CALENDAR ══ */
.calendar-card {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: none;
  overflow: hidden;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cal-nav h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; text-transform: capitalize; }
.cal-nav-btn { padding: 0.35rem 0.75rem; font-size: 1.25rem; line-height: 1; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-head {
  padding: 0.6rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-3);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.cal-day {
  min-height: 88px;
  padding: 0.45rem;
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  cursor: pointer;
  transition: background var(--ease);
}
.cal-day:hover { background: var(--surface-alt); }
.cal-day.other-month { color: var(--text-3); background: var(--surface-alt); }
.cal-day.today { background: var(--primary-light); }

.cal-day-num {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}
.today .cal-day-num { background: var(--primary); color: #fff; }

.cal-event {
  background: var(--surface-alt);
  color: var(--text-2);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.65rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.cal-event-sin-confirmar { background: var(--amber-bg); color: var(--amber); }
.cal-event-confirmada    { background: var(--green-bg); color: var(--green); }
.cal-event-completada    { background: var(--blue-bg);  color: var(--blue); }
.cal-event-cancelada     { background: var(--red-bg);   color: var(--red); }

.cal-more { font-size: 0.65rem; color: var(--text-3); font-weight: 600; }

/* ══ CARD ══ */
.card {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: none;
}
.card-title {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-2);
}

.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.link-personal-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.link-personal-row input {
  flex: 1;
  min-width: 220px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 0.8rem;
}

/* ══ FOTO DE PERFIL ══ */
.perfil-foto-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.perfil-foto-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  cursor: pointer;
}

.profile-avatar { width: 64px; height: 64px; font-size: 1.3rem; }

.perfil-foto-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}

.perfil-foto-overlay svg { width: 20px; height: 20px; }

.perfil-foto-wrap:hover .perfil-foto-overlay { opacity: 1; }

.perfil-foto-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.btn-secondary.btn-sm, .btn-ghost.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.76rem; }

/* ══ EQUIPO ══ */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.equipo-card {
  background: var(--card-bg);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.equipo-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }

.equipo-top { display: flex; align-items: center; gap: 0.75rem; }

.equipo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.equipo-avatar img { width: 100%; height: 100%; object-fit: cover; }

.equipo-info { flex: 1; min-width: 0; }
.equipo-nombre { font-size: 0.925rem; font-weight: 700; }
.equipo-email { font-size: 0.78rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.equipo-badge {
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--text-2);
}
.equipo-badge-owner { background: var(--primary-ring); color: var(--primary); }

.equipo-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-2);
}

/* ══ FORMS ══ */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.form-group textarea { resize: vertical; min-height: 76px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.form-link-btn {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.form-link-btn:hover { text-decoration: underline; }

.form-hint { font-size: 0.72rem; color: var(--text-3); margin-top: 0.4rem; }

.meet-field { margin-bottom: 1rem; }
.meet-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  cursor: pointer;
}
.meet-toggle-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.meet-toggle-label input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.5; }

.meet-created {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--green-bg);
  margin-bottom: 1rem;
}
.meet-created svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.meet-created a { flex: 1; font-size: 0.82rem; font-weight: 700; color: var(--green); }
.meet-created a:hover { text-decoration: underline; }

.btn-icon-meet:hover { background: var(--green-bg); border-color: var(--green); color: var(--green); }

.integracion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
}
.integracion-nombre { font-weight: 700; font-size: 0.88rem; }
.integracion-estado { font-size: 0.78rem; color: var(--text-3); margin-top: 0.15rem; }
.integracion-estado.integracion-ok { color: var(--green); font-weight: 700; }

.plan-actual-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.plan-actual-nombre { font-weight: 800; font-size: 1rem; }
.plan-actual-acciones { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.usuarios-lock-nota {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}
.usuarios-lock-nota p { margin: 0; }

/* ══ MODAL ══ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(20,17,15,0.55);
  backdrop-filter: blur(3px);
}

.modal-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--sh-lg);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--text);
  line-height: 1;
  transition: all var(--ease);
}
.modal-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.modal-body { padding: 1.375rem 1.5rem 0; }
.modal-box-lg { max-width: 560px; }
.modal-body-scroll { padding-bottom: 1.375rem; max-height: 65vh; overflow-y: auto; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 1.125rem 1.5rem 1.375rem;
}

/* ══ TOAST ══ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 999;
  box-shadow: var(--sh-lg);
  animation: toastIn 0.25s ease;
}
.toast.success { background: var(--green); }

/* Aviso de cita nueva agendada por link (se queda hasta cerrarla) */
.avisos-cita {
  position: fixed;
  top: 60px;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 2rem));
}
.aviso-cita {
  display: flex;
  gap: 0.75rem;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--primary-mid);
  border-left: 4px solid var(--primary);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  box-shadow: var(--sh-lg);
  animation: toastIn 0.25s ease;
}
.aviso-cita-icono { font-size: 1.25rem; line-height: 1; }
.aviso-cita-cuerpo { flex: 1; min-width: 0; }
.aviso-cita-cuerpo strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.aviso-cita-cuerpo p { margin: 0 0 0.6rem; font-size: 0.825rem; color: var(--text-2); line-height: 1.4; }
.aviso-cita-acciones { display: flex; gap: 0.5rem; }
.toast.error   { background: var(--primary); }

@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ══ UTILS ══ */
.hidden { display: none !important; }

/* ══ AGENDA ══ */
.agenda-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
  flex-wrap: wrap;
}

.agenda-buscar-wrap {
  position: relative;
  flex: 1;
  min-width: 140px;
  display: flex;
}
.agenda-buscar-wrap .search-input { min-width: 0; width: 100%; }

.agenda-resultados {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 340px;
  overflow-y: auto;
  padding: 0.35rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
}
.agenda-resultado {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--text);
  transition: background var(--ease);
}
.agenda-resultado:hover { background: var(--surface-alt); }
.agenda-resultado-nombre { font-size: 0.86rem; font-weight: 600; }
.agenda-resultado-detalle { font-size: 0.76rem; color: var(--text-2); }
.agenda-resultado-cancelada .agenda-resultado-nombre { text-decoration: line-through; color: var(--text-3); }
.agenda-resultado-vacio { padding: 0.75rem; font-size: 0.82rem; color: var(--text-2); }

.agenda-event.agenda-event-resaltado {
  z-index: 3;
  box-shadow: 0 0 0 3px var(--primary), 0 0 0 7px var(--primary-ring);
}

.agenda-tabs {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.agenda-tab {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 6px;
  transition: all var(--ease);
}

.agenda-tab.active {
  background: var(--accent);
  color: #fff;
}

.agenda-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.agenda-nav-btn {
  padding: 0.35rem 0.65rem;
  font-size: 1.3rem;
  line-height: 1;
}

.agenda-today-btn {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
}

.agenda-body-layout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.agenda-container {
  flex: 1;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: none;
}

/* ── Weekly ── */
.agenda-weekly { display: flex; flex-direction: column; }

.agenda-week-header {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

.agenda-gutter-head { border-right: 1px solid var(--border); }

.agenda-day-head {
  padding: 0.7rem 0.25rem 0.5rem;
  text-align: center;
  border-right: 1px solid var(--border-2);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
}

.agenda-day-head.today { color: var(--primary); }

.agenda-day-num-wrap { display: flex; justify-content: center; margin-bottom: 0.1rem; }

.agenda-day-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.agenda-day-head.today .agenda-day-num {
  background: var(--primary);
  color: #fff;
}

.agenda-week-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 290px);
  min-height: 200px;
}

.agenda-week-body {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
}

/* ── Time column ── */
.agenda-time-col { border-right: 1px solid var(--border); }

.agenda-time-label {
  height: 56px;
  display: flex;
  align-items: flex-start;
  padding: 4px 7px 0;
  font-size: 0.68rem;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--border-2);
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
}

/* ── Day columns ── */
.agenda-day-col {
  position: relative;
  border-right: 1px solid var(--border-2);
}

.agenda-day-col.today-col { background: var(--primary-light); opacity: 0.4; }

.agenda-slot {
  height: 56px;
  border-bottom: 1px solid var(--border-2);
  cursor: cell;
  transition: background var(--ease);
}

.agenda-slot:nth-child(odd) { border-bottom-color: transparent; }

.agenda-slot:hover { background: var(--surface-alt); }

/* ── Event blocks ── */
.agenda-event {
  position: absolute;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.72rem;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: filter var(--ease), box-shadow var(--ease), transform var(--ease), opacity var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1px;
  border: none;
}

.agenda-event:hover {
  z-index: 5;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 18px rgba(20,17,15,0.18), 0 0 0 2px currentColor;
  filter: saturate(1.25) brightness(1.03);
}

/* Al pasar el puntero sobre una cita, las demás del mismo día se atenúan
   para que resalte la que se está seleccionando. */
.agenda-day-col:has(.agenda-event:hover) .agenda-event:not(:hover),
.agenda-daily-col:has(.agenda-event:hover) .agenda-event:not(:hover) {
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .agenda-event:hover { transform: none; }
}

.agenda-event-pendiente {
  background: var(--amber-bg);
  border-left: 3px solid var(--amber);
  color: var(--amber);
}

.agenda-event-completada {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  color: var(--green);
}

.agenda-event-sin-confirmar {
  background: var(--amber-bg);
  border-left: 3px solid var(--amber);
  color: var(--amber);
}

.agenda-event-confirmada {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  color: var(--green);
}

.agenda-event-completada:not(.agenda-event-tarea) {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  color: var(--blue);
}

.agenda-event-cancelada {
  background: var(--red-bg);
  border-left: 3px solid var(--red);
  color: var(--red);
}
.agenda-event-cancelada .agenda-event-name { text-decoration: line-through; }

.agenda-event-time {
  font-size: 0.66rem;
  opacity: 0.85;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-event-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ── Tareas dentro de la cuadrícula ── */
.agenda-event-tarea {
  border-left-style: dashed;
  border-left-width: 3px;
}

.agenda-event-tarea-icon {
  width: 8px;
  height: 8px;
  display: inline-block;
  vertical-align: -1px;
  margin-right: 3px;
  flex-shrink: 0;
}

.agenda-event-tarea.agenda-event-prioridad-alta  { border-left-color: var(--rose); }
.agenda-event-tarea.agenda-event-prioridad-media { border-left-color: var(--amber); }
.agenda-event-tarea.agenda-event-prioridad-baja  { border-left-color: var(--green); }

/* ── Now indicator ── */
.agenda-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  z-index: 4;
  pointer-events: none;
}

.agenda-now-line::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--card-bg);
}

/* ── Daily ── */
.agenda-daily { display: flex; flex-direction: column; }

.agenda-daily-header {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

.agenda-daily-head {
  padding: 0.875rem 1rem;
  text-align: center;
  border-left: 1px solid var(--border);
}

.agenda-daily-day-name {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.agenda-daily-day-num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.agenda-daily-head.today .agenda-daily-day-num { color: var(--primary); }

.agenda-daily-month {
  font-size: 0.75rem;
  color: var(--text-2);
  text-transform: capitalize;
}

.agenda-daily-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 290px);
  min-height: 200px;
}

.agenda-daily-body {
  display: grid;
  grid-template-columns: 60px 1fr;
}

.agenda-daily-col { border-left: 1px solid var(--border); }

/* ── Empty agenda day ── */
.agenda-empty-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 0.75rem;
  color: var(--text-3);
  font-size: 0.85rem;
}

/* ── Panel de tareas de la agenda ── */
.agenda-tasks-panel {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: none;
  max-height: calc(100vh - 290px);
  min-height: 200px;
}

.agenda-tasks-header {
  padding: 0.9rem 1rem 0.8rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.agenda-tasks-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.agenda-tasks-title {
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.agenda-tasks-add-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}
.agenda-tasks-add-btn svg { width: 13px; height: 13px; }
.agenda-tasks-add-btn:hover { background: var(--primary); color: #fff; }

.agenda-tasks-progress-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.agenda-tasks-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border-2);
  border: none;
  border-radius: 4px;
  overflow: hidden;
}

.agenda-tasks-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width var(--ease);
}

.agenda-tasks-progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}

.agenda-tasks-list {
  overflow-y: auto;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agenda-task-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
}
.agenda-task-row:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.agenda-task-row.completada { opacity: 0.5; }
.agenda-task-row.completada .agenda-task-title { text-decoration: line-through; }

.agenda-task-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: transparent;
  transition: all var(--ease);
  background: var(--card-bg);
}
.agenda-task-check svg { width: 11px; height: 11px; }
.agenda-task-check:hover { border-color: var(--accent); }
.agenda-task-row.completada .agenda-task-check { background: var(--green); border-color: var(--green); color: #fff; }

.agenda-task-body { flex: 1; min-width: 0; cursor: pointer; }
.agenda-task-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.agenda-task-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.agenda-task-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.agenda-task-pill-time { background: var(--blue-bg); color: var(--blue); }
.agenda-task-pill-flex { background: var(--surface-alt); color: var(--text-2); }
.agenda-task-pill-day  { background: var(--surface-alt); color: var(--text-2); }

.agenda-task-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.agenda-task-dot-alta  { background: var(--rose); }
.agenda-task-dot-media { background: var(--amber); }
.agenda-task-dot-baja  { background: var(--green); }

.agenda-tasks-empty {
  padding: 2rem 1.1rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ══ RESPONSIVE ══ */

/* Dashboard: en pantallas de escritorio, todo el contenido de Inicio cabe
   en la altura de la ventana; las listas internas scrollean, la página no. */
@media (min-width: 901px) {
  #page-inicio.active {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 52px - 3.5rem);
    overflow: hidden;
  }
  #page-inicio .page-header { flex-shrink: 0; }
  #page-inicio .dashboard-body { flex: 1; min-height: 0; }
  #page-inicio .stats-grid { flex-shrink: 0; margin-bottom: 0; }
  #page-inicio .dashboard-main { flex: 1; min-height: 0; }
  #page-inicio .weekly-card { flex-shrink: 0; }
  #page-inicio .dashboard-lists { flex: 1; min-height: 0; }
  #page-inicio .dashboard-scroll { flex: 1; }
}

@media (max-width: 1150px) {
  .agenda-body-layout { flex-direction: column; }
  .agenda-tasks-panel { width: 100%; max-height: 340px; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: 1fr; }

  .agenda-weekly { overflow-x: auto; }
  .agenda-week-header { min-width: 560px; }
  .agenda-week-body { min-width: 560px; }
}

@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }

  .mobile-header { display: flex; }
  .app-topbar { display: none; }
  .main-wrapper { margin-left: 0; }
  .notif-panel { right: 1rem; }

  #main-content { padding: 1.25rem 1rem 2.5rem; }

  .page-header h1 { font-size: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .stat-card { padding: 1rem; gap: 0.75rem; }
  .stat-num { font-size: 1.5rem; }

  .form-row { grid-template-columns: 1fr; }
  .contactos-grid { grid-template-columns: 1fr; }
  .notas-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: 1fr; }

  .agenda-daily-header,
  .agenda-daily-body { grid-template-columns: 50px 1fr; }
  .agenda-week-header,
  .agenda-week-body { grid-template-columns: 50px repeat(7, minmax(72px, 1fr)); }
  .agenda-time-label { padding: 4px 4px 0; font-size: 0.58rem; }
}

@media (max-width: 480px) {
  .cita-card { flex-wrap: wrap; }
  .cita-actions { width: 100%; justify-content: flex-end; }
  .tarea-card { flex-wrap: wrap; }

  .agenda-toolbar { gap: 0.4rem; }
  .agenda-tab { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
}

/* ══ ASISTENTE IA ══ */
.asistente-fab {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-lg);
  z-index: 150;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}
.asistente-fab svg { width: 24px; height: 24px; }
.asistente-fab:hover { background: var(--primary-dark); transform: translateY(-2px); }

.asistente-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 500px;
  max-height: calc(100vh - 8rem);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  z-index: 160;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.2s ease;
}
.asistente-panel.hidden { display: none; }

.asistente-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.asistente-header-info { display: flex; align-items: center; gap: 0.6rem; }
.asistente-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.asistente-avatar svg { width: 18px; height: 18px; }
.asistente-titulo { font-family: var(--f-display); font-size: 0.9rem; font-weight: 700; }
.asistente-subtitulo { font-size: 0.75rem; color: var(--text-3); }

.asistente-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.asistente-msg {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r);
  border: none;
  font-size: 0.84rem;
  line-height: 1.4;
  white-space: pre-line;
}
.asistente-msg.bot {
  align-self: flex-start;
  background: var(--surface-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.asistente-msg.usuario {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.asistente-msg a { color: var(--primary); word-break: break-all; }
.asistente-msg.pensando { color: var(--text-3); font-style: italic; }

.asistente-sugerencias {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-self: flex-start;
  max-width: 100%;
}
.asistente-chip {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  transition: background var(--ease), border-color var(--ease);
}
.asistente-chip:hover { background: var(--surface-alt); border-color: var(--primary); }

.asistente-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.asistente-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
}
.asistente-input-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.asistente-send { background: var(--primary); color: #fff; border: none; flex-shrink: 0; }
.asistente-send:hover { background: var(--primary-dark); color: #fff; }

@media (max-width: 480px) {
  .asistente-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 5rem;
  }
  .asistente-fab { right: 1rem; bottom: 4.75rem; }
}

/* ══ BLOQUEO MÓVIL/TABLET ══ */
#mobile-block { display: none; }

/* El link público de agendado (html.modo-publico) sí funciona en celular, y en
   celulares y tablets (html.app-movil) se usa la experiencia de css/mobile.css,
   así que este bloqueo ya solo aplicaría si index.html no marcara .app-movil. */
html.modo-publico #video-intro { display: none; }

@media (max-width: 1024px) {
  html:not(.modo-publico):not(.app-movil) body > *:not(#mobile-block) { display: none !important; }

  html:not(.modo-publico):not(.app-movil) #mobile-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: var(--bg);
  }

  .mobile-block-card {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .mobile-block-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 1rem;
    border-radius: var(--r-sm);
    border: none;
  }

  .mobile-block-title {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .mobile-block-subtitle {
    color: var(--text-2);
    font-size: 0.95rem;
    margin-top: 0.25rem;
  }

  .mobile-block-badge {
    display: inline-block;
    margin: 1.25rem 0 1rem;
    padding: 0.4rem 0.9rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .mobile-block-desc {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.5;
  }

  .mobile-block-features {
    list-style: none;
    text-align: left;
    margin: 1.25rem 0;
    padding: 1rem;
    background: var(--surface-alt);
    border: none;
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .mobile-block-features li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--text);
  }

  .mobile-block-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
  }

  .mobile-block-note {
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.5;
  }
}


/* ══ ADJUNTOS DE NOTAS (Premium) ══ */
.badge-premium {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--primary-ring);
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 700;
  vertical-align: middle;
}
.adjuntos-list { display: flex; flex-direction: column; gap: 0.4rem; }
.adjuntos-list:not(:empty) { margin-bottom: 0.6rem; }
.adjunto-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  min-width: 0;
}
.adjunto-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-3); }
.adjunto-item a, .adjunto-item .adjunto-nombre {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}
.adjunto-item a:hover { text-decoration: underline; }
.adjunto-tamano { color: var(--text-3); font-size: 0.72rem; flex-shrink: 0; }
.adjunto-item.subiendo { opacity: 0.6; }
.adjuntos-lock { font-size: 0.8rem; color: var(--text-2); display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.adjuntos-lock p { margin: 0; }
.nota-adjuntos { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.nota-adjunto-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-2);
  font-size: 0.72rem;
  text-decoration: none;
}
.nota-adjunto-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.nota-adjunto-chip svg { width: 11px; height: 11px; flex-shrink: 0; }
.nota-adjunto-chip:hover { background: rgba(0, 0, 0, 0.1); }
