:root {
  --paper: #f6f3ee;
  --paper-deep: #eee9e1;
  --surface: #fffdf9;
  --surface-soft: #faf7f2;
  --ink: #2f2823;
  --muted: #756b63;
  --line: #e4dbd1;
  --copper: #ad7957;
  --copper-dark: #86563a;
  --copper-soft: #ecd7c8;
  --blush: #f4e7df;
  --success: #557b65;
  --success-soft: #e7f0ea;
  --warning: #9a702a;
  --warning-soft: #f7edd8;
  --danger: #a44e4e;
  --danger-soft: #f8e5e3;
  --shadow-sm: 0 8px 24px rgba(69, 47, 33, 0.07);
  --shadow-lg: 0 26px 70px rgba(69, 47, 33, 0.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(232, 209, 193, 0.42), transparent 29rem),
    radial-gradient(circle at 94% 78%, rgba(223, 206, 190, 0.36), transparent 30rem),
    var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--copper-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(181, 157, 139, 0.3);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(173, 121, 87, 0.42);
  border-radius: 50%;
  color: var(--copper-dark);
  background: var(--surface);
  font-family: "Italiana", Georgia, serif;
  font-size: 21px;
  letter-spacing: -0.06em;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: "Italiana", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.nav-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: 180ms ease;
}

.nav-button svg {
  width: 18px;
  height: 18px;
}

.nav-button:hover {
  color: var(--ink);
}

.nav-button.is-active {
  color: var(--copper-dark);
  background: #fff;
  box-shadow: 0 3px 12px rgba(89, 60, 39, 0.09);
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 18px;
  color: #714d2f;
  background: #f6e8d7;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.demo-banner[hidden] {
  display: none;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bc7d46;
  box-shadow: 0 0 0 4px rgba(188, 125, 70, 0.14);
}

#main-content {
  min-height: calc(100vh - var(--header-height) - 54px);
}

.view[hidden] {
  display: none;
}

.booking-shell {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 655px;
  grid-template-columns: minmax(310px, 0.82fr) minmax(520px, 1.35fr);
  margin: clamp(28px, 5vw, 64px) auto;
  overflow: hidden;
  border: 1px solid rgba(199, 177, 160, 0.48);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 58px);
  color: var(--ink);
  background: #ead7c9;
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  border: 1px solid rgba(118, 77, 50, 0.14);
  border-radius: 50%;
  content: "";
}

.brand-panel::before {
  top: -100px;
  right: -150px;
  width: 360px;
  height: 360px;
}

.brand-panel::after {
  bottom: -220px;
  left: -130px;
  width: 420px;
  height: 420px;
}

.logo-window {
  position: relative;
  z-index: 1;
  width: min(290px, 100%);
  aspect-ratio: 564 / 377;
  margin-bottom: 28px;
  background: transparent;
}

.logo-window img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(86, 52, 31, 0.14));
}

