@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Outfit:wght@400;500;600&display=swap");

:root {
  --paper: #f6f1e8;
  --paper-deep: #efe6d8;
  --ink: #1c1916;
  --muted: #655e55;
  --line: #ddd4c6;
  --booked: #7a2f2a;
  --booked-bg: #f6e3dc;
  --free: #234f42;
  --free-bg: #e5efe8;
  --past: #8a8176;
  --shadow: 0 1px 0 rgba(28, 25, 22, 0.04);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}

.skip:focus { top: 0.5rem; }

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  max-width: none;
  padding: 1rem max(1rem, calc((100% - 1120px) / 2));
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

main { padding: 2.5rem 0 4rem; }

.hero { max-width: 42rem; }

.hero .lead { margin: 0; }
.hero h1 + .lead { margin-top: 1.6rem; }
.hero .lead + .lead { margin-top: 1.1rem; }

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, .statement, .page-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 520;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 0.88;
}

.statement {
  margin: 1.4rem 0 0;
  max-width: 16ch;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.lead, .note, .summary {
  color: var(--muted);
  font-size: 1.08rem;
}

.lead { max-width: 42rem; }

.spread {
  margin-top: 3rem;
}

.plate {
  margin: 0;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
}

.plate figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plate-cover img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.plate-pair img { aspect-ratio: 4 / 5; object-fit: cover; }
.plate-row img { aspect-ratio: 3 / 4; object-fit: cover; }

.archive {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 3.5rem;
}

.archive-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
  gap: 1.4rem;
  align-items: end;
}

.archive-item img,
.archive-item video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
}

.archive-item h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.archive-item p { margin: 0; color: var(--muted); }

