:root {
  --ink: #fff5df;
  --paper: #fff8ec;
  --muted: rgba(255, 245, 223, 0.72);
  --green: #0d6d47;
  --red: #a62b1f;
  --gold: #e9b23f;
  --gold-bright: #ffc96a;
  --line: rgba(255, 243, 216, 0.15);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(166, 43, 31, 0.4), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(13, 109, 71, 0.46), transparent 34%),
    linear-gradient(135deg, #130905, #2b120b 48%, #073126);
  font-family: Inter, Arial, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background:
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255, 201, 106, 0.14) 20px 22px),
    repeating-linear-gradient(-45deg, transparent 0 26px, rgba(13, 109, 71, 0.18) 26px 28px);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 8px clamp(18px, 3vw, 34px);
  background: rgba(18, 12, 8, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}
.topbar a {
  color: rgba(255, 243, 216, 0.78);
  font-size: 15px;
  font-weight: 900;
}
.topbar a:hover { color: var(--gold-bright); }
.lang-toggle {
  display: inline-flex;
  gap: 5px;
  min-width: 82px;
  min-height: 38px;
  padding: 4px;
  color: rgba(255, 243, 216, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 243, 216, 0.18);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.lang-toggle span {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
}
.lang-toggle.is-en span:first-child,
.lang-toggle.is-es span:last-child {
  color: #7c1f16;
  background: #fff;
}
.page-main { padding: 104px clamp(18px, 5vw, 76px) 56px; }
.hero,
.panel {
  max-width: 1260px;
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 210px);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  margin-bottom: 24px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at bottom right, rgba(13, 109, 71, 0.38), transparent 38%);
  border: 1px solid var(--line);
  border-radius: 8px 34px 8px 34px;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.92;
}
.hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.hero img {
  justify-self: end;
  max-height: 185px;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.34));
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.panel {
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 34px 8px 34px 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(30px, 5vw, 56px);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.list { display: grid; gap: 14px; }
.card,
.ticket,
.form-card {
  padding: 18px;
  color: #27140d;
  background: var(--paper);
  border-radius: 8px 28px 8px 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}
.card:nth-child(even),
.ticket:nth-child(even) { border-radius: 28px 8px 28px 8px; }
.card strong {
  display: block;
  font-family: Cinzel, Georgia, serif;
  font-size: 34px;
  line-height: 1;
}
.ticket header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.ticket header strong {
  font-family: Cinzel, Georgia, serif;
  font-size: 30px;
}
.pill {
  padding: 8px 11px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.actions,
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sales-range label {
  flex: 1 1 220px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.btn,
button {
  min-height: 42px;
  padding: 11px 16px;
  color: #211108;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.btn.secondary,
button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}
button.danger,
.btn.danger { color: #fff; background: var(--red); }
.ticket button.secondary,
.ticket .btn.secondary {
  color: #211108;
  background: #fff;
  border: 1px solid rgba(39, 20, 13, 0.12);
}
.form-card > button[type="submit"] {
  width: 100%;
}
.quote-form-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.quote-form-actions button {
  width: 100%;
}
.quote-form-actions button.secondary {
  color: #fff8ec;
  background: #0d6d47;
  border: 0;
  box-shadow: 0 14px 28px rgba(13, 109, 71, 0.24);
}
.quote-form-actions button.secondary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
form,
.form-grid {
  display: grid;
  gap: 12px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  color: #27140d;
  background: #fffaf1;
  border: 1px solid rgba(39, 20, 13, 0.16);
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 100px; resize: vertical; }
body[data-page="employees"] .page-main {
  padding-top: 84px;
}
body[data-page="employees"] .hero {
  grid-template-columns: minmax(0, 1fr) minmax(90px, 130px);
  gap: 18px;
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 28px);
}
body[data-page="employees"] .hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}
body[data-page="employees"] .hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.45;
}
body[data-page="employees"] .hero img {
  max-height: 112px;
}
body[data-page="employees"] .panel {
  padding: clamp(14px, 2.4vw, 20px);
}
body[data-page="employees"] .panel-head {
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
}
body[data-page="employees"] .panel-head h2 {
  font-size: clamp(30px, 4.8vw, 52px);
}
body[data-page="employees"] .actions {
  justify-content: flex-end;
}
body[data-page="employees"] .actions .btn,
body[data-page="employees"] .actions button {
  min-height: 40px;
  padding: 10px 15px;
}
body[data-page="employees"] .form-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: clamp(14px, 2.4vw, 18px);
}
body[data-page="employees"] .form-card input,
body[data-page="employees"] .form-card select {
  min-height: 40px;
  padding: 9px 12px;
}
body[data-page="employees"] .form-card > button[type="submit"] {
  grid-column: 1 / -1;
}
.line-row {
  display: grid;
  grid-template-columns: 1fr 90px 120px auto;
  gap: 8px;
  align-items: center;
}
.calendar {
  display: grid;
  gap: 10px;
}
.calendar-top,
.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.calendar-top {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.calendar-top h3 { margin: 0; text-align: center; }
.weekdays span,
.day {
  min-height: 74px;
  padding: 10px;
  color: #27140d;
  background: var(--paper);
  border-radius: 8px;
  font-weight: 900;
}
.day.muted { opacity: 0.45; }
.day.reserved {
  position: relative;
  color: #211108;
  background:
    linear-gradient(135deg, #ffc96a, #e9b23f),
    var(--gold);
  border: 2px solid #7c1f16;
  outline: 4px solid rgba(255, 201, 106, 0.34);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  cursor: pointer;
}
.day.reserved:hover,
.day.reserved:focus {
  filter: brightness(1.04);
  outline-color: rgba(255, 255, 255, 0.48);
}
.day.reserved::after {
  content: "Reservado";
  display: inline-block;
  margin-top: 8px;
  padding: 4px 7px;
  color: #fff8ec;
  background: #7c1f16;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}
.day.reserved small {
  display: block;
  margin-top: 5px;
  color: #3a160f;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 13px 16px;
  color: #201108;
  background: var(--gold-bright);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.quote-builder h2 {
  margin: 24px 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
}
.quote-menu-tools {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 14px;
  align-items: start;
}
.quote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quote-tabs button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}
.quote-tabs button.active {
  color: #211108;
  background: var(--gold);
}
.quote-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.quote-menu-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  overflow: hidden;
  color: #27140d;
  background: var(--paper);
  border-radius: 8px 28px 8px 28px;
}
.quote-menu-card:nth-child(even) {
  border-radius: 28px 8px 28px 8px;
}
.quote-menu-card img {
  width: 100%;
  height: 100%;
  min-height: 155px;
  object-fit: cover;
}
.quote-menu-card div {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
}
.quote-menu-card h3,
.quote-menu-card p {
  margin: 0;
}
.quote-menu-card p {
  color: rgba(39, 20, 13, 0.72);
  line-height: 1.45;
}
.quote-viewer,
.quote-note {
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.quote-viewer {
  display: grid;
  gap: 10px;
}
.quote-viewer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.quote-viewer-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.quote-note {
  color: rgba(255, 245, 223, 0.86);
  font-weight: 800;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { justify-self: start; }
  .panel-head { align-items: start; flex-direction: column; }
  .line-row { grid-template-columns: 1fr; }
  .quote-menu-tools,
  .quote-menu-card { grid-template-columns: 1fr; }
  .quote-menu-card img { height: 210px; }
  .topbar { position: absolute; overflow-x: auto; }
  .topbar nav { flex-wrap: nowrap; overflow-x: auto; }
  .page-main { padding-top: 124px; }
  body[data-page="employees"] .page-main {
    padding: 86px 10px 28px;
  }
  body[data-page="employees"] .hero {
    grid-template-columns: minmax(0, 1fr) 76px;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 8px;
  }
  body[data-page="employees"] .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }
  body[data-page="employees"] .hero p:not(.eyebrow) {
    display: none;
  }
  body[data-page="employees"] .hero img {
    max-height: 70px;
  }
  body[data-page="employees"] .panel {
    padding: 12px;
    border-radius: 8px;
  }
  body[data-page="employees"] .panel-head {
    gap: 10px;
  }
  body[data-page="employees"] .panel-head h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1;
  }
  body[data-page="employees"] .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  body[data-page="employees"] .actions .btn,
  body[data-page="employees"] .actions button {
    width: 100%;
    min-height: 38px;
    padding: 9px 12px;
  }
  body[data-page="employees"] .form-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
  }
  body[data-page="employees"] .form-card input,
  body[data-page="employees"] .form-card select {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 15px;
  }
  body[data-page="employees"] .ticket {
    padding: 13px;
    border-radius: 8px;
  }
  body[data-page="employees"] .ticket header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  body[data-page="employees"] .ticket header strong {
    font-size: 24px;
  }
}

