:root {
  --bg: #f7f8f5;
  --ink: #13211c;
  --muted: #5b6963;
  --surface: #ffffff;
  --surface-strong: #eef2ea;
  --line: #dce3d8;
  --accent: #0f7c58;
  --accent-dark: #0a5c42;
  --coral: #f26a4f;
  --dark: #12231d;
  --shadow: 0 18px 55px rgba(18, 35, 29, 0.14);
  --radius: 8px;
  --chat-width: min(420px, calc(100vw - 28px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.88);
  border-bottom: 1px solid rgba(220, 227, 216, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.location-actions,
.admin-input-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius);
}

.site-nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.header-cta,
.primary-button,
.secondary-button,
.chat-form button,
.whatsapp-button,
.admin-form button {
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
}

.header-cta {
  padding: 10px 15px;
  color: #ffffff;
  background: var(--dark);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 112px clamp(20px, 7vw, 88px) 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 35, 29, 0.92), rgba(18, 35, 29, 0.68) 46%, rgba(18, 35, 29, 0.2)),
    url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=1800&q=82")
      center right / cover;
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(247, 248, 245, 0), var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(710px, 100%);
}

.hero-label,
.section-heading span,
.location-section span {
  display: block;
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.4rem, 15vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero p {
  width: min(580px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.03rem, 1.8vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
}

.primary-button {
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 12px 32px rgba(242, 106, 79, 0.28);
}

.primary-button:hover {
  background: #d9543b;
}

.secondary-button {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.secondary-button.dark {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.primary-button.compact {
  min-height: 44px;
  box-shadow: none;
}

.intro-band {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 32px));
  margin: -42px auto 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-grid article {
  min-height: 118px;
  padding: 22px;
  background: var(--surface);
}

.intro-grid strong,
.intro-grid span {
  display: block;
}

.intro-grid strong {
  font-size: 1.05rem;
}

.intro-grid span {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  width: min(700px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.location-section h2,
.admin-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.location-section p,
.admin-hero p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.plan-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.plan-card strong {
  display: block;
  margin: 26px 0 12px;
  color: var(--accent-dark);
  font-size: 1.35rem;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
}

.featured-plan {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.featured-plan strong,
.featured-plan p {
  color: #ffffff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 7vw, 76px);
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--dark);
  border-radius: var(--radius);
  font-weight: 900;
}

.benefit-list h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
}

.location-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 130px;
  padding: clamp(28px, 5vw, 52px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 35, 29, 0.96), rgba(15, 124, 88, 0.88)),
    url("https://images.unsplash.com/photo-1594737625785-a6cbdabd333c?auto=format&fit=crop&w=1400&q=80")
      center / cover;
  border-radius: var(--radius);
  overflow: hidden;
}

.location-section p {
  color: rgba(255, 255, 255, 0.8);
}

.location-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--dark);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.chat-fab span:first-child {
  color: var(--coral);
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 40;
  width: var(--chat-width);
  max-height: min(710px, calc(100svh - 116px));
  display: none;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 90px rgba(8, 20, 16, 0.28);
}

.chat-widget.is-open {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: #ffffff;
  background: var(--dark);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header strong {
  font-size: 1rem;
}

.chat-header span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.icon-button {
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: var(--radius);
  font-size: 1.35rem;
  line-height: 1;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 16px;
  overflow-y: auto;
  background: #f8faf7;
}

.message {
  width: fit-content;
  max-width: 86%;
  padding: 11px 13px;
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
}

.message-assistant {
  align-self: flex-start;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.message-user {
  align-self: flex-end;
  color: #ffffff;
  background: var(--accent);
}

.day-selector {
  width: 100%;
  max-width: 100%;
  padding: 12px;
}

.day-selector-inner {
  display: grid;
  gap: 10px;
}

.day-selector-inner strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.day-selector-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.day-option-button {
  min-height: 42px;
  padding: 8px;
  color: var(--accent-dark);
  background: #eef6f1;
  border: 1px solid #d3eadc;
  border-radius: var(--radius);
  font-weight: 800;
}

.day-option-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 124, 88, 0.1);
}

.availability-calendar {
  width: 100%;
  max-width: 100%;
  padding: 12px;
}

.availability-calendar-inner {
  display: grid;
  gap: 12px;
}

.availability-calendar-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.availability-calendar-title strong,
.availability-calendar-title span,
.availability-day header span,
.availability-day header strong {
  display: block;
}

.availability-calendar-title span,
.availability-day header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.availability-day {
  padding: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.availability-day header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

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

.slot-button {
  min-height: 54px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
}

.slot-button strong,
.slot-button span {
  display: block;
}

.slot-button strong {
  font-size: 0.86rem;
}

.slot-button span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.slot-button.is-available {
  border-color: #bfdccb;
}

.slot-button.is-low {
  border-color: #f1b8a8;
  background: #fff7f3;
}

.slot-button.is-full {
  opacity: 0.55;
  cursor: not-allowed;
}

.slot-button:not(:disabled):hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 124, 88, 0.1);
}