.breakdown { margin: 0; }
.breakdown div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.breakdown div:last-child { border-bottom: 1px solid var(--line); }
.breakdown dt { margin: 0; }
.breakdown dd {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
}
.sheet { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; padding: 0.45rem 0.35rem; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.sheet input { width: 7.5rem; }
.sheet input.name { width: 12rem; }
.sheet-wrap { overflow-x: auto; }
.add-row { margin-top: 1.4rem; }
.add-row h3 { margin: 0; font-size: 1.05rem; }
.sheet-form { display: grid; gap: 0.65rem; max-width: 42rem; }
.param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.proposal-total { font-family: Fraunces, Georgia, serif; font-size: 2rem; }
.fold { border-bottom: 1px solid var(--line); }
.fold summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before {
  content: "+";
  display: inline-block;
  width: 1.4rem;
}
.fold[open] summary::before { content: "–"; }
.fold .sheet-form,
.fold .param-grid,
.fold .sheet-wrap,
.fold > .summary { margin-bottom: 0.9rem; }
.fold-row summary { font-family: inherit; font-size: 1rem; padding: 0.75rem 0.35rem; }
.add-client-row td { padding: 0; }
.cash-left {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.2rem 0 0.35rem;
}
.cash-fold > summary {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.cash-hint { margin-left: auto; font-variant-numeric: tabular-nums; }
.cash-day { padding: 0.85rem 0 0.15rem; border-top: 1px solid var(--line); }
.cash-day header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.cash-day header strong,
.cash-day header span {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
}
.cash-lines { list-style: none; margin: 0.35rem 0 0.7rem; padding: 0; }
.cash-lines li {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.18rem 0;
  color: var(--muted);
}
.cash-lines li > span:first-child { margin-right: auto; }
.cash-lines form { margin: 0; }
.cash-sum { margin: 0.2rem 0 1rem; }
.cash-sum div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}
.cash-sum dt { margin: 0; color: var(--muted); }
.cash-sum dd {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.cash-sum .cash-total { border-top-width: 2px; }
.cash-sum .cash-total dt,
.cash-sum .cash-total dd {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
}
@media print {
  .site-header, .site-footer, .no-print { display: none; }
}

.steps { margin: 0; padding-left: 1.2rem; max-width: 42rem; }
.steps li { margin: 0.7rem 0; }
.message {
  white-space: pre-wrap;
  margin: 0;
  padding: 1rem;
  background: var(--paper-deep);
  font: inherit;
}

.plate-pair,
.plate-row {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.plate-pair { grid-template-columns: 1.15fr 0.85fr; }
.plate-row { grid-template-columns: 1.1fr 0.7fr 1.2fr 0.8fr; align-items: start; }

.band {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.2rem;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.stage {
  min-height: 11rem;
  padding: 0.7rem;
  background: var(--paper-deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  overflow: hidden;
}

.stage img {
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
  display: block;
}

.stage-story img { height: 12rem; object-position: center top; }
.stage-hero img { height: 12rem; }

.stage-caption, .paper-line { margin: 0; color: var(--muted); font-size: 0.92rem; }

.film {
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.55fr;
  gap: 0.35rem;
  align-items: end;
}

.film span {
  height: 7rem;
  background:
    repeating-linear-gradient(to bottom, var(--ink) 0 4px, transparent 4px 10px) left center / 7px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink) 0 4px, transparent 4px 10px) right center / 7px 100% no-repeat,
    var(--paper);
}

.film img { height: 8.2rem; }

.pick { position: absolute; opacity: 0; pointer-events: none; }
.stage .slide { display: none; }
.pick-1:checked ~ .stage-window .slide-1,
.pick-2:checked ~ .stage-window .slide-2,
.pick-3:checked ~ .stage-window .slide-3 { display: block; }

.stage-nav { display: flex; gap: 0.4rem; }
.stage-nav label {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.85rem;
}
.pick-1:checked ~ .stage-nav label[for="pieza-carrusel-1"],
.pick-2:checked ~ .stage-nav label[for="pieza-carrusel-2"],
.pick-3:checked ~ .stage-nav label[for="pieza-carrusel-3"] {
  background: var(--ink);
  color: var(--paper);
}

.diary p {
  margin: 0 0 0.45rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
}

.mini-month {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem;
}
.mini-month li {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
}
.mini-month .filled { background: var(--free-bg); color: var(--free); }

.board { position: relative; height: 11rem; }
.board img { position: absolute; width: 62%; height: 7.2rem; object-fit: cover; }
.board img:nth-child(1) { left: 0; top: 0; }
.board img:nth-child(2) { right: 0; top: 1.6rem; width: 48%; height: 6rem; }
.board img:nth-child(3) { left: 18%; bottom: 0; width: 46%; height: 5.2rem; }

.paper-line {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--ink);
  padding: 0.4rem 0.2rem 1rem;
}

.slips { list-style: none; margin: 0; padding: 0.4rem 0 0; display: grid; gap: 0.45rem; }
.slips li {
  padding: 0.55rem 0.7rem;
  background: var(--paper);
  font-family: Fraunces, Georgia, serif;
}

.stage-pauta, .stage-reporte { color: var(--ink); justify-content: center; }
.stage-pauta svg, .stage svg { width: 100%; height: 7rem; }
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 8rem;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
}
.bars li { flex: 1; background: var(--free-bg); box-shadow: inset 0 0 0 1px var(--free); }

.services h3 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
}

.services p, .fields + .note { margin: 0; }

.fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.fields li {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.fields img, .field-mark {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  background: var(--paper-deep);
  color: var(--ink);
}

.field-mark { display: grid; place-items: center; }
.field-mark svg { width: 4.2rem; height: 5rem; }

.fields + .note { margin-top: 1.2rem; max-width: 38rem; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.calendar-invite {
  padding: 1.25rem;
  background: var(--paper-deep);
}

.button, button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.text-button {
  background: transparent;
  color: var(--ink);
}

.page-title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0; }

.page-intro { max-width: 40rem; margin-bottom: 2rem; }

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.month-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.month-prev { justify-self: start; white-space: nowrap; }
.month-next { justify-self: end; text-align: right; white-space: nowrap; }

.month-title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 520;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  text-align: center;
}