.admin-main-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
}
.admin-brand img {
  width: 150px;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
.admin-main-topbar nav {
  justify-content: center;
}
.admin-shell {
  min-height: 100svh;
  padding: 104px clamp(18px, 5vw, 72px) 64px;
}
.admin-access,
.admin-home {
  max-width: 1380px;
  margin-inline: auto;
}
.admin-access {
  display: grid;
  min-height: calc(100svh - 170px);
  place-items: center;
}
.access-card {
  width: min(560px, 100%);
  padding: clamp(26px, 4vw, 42px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 100% 0, rgba(13, 109, 71, 0.28), transparent 44%);
  border: 1px solid var(--line);
  border-radius: 8px 34px 8px 34px;
  box-shadow: var(--shadow);
}
.access-card h1,
.section-heading h1 {
  margin: 0 0 22px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.95;
}
.access-card form {
  display: grid;
  gap: 14px;
}
.access-card input {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.26);
  border-color: rgba(255, 243, 216, 0.16);
}
.access-card input::placeholder {
  color: rgba(255, 245, 223, 0.56);
}
.access-card .btn.secondary,
.access-card button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.admin-home {
  padding-top: clamp(20px, 3vw, 42px);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 210px);
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading img {
  justify-self: end;
  max-height: 150px;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.34));
}
.admin-portal,
.admin-grid,
.dash-grid {
  display: grid;
  gap: 14px;
}
.admin-portal {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.admin-portal a,
.admin-portal button,
.dash-card {
  position: relative;
  min-height: 130px;
  padding: 22px;
  overflow: hidden;
  color: #27140d;
  background: var(--paper);
  border: 1px solid rgba(39, 20, 13, 0.1);
  border-radius: 8px 28px 8px 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  text-align: left;
}
.admin-portal a:nth-child(even),
.admin-portal button:nth-child(even),
.dash-card:nth-child(even) {
  border-radius: 28px 8px 28px 8px;
}
.admin-portal a,
.admin-portal button {
  font-size: 20px;
  font-weight: 900;
}
.admin-portal a::after,
.admin-portal button::after,
.dash-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 128px;
  height: 128px;
  background: rgba(13, 109, 71, 0.17);
  border-radius: 50%;
}
.admin-portal a:hover,
.admin-portal button:hover,
.admin-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 178, 63, 0.55);
}
.dash-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}
.admin-summary-card {
  background: linear-gradient(135deg, #fff0ee, #fff8f0);
  border-color: rgba(166, 43, 31, 0.18);
}
.admin-summary-card span,
.dash-card h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}
.admin-summary-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 32px;
}
.admin-summary-card p,
.dash-card p {
  max-width: 420px;
  margin: 0;
  line-height: 1.5;
}
.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-link-card {
  transition: transform 180ms ease, border-color 180ms ease;
}
.password-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin: 0 0 14px;
  padding: 20px;
  color: #27140d;
  background: var(--paper);
  border: 1px solid rgba(39, 20, 13, 0.1);
  border-radius: 8px 28px 8px 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}
.password-panel h2 {
  margin: 0 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}
.password-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(39, 20, 13, 0.72);
  line-height: 1.5;
}
.password-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
}
.password-form input {
  min-height: 46px;
}
@media (max-width: 860px) {
  .admin-main-topbar {
    grid-template-columns: 1fr auto;
  }
  .admin-brand {
    display: none;
  }
  .admin-main-topbar nav {
    justify-content: start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .section-heading,
  .dash-grid,
  .admin-grid,
  .password-panel,
  .password-form {
    grid-template-columns: 1fr;
  }
  .section-heading img {
    justify-self: start;
  }
}
