/* =========================================================
   LIMPIEZA AIRBNB — v1.1
   Dirección estética: "Editorial Coastal"
   Navy profundo + acento naranja cálido · Tipografía bold
   ========================================================= */

:root {
  /* ==== Navy scale ==== */
  --navy-950:   #050f1d;
  --navy-900:   #0a1929;
  --navy-800:   #11253f;
  --navy-700:   #1a3a5c;
  --navy-600:   #234e7a;
  --navy-500:   #2d6394;
  --navy-400:   #4a7aab;
  --navy-300:   #7ea1c5;
  --navy-200:   #b8cee0;
  --navy-100:   #d8e4f0;
  --navy-50:    #eef4fb;
  --navy-25:    #f5f9fd;

  /* ==== Orange accent scale ==== */
  --orange-800: #8c3f12;
  --orange-700: #b8521a;
  --orange-600: #d96322;
  --orange-500: #e87830;
  --orange-400: #f08f4f;
  --orange-300: #f5ad7d;
  --orange-200: #fbceae;
  --orange-100: #fce4d0;
  --orange-50:  #fff0e3;

  /* ==== Aliases semánticos ==== */
  --bg:          #f5f9fd;
  --bg-soft:     var(--navy-50);
  --surface:     #ffffff;
  --surface-2:   var(--navy-25);
  --text:        var(--navy-950);
  --text-soft:   var(--navy-700);
  --text-muted:  var(--navy-400);
  --border:      var(--navy-100);
  --border-soft: var(--navy-50);
  --primary:     var(--navy-800);
  --primary-dark:var(--navy-900);
  --accent:      var(--orange-500);
  --accent-dark: var(--orange-700);
  --accent-soft: var(--orange-100);
  --success:     #5b8a6e;
  --warning:     #d4a04a;
  --danger:      #b53737;

  --shadow-xs:  0 1px 2px rgba(10, 25, 41, 0.04);
  --shadow-sm:  0 2px 4px rgba(10, 25, 41, 0.06);
  --shadow:     0 4px 12px rgba(10, 25, 41, 0.08);
  --shadow-md:  0 8px 24px rgba(10, 25, 41, 0.10);
  --shadow-lg:  0 16px 40px rgba(10, 25, 41, 0.14);

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 99, 148, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(232, 120, 48, 0.03) 0%, transparent 35%),
    var(--bg);
  min-height: 100vh;
}

/* ===== Tipografía ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.025em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 700; }

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

::selection { background: var(--orange-200); color: var(--navy-900); }

/* ===== Layout ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-xs);
  gap: 16px;
}

.app-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.app-brand .brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-400);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.app-brand .brand-mark::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--orange-500);
  border-radius: 50%;
  bottom: -2px;
  right: -2px;
  border: 2px solid var(--surface);
}

.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  background: var(--navy-50);
  border-radius: 99px;
  font-weight: 600;
}
.user-chip .avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.user-chip .role-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}

.app-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.page-intro {
  margin-bottom: 28px;
}
.page-intro h1 {
  font-size: 2.4rem;
  margin-bottom: 4px;
}
.page-intro .subtitle {
  color: var(--text-soft);
  font-size: 1rem;
}
.page-intro .subtitle strong {
  color: var(--accent-dark);
  font-weight: 700;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none;
  border: none;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.18s ease;
  position: relative;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--navy-900);
  border-bottom-color: var(--accent);
}

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
  transition: all 0.18s ease;
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--navy-800);
  color: white;
  border-color: var(--navy-800);
}
.btn-primary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--navy-300);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--border);
}
.btn-danger:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  text-decoration: none;
}
.btn-sm { padding: 7px 14px; font-size: 0.83rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== Avatar ===== */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-300);
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  overflow: hidden;
  position: relative;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-xl { width: 96px; height: 96px; font-size: 2.2rem; border-width: 3px; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; border-width: 3px; }
.avatar-md { width: 48px; height: 48px; font-size: 1.1rem; }
.avatar-sm { width: 30px; height: 30px; font-size: 0.78rem; border-width: 1.5px; }

.avatar-editable {
  cursor: pointer;
  transition: all 0.18s ease;
}
.avatar-editable:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow);
}
.avatar-editable::after {
  content: '✎';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 41, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.18s ease;
  border-radius: inherit;
}
.avatar-editable:hover::after { opacity: 1; }

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.15s ease;
}
.form-control:hover { border-color: var(--navy-300); }
.form-control:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px var(--navy-50);
}

/* ===== Search bar ===== */
.search-bar {
  position: relative;
  margin-bottom: 24px;
}
.search-bar input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  transition: all 0.15s ease;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px var(--navy-50);
}
.search-bar::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3a5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
  pointer-events: none;
}

/* ===== Properties grid ===== */
.props-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .props-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .props-grid { grid-template-columns: repeat(3, 1fr); }
}
.prop-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.prop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.22s cubic-bezier(.5,.05,.1,1);
}
.prop-card:hover {
  border-color: var(--navy-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.prop-card:hover::before { transform: scaleY(1); }

.prop-color {
  width: 8px;
  align-self: stretch;
  border-radius: 4px;
  flex-shrink: 0;
  min-height: 50px;
}
.prop-info { flex: 1; min-width: 0; }
.prop-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 6px;
  word-wrap: break-word;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.prop-lugar {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.prop-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== Table ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
th {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  background: var(--navy-50);
  border-bottom: 2px solid var(--border);
}
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: var(--navy-25); }
td.with-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Login page ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(232, 120, 48, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 82% 80%, rgba(45, 99, 148, 0.12) 0%, transparent 45%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.login-page::before, .login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-page::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--navy-800), transparent 70%);
  opacity: 0.05;
  top: -160px; right: -180px;
}
.login-page::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.06;
  bottom: -120px; left: -140px;
}

.login-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
  animation: loginIn 0.5s cubic-bezier(.2,.8,.2,1);
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.login-brand .mark {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-400);
  font-size: 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}
