@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --midnight: #142A3A;
  --midnight-soft: #1C3A4F;
  --rose-gold: #D4A89C;
  --blush: #F9E9E4;
  --sand: #E6E1DC;
  --charcoal: #333333;
  --white: #FFFFFF;
  --error: #B3423E;
  --warning-bg: #FBEFE4;
  --warning-text: #9C5B2E;
  --app-bg: #FAF8F6;
  --border-soft: #ECE7E2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--charcoal);
  background: var(--blush);
}

a { color: inherit; }

/* ---------- Pantalla de acceso (login/registro) ---------- */

.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
}

.auth-social-links {
  display: flex;
  gap: 14px;
}
.auth-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.auth-social-links a:hover { opacity: 1; }
.auth-social-links svg { width: 18px; height: 18px; }

.auth-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 24px rgba(20, 42, 58, 0.08);
}

.auth-card .brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--midnight);
  margin: 0 0 4px;
}
.auth-card .brand span { color: var(--rose-gold); }

.auth-card .subtitle {
  color: var(--charcoal);
  opacity: 0.65;
  font-size: 14px;
  margin: 0 0 28px;
}

.tab-switch {
  display: flex;
  gap: 4px;
  background: var(--sand);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}
.tab-switch button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
}
.tab-switch button.active {
  background: var(--white);
  color: var(--midnight);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--midnight);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--sand);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--rose-gold);
  outline-offset: 1px;
  border-color: var(--rose-gold);
}

.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 40px; }
.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  cursor: pointer;
  color: var(--charcoal);
  opacity: 0.5;
}
.password-toggle-btn:hover { opacity: 0.8; }
.password-toggle-btn svg { width: 18px; height: 18px; }
.password-toggle-btn.is-visible { opacity: 0.9; color: var(--rose-gold); }

.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--midnight);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.form-message {
  font-size: 13px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
}
.form-message.error { background: #FBE9E8; color: var(--error); }
.form-message.info { background: var(--blush); color: var(--midnight); }
.hidden { display: none !important; }

.lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  background: var(--sand);
  border-radius: 6px;
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 4px 9px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--white);
  color: var(--midnight);
}
.auth-card { position: relative; }

.lang-toggle--dark {
  position: static;
  background: rgba(255,255,255,0.12);
}
.lang-toggle--dark button { color: var(--white); }
.lang-toggle--dark button.active { background: var(--white); color: var(--midnight); }

/* ---------- Botones compartidos ---------- */

.btn-accent {
  background: var(--rose-gold);
  color: var(--midnight);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.btn-accent:hover { opacity: 0.9; }
.btn-accent:disabled { opacity: 0.5; cursor: default; }

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--midnight);
  text-transform: none;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--charcoal);
  opacity: 0.6;
}

.simple-list {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(20, 42, 58, 0.06);
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sand);
}
.list-row:last-child { border-bottom: none; }
.list-row .info h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--midnight);
}
.list-row .info p {
  margin: 0;
  font-size: 13px;
  opacity: 0.65;
}
.list-row .tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--midnight);
  margin-right: 8px;
}

/* ---------- Modal simple ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 42, 58, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
}
.modal-box h2 {
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--midnight);
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.btn-secondary {
  flex: 1;
  background: var(--sand);
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}
.modal-actions .btn-accent { flex: 1; }

/* ============================================================
   APPLICATION SHELL — sidebar + topbar (rediseño premium)
   ============================================================ */

body.shell-body { background: var(--app-bg); }

.shell { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-soft) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar-logo {
  padding: 28px 24px 20px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.sidebar-logo span { color: var(--rose-gold); }

.sidebar-nav {
  flex: 1;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  position: relative;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.sidebar-nav a.active {
  background: rgba(212, 168, 156, 0.14);
  color: var(--white);
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: -14px; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--rose-gold);
  border-radius: 0 3px 3px 0;
}
.sidebar-nav a .soon-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: rgba(255,255,255,0.55);
}