.more-days-button {
  min-height: 40px;
  color: var(--accent-dark);
  background: #eef6f1;
  border: 1px solid #d3eadc;
  border-radius: var(--radius);
  font-weight: 800;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 58px;
}

.typing span {
  width: 7px;
  height: 7px;
  background: var(--muted);
  border-radius: 50%;
  animation: pulse 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.typing span:nth-child(3) {
  animation-delay: 0.32s;
}

.quick-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  overflow-x: auto;
  background: #ffffff;
}

.quick-actions button {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--accent-dark);
  background: #eef6f1;
  border: 1px solid #d3eadc;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.whatsapp-panel {
  padding: 12px 16px 0;
  background: #ffffff;
}

.whatsapp-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #1fae64;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 16px 16px;
  background: #ffffff;
}

.chat-form input,
.admin-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  outline: 0;
}

.chat-form input {
  height: 46px;
  padding: 0 12px;
}

.chat-form input:focus,
.admin-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 124, 88, 0.12);
}

.chat-form button {
  min-width: 82px;
  color: #ffffff;
  background: var(--dark);
}

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

.admin-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at top left, rgba(15, 124, 88, 0.16), transparent 32rem),
    var(--bg);
}

.admin-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.admin-hero {
  padding: 34px 0 26px;
}

.admin-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-weight: 800;
}

.admin-panel {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-input-row {
  gap: 10px;
}

.admin-form input {
  height: 46px;
  padding: 0 12px;
}

.admin-form button {
  min-height: 46px;
  min-width: 104px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--dark);
  white-space: nowrap;
}

.admin-status {
  min-height: 24px;
  margin: 18px 0;
  color: var(--muted);
}

.leads-list {
  display: grid;
  gap: 14px;
}

.lead-card,
.lead-empty {
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lead-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.lead-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.lead-card h2 {
  margin: 6px 0;
  font-size: 1.25rem;
}

.lead-card p {
  margin: 0;
  color: var(--muted);
}

.lead-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.lead-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-card dd {
  margin: 2px 0 0;
  word-break: break-word;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 84svh;
    background-position: center;
  }

  .intro-grid,
  .plans-grid,
  .split-section,
  .lead-card {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    gap: 12px;
  }

  .plan-card {
    min-height: 190px;
  }

  .location-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .location-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 82svh;
    padding: 96px 18px 72px;
    background:
      linear-gradient(180deg, rgba(18, 35, 29, 0.92), rgba(18, 35, 29, 0.62)),
      url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=1000&q=78")
        center / cover;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 24vw, 6.6rem);
  }

  .hero-actions,
  .location-actions,
  .admin-input-row {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .admin-form button {
    width: 100%;
  }

  .intro-band {
    margin-top: -30px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading,
  .section-heading.align-left {
    text-align: left;
  }

  .chat-fab {
    right: 14px;
    bottom: 14px;
  }

  .chat-widget {
    right: 14px;
    bottom: 78px;
  }

  .chat-widget.is-open {
    max-height: calc(100svh - 92px);
  }

  .lead-card dl {
    grid-template-columns: 1fr;
  }
}