.month-nav a { color: var(--muted); }

.open-label { margin: 0.6rem 0 1rem; color: var(--muted); }

.weekdays, .week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.weekdays {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week { margin-bottom: 0.35rem; }

.day {
  position: relative;
  display: flex;
  min-height: 5rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.4rem;
  overflow: hidden;
  background: var(--paper-deep);
  color: inherit;
  text-decoration: none;
}

.day-halves {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shift-half { flex: 1; }
.shift-free { background: var(--free-bg); }
.shift-taken { background: var(--booked-bg); }
.shift-past { background: var(--paper); }
.shift-none { background: transparent; }

.day-available { color: var(--free); }
.day-partial { color: var(--ink); }
.day-booked { color: var(--booked); }
.day-past { color: var(--past); background: var(--paper); }
.day-outside { background: transparent; }
.day-today { box-shadow: inset 0 0 0 1px var(--ink); }
.day-selected { box-shadow: inset 0 0 0 2px var(--ink); }

.day-number,
.day-status { position: relative; z-index: 1; }

.day-number {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
}

.day-status { font-size: 0.72rem; letter-spacing: 0.04em; }

.shift-key { margin: -0.4rem 0 1rem; color: var(--muted); font-size: 0.95rem; }

.day-panel {
  position: sticky;
  top: 5rem;
  padding: 1.1rem;
  background: var(--paper-deep);
}

.day-panel h2 { font-size: 1.6rem; }

.legend {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0;
}

.swatch {
  width: 0.85rem;
  height: 0.85rem;
  display: inline-block;
}

.swatch-free { background: var(--free-bg); box-shadow: inset 0 0 0 1px var(--free); }
.swatch-split {
  background: linear-gradient(to bottom, var(--booked-bg) 0 46%, var(--paper) 46% 54%, var(--free-bg) 54% 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.swatch-booked { background: var(--booked-bg); box-shadow: inset 0 0 0 1px var(--booked); }
.swatch-past { background: var(--paper); box-shadow: inset 0 0 0 1px var(--past); }

.notice {
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
}

.notice-ok { background: var(--free-bg); color: var(--free); }
.notice-error { background: var(--booked-bg); color: var(--booked); }

.login, .day-panel form, .person-form { display: grid; gap: 0.45rem; max-width: 24rem; }

.person-form { margin-top: 0.4rem; }

.login { margin-top: 1rem; }

label { color: var(--ink); }

select, input, textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

fieldset {
  margin: 0.4rem 0;
  padding: 0.7rem;
  border: 1px solid var(--line);
}

.choice { display: flex; gap: 0.45rem; align-items: center; margin: 0.25rem 0; }
.choice input { width: auto; }

.upcoming {
  list-style: none;
  margin: 0;
  padding: 0;
}

.upcoming li {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.upcoming a { text-underline-offset: 0.15em; }
.upcoming span { color: var(--muted); font-size: 0.95rem; }

.upcoming-title { margin-top: 1.8rem; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.internal-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.internal-nav a {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ink);
  text-decoration: none;
}
.internal-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.site-footer p { margin: 0; }

code {
  font-family: Consolas, monospace;
  font-size: 0.92em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .services, .split, .calendar-layout, .plate-pair, .plate-row, .archive-item { grid-template-columns: 1fr; }
  .fields, .param-grid { grid-template-columns: 1fr 1fr; }
  .param-grid { grid-template-columns: 1fr; }
  .day-panel { position: static; }
  .site-header { align-items: center; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 640px) {
  .day { min-height: 2.7rem; padding: 0.2rem; }
  .day-status { display: none; }
  .month-nav {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .month-title { grid-column: 1 / -1; grid-row: 1; }
  .month-prev, .month-next { grid-row: 2; font-size: 0.95rem; }
}