.sidebar-profile {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--rose-gold);
  color: var(--midnight);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-profile .biz-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 130px;
}
.sidebar-profile .biz-plan {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Main area + topbar ---------- */
.shell-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-search {
  position: relative;
  width: 300px;
}
.topbar-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: 0.4;
}
.topbar-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border-soft);
  background: var(--app-bg);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
}
.topbar-search input:focus { outline: none; border-color: var(--rose-gold); background: var(--white); }
.topbar-spacer { flex: 1; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--charcoal);
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--app-bg); }

.topbar-lang { display: flex; gap: 2px; background: var(--app-bg); border-radius: 6px; padding: 3px; }
.topbar-lang button {
  border: none; background: transparent; padding: 5px 9px; border-radius: 4px;
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--charcoal); cursor: pointer;
}
.topbar-lang button.active { background: var(--white); color: var(--midnight); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.dropdown-wrap { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20,42,58,0.12);
  min-width: 200px;
  padding: 8px;
  z-index: 30;
}
.dropdown-panel.hidden { display: none; }
.dropdown-panel .dd-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 6px; border: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--charcoal); cursor: pointer; text-decoration: none;
}
.dropdown-panel .dd-item:hover { background: var(--app-bg); }
.dropdown-panel .dd-muted { padding: 10px; font-size: 12px; opacity: 0.55; }

.profile-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  cursor: pointer;
}
.profile-chip .sidebar-avatar { width: 26px; height: 26px; font-size: 11px; background: var(--midnight); color: var(--white); }
.profile-chip span { font-size: 13px; font-weight: 500; }

/* ---------- Page content wrapper ---------- */
.shell-content {
  padding: 32px 36px 80px;
  max-width: 1180px;
  width: 100%;
}

/* ---------- Portal de la pareja ---------- */
.portal-section-title {
  color: var(--midnight);
  font-size: 18px;
  margin: 36px 0 14px;
}
.portal-section-title:first-of-type { margin-top: 0; }
.portal-mark-paid-btn {
  background: var(--midnight);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.portal-mark-paid-btn:hover { opacity: 0.88; }

/* ---------- Files del evento ---------- */
.file-row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.file-visible-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--charcoal);
  opacity: 0.8;
  white-space: nowrap;
}
.file-visible-toggle input { width: auto; margin: 0; }
.file-action-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--midnight);
  cursor: pointer;
  padding: 4px 6px;
}
.file-action-btn:hover { opacity: 0.7; }
.file-action-btn.danger { color: #B3423E; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 42, 58, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 1000;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- Propuesta pública (link compartible, sin login) ---------- */
.proposal-wrap {
  min-height: 100vh;
  background: var(--app-bg);
  padding: 40px 20px 80px;
}
.proposal-toolbar {
  max-width: 640px;
  margin: 0 auto 16px;
  text-align: right;
}
.proposal-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  padding: 48px;
  box-shadow: 0 2px 24px rgba(20, 42, 58, 0.08);
}
.proposal-logo {
  display: block;
  max-height: 64px;
  max-width: 220px;
  margin-bottom: 16px;
  object-fit: contain;
}
.proposal-business {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-gold);
  margin: 0 0 8px;
}
.proposal-contact { margin: 0 0 8px; font-size: 12.5px; color: var(--charcoal); opacity: 0.7; }
.proposal-card h1 { margin: 0 0 6px; color: var(--midnight); }
.proposal-meta { margin: 0 0 28px; opacity: 0.65; font-size: 14px; }
.proposal-section { margin-bottom: 24px; }
.proposal-package { white-space: pre-wrap; line-height: 1.6; color: var(--charcoal); }
.proposal-price-box {
  background: var(--midnight);
  color: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.proposal-valid { text-align: center; font-size: 13px; opacity: 0.6; margin: 0 0 28px; }
.proposal-notes { white-space: pre-wrap; font-size: 13.5px; opacity: 0.75; line-height: 1.6; border-top: 1px solid var(--sand); padding-top: 20px; }
.proposal-footer { margin: 28px 0 0; font-size: 12px; opacity: 0.5; text-align: center; }
.proposal-doc-heading { font-size: 14px; color: var(--midnight); margin: 0 0 10px; }

.invoice-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.invoice-table th, .invoice-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--sand); font-size: 13.5px; }
.invoice-table th { color: var(--midnight); opacity: 0.6; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.invoice-table td.num { text-align: right; }
.invoice-total-row td { font-weight: 700; color: var(--midnight); border-bottom: none; padding-top: 16px; }

/* ---------- Plano de asientos (seating chart) ---------- */
.seating-canvas {
  position: relative;
  width: 100%;
  height: 520px;
  background-color: var(--white);
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 5% 5%;
  border: 1px solid var(--sand);
  border-radius: 10px;
  overflow: hidden;
}
.seating-zone {
  position: absolute;
  border: 2px dashed var(--rose-gold);
  border-radius: 8px;
  background: rgba(212, 168, 156, 0.12);
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--midnight);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.seating-table {
  position: absolute;
  background: var(--midnight);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 2px 10px rgba(20, 42, 58, 0.3);
  padding: 4px;
}
.seating-table.full { background: var(--rose-gold); color: var(--midnight); }
.seating-table--round { border-radius: 50%; }
.seating-table--square { border-radius: 10px; }
.seating-table--rectangle { border-radius: 10px; }

/* ---------- Acordeón (secciones colapsables de Overview) ---------- */
.accordion {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-top: 14px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--midnight);
  text-align: left;
}
.accordion-header:hover { background: var(--app-bg); }
.accordion-chevron {
  width: 18px;
  height: 18px;
  opacity: 0.45;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.accordion-header.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--border-soft);
}
.accordion-body.hidden { display: none; }

