/* Viajario 0.9 · colaboración, listas y notificaciones */
.notification-bell-wrap { position: relative; }
.notification-bell { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: #061857; background: #f4f6fb; border: 1px solid #e4e7f0; border-radius: 13px; cursor: pointer; font-size: 20px; }
.notification-bell:hover { color: #fff; background: #061857; }
.notification-bell.muted { color: #969cad; }
.notification-bell b { position: absolute; top: -6px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; color: #fff; background: #eb6255; border: 2px solid #fff; border-radius: 20px; font-size: 9px; }
.notification-panel { position: absolute; z-index: 80; top: 50px; right: 0; width: 280px; padding: 18px; color: #061857; background: #fff; border: 1px solid #e3e6ef; border-radius: 16px; box-shadow: 0 20px 55px rgba(6,24,87,.18); }
.notification-panel strong { display: block; font-size: 14px; }
.notification-panel p { margin: 5px 0 15px; color: #73798b; font-size: 12px; }
.notification-panel > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-panel a, .notification-panel button { padding: 0; color: #eb6255; background: none; border: 0; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }

.section-hero { margin-bottom: 24px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: linear-gradient(130deg,#061857,#193578); border-radius: 26px; }
.section-hero h1 { margin: 6px 0 8px; font-size: clamp(30px,5vw,48px); letter-spacing: -.045em; }
.section-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.6; }
.section-hero .eyebrow { color: #ff9b92; }
.compact-hero { min-height: 185px; }
.two-column-layout, .notification-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-card h2, .notification-settings-grid h2, .notification-center-card h2 { margin: 5px 0 20px; font-size: 27px; letter-spacing: -.035em; }
.stack-form { display: grid; gap: 15px; }
.stack-form .check { align-items: flex-start; color: #69738f; line-height: 1.4; }
.wide { width: 100%; }
.muted { color: #777e90; }
.share-link-card { margin-bottom: 20px; display: grid; grid-template-columns: 1fr minmax(280px,1.3fr); gap: 24px; align-items: center; background: #fff4f2; border-color: #ffd5d0; }
.share-link-card p { margin: 5px 0 0; color: #72798b; font-size: 13px; }
.copy-row { display: flex; gap: 9px; }
.copy-row input { min-width: 0; flex: 1; padding: 12px; background: #fff; border: 1px solid #e3e6ef; border-radius: 11px; color: #69738f; }
.member-list { display: grid; gap: 10px; }
.member-row { padding: 11px 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; gap: 11px; align-items: center; border-bottom: 1px solid #edf0f6; }
.member-row:last-child { border-bottom: 0; }
.member-row > div { min-width: 0; display: grid; }
.member-row small { overflow: hidden; color: #83899a; font-size: 11px; text-overflow: ellipsis; }
.member-row select { padding: 9px; border: 1px solid #e1e5ee; border-radius: 10px; background: #fff; color: #061857; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; color: #061857; background: #f3f5fa; border: 0; border-radius: 10px; cursor: pointer; }
.icon-button.danger { color: #bd4242; }
.pending-invitations { margin-top: 20px; }
.pending-row { padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf0f6; }
.pending-row div { display: grid; gap: 4px; }
.pending-row small { color: #83899a; }
.invite-page { min-height: calc(100vh - 210px); display: grid; place-items: center; }
.invite-card { width: min(610px,100%); padding: clamp(28px,6vw,54px); }
.invite-card h1 { margin: 8px 0 12px; font-size: clamp(34px,7vw,56px); letter-spacing: -.05em; }
.invite-card > p { color: #70778a; font-size: 16px; line-height: 1.65; }
.invite-meta { margin: 24px 0; padding: 16px; display: flex; justify-content: space-between; gap: 12px; color: #061857; background: #f5f7fb; border-radius: 13px; font-size: 13px; font-weight: 750; }

.trip-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.role-badge { padding: 10px 15px; color: #061857; background: #fff; border-radius: 12px; font-size: 12px; font-weight: 800; }
.shared-trip-badge { margin-left: auto; padding: 5px 8px; color: #061857; background: #eef1fa; border-radius: 8px; font-size: 9px; font-weight: 800; }
.shared-trip-badge + .trip-arrow { margin-left: 0; }
.checklist-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.task-create-card { margin-bottom: 20px; }
.task-form-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; align-items: end; }
.task-title-field, .task-notes-field { grid-column: span 2; }
.checklist-card { padding: 0; overflow: hidden; }
.checklist-card > header { padding: 24px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 13px; background: #f8f9fc; border-bottom: 1px solid #e8ebf2; }
.checklist-card h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -.035em; }
.checklist-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: #061857; border-radius: 14px; font-weight: 850; }
.check-count { color: #eb6255; font-size: 15px; }
.checklist-items { padding: 8px 20px 18px; }
.checklist-row { padding: 15px 2px; display: grid; grid-template-columns: 30px minmax(0,1fr) 34px; gap: 12px; align-items: start; border-bottom: 1px solid #edf0f5; }
.checklist-row:last-child { border: 0; }
.round-check { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: #fff; border: 2px solid #cfd4e1; border-radius: 50%; cursor: pointer; font-size: 13px; }
.checklist-row.completed .round-check { background: #eb6255; border-color: #eb6255; }
.round-check.static { cursor: default; }
.checklist-copy strong { display: block; line-height: 1.35; }
.checklist-copy > div { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 7px; }
.checklist-copy span { padding: 4px 7px; color: #6d7487; background: #f3f5f9; border-radius: 7px; font-size: 10px; }
.checklist-copy p { margin: 7px 0 0; color: #777e90; font-size: 12px; line-height: 1.5; }
.checklist-row.completed .checklist-copy { opacity: .58; }
.checklist-row.completed .checklist-copy strong { text-decoration: line-through; }
.soft-empty.compact { margin: 12px 0 0; padding: 20px; }

.notification-hero { background: linear-gradient(125deg,#061857 15%,#152f73 70%,#eb6255 140%); }
.bell-master { min-width: 160px; padding: 15px 18px; display: flex; gap: 10px; align-items: center; justify-content: center; color: #061857; background: #fff; border: 0; border-radius: 14px; font-weight: 800; cursor: pointer; }
.bell-master span { font-size: 20px; }
.bell-master.off { color: #73798b; background: #eef0f5; }
.push-device-card { grid-column: 1 / -1; display: grid; grid-template-columns: 58px minmax(0,1fr) auto auto; gap: 18px; align-items: center; }
.push-device-icon { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: #eb6255; border-radius: 18px; font-size: 22px; }
.push-device-card h2 { margin-bottom: 4px; }
.push-device-card p { margin: 0; color: #73798b; }
.notification-preferences-card { grid-column: 1 / -1; }
.preference-form { display: grid; gap: 4px; }
.preference-row { padding: 14px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid #edf0f5; }
.preference-row span { display: grid; gap: 4px; }
.preference-row small { color: #777e90; font-size: 12px; }
.preference-row input { width: 42px; height: 22px; accent-color: #eb6255; }
.preference-time-row { margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notification-center-card { margin-top: 20px; padding: 0; overflow: hidden; }
.scheduler-status { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: none; }
.scheduler-status h2 { margin: 4px 0; font-size: 21px; }
.scheduler-status p { margin: 0; color: #73798b; font-size: 13px; }
.scheduler-status code { color: #061857; font-weight: 750; }
.scheduler-status.needs-attention { background: #fff8eb; border-color: #f0d9a7; }
.scheduler-status.is-running { background: #f0faf6; border-color: #bfe4d2; }
.notification-center-card > header { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e8ebf2; }
.notification-center-card h2 { margin-bottom: 0; }
.notification-list { padding: 5px 22px 18px; }
.notification-row { position: relative; padding: 17px 5px; display: grid; grid-template-columns: 42px minmax(0,1fr) 10px; gap: 13px; align-items: start; color: #061857; border-bottom: 1px solid #edf0f5; text-decoration: none; }
.notification-row.unread { background: linear-gradient(90deg,#fff5f3,transparent 72%); }
.notification-kind { width: 40px; height: 40px; display: grid; place-items: center; color: #eb6255; background: #fff0ee; border-radius: 13px; font-weight: 850; }
.notification-row p { margin: 4px 0; color: #73798b; font-size: 12px; line-height: 1.5; }
.notification-row small { color: #a0a5b3; font-size: 10px; }
.notification-row i { width: 8px; height: 8px; margin-top: 7px; background: #eb6255; border-radius: 50%; }

@media (max-width: 850px) {
  .two-column-layout, .checklist-columns { grid-template-columns: 1fr; }
  .task-form-grid { grid-template-columns: 1fr 1fr; }
  .push-device-card { grid-template-columns: 50px minmax(0,1fr); }
  .push-device-card .button { grid-column: span 1; }
  .share-link-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .user { gap: 8px; }
  .user-name { display: none; }
  .notification-bell { width: 40px; height: 40px; }
  .notification-panel { position: fixed; top: 68px; right: 12px; left: 12px; width: auto; }
  .section-hero { padding: 26px 22px; align-items: flex-start; flex-direction: column; border-radius: 21px; }
  .section-hero .button, .bell-master { width: 100%; }
  .task-form-grid, .preference-time-row { grid-template-columns: 1fr; }
  .task-title-field, .task-notes-field { grid-column: auto; }
  .member-row { grid-template-columns: 40px minmax(0,1fr) auto; }
  .member-row > form:first-of-type { grid-column: 2; }
  .copy-row { flex-direction: column; }
  .copy-row .button { width: 100%; }
  .invite-meta { flex-direction: column; }
  .push-device-card { display: flex; align-items: flex-start; flex-direction: column; }
  .push-device-card .button { width: 100%; }
  .notification-center-card > header { align-items: flex-start; flex-direction: column; }
  .notification-row { grid-template-columns: 38px minmax(0,1fr) 8px; }
  .trip-hero-actions { width: 100%; justify-content: flex-start; }
}
