:root {
  --bg: #F2E5D5;
  --text: #0D2601;
  --accent: #274001;
  --accent-2: #7A8C37;
  --muted: #A6977B;
  --danger: #7A8C37;
  --card: #fffaf4;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fffdf9 0%, #f7efe3 45%, var(--bg) 100%);
}
body { min-height: 100vh; display: flex; flex-direction: column; }
.container { flex: 1; }
header {
  padding: 28px 20px 10px;
  text-align: center;
}
.headline {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 6px;
}
.subtitle {
  margin: 0 auto;
  max-width: 420px;
  font-size: 0.95rem;
  color: var(--muted);
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--soft-shadow);
  margin-bottom: 20px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar .day {
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background: #f4ecdf;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.calendar .day.disabled { background: #efe5d6; color: #9a8f80; cursor: not-allowed; }
.calendar .day.selected { background: var(--accent); color: #fff; }
.calendar .day.reserved { background: #e2d6c4; color: #8f8576; cursor: not-allowed; }
.calendar .day:hover:not(.reserved):not(.disabled) { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.controls { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; }
.controls-row { display: flex; gap: 10px; width: 100%; }
.controls-row .btn { flex: 1; }
.month-label { font-weight: 600; text-transform: capitalize; text-align: center; }
.badge {
  background: #e7d8c2;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge-label { color: #5c533f; }
.badge-days {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.section-subtitle {
  margin: 6px 0 10px;
  font-weight: 600;
  color: #3a332d;
}
.auth-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 16px;
}
.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2e7d6 0%, #e8d6be 100%);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: var(--soft-shadow);
}
.auth-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text);
}
.auth-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #7a6f5e;
}
.auth-center { width: 100%; }
.site-footer {
  padding: 18px 16px 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  width: min(560px, 85%);
  margin: 0 auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #d9cbb6 20%, #A6977B 50%, #d9cbb6 80%, transparent 100%);
}
.site-footer p { margin: 4px 0; }
input, button, textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #e2d8c8; }
input { background: #fffaf4; }
input:focus {
  outline: none;
  border-color: #b8a58a;
  box-shadow: 0 0 0 3px rgba(184, 165, 138, 0.25);
}
label { display: block; margin: 6px 0 6px; font-weight: 600; }
form { display: flex; flex-direction: column; gap: 8px; }
button { background: var(--accent); color: #fff; border: none; cursor: pointer; font-weight: 600; }
button:disabled { background: #999; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-sm { padding: 10px 12px; font-size: 0.9rem; }
.btn-text { display: inline; }
.btn-icon { font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--soft-shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: #efe5d6; color: var(--text); }
.btn-ghost:hover { background: #e4d8c7; }
.btn-danger { background: var(--danger); color: #fff; }
.cta {
  background: linear-gradient(135deg, #274001 0%, #7A8C37 100%);
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.cta { margin-top: 14px; }
.cta:disabled { background: #9bb07a; box-shadow: none; }
.flash { padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.flash.success { background: #e8f0d7; }
.flash.error { background: #f2ded2; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dashboard-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label { font-weight: 600; color: #6b6153; margin: 0; }
.stat-value { font-size: 2rem; font-weight: 700; margin: 0; color: var(--text); }
.stat-help { margin: 0; color: var(--muted); font-size: 0.95rem; }
.dashboard-panel { padding: 24px; }
.muted { color: var(--muted); margin: 4px 0 0; }
.reservations-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}
.reservation-item {
  background: #f7efe3;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reservation-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reservation-name { font-weight: 600; }
.reservation-contact { font-size: 0.9rem; color: #6b6153; }
.reservation-date { font-weight: 600; color: #3a332d; }
.reservation-empty {
  background: #f7efe3;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  color: #6b6153;
}
.admin-actions { display: flex; justify-content: flex-start; }
.admin-cta { text-decoration: none; }
.btn-back {
  align-self: flex-start;
  margin-bottom: 12px;
  text-decoration: none;
}
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #eee; }
.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #efe5d6;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.detail-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
  background: #e4d8c7;
}
.whatsapp-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.whatsapp-text { font-weight: 600; }
.btn-copy {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-left: 10px;
  width: auto;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .btn-text { display: none; }
  .auth-center {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .auth-card { width: 100%; }
  .admin-actions { width: 100%; }
  .admin-cta { width: 100%; justify-content: center; }
  .reservation-item { flex-direction: column; align-items: flex-start; }
  .table { display: block; width: 100%; }
  .table thead { display: none; }
  .table tbody { display: block; width: 100%; }
  .table tr {
    display: block;
    background: #f7efe3;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
  }
  .table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eadfce;
  }
  .table td:last-child { border-bottom: none; }
  .table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b6153;
  }
  .btn-copy { margin-left: 0; }
  .whatsapp-cell { width: 100%; }
  .whatsapp-text { display: block; }
}
@media (min-width: 1024px) {
  .grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 32px; align-items: start; }
  .card { padding: 30px; }
  .headline { font-size: 2.6rem; }
  .calendar { gap: 10px; }
  .calendar .day { padding: 14px 10px; font-size: 1rem; }
  .badge { padding: 14px 16px; }
  form { gap: 12px; }
  .section-subtitle { margin-top: 10px; }
  .auth-card { max-width: 520px; padding: 32px; }
  .auth-title { font-size: 1.6rem; }
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-panel { padding: 30px; }
  .admin-actions { justify-content: center; }
}
@media (min-width: 1400px) {
  .grid { min-width: 1400px; width: 100%; margin: 0 auto; }
}
