:root {
  color-scheme: light;
  --bg: #eef7ff;
  --surface: #ffffff;
  --surface-strong: #e7f3ff;
  --ink: #102033;
  --muted: #5c7188;
  --line: #c8dcf0;
  --forest: #0b3a67;
  --moss: #1d76b9;
  --river: #0877a8;
  --sun: #f4a62a;
  --rose: #d64f75;
  --ok: #087b8f;
  --warn: #af6a00;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(24, 77, 124, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #0b3a67 0, #1268a5 15rem, #eef7ff 24rem),
    radial-gradient(circle at 18% 0%, rgba(116, 202, 255, 0.35), transparent 18rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px 12px 96px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fffdf7;
  padding: 6px 2px 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 253, 247, 0.76);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 253, 247, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.35rem;
}

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 132px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #dff1ff 100%);
  box-shadow: var(--shadow);
}

.status-copy {
  min-width: 0;
}

.status-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--river);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-copy h2 {
  margin-bottom: 7px;
  font-size: 1.18rem;
  line-height: 1.14;
}

.status-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.primary-button {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}

.summary-grid div {
  min-width: 0;
  min-height: 74px;
  padding: 11px 9px;
  border: 1px solid rgba(172, 207, 236, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
}

.summary-grid span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.summary-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.22;
}

.tab-panel {
  display: none;
}

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

.day-block {
  width: 100%;
  margin-bottom: 18px;
}

.day-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-height: 58px;
  margin: 14px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(172, 207, 236, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(24, 77, 124, 0.08);
  backdrop-filter: blur(12px);
}

.day-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  width: 100%;
  color: var(--forest);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1;
}

.day-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e7f4ff;
  color: var(--forest);
  font-size: 1.05rem;
}

.day-header h2 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1;
}

.day-content {
  display: grid;
  gap: 8px;
}

.day-block.closed .day-content {
  display: none;
}

.progress-pill {
  display: inline-flex;
  min-width: 82px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #dff6ff;
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline {
  position: relative;
  display: grid;
  gap: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: var(--line);
}

.activity {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: clip;
}

.activity.done {
  background: #f0eee6;
  color: #66716c;
}

.activity.done .activity-main {
  opacity: 0.62;
}

.marker {
  display: grid;
  place-items: start center;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(29, 118, 185, 0.1), transparent);
}

.marker span {
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 1rem;
}

.activity-main {
  min-width: 0;
  padding: 12px 10px 12px 0;
}

.activity-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.activity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.time {
  color: var(--river);
  font-size: 0.77rem;
  font-weight: 850;
}

.activity h3 {
  margin: 5px 0 4px;
  font-size: 0.98rem;
  line-height: 1.22;
}

.place {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.28;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f9ff;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.tag.confirmado,
.tag.reservada,
.tag.reservado,
.tag.incluido,
.tag.pagado {
  background: #dff6ff;
  color: var(--ok);
}

.tag.pendiente,
.tag.por-reservar,
.tag.por-confirmar,
.tag.estimado {
  background: #fff2d8;
  color: var(--warn);
}

.check-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.check-wrap input {
  width: 22px;
  height: 22px;
  accent-color: var(--moss);
}

.details {
  display: none;
  padding-top: 10px;
}

.activity.expanded .details {
  display: block;
}

.details p {
  margin-bottom: 10px;
  color: #414b47;
  font-size: 0.84rem;
  line-height: 1.42;
}

.detail-list {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 8px 9px;
  border-radius: var(--radius);
  background: #eaf5ff;
  color: #414b47;
  font-size: 0.8rem;
  line-height: 1.35;
}

.note-box {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  color: var(--ink);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
  min-width: 0;
}

.section-title-card {
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(172, 207, 236, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #e6f4ff);
  box-shadow: 0 8px 24px rgba(24, 77, 124, 0.08);
}

.section-title > div {
  min-width: 0;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.1;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.money-stack,
.list-stack {
  display: grid;
  gap: 10px;
}

.money-card,
.simple-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.money-card.paid {
  background: #e3f7ff;
}

.money-head,
.simple-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.money-head h3,
.simple-head h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.money-head p,
.simple-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.money-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.money-controls input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.small-button {
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  font-weight: 800;
}

.ghost-button {
  border-color: #b8d9ef;
  background: #dff1ff;
  color: var(--forest);
}

.status-select {
  appearance: none;
  max-width: 132px;
  padding-right: 24px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.money-input,
.title-input,
.item-input,
.add-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.title-input {
  font-size: 1rem;
  font-weight: 850;
}

.item-input {
  border: 0;
  background: transparent;
  padding: 6px 0;
}

.totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.totals div {
  padding: 11px 9px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.totals span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.totals strong {
  display: block;
  margin-top: 3px;
  font-size: 0.93rem;
}

.checklist-group {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.checklist-head,
.add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.check-item.done {
  background: #e2f2ff;
  color: #6b746f;
}

.check-item input {
  width: 22px;
  height: 22px;
  accent-color: var(--moss);
}

.check-item .item-input {
  width: 100%;
  height: auto;
  accent-color: initial;
}

.icon-mini {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3f9ff;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 850;
}

.icon-mini.danger {
  background: #fff0ef;
  color: var(--rose);
}

.info-grid {
  display: grid;
  gap: 10px;
}

.info-grid h3 {
  margin-bottom: 7px;
  font-size: 0.98rem;
}

.info-grid p {
  margin-bottom: 0;
  color: #414b47;
  font-size: 0.84rem;
  line-height: 1.45;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(172, 207, 236, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
}

.nav-item span {
  font-size: 1.16rem;
  line-height: 1;
}

.nav-item.active {
  border-radius: var(--radius);
  background: #dff1ff;
  color: var(--forest);
}

@media (min-width: 720px) {
  body {
    background:
      linear-gradient(90deg, rgba(18, 34, 31, 0.1), transparent 20%, transparent 80%, rgba(18, 34, 31, 0.1)),
      var(--bg);
  }

  .app-shell {
    padding-top: 28px;
  }

  .topbar {
    color: var(--forest);
  }

  .eyebrow {
    color: var(--moss);
  }

  .icon-button {
    border-color: var(--line);
    background: var(--surface);
    color: var(--forest);
  }
}
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