.login-brand .mark::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: var(--orange-500);
  border-radius: 50%;
  bottom: -4px; right: -4px;
  border: 3px solid var(--surface);
}
.login-brand h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy-900);
  margin-bottom: 4px;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.login-brand .subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 41, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
  animation: overlayIn 0.15s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.22s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: white;
  padding: 13px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  animation: toastIn 0.28s cubic-bezier(.2,.8,.2,1);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
}
.toast.success { background: var(--navy-800); border-left: 4px solid var(--success); }
.toast.error { background: var(--navy-900); border-left: 4px solid var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Utility ===== */
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.flex-col { display: flex; flex-direction: column; gap: 10px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--navy-50);
  color: var(--navy-700);
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--navy-100);
}
.tag-accent { background: var(--orange-100); color: var(--orange-700); border-color: var(--orange-200); }
.tag-success { background: #e5f0e7; color: #3d6b4e; border-color: #c9e0cf; }
.tag-warning { background: #fbeed0; color: #8a6720; border-color: #f3deae; }
.tag-danger { background: #fde0e0; color: #8a2a2a; border-color: #f3c4c4; }
.tag-muted { background: var(--bg-soft); color: var(--text-muted); border-color: var(--border-soft); }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state h3 {
  color: var(--text-soft);
  margin-bottom: 8px;
}
.empty-state p { font-size: 0.92rem; }

.checkbox-list {
  max-height: 380px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--surface-2);
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.12s ease;
}
.checkbox-item:hover { background: var(--surface); }
.checkbox-item input { margin: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.checkbox-item label { flex: 1; cursor: pointer; font-size: 0.9rem; font-weight: 500; }

/* ===== Avatar upload ===== */
.avatar-upload-zone {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  border: 1.5px dashed var(--border);
  transition: all 0.18s ease;
}
.avatar-upload-zone.drag {
  border-color: var(--accent);
  background: var(--orange-50);
}
.avatar-upload-info { flex: 1; min-width: 0; }
.avatar-upload-info h4 { font-weight: 700; margin-bottom: 2px; font-size: 0.95rem; }
.avatar-upload-info p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ===== Login alert ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.alert-error {
  background: #fde0e0;
  color: #8a2a2a;
  border: 1px solid #f3c4c4;
}

/* ===== Mobile tweaks ===== */
@media (max-width: 700px) {
  .app-header { padding: 12px 16px; }
  .app-brand { font-size: 1.1rem; }
  .app-brand .brand-mark { width: 32px; height: 32px; font-size: 0.95rem; }
  .app-content { padding: 24px 16px 80px; }
  .card { padding: 18px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .card-title { font-size: 1.2rem; }
  .modal { padding: 22px; }
  .login-box { padding: 32px 24px; }
  .login-brand h1 { font-size: 1.55rem; }
  .login-brand .mark { width: 56px; height: 56px; font-size: 1.55rem; }
  .user-chip { padding: 4px 10px 4px 4px; gap: 8px; }
  .user-chip .role-tag { display: none; }
}
@media (max-width: 420px) {
  .page-intro h1 { font-size: 1.7rem; }
}

/* =========================================================
   v1.2 — Sincronización iCal + limpiezas
   ========================================================= */

/* ===== Sync status badges en prop-cards ===== */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sync-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.sync-ok      { background: #e5f0e7; color: #3d6b4e; }
.sync-ok::before     { background: #5b8a6e; }
.sync-error   { background: #fde0e0; color: #8a2a2a; }
.sync-error::before  { background: #b53737; }
.sync-pending { background: var(--bg-soft); color: var(--text-muted); }
.sync-pending::before{ background: var(--text-muted); }

/* ===== Sync header (botón grande de sincronizar todas) ===== */
.sync-banner {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: white;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.sync-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 250px; height: 250px;
  background: radial-gradient(circle, var(--orange-500) 0%, transparent 70%);
  opacity: 0.18;
  transform: translate(40%, -40%);
  pointer-events: none;
}
.sync-banner h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 4px;
  font-weight: 800;
}
.sync-banner .meta { font-size: 0.85rem; opacity: 0.85; }
.sync-banner .meta strong { color: var(--orange-300); font-weight: 700; }
.sync-banner .actions { position: relative; z-index: 2; }
.sync-banner .btn-accent {
  background: var(--orange-500);
  border-color: var(--orange-500);
  box-shadow: 0 4px 14px rgba(232, 120, 48, 0.35);
}
.sync-banner .btn-accent:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  box-shadow: 0 6px 18px rgba(232, 120, 48, 0.45);
}

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.spinner-dark { border-color: rgba(10,25,41,0.2); border-top-color: var(--navy-800); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Limpiezas: grupos por fecha ===== */
.dia-grupo {
  margin-bottom: 24px;
}
.dia-grupo .dia-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.dia-grupo .dia-header .fecha {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.dia-grupo .dia-header .dia-semana {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
}
.dia-grupo .dia-header .count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: auto;
}

.limpieza-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  align-items: flex-start;
}
.limpieza-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--prop-color, var(--accent));
}
.limpieza-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--navy-300);
}
.limpieza-card .info {
  flex: 1;
  min-width: 0;
}
.limpieza-card .nombre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.limpieza-card .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.limpieza-card .quien {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-50);
  padding: 3px 10px 3px 3px;
  border-radius: 99px;
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.78rem;
}
.limpieza-card .quien .avatar { width: 22px; height: 22px; font-size: 0.65rem; border-width: 1.5px; }
.limpieza-card .sin-asignar {
  background: var(--orange-100);
  color: var(--orange-700);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--orange-200);
}
.limpieza-card .estado-tag {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid;
}
.estado-pendiente   { background: var(--navy-50);    color: var(--navy-700);   border-color: var(--navy-100); }
.estado-en_progreso { background: #fef4d6;            color: #8a6720;            border-color: #f3deae; }
.estado-completada  { background: #e5f0e7;            color: #3d6b4e;            border-color: #c9e0cf; }
.estado-con_problemas { background: #fde0e0;          color: #8a2a2a;            border-color: #f3c4c4; }
.estado-cancelada   { background: var(--bg-soft);     color: var(--text-muted);  border-color: var(--border-soft); }

/* Botones de acción dentro de limpieza card */
.limpieza-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ===== Vista de colaboradora: limpiezas pendientes ===== */
.proximas-limpiezas {
  margin-bottom: 32px;
}
.proximas-limpiezas h2 {
  margin-bottom: 14px;
}
.proximas-limpiezas .empty-state-soft {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* Hoy/mañana destacado */
.dia-grupo.hoy .dia-header .fecha { color: var(--accent-dark); }
.dia-grupo.hoy .dia-header .fecha::after {
  content: ' · HOY';
  font-size: 0.7rem;
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.1em;
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 800;
}
.dia-grupo.manana .dia-header .fecha::after {
  content: ' · MAÑANA';
  font-size: 0.7rem;
  background: var(--navy-700);
  color: white;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.1em;
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 800;
}

/* Log entries en panel de sync */
.log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
}
.log-entry:last-child { border-bottom: none; }
.log-entry .log-time { color: var(--text-muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.log-entry .log-msg { flex: 1; }

/* =========================================================
   v1.3 — Notificaciones in-app (campanita en header)
   ========================================================= */
.notif-wrapper {
  position: relative;
  display: inline-block;
}
.notif-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.2s ease;
  position: relative;
  padding: 0;
}
.notif-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.notif-btn .notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--navy-900);
  letter-spacing: 0;
  font-family: var(--font-sans);
}
.notif-btn .notif-badge:empty,
.notif-btn .notif-badge[data-count="0"] { display: none; }

/* Pulse animation cuando hay nuevas */
.notif-btn.tiene-nuevas .notif-badge {
  animation: notifPulse 1.6s ease-in-out infinite;
}
@keyframes notifPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 120, 48, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(232, 120, 48, 0); }
}