.brand-panel-copy,
.trust-list {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-panel h1 {
  max-width: 390px;
  margin: 0;
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.brand-panel-copy > p:last-child {
  max-width: 390px;
  margin: 20px 0 0;
  color: rgba(47, 40, 35, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 34px;
  color: rgba(47, 40, 35, 0.76);
  font-size: 12px;
  font-weight: 600;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-list svg {
  width: 17px;
  height: 17px;
  color: var(--copper-dark);
}

.booking-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
}

.step-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #a49b94;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.step-item:not(:last-child)::after {
  position: absolute;
  top: 14px;
  left: calc(50% + 19px);
  width: calc(100% - 38px);
  height: 1px;
  background: var(--line);
  content: "";
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 11px;
}

.step-item.is-current,
.step-item.is-complete {
  color: var(--copper-dark);
}

.step-item.is-current .step-number,
.step-item.is-complete .step-number {
  border-color: var(--copper);
  color: #fff;
  background: var(--copper);
}

.step-item.is-complete:not(:last-child)::after {
  background: var(--copper);
}

.booking-content {
  display: flex;
  min-height: 490px;
  flex: 1;
  flex-direction: column;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
  color: var(--copper);
}

.section-heading h2,
.panel-heading h2,
.admin-login h1 {
  margin: 0;
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(30px, 3vw, 39px);
  font-weight: 400;
  line-height: 1.15;
}

.section-heading p,
.panel-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  position: relative;
  min-height: 108px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: var(--surface-soft);
  transition: 180ms ease;
}

.service-card:hover {
  border-color: #cda889;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.service-card.is-selected {
  border-color: var(--copper);
  background: var(--blush);
  box-shadow: 0 0 0 2px rgba(173, 121, 87, 0.1);
}

.service-card h3 {
  margin: 0 34px 6px 0;
  font-size: 15px;
  font-weight: 700;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 12px;
}

.service-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-meta svg {
  width: 14px;
  height: 14px;
}

.selection-check {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  background: #fff;
}

.selection-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.service-card.is-selected .selection-check {
  border-color: var(--copper);
  color: #fff;
  background: var(--copper);
}

.booking-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: 170ms ease;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  color: #fff;
  background: var(--copper-dark);
  box-shadow: 0 10px 22px rgba(134, 86, 58, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: #72462e;
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.button-secondary:hover:not(:disabled) {
  border-color: #c8ab96;
  background: var(--surface-soft);
}

.button-ghost {
  color: var(--muted);
  background: transparent;
}

.button-ghost:hover:not(:disabled) {
  color: var(--copper-dark);
  background: var(--blush);
}

.button-danger {
  border-color: #e9c4c0;
  color: var(--danger);
  background: var(--danger-soft);
}

.button-danger:hover:not(:disabled) {
  background: #f3d6d2;
}

.button-success {
  border-color: #cde0d2;
  color: #3f694f;
  background: var(--success-soft);
}

.button-sm {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 11px;
}

.date-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(250px, 1.15fr);
  gap: 18px;
}

.date-card,
.selection-summary,
.info-card,
.settings-card,
.admin-panel,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.date-card {
  padding: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field-label {
  color: #594f48;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  transition: 150ms ease;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(173, 121, 87, 0.12);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.weekday-note {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #6e5a4b;
  background: var(--blush);
  font-size: 11px;
  line-height: 1.5;
}

.weekday-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.selection-summary {
  padding: 20px;
}

.summary-title {
  margin: 0 0 14px;
  color: var(--copper-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-row dt {
  color: var(--muted);
}

.summary-row dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.time-button {
  min-height: 44px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #4b423c;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: 160ms ease;
}

.time-button:hover:not(:disabled) {
  border-color: var(--copper);
  color: var(--copper-dark);
  background: var(--blush);
}

.time-button.is-selected {
  border-color: var(--copper-dark);
  color: #fff;
  background: var(--copper-dark);
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #d6c8bd;
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: #b79b87;
}

.empty-state h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
}

.empty-state p {
  max-width: 360px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-full {
  grid-column: 1 / -1;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  line-height: 1.5;
}

.consent-row input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--copper-dark);
}

.confirmation {
  display: grid;
  justify-items: center;
  padding: 18px 0 6px;
  text-align: center;
}

.confirmation-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--success);
  background: var(--success-soft);
  box-shadow: 0 0 0 10px rgba(85, 123, 101, 0.08);
}

.confirmation-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.3;
}

.confirmation h2 {
  margin: 0;
  font-family: "Italiana", Georgia, serif;
  font-size: 38px;
  font-weight: 400;
}