/* ---------- Logo del negocio (Settings) ---------- */
.logo-upload-row { display: flex; align-items: center; gap: 20px; }
.logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  border: 1px dashed var(--sand);
  background: var(--app-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-preview span { font-size: 10.5px; opacity: 0.5; text-align: center; padding: 6px; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview.avatar-preview { border-radius: 50%; }
.logo-preview.avatar-preview img { object-fit: cover; }

/* ---------- Respuestas de cuestionario ---------- */
.qa-item { margin-bottom: 16px; }
.qa-item .qa-question { font-size: 13px; font-weight: 600; color: var(--midnight); margin: 0 0 4px; }
.qa-item .qa-answer { font-size: 14px; color: var(--charcoal); margin: 0; }
.seating-table small { opacity: 0.75; font-weight: 500; font-size: 10px; }

/* ---------- Mood Board ---------- */
.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.moodboard-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--sand);
  border: 1px solid rgba(20, 42, 58, 0.08);
}
.moodboard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.moodboard-thumb .mb-comment-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(20, 42, 58, 0.75);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}
.mb-comment-item { margin-bottom: 12px; }
.mb-comment-item .mb-comment-text { font-size: 14px; color: var(--charcoal); margin: 0 0 2px; }
.mb-comment-item .mb-comment-meta { font-size: 11px; opacity: 0.6; margin: 0; }

@media print {
  .proposal-toolbar { display: none; }
  .proposal-wrap { padding: 0; background: var(--white); }
  .proposal-card { box-shadow: none; max-width: none; }
}

.page-header {
  margin-bottom: 28px;
}
.page-header .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin: 0 0 4px;
}
.page-header h1 { font-size: 24px; color: var(--midnight); margin: 0; }
.page-header p.sub { margin: 6px 0 0; opacity: 0.6; font-size: 14px; }