/* Dropdown panel */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(400px, 92vw);
  max-height: 70vh;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(10, 25, 41, 0.18);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.notif-panel.active { display: flex; }

.notif-panel-header {
  padding: 14px 18px;
  background: var(--navy-50);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.notif-panel-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-900);
  margin: 0;
}
.notif-panel-header .marcar-leidas {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.notif-panel-header .marcar-leidas:hover { background: rgba(232, 120, 48, 0.12); }
.notif-panel-header .marcar-leidas:disabled { opacity: 0.35; cursor: default; }

.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-list-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.notif-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-soft); }
.notif-item.no-leida { background: rgba(232, 120, 48, 0.05); }
.notif-item.no-leida::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.notif-item.leida::before {
  content: '';
  width: 8px;
  flex-shrink: 0;
}

.notif-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}
.notif-icon.tipo-limpieza_nueva,
.notif-icon.tipo-limpieza_cambio_fecha { background: var(--orange-100); border-color: var(--orange-200); }
.notif-icon.tipo-limpieza_cancelada,
.notif-icon.tipo-limpieza_reasignada { background: var(--bg-soft); border-color: var(--border); }
.notif-icon.tipo-limpieza_problema { background: #fde0e0; border-color: #f3c4c4; }
.notif-icon.tipo-sync_error { background: #fef4d6; border-color: #f3deae; }

.notif-content { flex: 1; min-width: 0; }
.notif-content .titulo {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 2px;
  line-height: 1.3;
}
.notif-item.leida .titulo { font-weight: 600; color: var(--text-soft); }
.notif-content .mensaje {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.4;
  margin-bottom: 4px;
}
.notif-content .hora {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Overlay para cerrar al click fuera */
.notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}
.notif-backdrop.active { display: block; }

/* =========================================================
   v1.4 — Calendario visual mensual
   ========================================================= */

/* Toggle Lista / Mes */
.vista-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  gap: 0;
}
.vista-btn {
  background: transparent;
  border: none;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 99px;
  transition: all 0.18s ease;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}
.vista-btn:hover { color: var(--navy-900); }
.vista-btn.active {
  background: var(--navy-800);
  color: white;
  box-shadow: 0 2px 6px rgba(10, 25, 41, 0.15);
}

/* Calendario grid */
.calendario {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calendario-encabezado {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--navy-50);
  border-bottom: 1.5px solid var(--border);
}
.calendario-encabezado .dia-nombre {
  padding: 10px 6px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-transform: uppercase;
}
.calendario-encabezado .dia-nombre.fin-de-semana { color: var(--accent-dark); }

.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(110px, auto);
}
.cal-celda {
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 6px;
  position: relative;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 110px;
  overflow: hidden;
}
.cal-celda:nth-child(7n) { border-right: none; }
.cal-celda.fuera-mes { background: var(--bg-soft); }
.cal-celda.fuera-mes .cal-num { color: var(--text-muted); opacity: 0.5; }
.cal-celda.hoy { background: rgba(232, 120, 48, 0.06); }
.cal-celda.hoy .cal-num {
  background: var(--accent);
  color: white;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: -2px 0 2px -2px;
}
.cal-celda.tiene-pendientes-vencidas {
  background: rgba(181, 55, 55, 0.04);
}
.cal-celda.tiene-pendientes-vencidas .cal-num {
  color: #8a2a2a;
}
.cal-celda.clickeable { cursor: pointer; }
.cal-celda.clickeable:hover { background: var(--navy-50); }
.cal-celda.hoy.clickeable:hover { background: rgba(232, 120, 48, 0.12); }

.cal-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
  padding: 2px;
  flex-shrink: 0;
}

/* Píldora de limpieza dentro de celda */
.cal-pildora {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 4px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--prop-color, var(--navy-700));
  color: var(--text-soft);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.3;
  transition: background 0.15s ease;
}
.cal-pildora:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(10, 25, 41, 0.08);
}
.cal-pildora .estado-icono {
  font-size: 0.65rem;
  flex-shrink: 0;
  opacity: 0.7;
}
.cal-pildora .texto {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.cal-pildora.estado-completada { opacity: 0.55; text-decoration: line-through; }
.cal-pildora.estado-cancelada { opacity: 0.4; text-decoration: line-through; font-style: italic; }
.cal-pildora.estado-con_problemas { background: #fde0e0; border-left-color: #b53737; color: #6a1f1f; }
.cal-pildora.estado-en_progreso { background: #fef4d6; color: #6a4f15; }

.cal-pildora.sin-asignar::after {
  content: '?';
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  font-weight: 800;
  flex-shrink: 0;
}

.cal-mas {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-dark);
  padding: 2px 4px;
  cursor: pointer;
  margin-top: 1px;
}
.cal-mas:hover { text-decoration: underline; }

/* Leyenda */
.cal-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.cal-leyenda-item { display: inline-flex; align-items: center; gap: 5px; }
.cal-leyenda-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Vista compacta para móvil */
@media (max-width: 700px) {
  .calendario-grid { grid-auto-rows: minmax(64px, auto); }
  .cal-celda {
    min-height: 64px;
    padding: 4px 3px;
    align-items: center;
    gap: 2px;
  }
  .cal-num { font-size: 0.82rem; padding: 1px; align-self: flex-start; }
  .cal-celda.hoy .cal-num {
    width: 22px; height: 22px;
    font-size: 0.78rem;
  }
  /* En móvil, las pildoras se reducen a dots */
  .cal-pildora {
    width: 8px; height: 8px;
    padding: 0;
    border-radius: 50%;
    border-left: none;
    background: var(--prop-color, var(--navy-700));
    display: inline-block;
    margin: 1px;
  }
  .cal-pildora .estado-icono,
  .cal-pildora .texto,
  .cal-pildora.sin-asignar::after { display: none; }
  .cal-dots-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-top: 2px;
    line-height: 0;
  }
  .cal-mas { font-size: 0.62rem; }
  .calendario-encabezado .dia-nombre { font-size: 0.65rem; padding: 6px 2px; }
  .calendario-encabezado .dia-nombre .nombre-largo { display: none; }
}

/* =========================================================
   v1.5 — Calendario POR PROPIEDAD + Panel KPI Ganadoras
   ========================================================= */

/* ===== Calendario por propiedad ===== */
.cal-prop {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cal-prop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  gap: 10px;
}
.cal-prop-header .titulo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.cal-prop-header .reservas-mes {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.cal-prop-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cal-prop-nav button {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-prop-nav button:hover:not(:disabled) {
  background: var(--navy-50);
  color: var(--navy-900);
}
.cal-prop-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-prop-nav .mes-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-900);
  min-width: 130px;
  text-align: center;
}

/* Header días de la semana (DLMMJVS) */
.cal-prop-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--navy-50);
  border-top: 1px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.cal-prop-dow div {
  padding: 8px 4px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}