.confirmation > p {
  max-width: 470px;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.confirmation .selection-summary {
  width: min(100%, 460px);
  text-align: left;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.loading-block {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  border: 3px solid #eadfd6;
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Área administrativa */
#admin-view {
  width: min(1260px, calc(100% - 36px));
  margin: 30px auto 56px;
}

.admin-login-wrap {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(300px, 0.92fr) minmax(390px, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.admin-login-visual {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 48px;
  color: var(--ink);
  background: #ead7c9;
  text-align: center;
}

.admin-login-visual .logo-window {
  margin-bottom: 24px;
}

.admin-login-visual h2 {
  max-width: 420px;
  margin: 0;
  font-family: "Italiana", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.08;
}

.admin-login-visual p {
  max-width: 390px;
  margin: 15px 0 0;
  color: rgba(47, 40, 35, 0.7);
  font-size: 13px;
  line-height: 1.65;
}

.admin-login {
  display: grid;
  align-content: center;
  padding: clamp(32px, 6vw, 72px);
}

.admin-login .eyebrow {
  color: var(--copper);
}

.admin-login > p {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  padding: 2px;
  border: 0;
  color: var(--copper-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.demo-login-note {
  margin-top: 20px;
  padding: 12px;
  border-radius: 11px;
  color: #795a3e;
  background: var(--warning-soft);
  font-size: 11px;
  line-height: 1.5;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.admin-sidebar {
  display: flex;
  min-height: 700px;
  flex-direction: column;
  padding: 24px 18px;
  color: #fff;
  background: #44362d;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0d5c3;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-brand strong {
  display: block;
  font-family: "Italiana", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.sidebar-brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.53);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 25px;
}

.sidebar-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.sidebar-button svg {
  width: 18px;
  height: 18px;
}

.sidebar-button:hover,
.sidebar-button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-button.is-active {
  box-shadow: inset 3px 0 0 #d8a988;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-user {
  margin-bottom: 12px;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  font-size: 11px;
}

.sidebar-user small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.logout-button {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
}

.admin-main {
  min-width: 0;
  padding: 30px;
  background: #f8f5f0;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  margin: 0;
  font-family: "Italiana", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.admin-topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.mobile-admin-menu {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 17px;
  background: var(--surface);
}

.stat-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Italiana", Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}

.admin-panel {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  font-size: 27px;
}

.panel-heading p {
  font-size: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.filters input,
.filters select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
}

.appointments-list,
.service-admin-list,
.blocked-list {
  display: grid;
  gap: 10px;
}

.appointment-card {
  display: grid;
  grid-template-columns: 72px minmax(170px, 1fr) minmax(150px, 0.85fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.appointment-time {
  display: grid;
  min-height: 57px;
  place-content: center;
  border-radius: 11px;
  color: var(--copper-dark);
  background: var(--blush);
  text-align: center;
}

.appointment-time strong {
  font-size: 16px;
}

.appointment-time small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.appointment-client strong,
.appointment-service strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.appointment-client small,
.appointment-service small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-confirmed {
  color: #496d8b;
  background: #e5eff6;
}

.status-completed {
  color: var(--success);
  background: var(--success-soft);
}

.status-cancelled {
  color: var(--danger);
  background: var(--danger-soft);
}

.two-column-admin {
  display: grid;
  grid-template-columns: minmax(410px, 0.95fr) minmax(420px, 1.25fr);
  gap: 16px;
}

.two-column-admin > * {
  min-width: 0;
}

.service-form,
.settings-form {
  display: grid;
  gap: 14px;
}

.service-admin-item,
.blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.service-admin-item strong {
  display: block;
  font-size: 12px;
}

.service-admin-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.item-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-row strong {
  display: block;
  font-size: 12px;
}

.switch-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.switch input {
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d7d0ca;
  transition: 160ms ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  content: "";
  transition: 160ms ease;
}

.switch input:checked + span {
  background: var(--copper);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.day-schedule {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 108px) minmax(0, 108px);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.day-schedule > * {
  min-width: 0;
}

.day-schedule:last-child {
  border-bottom: 0;
}

.day-schedule label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.day-schedule input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--copper-dark);
}

.day-schedule input[type="time"] {
  width: 100%;
  min-height: 37px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
}

.setup-callout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e7cca7;
  border-radius: 13px;
  color: #735631;
  background: var(--warning-soft);
}

.setup-callout strong {
  display: block;
  font-size: 12px;
}

.setup-callout p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 20px;
  color: #8a817a;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--copper);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  width: min(370px, calc(100% - 36px));
  gap: 9px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.45;
  animation: toast-in 180ms ease-out both;
}

.toast::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--copper);
  content: "";
}

.toast.is-success::before {
  background: var(--success);
}

.toast.is-error::before {
  background: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(34, 27, 23, 0.52);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.modal h2 {
  margin: 0;
  font-family: "Italiana", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.modal p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Área da cliente */
#customer-view {
  width: min(1080px, calc(100% - 36px));
  margin: 30px auto 56px;
}

.signed-in-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -7px 0 20px;
  padding: 11px 13px;
  border: 1px solid #d8e7dc;
  border-radius: 12px;
  color: #456553;
  background: var(--success-soft);
  font-size: 11px;
  line-height: 1.5;
}

.signed-in-note.is-neutral {
  border-color: var(--line);
  color: var(--muted);
  background: var(--surface-soft);
}

.signed-in-note > svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.signed-in-note .text-button {
  padding: 0;
  font-size: inherit;
}

.customer-access-wrap {
  display: grid;
  min-height: 640px;
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.customer-access-visual {
  display: grid;
  align-content: center;
  padding: clamp(36px, 5vw, 62px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(220, 169, 134, 0.3), transparent 18rem),
    #44362d;
}

.customer-visual-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: #f4d8c5;
  background: rgba(255, 255, 255, 0.08);
}

.customer-visual-mark svg {
  width: 29px;
  height: 29px;
}

.customer-access-visual .eyebrow {
  color: #ddb99f;
}

.customer-access-visual h2 {
  max-width: 430px;
  margin: 8px 0 0;
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
}

.customer-access-visual > p:not(.eyebrow) {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.7;
}

.customer-benefits {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.customer-benefits span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.customer-benefits svg {
  width: 17px;
  height: 17px;
  color: #e4bda1;
}

.customer-access-card {
  display: grid;
  align-content: center;
  padding: clamp(32px, 6vw, 70px);
}

.customer-access-card > .eyebrow {
  color: var(--copper);
}

.customer-access-card > h1,
.customer-profile-heading h1 {
  margin: 6px 0 0;
  font-family: "Italiana", Georgia, serif;
  font-size: clamp(32px, 4vw, 43px);
  font-weight: 400;
  line-height: 1.12;
}

.customer-access-card > p:not(.eyebrow) {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.account-tabs button {
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.account-tabs button.is-active {
  color: var(--copper-dark);
  background: #fff;
  box-shadow: 0 3px 12px rgba(89, 60, 39, 0.08);
}

.customer-password-grid {
  gap: 12px;
}

.account-privacy {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.customer-dashboard {
  display: grid;
  gap: 18px;
}

.customer-dashboard-header,
.customer-panel,
.customer-stats article {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.customer-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.customer-profile-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.customer-profile-heading .eyebrow {
  color: var(--copper);
}

.customer-profile-heading h1 {
  font-size: 34px;
}

.customer-profile-heading p:last-child {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
}

.customer-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--copper);
  font-family: "Italiana", Georgia, serif;
  font-size: 21px;
  letter-spacing: 0.04em;
}

.customer-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.customer-stats {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 18px;
}

.customer-stats article {
  display: grid;
  align-content: center;
  min-height: 128px;
  padding: 22px;
  border-radius: var(--radius);
}

.customer-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-stats strong {
  margin-top: 5px;
  font-family: "Italiana", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.customer-stats small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.customer-next-card {
  color: #fff;
  background: #44362d !important;
}

.customer-next-card span,
.customer-next-card small {
  color: rgba(255, 255, 255, 0.66);
}

.customer-next-card strong {
  font-size: 25px;
}

.customer-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.customer-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.customer-panel-heading .eyebrow {
  color: var(--copper);
}

.customer-panel-heading h2 {
  margin: 4px 0 0;
  font-family: "Italiana", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.customer-appointments-list {
  display: grid;
  gap: 10px;
}

.customer-appointment-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.customer-date-tile {
  display: grid;
  min-height: 61px;
  place-content: center;
  border-radius: 11px;
  color: var(--copper-dark);
  background: var(--blush);
  text-align: center;
}

.customer-date-tile strong {
  font-size: 19px;
  line-height: 1;
}

.customer-date-tile small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.customer-appointment-copy {
  min-width: 0;
}

.customer-appointment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-appointment-title > strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.customer-appointment-copy p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.customer-appointment-copy p svg {
  width: 15px;
  height: 15px;
}

.customer-appointment-copy > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 980px) {
  .booking-shell {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .brand-panel {
    padding: 34px;
  }

  .logo-window {
    transform: scale(0.88);
    transform-origin: left center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-card {
    grid-template-columns: 68px minmax(170px, 1fr) auto;
  }

  .appointment-service {
    grid-column: 2;
  }

  .appointment-actions {
    grid-row: 1 / span 2;
    grid-column: 3;
  }
}

@media (max-width: 1180px) {
  .two-column-admin {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 10px 15px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .nav-button {
    min-height: 40px;
    padding: 8px 11px;
  }

  .nav-button span {
    display: none;
  }

  .booking-shell {
    width: min(100% - 24px, 650px);
    min-height: auto;
    grid-template-columns: 1fr;
    margin: 18px auto 32px;
  }

  .brand-panel {
    min-height: 230px;
    padding: 25px;
  }

  .logo-window {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 150px;
    height: auto;
    margin: 0;
    opacity: 0.96;
    transform: none;
  }

  .logo-window img {
    width: 100%;
  }

  .brand-panel-copy {
    max-width: 72%;
  }

  .brand-panel h1 {
    font-size: 34px;
  }

  .brand-panel-copy > p:last-child {
    margin-top: 12px;
    font-size: 12px;
  }

  .trust-list {
    margin-top: 18px;
  }

  .booking-card {
    padding: 24px 20px;
  }

  .booking-content {
    min-height: 460px;
  }

  .admin-login-wrap {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .customer-access-wrap {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .customer-access-visual {
    display: none;
  }

  .customer-access-card {
    min-height: 620px;
  }

  .customer-dashboard-header {
    align-items: flex-start;
  }

  .customer-header-actions {
    max-width: 250px;
  }

  .admin-login-visual {
    display: none;
  }

  .admin-login {
    min-height: 560px;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    min-height: auto;
    padding: 16px;
  }

  .sidebar-brand {
    padding-bottom: 14px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
  }

  .sidebar-button {
    justify-content: center;
    padding: 8px;
    text-align: center;
  }

  .sidebar-button span {
    display: none;
  }

  .sidebar-button.is-active {
    box-shadow: inset 0 -3px 0 #d8a988;
  }

  .sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .sidebar-user {
    min-width: 0;
    margin: 0;
  }

  .logout-button {
    width: auto;
  }

  .admin-main {
    padding: 20px 16px;
  }

  .two-column-admin {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .demo-banner {
    align-items: flex-start;
    padding: 8px 14px;
    font-size: 10px;
    text-align: left;
  }

  .booking-shell {
    width: 100%;
    margin: 0 0 24px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-panel {
    min-height: 210px;
  }

  .logo-window {
    top: 19px;
    right: 12px;
    width: 128px;
    height: auto;
  }

  .logo-window img {
    width: 100%;
  }

  .brand-panel-copy {
    max-width: 78%;
  }

  .brand-panel h1 {
    font-size: 30px;
  }

  .trust-list {
    gap: 10px;
    font-size: 10px;
  }

  .stepper {
    margin-bottom: 27px;
  }

  .step-label {
    display: none;
  }

  .booking-content {
    min-height: 445px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .services-grid,
  .date-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 88px;
  }

  .time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booking-actions {
    align-items: stretch;
  }

  .booking-actions .button {
    flex: 1;
  }

  #admin-view {
    width: 100%;
    margin: 0 0 30px;
  }

  #customer-view {
    width: 100%;
    margin: 0 0 30px;
  }

  .customer-access-wrap,
  .customer-dashboard-header,
  .customer-panel,
  .customer-stats article {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .customer-access-card {
    min-height: 580px;
    padding: 28px 20px;
  }

  .customer-dashboard {
    gap: 12px;
  }

  .customer-dashboard-header {
    display: grid;
    padding: 20px;
  }

  .customer-header-actions {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .customer-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .customer-panel {
    padding: 17px;
  }

  .customer-appointment-title {
    display: grid;
    justify-content: start;
  }

  .admin-login-wrap,
  .admin-shell {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .admin-login {
    min-height: 560px;
    padding: 28px 20px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 13px;
  }

  .stat-card strong {
    font-size: 27px;
  }

  .admin-topbar {
    align-items: center;
  }

  .admin-topbar .button span {
    display: none;
  }

  .admin-panel {
    padding: 15px;
  }

  .panel-heading {
    display: grid;
  }

  .appointment-card {
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
  }

  .appointment-time {
    grid-row: 1 / span 2;
  }

  .appointment-service {
    grid-column: 2;
  }

  .appointment-actions {
    grid-row: auto;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .day-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0;
  }

  .day-schedule label {
    grid-column: 1 / -1;
  }

  .setup-callout {
    display: grid;
  }

  .site-footer {
    min-height: 48px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