/* ---------- Dashboard widgets ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border-soft);
}
.stat-card .stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blush);
  color: var(--midnight);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-card .stat-icon svg { width: 18px; height: 18px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--midnight); line-height: 1; }
.stat-card .stat-label { font-size: 12.5px; opacity: 0.6; margin-top: 6px; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 22px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 15px;
  color: var(--midnight);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel .panel-empty { font-size: 13px; opacity: 0.55; padding: 8px 0; }

.attention-panel { border-color: #F0DCC5; background: linear-gradient(180deg, var(--warning-bg), var(--white) 60%); }
.attention-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 13.5px;
}
.attention-item:last-child { border-bottom: none; }
.attention-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--error); flex-shrink: 0; }
.attention-item .att-text { flex: 1; }
.attention-item .att-when { font-size: 11.5px; color: var(--warning-text); font-weight: 600; }

.mini-event-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none; color: inherit;
}
.mini-event-row:last-child { border-bottom: none; }
.mini-event-row .mer-name { font-size: 13.5px; font-weight: 600; color: var(--midnight); }
.mini-event-row .mer-date { font-size: 12px; opacity: 0.55; }

.pipeline-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pipeline-chip {
  flex: 1; min-width: 90px;
  background: var(--app-bg);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.pipeline-chip .pc-count { font-size: 18px; font-weight: 700; color: var(--midnight); }
.pipeline-chip .pc-label { font-size: 10.5px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }

.activity-item { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); opacity: 0.85; }
.activity-item:last-child { border-bottom: none; }
.activity-item b { color: var(--midnight); }

/* ---------- Coming soon placeholder pages ---------- */
.coming-soon {
  text-align: center;
  padding: 100px 20px;
  color: var(--charcoal);
}
.coming-soon .cs-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 16px; background: var(--blush); color: var(--midnight);
  display: flex; align-items: center; justify-content: center;
}
.coming-soon h2 { color: var(--midnight); margin: 0 0 8px; }
.coming-soon p { opacity: 0.6; font-size: 14px; }

/* ---------- Refined event cards (Events page) ---------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.event-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.event-card:hover { box-shadow: 0 8px 20px rgba(20,42,58,0.08); transform: translateY(-1px); }
.event-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--midnight); }
.event-card .date { font-size: 13px; opacity: 0.55; margin: 0 0 14px; }

/* ============================================================
   EVENT WORKSPACE — detalle de un evento (Overview + Budget)
   ============================================================ */

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--charcoal); opacity: 0.6; text-decoration: none;
  font-size: 13px; margin-bottom: 16px;
}
.back-link:hover { opacity: 1; }

.event-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px; flex-wrap: wrap; gap: 12px;
}
.event-header h1 { font-size: 24px; color: var(--midnight); margin: 0; }
.event-header .event-date { font-size: 13.5px; opacity: 0.55; margin-top: 4px; }
.status-help { font-size: 12.5px; opacity: 0.55; margin: 6px 0 0; }

.status-select {
  border: 1px solid var(--border-soft);
  background: var(--blush);
  color: var(--midnight);
  font-family: inherit;
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 20px;
  cursor: pointer;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -6px 0 14px;
}
.chip-btn {
  background: var(--blush);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--midnight);
  cursor: pointer;
}
.chip-btn:hover { opacity: 0.8; }

.reorder-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 12px;
}
.reorder-btns button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  opacity: 0.5;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}
.reorder-btns button:hover { opacity: 1; }
.reorder-btns button:disabled { opacity: 0.15; cursor: default; }

.tab-strip {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-soft);
  margin: 22px 0 26px;
  overflow-x: auto;
}
.tab-strip button {
  border: none; background: transparent;
  padding: 10px 16px;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--charcoal); opacity: 0.55;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab-strip button:hover { opacity: 0.85; }