.cal-prop-dow div.fds { color: var(--accent-dark); }

/* Grid de celdas */
.cal-prop-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(60px, auto);
  gap: 4px;
  padding: 8px;
  background: var(--bg-soft);
}

.cal-prop-celda {
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  font-family: var(--font-display);
  position: relative;
  border: 1.5px solid transparent;
  cursor: default;
  min-height: 56px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cal-prop-celda.tiene-evento {
  cursor: pointer;
}
.cal-prop-celda.tiene-evento:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(10, 25, 41, 0.12);
}
.cal-prop-celda.fuera-mes { opacity: 0.32; }

.cal-prop-celda.hoy {
  outline: 2.5px solid var(--accent);
  outline-offset: -2.5px;
}

/* Estados con prioridad descendente */
.cal-prop-celda.tipo-entrada_y_salida {
  background: #e84545;
  color: white;
  border-color: #b53737;
}
.cal-prop-celda.tipo-entrada {
  background: #4ea03d;
  color: white;
  border-color: #3a7f2d;
}
.cal-prop-celda.tipo-salida {
  background: #3a7fd9;
  color: white;
  border-color: #2860a8;
}
.cal-prop-celda.tipo-ocupado {
  background: #fff4c2;
  color: #6a5510;
  border-color: #f4c95a;
}
.cal-prop-celda.tipo-bloqueado {
  background: #888a8c;
  color: white;
  border-color: #6e7072;
}

/* Punto morado para limpieza extra (puede superponerse a cualquier color) */
.cal-prop-celda .punto-extra {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 8px; height: 8px;
  background: #7c3aed;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px white;
}

