:root {
  --bg: #f3f6f1;
  --bg-strong: #dce6d6;
  --text: #233127;
  --muted: #617064;
  --primary: #556b2f;
  --primary-dark: #3d4f25;
  --secondary: #8ba46f;
  --card: #ffffff;
  --line: #d7dfd2;
  --success: #3f7548;
  --danger: #b54848;
  --warning: #b77b22;
  --shadow: 0 18px 45px rgba(46, 66, 45, 0.12);
  --soft-shadow: 0 10px 25px rgba(46, 66, 45, 0.08);
  --radius: 22px;
  --mobile-radius: 18px;
  --tap: 46px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 164, 111, 0.24), transparent 28rem),
    linear-gradient(135deg, #f8fbf6 0%, var(--bg) 45%, #e9f0e4 100%);
  color: var(--text);
}

body::after {
  content: '';
  position: fixed;
  inset: auto 0 0 0;
  height: env(safe-area-inset-bottom);
  background: var(--bg);
  pointer-events: none;
}

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

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(243, 246, 241, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 223, 210, 0.85);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: var(--soft-shadow);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  white-space: normal;
}

.brand small {
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-actions,
.hero-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  min-height: var(--tap);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.05rem;
  color: var(--text);
  background: #e7eee1;
  transition: 0.2s ease;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(46, 66, 45, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-danger {
  background: #ffe8e8;
  color: var(--danger);
}

.btn-small {
  min-height: 38px;
  padding: 0.5rem 0.72rem;
  font-size: 0.86rem;
}

.btn-large {
  padding: 0.95rem 1.3rem;
}

.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(85, 107, 47, 0.12);
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
}

.hero h1 {
  margin: 1rem 0;
  max-width: 740px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.demo-box,
.notice-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.demo-box p,
.notice-box p {
  margin: 0.35rem 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hero-card {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.phone-mock {
  width: min(320px, 84vw);
  height: 560px;
  border: 13px solid #2b3527;
  border-radius: 42px;
  background: #fbfdf9;
  box-shadow: var(--shadow);
  position: relative;
  padding: 1.3rem;
}

.phone-notch {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 20px;
  border-radius: 999px;
  background: #2b3527;
}

.phone-screen {
  height: 100%;
  padding: 4rem 1rem 1rem;
  background:
    linear-gradient(180deg, rgba(139, 164, 111, 0.22), transparent 60%),
    white;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.8rem;
}

.phone-screen h3 {
  margin: 0;
  font-size: 2rem;
}

.floating-card {
  position: absolute;
  width: 230px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.floating-card small,
.floating-card span {
  display: block;
  color: var(--muted);
}

.floating-card strong {
  display: block;
  margin: 0.25rem 0;
}

.card-one {
  left: 0;
  top: 4.5rem;
}

.card-two {
  right: 0;
  bottom: 5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill.success,
.status-confirmado,
.status-pago,
.status-concluido {
  color: var(--success);
  background: rgba(47, 140, 99, 0.12);
}

.status-pendente,
.status-aguardando_pagamento {
  color: var(--warning);
  background: rgba(183, 123, 34, 0.13);
}

.status-cancelado {
  color: var(--danger);
  background: rgba(181, 72, 72, 0.12);
}

.features-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
}

.feature-card,
.stat-card,
.card,
.auth-card,
.panel,
.sidebar {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card,
.stat-card,
.card {
  padding: 1.2rem;
}

.feature-card span {
  color: var(--secondary);
  font-weight: 900;
}

.feature-card h3,
.stat-card h3,
.card h3 {
  margin: 0.5rem 0;
}

.feature-card p,
.stat-card p,
.card p {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.auth-shell {
  min-height: calc(100vh - 82px);
  min-height: calc(100dvh - 82px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(470px, 100%);
  padding: clamp(1.3rem, 4vw, 2rem);
}

.auth-card h2 {
  font-size: 2rem;
  margin: 1rem 0 0.5rem;
}

.auth-card p {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.88rem 0.95rem;
  background: white;
  color: var(--text);
  outline: none;
  font-size: 16px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(85, 107, 47, 0.12);
}

.link-btn {
  min-height: var(--tap);
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 900;
  margin-top: 1rem;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 1.1rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
}

.sidebar h2 {
  margin: 0.7rem 0 0.5rem;
  line-height: 1.05;
}

.side-link {
  width: 100%;
  min-height: var(--tap);
  text-align: left;
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 0.9rem 1rem;
  font-weight: 900;
  color: var(--text);
  touch-action: manipulation;
}

.side-link.active,
.side-link:hover {
  background: var(--bg-strong);
  color: var(--primary-dark);
}

.panel {
  min-width: 0;
  min-height: 72vh;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.panel-header h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.service-list,
.appointment-list,
.client-list {
  display: grid;
  gap: 0.8rem;
}

.item-card {
  min-width: 0;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.item-card h3 {
  margin: 0 0 0.25rem;
}

.item-card p {
  margin: 0.25rem 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.6rem;
}

.slot-btn {
  min-height: var(--tap);
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 0.8rem;
  font-weight: 900;
  touch-action: manipulation;
}

.slot-btn.active {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
}

.slot-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  text-decoration: line-through;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table th,
.table td {
  padding: 0.82rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.3rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border-radius: 16px;
  color: white;
  background: var(--primary-dark);
  box-shadow: var(--shadow);
  font-weight: 900;
  text-align: center;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(50, 37, 31, 0.45);
}

.modal-card {
  width: min(620px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
  overflow: auto;
  background: white;
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .dashboard-shell,
  .grid-2,
  .grid-3,
  .features-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 460px;
  }

  .phone-mock {
    height: 500px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --radius: var(--mobile-radius);
    --shadow: 0 8px 22px rgba(46, 66, 45, 0.08);
  }

  .topbar {
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
  }

  .brand-mark {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 0.9rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    display: none;
  }

  .nav-actions {
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  .nav-actions .btn {
    min-height: 40px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .btn-ghost[data-screen="home"] {
    display: none;
  }

  .hero {
    padding: 1.25rem 0.85rem 1.5rem;
    gap: 1.25rem;
  }

  .hero-content {
    text-align: left;
  }

  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0.38rem 0.62rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.45rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-actions .btn,
  .auth-card .btn,
  #confirm-appointment,
  #settings-form .btn,
  #service-form .btn {
    width: 100%;
  }

  .demo-box,
  .notice-box {
    margin-top: 1rem;
    padding: 0.9rem;
  }

  .hero-card {
    min-height: auto;
  }

  .floating-card {
    display: none;
  }

  .phone-mock {
    width: min(260px, 82vw);
    height: 430px;
    border-width: 10px;
    border-radius: 36px;
    padding: 1rem;
  }

  .phone-screen {
    border-radius: 25px;
    padding: 3.5rem .9rem .9rem;
  }

  .phone-screen h3 {
    font-size: 1.5rem;
  }

  .features-grid,
  .stats-grid {
    gap: 0.75rem;
    padding: 0 0.85rem 1.5rem;
  }

  .feature-card,
  .stat-card,
  .card,
  .auth-card,
  .panel,
  .sidebar {
    border-radius: var(--mobile-radius);
  }

  .feature-card,
  .stat-card,
  .card,
  .panel {
    padding: 0.95rem;
  }

  .auth-shell {
    min-height: calc(100dvh - 62px);
    align-items: start;
    padding: 1rem 0.85rem 1.5rem;
  }

  .auth-card h2 {
    font-size: 1.65rem;
  }

  .dashboard-shell {
    display: block;
    padding: 0.75rem 0.75rem calc(1rem + env(safe-area-inset-bottom));
  }

  .sidebar {
    position: sticky;
    top: 62px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar > div {
    flex: 0 0 auto;
    max-width: 150px;
  }

  .sidebar h2 {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar .eyebrow {
    font-size: 0.56rem;
  }

  .side-link {
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    background: #fff7f2;
    border: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
    font-size: 0.86rem;
  }

  .panel {
    min-height: auto;
    padding: 0.9rem;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .panel-header h2 {
    font-size: 1.55rem;
  }

  .panel-header .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3 {
    gap: 0.75rem;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .slot-btn {
    padding: 0.72rem 0.3rem;
    border-radius: 12px;
    font-size: 0.9rem;
  }

  .item-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .item-card-header .status-pill {
    align-self: flex-start;
  }

  .row-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 0.55rem;
  }

  .row-actions .btn {
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0.65rem;
  }

  .modal-card {
    width: 100%;
    max-height: calc(94dvh - env(safe-area-inset-bottom));
    border-radius: 22px 22px 12px 12px;
    padding: 1rem;
  }

  .modal-header {
    align-items: flex-start;
  }

  .modal-header h2 {
    font-size: 1.45rem;
  }

  .toast {
    width: calc(100vw - 1.5rem);
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    width: 100%;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .nav-actions .btn-primary:last-child:nth-child(3),
  .nav-actions .btn:nth-child(3) {
    grid-column: 1 / -1;
  }

  .btn-ghost[data-screen="home"] {
    display: none;
  }

  .phone-mock {
    display: none;
  }

  .hero-card {
    display: none;
  }

  .demo-box p {
    font-size: .92rem;
  }

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

  .table-wrap {
    overflow: visible;
  }

  .table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: var(--soft-shadow);
  }

  .table td {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1e3da;
    overflow-wrap: anywhere;
  }

  .table td:last-child {
    border-bottom: 0;
  }

  .table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .table td .row-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .brand strong {
    font-size: 0.86rem;
  }

  .nav-actions .btn,
  .side-link {
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .slot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .table td {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ===== ECM v2 ===== */
.app-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(243, 246, 241, .88);
  backdrop-filter: blur(8px);
}
.loading-card {
  padding: 1rem 1.4rem;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 900;
}
.page-shell { padding: clamp(1rem, 3vw, 2rem); }
.section-title { margin: 0 0 .35rem; }
.section-subtitle { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.55; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.choice-card {
  width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 20px; background: white;
  padding: 1.1rem; color: var(--text); transition: .2s ease; min-height: 130px;
}
.choice-card:hover, .choice-card.active { border-color: var(--primary); box-shadow: var(--soft-shadow); transform: translateY(-1px); }
.choice-card strong { display:block; font-size:1.08rem; margin-bottom:.35rem; }
.choice-card span { color:var(--muted); line-height:1.45; }
.stepper { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.2rem; }
.step-chip { padding:.45rem .7rem; border-radius:999px; background:#f3e4da; color:var(--muted); font-weight:800; font-size:.78rem; }
.step-chip.active { background:var(--primary); color:white; }
.date-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:.7rem; }
.date-btn { min-height:76px; border:1px solid var(--line); border-radius:16px; background:white; font-weight:900; color:var(--text); padding:.8rem; }
.date-btn.active { background:var(--primary); color:white; border-color:var(--primary); }
.date-btn small { display:block; margin-top:.2rem; font-weight:700; opacity:.75; }
.summary-card { background:#fffaf7; border:1px solid var(--line); border-radius:18px; padding:1rem; }
.summary-row { display:flex; justify-content:space-between; gap:1rem; padding:.45rem 0; border-bottom:1px dashed var(--line); }
.summary-row:last-child { border-bottom:0; }
.summary-row span { color:var(--muted); }
.payment-choice { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.payment-option { border:1px solid var(--line); border-radius:16px; padding:1rem; background:white; cursor:pointer; }
.payment-option.active { border-color:var(--primary); box-shadow:0 0 0 3px rgba(155,96,73,.10); }
.payment-option input { width:auto; min-height:auto; margin-right:.45rem; }
.google-btn { display:flex; align-items:center; justify-content:center; gap:.65rem; }
.google-mark { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:white; color:#4285f4; font-weight:900; }
.config-warning { margin:1rem auto; max-width:760px; padding:1rem; border-radius:18px; background:#fff3cd; color:#694f00; border:1px solid #eed58a; }
.inline-actions { display:flex; gap:.6rem; flex-wrap:wrap; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.badge { display:inline-flex; align-items:center; width:fit-content; border-radius:999px; padding:.3rem .6rem; font-size:.75rem; font-weight:900; background:#f3e4da; }
.badge.admin { background:#ece4ff; color:#5c3d8f; }
.badge.pending { background:#fff1cf; color:#8a650d; }
.badge.confirmed { background:#ddf5ea; color:#256a4d; }
.badge.cancelled { background:#ffe4e4; color:#9c3939; }
.address-grid { display:grid; grid-template-columns:1fr 130px; gap:.8rem; }
.admin-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; align-items:end; }
.admin-form .span-2 { grid-column:span 2; }
.admin-form .span-all { grid-column:1/-1; }
.kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; margin-bottom:1rem; }
.kpi-card { padding:1rem; background:white; border:1px solid var(--line); border-radius:18px; }
.kpi-card strong { display:block; font-size:1.5rem; margin-top:.35rem; }
.kpi-card span { color:var(--muted); font-size:.8rem; font-weight:800; }
.list-stack { display:grid; gap:.75rem; }
.list-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1rem; align-items:center; padding:1rem; border:1px solid var(--line); border-radius:18px; background:white; }
.list-row p { margin:.25rem 0 0; color:var(--muted); }
.empty-inline { color:var(--muted); padding:1rem 0; }

@media (max-width: 920px) {
  .choice-grid, .payment-choice, .kpi-grid { grid-template-columns:1fr 1fr; }
  .admin-form { grid-template-columns:1fr 1fr; }
}
@media (max-width: 620px) {
  .choice-grid, .payment-choice, .kpi-grid, .admin-form, .address-grid { grid-template-columns:1fr; }
  .admin-form .span-2 { grid-column:span 1; }
  .summary-row { align-items:flex-start; flex-direction:column; gap:.15rem; }
  .list-row { grid-template-columns:1fr; }
}

/* Página pública simplificada */
.hero-clean { min-height: calc(100vh - 82px); }
.hero-card-clean { min-height: 500px; }
.auth-card-clean { text-align: left; }
.auth-card-clean .google-btn { margin-top: 1.25rem; }
@media (max-width: 980px) {
  .hero-clean { min-height: auto; }
  .hero-card-clean { min-height: 430px; }
}


/* Landing page */
.landing-hero,
.landing-section,
.landing-cta {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0 4rem;
}

.landing-hero-copy h1 {
  margin: 1rem 0 1.2rem;
  max-width: 820px;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.landing-lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.7rem;
}

.landing-actions .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}

.trust-pill {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.66);
}

.trust-pill strong,
.trust-pill span { display:block; }
.trust-pill strong { color: var(--primary-dark); font-size: 1.05rem; }
.trust-pill span { color: var(--muted); font-size: .86rem; margin-top: .2rem; }

.landing-hero-media { position: relative; }
.portrait-frame {
  position: relative;
  max-width: 480px;
  margin-left: auto;
  border-radius: 36px;
  overflow: hidden;
  min-height: 620px;
  background: #dce6d6;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(35,49,39,.55) 100%);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.portrait-badge {
  position: absolute;
  z-index: 2;
  left: 1.2rem;
  bottom: 1.2rem;
  right: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(248,251,246,.92);
  backdrop-filter: blur(12px);
  color: var(--text);
}
.portrait-badge span,
.portrait-badge strong { display:block; }
.portrait-badge span { color: var(--muted); font-size:.82rem; }
.portrait-badge strong { margin-top:.2rem; font-size:1.08rem; }

.landing-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-kicker {
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: .72rem;
  margin-bottom: 1rem;
}
.section-heading-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-heading-grid h2,
.reviews-topline h2,
.landing-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.section-heading-grid p,
.landing-cta p { margin:0; color:var(--muted); line-height:1.7; }

.specialty-grid,
.review-grid,
.location-grid {
  display: grid;
  gap: 1rem;
}
.specialty-grid,
.review-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.location-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

.specialty-card,
.review-card,
.location-card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
}
.specialty-card span { color: var(--secondary); font-weight:900; }
.specialty-card h3,
.location-card h3 { margin:.7rem 0 .4rem; font-size:1.35rem; }
.specialty-card p,
.location-card p,
.review-card span { color:var(--muted); line-height:1.6; }

.locations-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.location-card { min-height: 250px; display:flex; flex-direction:column; align-items:flex-start; }
.location-card .btn { margin-top:auto; }
.featured-location {
  background: linear-gradient(145deg, var(--primary-dark), #607443);
  color: white;
  border-color: transparent;
}
.featured-location p { color: rgba(255,255,255,.78); }
.featured-location .btn-primary { background:white; color:var(--primary-dark); }
.location-type {
  display:inline-flex;
  padding:.35rem .65rem;
  border-radius:999px;
  background:rgba(85,107,47,.12);
  color:var(--primary-dark);
  font-size:.75rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.featured-location .location-type { background:rgba(255,255,255,.14); color:white; }

.reviews-topline {
  display:flex;
  justify-content:space-between;
  gap:2rem;
  align-items:end;
  margin-bottom:2rem;
}
.google-score { text-align:right; }
.google-score strong,
.google-score span,
.google-score small { display:block; }
.google-score strong { font-size:2.6rem; line-height:1; }
.google-score span { color:#b58521; letter-spacing:.1em; margin:.3rem 0; }
.google-score small { color:var(--muted); }
.review-card { min-height: 260px; display:flex; flex-direction:column; }
.review-stars { color:#b58521; letter-spacing:.08em; }
.review-card p { color:var(--text); line-height:1.7; font-size:1.02rem; flex:1; }
.review-card strong { margin-bottom:.2rem; }
.review-card span { font-size:.85rem; }

.landing-cta {
  margin-bottom: 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  display:grid;
  grid-template-columns: 1fr auto;
  gap:2rem;
  align-items:end;
  border-radius:32px;
  background: #dfe8da;
  border:1px solid var(--line);
}
.landing-actions-bottom { margin:0; justify-content:flex-end; }

@media (max-width: 900px) {
  .landing-hero,
  .section-heading-grid,
  .landing-cta { grid-template-columns: 1fr; }
  .landing-hero { padding-top:2rem; }
  .portrait-frame { margin:0 auto; min-height:520px; }
  .portrait-frame img { min-height:520px; }
  .specialty-grid,
  .review-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns:1fr; }
  .trust-row { grid-template-columns:1fr; }
  .reviews-topline { align-items:flex-start; }
  .google-score { text-align:left; }
  .landing-actions-bottom { justify-content:flex-start; }
}

@media (max-width: 600px) {
  .landing-hero,
  .landing-section,
  .landing-cta { width:min(100% - 1.3rem, 1180px); }
  .landing-hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .landing-actions { display:grid; grid-template-columns:1fr; }
  .landing-actions .btn { width:100%; }
  .portrait-frame { min-height:460px; border-radius:26px; }
  .portrait-frame img { min-height:460px; }
  .reviews-topline { display:grid; grid-template-columns:1fr; }
}

.landing-footer {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto 2.8rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.landing-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.landing-footer strong {
  color: var(--primary-dark);
  font-weight: 800;
}
.reviews-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.reviews-actions .btn {
  min-width: 190px;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 640px) {
  .reviews-actions {
    flex-direction: column;
  }

  .reviews-actions .btn {
    width: 100%;
  }
}
.availability-break {
  border: 1px solid rgba(85, 107, 47, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(85, 107, 47, 0.04);
}

.break-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.break-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.break-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.break-time-grid.active {
  opacity: 1;
}

.break-help {
  display: block;
  margin-top: 12px;
  opacity: 0.7;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .availability-form {
    grid-template-columns: 1fr;
  }

  .availability-form .span-2,
  .availability-form .span-all {
    grid-column: 1 / -1;
  }

  .break-time-grid {
    grid-template-columns: 1fr;
  }

  .availability-break {
    padding: 15px;
  }

  .availability-form .btn {
    width: 100%;
  }
}