.tab-strip button.active {
  opacity: 1; color: var(--midnight); font-weight: 600;
  border-bottom-color: var(--rose-gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.overview-form {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 24px;
  max-width: 480px;
}
.overview-form .field { margin-bottom: 16px; }
.overview-save-row { display: flex; align-items: center; gap: 10px; }
.save-msg { font-size: 12.5px; color: var(--rose-gold); font-weight: 600; opacity: 0; transition: opacity 0.2s; }
.save-msg.show { opacity: 1; }

.budget-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.budget-grand-total {
  background: var(--midnight);
  color: var(--white);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.budget-grand-total .bgt-label { font-size: 13px; opacity: 0.7; }
.budget-grand-total .bgt-value { font-size: 24px; font-weight: 700; }

.budget-category {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.budget-category-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: var(--app-bg);
}
.budget-category-header h3 { margin: 0; font-size: 14.5px; color: var(--midnight); }
.budget-category-header .cat-subtotal { font-size: 14px; font-weight: 700; color: var(--midnight); }

.budget-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.budget-line .bl-desc { color: var(--midnight); font-weight: 500; }
.budget-line .bl-desc .bl-deposit-tag {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700;
  color: var(--rose-gold); text-transform: uppercase;
}
.budget-line .bl-desc .bl-vendor-tag {
  display: block; font-size: 11.5px; font-weight: 400; opacity: 0.55; margin-top: 2px;
}
.budget-line .bl-qty { opacity: 0.55; white-space: nowrap; }
.budget-line .bl-status {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.bl-status.pendiente { background: var(--warning-bg); color: var(--warning-text); }
.bl-status.parcial { background: var(--blush); color: var(--midnight); }
.bl-status.pagado { background: #E3EFE6; color: #2E6B44; }
.budget-line .bl-total { font-weight: 700; color: var(--midnight); text-align: right; white-space: nowrap; }
.budget-line-clickable { cursor: pointer; }
.budget-line-clickable:hover { background: var(--app-bg); }

.add-line-row {
  padding: 10px 20px;
  border-top: 1px solid var(--border-soft);
}
.add-line-row button {
  background: none; border: none; color: var(--rose-gold);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 4px 0;
}

.currency-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Calendario ---------- */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.cal-nav { display: flex; align-items: center; gap: 14px; }
.cal-nav h2 { margin: 0; font-size: 19px; color: var(--midnight); min-width: 170px; text-align: center; }
.cal-nav-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--midnight);
  font-size: 15px;
  cursor: pointer;
}
.cal-nav-btn:hover { background: var(--app-bg); }
.cal-legend { display: flex; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--charcoal); opacity: 0.75; }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cal-dot-event { background: var(--rose-gold); }
.cal-dot-task { background: var(--midnight); }
.cal-dot-payment { background: var(--error); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}
.cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--midnight);
  opacity: 0.55;
  padding-bottom: 4px;
}
.cal-day {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  min-height: 84px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.15s;
}
.cal-day:hover { box-shadow: 0 4px 14px rgba(20, 42, 58, 0.08); }
.cal-day.cal-day-outside { opacity: 0.35; }
.cal-day.cal-day-today { border-color: var(--rose-gold); border-width: 2px; }
.cal-day.cal-day-selected { background: var(--blush); }
.cal-day-num { font-size: 13px; font-weight: 600; color: var(--midnight); }
.cal-day-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
@media (max-width: 700px) {
  .cal-day { min-height: 52px; padding: 6px; }
  .cal-weekday { font-size: 9px; }
}

/* ---------- Reportes: filas de barra horizontal ---------- */
.report-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.report-bar-label {
  width: 150px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--midnight);
}
.report-bar-label small { display: block; font-size: 11px; opacity: 0.55; font-weight: 400; }
.report-bar-track {
  flex: 1;
  background: var(--app-bg);
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}
.report-bar-fill { height: 100%; background: var(--rose-gold); border-radius: 6px; }
.report-bar-count { width: 32px; text-align: right; font-size: 13px; font-weight: 700; color: var(--midnight); flex-shrink: 0; }

/* ---------- Páginas legales (Términos / Privacidad) ---------- */
.legal-topbar {
  max-width: 760px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-topbar .brand { font-weight: 800; font-size: 18px; color: var(--midnight); text-decoration: none; }
.legal-topbar .brand span { color: var(--rose-gold); }
.legal-card { max-width: 760px; }
.legal-card .legal-updated { font-size: 13px; opacity: 0.55; margin: -4px 0 32px; }
.legal-card h2 { font-size: 19px; color: var(--midnight); margin: 32px 0 10px; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p, .legal-card li { font-size: 14.5px; line-height: 1.7; color: var(--charcoal); }
.legal-card ul { padding-left: 20px; margin: 8px 0; }
.legal-card .legal-disclaimer {
  background: var(--blush);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--midnight);
  margin-bottom: 32px;
}
