@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:wght@500;700&display=swap");

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1a1f24;
  --muted: #5b6570;
  --accent: #0f766e;
  --accent-2: #c8a06a;
  --stroke: #e6e1d8;
  --shadow: 0 16px 40px rgba(26, 31, 36, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #faf7f1 0%, #f1f6f5 60%, #fdfbf7 100%);
}

.page {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.08), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(200, 160, 106, 0.12), transparent 40%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, #0f766e, #2f9e95);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.nav {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 36px;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.section-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.input {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  width: 100%;
  font-size: 14px;
}

.button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(15, 118, 110, 0.35);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.active {
  display: block !important;
}

.hidden {
  display: none !important;
}

.tabs .tag.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--accent);
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  font-size: 12px;
  color: var(--accent);
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(26, 31, 36, 0.08);
  color: var(--ink);
}

.badge.confirmed { background: rgba(15, 118, 110, 0.15); color: #0f766e; }
.badge.pending { background: rgba(200, 160, 106, 0.2); color: #a06d2a; }
.badge.canceled { background: rgba(220, 53, 69, 0.12); color: #c0392b; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: #fff;
  border-left: 1px solid var(--stroke);
  box-shadow: -8px 0 24px rgba(26, 31, 36, 0.12);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 12;
  display: flex;
  flex-direction: column;
}

.drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--stroke);
}

.drawer-body {
  padding: 20px;
  flex: 1;
  overflow: auto;
}

.drawer-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--stroke);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.chip.active {
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
}

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

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  font-size: 12px;
}

.calendar .cell {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px;
  min-height: 70px;
  background: #fff;
}

.calendar .cell .day {
  font-weight: 600;
  margin-bottom: 6px;
}

.calendar .event {
  font-size: 11px;
  color: var(--muted);
}

.calendar .event.pending { color: #a06d2a; }
.calendar .event.confirmed { color: #0f766e; }
.calendar .event.canceled { color: #c0392b; text-decoration: line-through; }

.footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

.step {
  border-left: 3px solid rgba(15, 118, 110, 0.2);
  padding-left: 12px;
  margin-bottom: 12px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.summary {
  background: rgba(15, 118, 110, 0.06);
  border: 1px dashed rgba(15, 118, 110, 0.3);
  border-radius: 12px;
  padding: 12px;
}

.error {
  color: #c0392b;
  font-size: 12px;
  margin-top: 6px;
}

.helper {
  color: var(--muted);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 36, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.modal .card {
  max-width: 420px;
  width: 100%;
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.stagger > * {
  animation: fadeUp 0.6s ease both;
}

.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}