/* Indicador status (estado actual de la propiedad) */
.cal-prop-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
}
.cal-prop-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
}
.cal-prop-status.salida-hoy { background: rgba(58, 127, 217, 0.12); color: #2860a8; }
.cal-prop-status.salida-hoy::before { background: #3a7fd9; }
.cal-prop-status.entrada-hoy { background: rgba(78, 160, 61, 0.12); color: #3a7f2d; }
.cal-prop-status.entrada-hoy::before { background: #4ea03d; }
.cal-prop-status.entrada-y-salida-hoy { background: rgba(232, 69, 69, 0.12); color: #b53737; }
.cal-prop-status.entrada-y-salida-hoy::before { background: #e84545; }
.cal-prop-status.ocupado-hoy { background: rgba(244, 201, 90, 0.16); color: #6a5510; }
.cal-prop-status.ocupado-hoy::before { background: #f4c95a; }
.cal-prop-status.libre { background: var(--bg-soft); color: var(--text-soft); }
.cal-prop-status.libre::before { background: var(--text-muted); }

/* Leyenda */
.cal-prop-leyenda {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
  padding: 10px 18px 14px;
  font-size: 0.75rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.cal-prop-leyenda > div { display: inline-flex; align-items: center; gap: 6px; }
.cal-prop-leyenda .cuadro {
  width: 14px; height: 14px;
  border-radius: 3px;
  display: inline-block;
  border: 1.5px solid transparent;
}
.cal-prop-leyenda .cuadro.tipo-entrada_y_salida { background: #e84545; border-color: #b53737; }
.cal-prop-leyenda .cuadro.tipo-entrada { background: #4ea03d; border-color: #3a7f2d; }
.cal-prop-leyenda .cuadro.tipo-salida { background: #3a7fd9; border-color: #2860a8; }
.cal-prop-leyenda .cuadro.tipo-ocupado { background: #fff4c2; border-color: #f4c95a; }
.cal-prop-leyenda .cuadro.tipo-bloqueado { background: #888a8c; border-color: #6e7072; }
.cal-prop-leyenda .punto-extra-leyenda {
  width: 10px; height: 10px;
  background: #7c3aed;
  border-radius: 50%;
  display: inline-block;
}

@media (min-width: 700px) {
  .cal-prop-leyenda { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Modal Día por propiedad ===== */
.dia-prop-seccion { margin-top: 16px; }
.dia-prop-seccion:first-child { margin-top: 0; }
.dia-prop-seccion h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 800;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-soft);
}
.dia-prop-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.dia-prop-item .icono-tipo {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  font-weight: 700;
}
.dia-prop-item .icono-tipo.entrada { background: rgba(78, 160, 61, 0.14); color: #3a7f2d; }
.dia-prop-item .icono-tipo.salida { background: rgba(58, 127, 217, 0.14); color: #2860a8; }
.dia-prop-item .icono-tipo.limpieza { background: var(--orange-100); color: var(--accent-dark); }
.dia-prop-item .titulo {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.dia-prop-item .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Panel KPI Ganadoras ===== */
.kpi-ganadoras {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 130px;
}
.kpi-ganadoras.con-imagen {
  background-image: var(--kpi-bg);
  background-size: cover;
  background-position: center;
}
.kpi-ganadoras.con-imagen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(154, 75, 33, 0.78), rgba(232, 120, 48, 0.65));
  z-index: 0;
}
.kpi-ganadoras > * { position: relative; z-index: 1; }

.kpi-ganadoras .label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
.kpi-ganadoras .titulo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.15;
  color: white;
}
.kpi-ganadoras .subtitulo {
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.4;
}

.kpi-ganadoras-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.kpi-ganadora-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  padding: 4px 12px 4px 4px;
  backdrop-filter: blur(4px);
  font-weight: 700;
  font-size: 0.88rem;
}
.kpi-ganadora-chip .avatar { width: 28px; height: 28px; font-size: 0.75rem; border-color: rgba(255,255,255,0.6); }

/* Versión "tu progreso" para colaboradora */
.kpi-mi-progreso {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.kpi-mi-progreso .barra {
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.kpi-mi-progreso .barra-fill {
  height: 100%;
  background: white;
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* Botón configurar imagen (solo admin) */
.kpi-config-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
}
.kpi-config-btn:hover { background: rgba(255, 255, 255, 0.25); }

/* ===== Prop-cards clickeables en colaboradora (para abrir calendario) ===== */
.colab-prop-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.colab-prop-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.colab-prop-card .ver-cal-hint {
  font-size: 0.7rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================
   v1.5.1 — Felicitaciones + fixes
   ========================================================= */
.kpi-celebracion {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  color: white;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  animation: celebrar 2.4s ease-in-out infinite;
}
@keyframes celebrar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Modal de propiedad: que el calendario embedded se vea bien */
#modalPropiedad .modal {
  max-height: 92vh;
  overflow-y: auto;
}
#propCalendarioBloque { min-height: 300px; }
#propCalendarioBloque .empty-state-soft {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* En móvil: la celebración un poco más chica */
@media (max-width: 700px) {
  .kpi-celebracion { font-size: 1.35rem; }
}

/* =========================================================
   v1.5.2 — Propiedades como lista expandible inline
   (reemplaza props-grid y modal de calendario por propiedad)
   ========================================================= */

.props-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prop-row {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.prop-row:hover {
  border-color: var(--navy-200);
}
.prop-row.activo {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(232, 120, 48, 0.16);
}

.prop-row-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.prop-row-toggle:hover {
  background: var(--navy-50);
}

.prop-row-toggle .prop-color {
  width: 6px;
  height: 42px;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-block;
}

.prop-row-toggle .prop-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.prop-row-toggle .prop-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prop-row-toggle .prop-lugar {
  font-size: 0.82rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prop-row-toggle .chev {
  font-size: 1.05rem;
  color: var(--text-soft);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 6px;
}
.prop-row.activo .prop-row-toggle .chev {
  transform: rotate(180deg);
  color: var(--accent-dark);
}

.prop-cal-inline {
  padding: 0 12px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  /* El calendario interno tiene su propio diseño; este wrapper solo da espacio */
}
.prop-cal-inline .cal-prop {
  border: none;
  background: transparent;
}
.prop-cal-inline .empty-state-soft {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 12px 0;
}

@media (max-width: 700px) {
  .prop-row-toggle { padding: 12px 14px; gap: 12px; }
  .prop-row-toggle .prop-name { font-size: 0.96rem; }
  .prop-row-toggle .prop-lugar { font-size: 0.78rem; }
}

/* =========================================================
   v1.5.3 — Tabs colaboradora + status badges + registro inline
   ========================================================= */

/* Status badges sobre la prop-card (Salida hoy, Entrada hoy, etc.) */
.prop-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 4px;
  width: fit-content;
}
.prop-status-badge .punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.prop-status-badge.status-salida { background: rgba(58,127,217,0.12); color: #2860a8; }
.prop-status-badge.status-salida .punto { background: #3a7fd9; }
.prop-status-badge.status-entrada { background: rgba(78,160,61,0.14); color: #3a7f2d; }
.prop-status-badge.status-entrada .punto { background: #4ea03d; }
.prop-status-badge.status-entrada-y-salida { background: rgba(232,69,69,0.14); color: #b53737; }
.prop-status-badge.status-entrada-y-salida .punto { background: #e84545; }
.prop-status-badge.status-ocupado { background: rgba(244,201,90,0.18); color: #6a5510; }
.prop-status-badge.status-ocupado .punto { background: #f4c95a; }
.prop-status-badge.status-libre { background: var(--bg-soft); color: var(--text-soft); }
.prop-status-badge.status-libre .punto { background: var(--text-muted); }
.prop-status-badge.status-bloqueado { background: rgba(136,138,140,0.18); color: #4a4c4e; }
.prop-status-badge.status-bloqueado .punto { background: #6e7072; }

/* Registro de limpieza (sección debajo del calendario al expandir) */
.registro-limpieza {
  padding: 12px 4px 4px;
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
}
.registro-limpieza-titulo {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.registro-limpieza .dia-grupo.es-hoy .dia-header .dia-semana {
  color: var(--accent-dark);
}

/* Tabs en colaboradora (reutilizan .tabs y .tab de admin pero más espacio) */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-soft);
  margin: 20px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--navy-900); }
.tab.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* prop-row: ajustes para que el badge entre bien */
.prop-row-toggle .prop-info {
  align-items: flex-start;
}
.prop-row.activo .prop-status-badge {
  /* Cuando está expandido el badge queda más visible */
}

@media (max-width: 700px) {
  .tab { padding: 9px 12px; font-size: 0.86rem; }
  .prop-status-badge { font-size: 0.7rem; }
}

/* =========================================================
   v1.5.6 — Tab "Hoy" del admin: resumen de conteos
   ========================================================= */
.hoy-resumen {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hoy-resumen-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--surface);
  border: 1.5px solid var(--border);
}
.hoy-resumen-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.hoy-resumen-label { color: var(--text-soft); font-size: 0.8rem; }
.hoy-resumen-item.status-entrada-y-salida { background: rgba(232,69,69,0.10); border-color: rgba(232,69,69,0.35); color: #b53737; }
.hoy-resumen-item.status-entrada { background: rgba(78,160,61,0.10); border-color: rgba(78,160,61,0.35); color: #3a7f2d; }
.hoy-resumen-item.status-salida { background: rgba(58,127,217,0.10); border-color: rgba(58,127,217,0.35); color: #2860a8; }
.hoy-resumen-item.status-ocupado { background: rgba(244,201,90,0.16); border-color: rgba(244,201,90,0.45); color: #6a5510; }
.hoy-resumen-item.status-bloqueado { background: rgba(136,138,140,0.16); border-color: rgba(136,138,140,0.4); color: #4a4c4e; }
.hoy-resumen-item.status-libre { background: var(--bg-soft); border-color: var(--border); color: var(--text-soft); }
.hoy-resumen-item.status-entrada-y-salida .hoy-resumen-label,
.hoy-resumen-item.status-entrada .hoy-resumen-label,
.hoy-resumen-item.status-salida .hoy-resumen-label,
.hoy-resumen-item.status-ocupado .hoy-resumen-label,
.hoy-resumen-item.status-bloqueado .hoy-resumen-label { color: inherit; opacity: 0.85; }

@media (max-width: 700px) {
  .hoy-resumen-item { padding: 6px 11px; font-size: 0.78rem; gap: 6px; }
  .hoy-resumen-num { font-size: 1rem; }
  .hoy-resumen-label { font-size: 0.72rem; }
}

/* =========================================================
   v1.6 — Modal de fotos antes/después
   ========================================================= */

#modalFotos .modal { max-height: 92vh; overflow-y: auto; }

.fotos-contador {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* Grid de fotos en modo edición */
.fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.foto-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  display: block;
}
.foto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foto-borrar {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(232, 69, 69, 0.92);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.foto-borrar:hover { background: #c93030; }

/* Botón "subir nueva foto" en la grid */
.foto-subir {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 2px dashed var(--accent);
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease;
}
.foto-subir:hover { background: var(--orange-100); }
.foto-subir-mas {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.foto-subir-label { font-size: 0.78rem; letter-spacing: 0.04em; }

.foto-cargando {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border-radius: 8px;
}

/* Galería read-only (admin) */
.fotos-galeria-seccion { margin-bottom: 14px; }
.fotos-galeria-seccion:last-child { margin-bottom: 0; }
.fotos-seccion-titulo {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.fotos-grid-readonly {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
}
.fotos-grid-readonly .foto-item {
  cursor: pointer;
  transition: transform 0.15s ease;
}
.fotos-grid-readonly .foto-item:hover { transform: scale(1.03); }

@media (max-width: 700px) {
  .fotos-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fotos-grid-readonly { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   v1.6.1 — Fixes mobile + acciones prominentes
   ========================================================= */

/* === Cuando el calendario va dentro de prop-cal-inline, ocultar header redundante === */
.prop-cal-inline .cal-prop {
  border: none;
  background: transparent;
  border-radius: 0;
}
.prop-cal-inline .cal-prop-header {
  padding: 0 4px 8px;
  justify-content: flex-end; /* nav a la derecha */
}
/* Ocultar título, lugar y badge — ya están arriba en la prop-row */
.prop-cal-inline .cal-prop-header > div:first-child .titulo,
.prop-cal-inline .cal-prop-header > div:first-child .text-muted,
.prop-cal-inline .cal-prop-header .cal-prop-status {
  display: none !important;
}
.prop-cal-inline .cal-prop-header > div:first-child {
  flex: 0;
}

/* Header del calendario embed: solo el navegador */
.prop-cal-inline .cal-prop-nav {
  margin-left: auto;
}
.prop-cal-inline .cal-prop-nav .mes-label {
  font-size: 0.9rem;
  min-width: 110px;
}
.prop-cal-inline .cal-prop-nav button {
  width: 32px;
  height: 32px;
}

/* "2 reservas este mes" más discreto */
.prop-cal-inline .cal-prop > div[style*="text-align:center"] {
  font-size: 0.75rem !important;
  padding-bottom: 6px !important;
}

/* Wrapper del calendario inline con título sutil */
.cal-inline-wrapper { margin-top: 14px; }
.cal-inline-titulo {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
  padding: 0 2px;
}

/* === Acción de HOY: bloque prominente arriba === */
.accion-hoy-bloque {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.limpieza-accionable {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(232, 120, 48, 0.12);
}
.limpieza-accionable.es-hoy {
  background: linear-gradient(135deg, rgba(232, 120, 48, 0.08), rgba(232, 120, 48, 0.02));
  border-color: var(--accent);
}
.limpieza-accionable.atrasada {
  border-color: #e84545;
  background: rgba(232, 69, 69, 0.04);
}

.lim-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.lim-acc-fecha {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}
.limpieza-accionable.atrasada .lim-acc-fecha { color: #b53737; }

.lim-acc-acciones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-accion-grande {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-accion-grande:active { transform: translateY(1px); }

.btn-accion-grande.accion-empezar {
  background: var(--accent);
  color: white;
  box-shadow: 0 3px 10px rgba(232, 120, 48, 0.3);
}
.btn-accion-grande.accion-empezar:hover { background: var(--accent-dark); }

.btn-accion-grande.accion-completar {
  background: #3d6b4e;
  color: white;
  box-shadow: 0 3px 10px rgba(61, 107, 78, 0.3);
}
.btn-accion-grande.accion-completar:hover { background: #2f5440; }

.btn-accion-sec {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-soft);
  cursor: pointer;
}
.btn-accion-sec:hover { background: var(--bg-soft); }

/* === Próximas (bloque secundario, más discreto) === */
.proximas-titulo {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 14px 0 6px;
  padding: 0 2px;
}
.dia-mini-grupo { margin-bottom: 8px; }
.dia-mini-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 4px;
  padding: 0 2px;
}
.dia-mini-grupo .limpieza-card {
  padding: 8px 12px;
}

/* === Mobile: compactar TODO === */
@media (max-width: 700px) {
  /* Header de la app */
  .app-brand { font-size: 0.92rem; }
  .app-brand .brand-mark { font-size: 1.1rem; }

  /* Page intro */
  .page-intro h1 { font-size: 1.4rem; margin-bottom: 4px; }
  .page-intro .subtitle { font-size: 0.85rem; }

  /* KPI panel más compacto */
  .kpi-ganadoras { padding: 16px 18px; min-height: auto; }
  .kpi-ganadoras .titulo { font-size: 1.15rem; }
  .kpi-ganadoras .subtitulo { font-size: 0.82rem; }
  .kpi-ganadoras .label { font-size: 0.66rem; }
  .kpi-mi-progreso { padding: 9px 12px; font-size: 0.82rem; }

  /* Tabs más chicas */
  .tabs { margin: 14px 0 12px; }
  .tab { padding: 8px 12px; font-size: 0.84rem; }

  /* Prop-row más compacta */
  .prop-row-toggle { padding: 11px 12px; gap: 10px; }
  .prop-row-toggle .prop-color { width: 5px; height: 38px; }
  .prop-row-toggle .prop-name { font-size: 0.94rem; }
  .prop-row-toggle .prop-lugar { font-size: 0.78rem; }
  .prop-status-badge { font-size: 0.68rem; padding: 3px 8px 3px 6px; margin-top: 3px; }
  .prop-status-badge .punto { width: 6px; height: 6px; }

  /* Contenido expandido más compacto */
  .prop-cal-inline { padding: 0 10px 10px; }

  /* Calendario embebido */
  .prop-cal-inline .cal-prop-dow div { font-size: 0.62rem; padding: 6px 2px; }
  .prop-cal-inline .cal-prop-grid {
    grid-auto-rows: minmax(40px, auto);
    gap: 3px;
    padding: 6px;
  }
  .prop-cal-inline .cal-prop-celda {
    font-size: 0.82rem;
    min-height: 40px;
    padding: 4px 2px;
  }
  .prop-cal-inline .cal-prop-leyenda {
    grid-template-columns: 1fr 1fr;
    font-size: 0.7rem;
    padding: 8px 12px 10px;
    gap: 4px 10px;
  }
  .prop-cal-inline .cal-prop-leyenda .cuadro {
    width: 11px; height: 11px;
  }

  /* Acciones grandes en móvil */
  .btn-accion-grande { padding: 13px 14px; font-size: 0.95rem; border-radius: 9px; }
  .btn-accion-sec { padding: 9px 12px; font-size: 0.84rem; }
  .limpieza-accionable { padding: 11px 12px; border-radius: 11px; }
  .lim-acc-fecha { font-size: 0.74rem; }

  /* Hint "Ver fotos" en Pasadas */
  .limpieza-pasada-card .meta { flex-wrap: wrap; gap: 6px; }
}

.ver-fotos-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-left: auto;
}
.limpieza-pasada-card { transition: transform 0.1s ease; }
.limpieza-pasada-card:active { transform: scale(0.98); }

/* =========================================================
   v1.6.2 — Completada hoy + tipografía sobria
   ========================================================= */

.limpieza-completada-hoy {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(61, 107, 78, 0.10), rgba(61, 107, 78, 0.03));
  border: 1.5px solid rgba(61, 107, 78, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.lim-comp-icono {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3d6b4e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
}
.lim-comp-info {
  flex: 1;
  min-width: 0;
}
.lim-comp-titulo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #2f5440;
  letter-spacing: -0.01em;
}
.lim-comp-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
}

@media (max-width: 700px) {
  .limpieza-completada-hoy { padding: 10px 12px; gap: 10px; }
  .lim-comp-icono { width: 32px; height: 32px; font-size: 1rem; }
  .lim-comp-titulo { font-size: 0.88rem; }
  .lim-comp-meta { font-size: 0.74rem; }
}

/* Plus Jakarta Sans tiene mejor balance que Bricolage; ajustamos letter-spacing */
h1, h2, h3, h4 {
  letter-spacing: -0.015em;
}

/* =========================================================
   v1.7 — Dashboard KPI histórico (admin)
   ========================================================= */

.kpi-rango-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Grid de tarjetas de resumen */
.kpi-resumen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.kpi-tarjeta {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-tarjeta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 25, 41, 0.08);
}
.kpi-tarjeta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.kpi-tarjeta-info { flex: 1; min-width: 0; }
.kpi-tarjeta-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 2px;
}
.kpi-tarjeta-valor {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  line-height: 1;
}
.kpi-tarjeta-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.kpi-color-navy .kpi-tarjeta-icon { background: rgba(26, 58, 92, 0.12); color: var(--navy-900); }
.kpi-color-verde .kpi-tarjeta-icon { background: rgba(61, 107, 78, 0.14); color: #3d6b4e; }
.kpi-color-amarillo .kpi-tarjeta-icon { background: rgba(244, 201, 90, 0.2); color: #6a5510; }
.kpi-color-rojo .kpi-tarjeta-icon { background: rgba(232, 69, 69, 0.14); color: #b53737; }
.kpi-color-naranja .kpi-tarjeta-icon { background: rgba(232, 120, 48, 0.14); color: var(--accent-dark); }

/* Bloques de sección */
.kpi-bloque {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.kpi-bloque-titulo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* Tabla por colaboradora */
.kpi-tabla-wrap { overflow-x: auto; }
.kpi-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.kpi-tabla th {
  text-align: left;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-soft);
  background: var(--bg-soft);
}
.kpi-tabla th.num { text-align: right; }
.kpi-tabla td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.kpi-tabla td.num { text-align: right; font-variant-numeric: tabular-nums; }
.kpi-tabla tr:last-child td { border-bottom: none; }
.kpi-tabla tr:hover { background: var(--bg-soft); }

.pct-excelente { color: #3d6b4e; font-weight: 800; }
.pct-bueno { color: #5e8e5e; font-weight: 700; }
.pct-medio { color: #b06520; font-weight: 700; }
.pct-bajo { color: #b53737; font-weight: 700; }

/* Ganadoras históricas */
.kpi-ganadoras-hist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kpi-sem-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.kpi-sem-card.actual {
  background: linear-gradient(135deg, rgba(232, 120, 48, 0.06), rgba(232, 120, 48, 0.02));
  border-color: var(--accent);
}
.kpi-sem-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.kpi-sem-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.kpi-sem-card.actual .kpi-sem-label { color: var(--accent-dark); }
.kpi-sem-rango {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-900);
}
.kpi-sem-ganadoras {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kpi-sem-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 4px 10px 4px 4px;
  font-size: 0.84rem;
  font-weight: 600;
}
.kpi-sem-chip .avatar { width: 22px; height: 22px; font-size: 0.64rem; }
.kpi-sem-conteo {
  font-size: 0.74rem;
  color: var(--accent-dark);
  font-weight: 700;
  background: var(--orange-100);
  padding: 1px 6px;
  border-radius: 6px;
}
.kpi-sem-vacio {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-style: italic;
}

/* Top propiedades */
.kpi-top-props {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kpi-top-prop {
  display: grid;
  grid-template-columns: minmax(180px, 30%) 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
}
.kpi-top-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.kpi-top-color {
  width: 4px;
  height: 24px;
  border-radius: 2px;
  flex-shrink: 0;
}
.kpi-top-nombre {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-top-lugar {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-top-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kpi-top-barra {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.kpi-top-barra-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}
.kpi-top-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--navy-900);
  min-width: 28px;
  text-align: right;
}
.kpi-top-prob {
  font-size: 0.74rem;
  color: #b53737;
  font-weight: 700;
}

@media (max-width: 700px) {
  .kpi-resumen-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-tarjeta { padding: 12px 14px; gap: 10px; }
  .kpi-tarjeta-icon { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 9px; }
  .kpi-tarjeta-valor { font-size: 1.35rem; }
  .kpi-tarjeta-label { font-size: 0.66rem; }
  .kpi-tarjeta-sub { font-size: 0.72rem; }
  .kpi-bloque { padding: 14px 14px; }
  .kpi-bloque-titulo { font-size: 0.92rem; margin-bottom: 10px; }
  .kpi-tabla { font-size: 0.78rem; }
  .kpi-tabla th, .kpi-tabla td { padding: 8px 8px; }
  .kpi-top-prop { grid-template-columns: 1fr; gap: 6px; }
}

/* =========================================================
   v1.7.1 — Premiación trimestral y anual
   ========================================================= */

.kpi-premiacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-premio {
  border-radius: 16px;
  padding: 20px 22px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kpi-premio.en_curso {
  background: linear-gradient(135deg, #6b7488, #3e4a63);
}
.kpi-premio.cerrado {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 4px 16px rgba(232, 120, 48, 0.28);
}
.kpi-premio-anual.en_curso {
  background: linear-gradient(135deg, #4a3f6b, #2d2649);
}
.kpi-premio-anual.cerrado {
  background: linear-gradient(135deg, #8b6914, #d4a017);
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.32);
}

.kpi-premio-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.kpi-premio-sub {
  font-size: 0.78rem;
  opacity: 0.85;
  font-weight: 500;
  margin-bottom: 4px;
}

.kpi-premio-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: auto;
}
.kpi-premio-chip .avatar { border-color: rgba(255,255,255,0.6); }
.kpi-premio-info { flex: 1; min-width: 0; }
.kpi-premio-nombre {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-premio-num {
  font-size: 0.82rem;
  opacity: 0.92;
  font-weight: 600;
}

.kpi-premio-vacio {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
  opacity: 0.85;
}

.kpi-premio-empate {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: auto;
}
.kpi-premio-empate-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.92;
}
.kpi-premio-empate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kpi-premio .kpi-sem-chip {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
  font-size: 0.78rem;
}
.kpi-premio .kpi-sem-chip .avatar { border-color: rgba(255,255,255,0.6); }
.kpi-premio .kpi-sem-conteo {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Año pasado: chip pequeño debajo */
.kpi-anio-pasado {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
}
.kpi-anio-pasado-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-soft);
}

@media (max-width: 700px) {
  .kpi-premiacion-grid { grid-template-columns: 1fr; gap: 10px; }
  .kpi-premio { padding: 16px 18px; min-height: auto; }
  .kpi-premio-label { font-size: 0.95rem; }
  .kpi-premio-nombre { font-size: 0.95rem; }
  .kpi-premio-chip { padding: 9px 12px; gap: 10px; }
}

/* =========================================================
   v1.8 — Sistema de pagos (admin)
   ========================================================= */

/* Tag de tarifa en card de propiedad */
.tag-money {
  background: rgba(61, 107, 78, 0.12);
  color: #2f5440;
  border: 1px solid rgba(61, 107, 78, 0.3);
  font-weight: 700;
}

/* === Vista Semanas === */
.pagos-semana {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.pagos-semana-actual {
  background: linear-gradient(135deg, rgba(232, 120, 48, 0.05), rgba(232, 120, 48, 0.02));
  border-color: var(--accent);
}

.pagos-semana-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}
.pagos-semana-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.pagos-semana-actual .pagos-semana-label { color: var(--accent-dark); }
.pagos-semana-rango {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.pagos-semana-sabado {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 2px;
}

.pagos-semana-totales { text-align: right; }
.pagos-monto-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  line-height: 1;
}
.pagos-monto-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 4px;
}
.pagos-estado-pagado {
  display: inline-block;
  background: rgba(61, 107, 78, 0.14);
  color: #2f5440;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-top: 6px;
}

/* Items por colaboradora */
.pagos-colab-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pagos-colab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  transition: background 0.15s ease;
}
.pagos-colab-item.pagado {
  background: rgba(61, 107, 78, 0.06);
  border-left: 3px solid #3d6b4e;
}
.pagos-colab-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.pagos-colab-info:hover .pagos-colab-nombre { color: var(--accent-dark); }
.pagos-colab-nombre {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-900);
  transition: color 0.15s ease;
}
.pagos-colab-meta {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-top: 1px;
}

.pagos-colab-monto {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pagos-colab-monto-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-900);
  min-width: 80px;
  text-align: right;
}
.pagos-colab-item.pagado .pagos-colab-monto-num { color: #3d6b4e; }

.btn-mini {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 7px;
  border: 1.5px solid;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.btn-mini-primario {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn-mini-primario:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-mini-secundario {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-mini-secundario:hover { background: var(--bg-soft); }

/* === Vista Resumen Anual === */
.pagos-anual-header {
  margin-bottom: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}
.pagos-anual-total {
  font-size: 0.92rem;
  color: var(--text-soft);
}
.pagos-anual-total strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.pagos-tabla-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}
.pagos-tabla {
  font-size: 0.84rem;
}
.pagos-tabla td.celda-vacia { color: var(--text-muted); }
.pagos-tabla td.celda-mes-actual {
  background: rgba(232, 120, 48, 0.08);
  font-weight: 700;
}
.pagos-tabla-total-col {
  background: var(--bg-soft);
  font-weight: 800;
  color: var(--accent-dark);
}
.pagos-tabla-totales {
  background: var(--navy-50);
  font-weight: 800;
}
.pagos-tabla-totales td {
  border-top: 2px solid var(--navy-900) !important;
}

/* === Modal Detalle Semana === */
.ds-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.ds-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
}
.ds-item-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ds-color { width: 4px; height: 30px; border-radius: 2px; flex-shrink: 0; }
.ds-prop-nombre { font-weight: 700; color: var(--navy-900); font-size: 0.92rem; }
.ds-meta { font-size: 0.76rem; color: var(--text-soft); }
.ds-item-monto {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy-900);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ds-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(232, 120, 48, 0.10), rgba(232, 120, 48, 0.04));
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  font-weight: 700;
}
.ds-total-monto {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
}

.alert-warning {
  background: #fff8e6;
  border: 1.5px solid #f4c95a;
  color: #6a5510;
  padding: 10px 14px;
  border-radius: 10px;
}

/* Mobile */
@media (max-width: 700px) {
  .pagos-semana { padding: 14px 14px; }
  .pagos-semana-header { flex-direction: column; gap: 8px; }
  .pagos-semana-totales { text-align: left; }
  .pagos-monto-total { font-size: 1.25rem; }
  .pagos-semana-rango { font-size: 0.95rem; }
  .pagos-colab-item { flex-wrap: wrap; gap: 8px; }
  .pagos-colab-monto { width: 100%; justify-content: space-between; }
  .pagos-colab-monto-num { min-width: 0; text-align: left; }
  .btn-mini { flex-shrink: 0; }
  .pagos-tabla { font-size: 0.74rem; }
  .pagos-tabla th, .pagos-tabla td { padding: 6px 8px; }
}
