:root {
  --navy: #172d45;
  --muted: #546579;
  --orange: #be4128;
  --line: #dbe2e7;
  --paper: #f5f7f8;
  --soft: #eaf0f4;
  --green: #256a51;
  color: var(--navy);
  background: var(--paper);
  font:
    16px/1.48 "DM Sans",
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
.person-filter { border: 2px solid transparent; border-radius: 50%; padding: 2px; min-width: 44px; min-height: 44px; }
.person-filter .avatar { width: 32px; height: 32px; }
.person-filter[aria-pressed="true"] { border-color: var(--navy); background: white; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  cursor: pointer;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--navy);
}
:focus-visible {
  outline: 3px solid #0176ac;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
h1,
h2,
.brand {
  font-family: "Barlow", "Segoe UI", sans-serif;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 750;
}
h2 {
  font-size: 1.65rem;
}
small,
.meta {
  color: var(--muted);
  font-size: 0.875rem;
}
svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.bar,
.wrap {
  width: min(1360px, 94%);
  margin: auto;
}
.bar,
.nav,
.row,
.brand,
.button,
.line,
.chip,
.tag,
.profile-button {
  display: flex;
  align-items: center;
}
.bar {
  min-height: 70px;
  gap: 3rem;
}
.brand {
  font-size: 1.75rem;
  font-weight: 800;
  gap: 0.48rem;
}
.brand svg {
  width: 1.42em;
  height: 1.42em;
  color: var(--orange);
}
.nav {
  align-self: stretch;
  gap: 1.2rem;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 3px solid transparent;
  padding: 0.5rem 0.2rem 0;
  color: var(--muted);
  font-weight: 600;
}
.nav .on {
  color: var(--orange);
  border-color: var(--orange);
}
.profile-button {
  margin-left: auto;
  gap: 0.5rem;
  font-weight: 600;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 2px solid white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.78rem;
  color: #253144;
  background: #dce7ee;
}
.a-Sandy {
  background: #ffd2b8;
}
.a-Huguiño {
  background: #b5dfd4;
}
.a-Richi {
  background: #c4d7f6;
}
.a-Ale {
  background: #ebc6dc;
}
.a-China {
  background: #f2dc9c;
}
.avatars {
  display: inline-flex;
  align-items: center;
  padding-left: 0.18rem;
}
.avatars .avatar {
  margin-left: -0.18rem;
}
.wrap {
  padding: 2.3rem 0 4rem;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.intro .line {
  margin-top: 0.45rem;
}
.line,
.row {
  gap: 0.65rem;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.group-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.tabs {
  display: flex;
  overflow: auto;
  gap: 0.5rem;
  align-items: center;
}
.days {
  margin: 1.2rem 0;
}
.days button,
.chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0.55rem 0.9rem;
  font-weight: 550;
  white-space: nowrap;
}
.days .on,
.chip.on {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.45rem 0 0.8rem;
}
.section-head h2:first-letter {
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  justify-content: center;
  gap: 0.45rem;
  background: white;
  border: 1px solid #cbd5db;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.button.primary {
  color: white;
  background: var(--orange);
  border-color: var(--orange);
}
.button.danger {
  color: #96331f;
}
.filters {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.9rem 0;
}
.filters select,
.chip {
  font-size: 0.875rem;
}
.chip {
  gap: 0.4rem;
  padding: 0.46rem 0.65rem;
}
.timeline {
  padding: 0;
  list-style: none;
  margin: 0.8rem 0;
}
.event {
  display: grid;
  grid-template-columns: 55px 40px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}
.event time {
  font-size: 0.9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.iconbox {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #305e7c;
  background: #e2eff8;
}
.iconbox.Paseo {
  background: #e2f1e9;
  color: #286c4f;
}
.iconbox.Comida {
  background: #fff0da;
  color: #905c25;
}
.iconbox.Entrada {
  background: #efe6f6;
  color: #74468a;
}
.iconbox.Casa {
  background: #fce8e1;
  color: #a34b32;
}
.event .name {
  text-align: left;
  font-size: 1.04rem;
  padding: 0;
  font-weight: 675;
}
.event .name:hover,
.textbtn:hover {
  text-decoration: underline;
}
.event .meta {
  display: block;
  margin-top: 0.15rem;
}
.event .end {
  text-align: right;
}
.tag {
  display: inline-flex;
  gap: 0.35rem;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 650;
  border-radius: 5px;
  padding: 0.16rem 0.42rem;
  color: #36566c;
  background: #eaf1f5;
}
.tag.good {
  color: var(--green);
  background: #e1f1e7;
}
.tag.wait {
  color: #865912;
  background: #fff0cc;
}
.empty,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1.2rem;
}
.empty {
  color: var(--muted);
}
.textbtn {
  color: var(--orange);
  font-weight: 650;
  padding: 0;
  text-align: left;
}
.muted {
  color: var(--muted);
}
.loading {
  padding: 3rem;
}
.login-form {
  display: grid;
  align-content: center;
  gap: 0.9rem;
}
.login-form h2 {
  font-size: 2rem;
}
.login-people {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.login-people legend {
  margin-bottom: .5rem;
}
.login-people label {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem;
  border: 1px solid #b9c7d1;
  border-radius: 7px;
  cursor: pointer;
}
.login-people input {
  width: auto;
  margin: 0;
}
.login-form .button {
  margin-top: 0.5rem;
}
label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 620;
}
input,
select,
textarea {
  background: white;
  border: 1px solid #b9c7d1;
  border-radius: 7px;
  padding: 0.53rem 0.65rem;
  min-width: 0;
  width: 100%;
}
select {
  width: auto;
}
textarea {
  resize: vertical;
  min-height: 5rem;
}
dialog {
  width: min(580px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--navy);
  box-shadow: 0 18px 80px #10283e40;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #112a4094;
}
.modal {
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}
.modal h2 {
  font-size: 1.7rem;
}
.modal .close {
  font-size: 1.3rem;
  min-width: 40px;
  min-height: 40px;
}
.modal select {
  width: 100%;
}
.modal .section-head {
  margin: 0;
}
.modal .links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.modal p,
.event .name,
.event .meta {
  overflow-wrap: anywhere;
}
.error {
  color: #9f2518;
}
.error:empty {
  display: none;
}
.modal .meta {
  white-space: pre-line;
}
.modal footer {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  z-index: 4;
  text-align: center;
}
@media (max-width: 850px) {
  .bar {
      gap: 1.5rem;
    }
  .event {
      gap: 0.5rem;
      padding: 0.75rem;
    }
  .group-label {
      display: none;
    }
}
@media (max-width: 680px) {
  .bar,
  .wrap {
      width: 92%;
    }
  .bar {
      flex-wrap: wrap;
      gap: 0;
      padding-top: 0.5rem;
    }
  .brand {
      font-size: 1.5rem;
    }
  .profile-button {
      order: 1;
    }
  .nav {
      order: 2;
      width: 100%;
      justify-content: space-between;
      margin-top: 0.35rem;
      gap: 0.3rem;
    }
  .nav button {
      min-height: 43px;
      font-size: 0.86rem;
    }
  .wrap {
      padding: 1.1rem 0 3rem;
    }
  .intro {
      margin-bottom: 1rem;
    }
  .days {
      margin: 0.85rem 0;
    }
  .days button {
      padding: 0.45rem 0.65rem;
    }
  .event {
      grid-template-columns: 40px 30px minmax(0, 1fr);
      gap: 0.5rem;
    }
  .event time {
      font-size: 0.8rem;
    }
  .event .end {
      grid-column: 3;
      text-align: left;
    }
  .iconbox {
      width: 30px;
      height: 32px;
    }
  .section-head h2 {
      font-size: 1.35rem;
    }
  .modal {
      padding: 1rem;
    }
  .intro .meta {
      font-size: 0.83rem;
    }
}
@media (max-width: 480px) {
  .nav button svg { display: none; }
  .nav button { padding-inline: .25rem; }
}
.avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
