@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --bg: #f7f1e8;
  --bg-deep: #102331;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdf9;
  --ink: #1c2430;
  --muted: #61707f;
  --brand: #c86731;
  --brand-dark: #8f3f16;
  --accent: #0e5f64;
  --line: rgba(26, 42, 58, 0.11);
  --success-bg: #ddf5e6;
  --success-ink: #155b31;
  --error-bg: #fee3de;
  --error-ink: #9f2d1a;
  --shadow: 0 24px 60px rgba(18, 31, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 211, 162, 0.55), transparent 28%),
    radial-gradient(circle at right 10%, rgba(127, 192, 188, 0.35), transparent 22%),
    linear-gradient(180deg, #f6efe5 0%, #fbfaf8 42%, #f4f8fb 100%);
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-shell,
.dashboard-shell,
.login-shell {
  min-height: 100vh;
}

.hero-wrap {
  padding: 24px 0 28px;
}

.topbar,
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #e29f47);
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 30px rgba(200, 103, 49, 0.28);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.hero-panel,
.panel,
.login-card,
.metric-card,
.process-card,
.service-card,
.contact-card {
  backdrop-filter: blur(16px);
}

.hero-panel {
  margin-top: 26px;
  padding: 32px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.8fr);
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(16, 35, 49, 0.97), rgba(27, 54, 75, 0.92)),
    linear-gradient(135deg, rgba(200, 103, 49, 0.2), transparent);
  color: #fff8f1;
  box-shadow: 0 34px 70px rgba(16, 35, 49, 0.28);
}

.hero-copy h2 {
  margin-top: 14px;
  max-width: 12ch;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
}

.hero-copy p,
.section-copy,
.process-card p,
.service-card ul,
.service-card p,
.form-footnote,
.login-copy,
.empty-state p,
.mini-note,
.contact-list span {
  color: var(--muted);
}

.hero-copy p,
.contact-card,
.mini-note {
  color: rgba(255, 248, 241, 0.84);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions,
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button-primary,
.button-secondary,
.ghost-link,
.floating-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--brand), #dd8a3f);
  box-shadow: 0 18px 28px rgba(200, 103, 49, 0.28);
  cursor: pointer;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.ghost-link {
  border: 1px solid rgba(28, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.button-primary:hover,
.button-secondary:hover,
.ghost-link:hover,
.floating-whatsapp:hover {
  transform: translateY(-1px);
}

.button-primary.full,
.request-form .button-primary,
.login-form .button-primary {
  width: 100%;
}

.button-secondary.small {
  padding: 11px 16px;
}

.stats-grid,
.process-grid,
.metrics-row {
  display: grid;
  gap: 16px;
}

.stats-grid {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-side {
  display: flex;
}

.contact-card {
  width: 100%;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-list {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-list strong {
  text-align: right;
  color: white;
}

.mini-note {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
  line-height: 1.6;
}

.section-block {
  padding: 28px 0 36px;
}

.section-block.soft {
  padding-top: 12px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-copy {
  max-width: 520px;
  line-height: 1.7;
}

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

.process-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.process-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: rgba(200, 103, 49, 0.12);
  color: var(--brand-dark);
  font-weight: 800;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.panel {
  padding: 26px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 22px;
}

.panel-head.row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.services-panel {
  position: relative;
}

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

.service-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(26, 42, 58, 0.08);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.service-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
  line-height: 1.65;
}

.service-card p {
  margin: 0;
  font-weight: 800;
  color: var(--accent);
}

.request-panel {
  position: sticky;
  top: 20px;
}

.request-form label,
.login-form label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
}

.request-form input,
.request-form select,
.request-form textarea,
.search-input,
.login-form input,
.dashboard-select,
.dashboard-textarea {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(26, 42, 58, 0.12);
  background: rgba(255, 255, 255, 0.88);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
}

.request-form textarea,
.dashboard-textarea {
  min-height: 112px;
  resize: vertical;
}

.search-input {
  max-width: 280px;
  margin: 0;
}

.form-footnote,
.note {
  font-size: 0.93rem;
  line-height: 1.6;
}

.success,
.error {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
}

.success {
  background: var(--success-bg);
  color: var(--success-ink);
}

.error {
  background: var(--error-bg);
  color: var(--error-ink);
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  color: white;
  background: linear-gradient(135deg, #14a44d, #20c05c);
  box-shadow: 0 20px 36px rgba(25, 138, 67, 0.28);
}

.dashboard-header {
  padding: 28px 0 10px;
}

.dashboard-main {
  padding-bottom: 32px;
}

.metrics-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.metric-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.metric-card strong {
  font-size: 2rem;
}

.admin-layout.modern {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
}

.lead-list.modern {
  display: grid;
  gap: 12px;
  max-height: 72vh;
  overflow: auto;
}

.lead-item {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(26, 42, 58, 0.08);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.lead-item:hover,
.lead-item.active {
  transform: translateY(-1px);
  border-color: rgba(200, 103, 49, 0.36);
  background: rgba(251, 243, 234, 0.96);
}

.lead-item h3 {
  font-size: 1.08rem;
}

.lead-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-item-top,
.profile-grid,
.status-row,
.detail-toolbar {
  display: flex;
  gap: 14px;
}

.lead-item-top,
.detail-toolbar {
  align-items: center;
  justify-content: space-between;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 95, 100, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-grid {
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.profile-chip {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(245, 248, 252, 0.88);
  border: 1px solid rgba(26, 42, 58, 0.06);
}

.profile-chip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-row {
  align-items: end;
  margin-bottom: 24px;
}

.status-row .button-primary {
  width: auto;
  min-width: 150px;
}

.table-card,
.comment-composer,
.empty-state {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(26, 42, 58, 0.08);
}

.table-card {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(26, 42, 58, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comments-stack {
  display: grid;
  gap: 12px;
}

.comment {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(26, 42, 58, 0.08);
  background: rgba(247, 251, 255, 0.92);
}

.comment p {
  margin: 0 0 8px;
}

.comment small {
  color: var(--muted);
}

.detail-layout {
  display: grid;
  gap: 18px;
}

.empty-state {
  min-height: 400px;
  display: grid;
  align-content: center;
}

.login-shell {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 245, 0.94));
  border: 1px solid rgba(26, 42, 58, 0.1);
  box-shadow: var(--shadow);
}

.login-form {
  margin: 22px 0 18px;
}

@media (max-width: 1080px) {
  .hero-panel,
  .layout-grid,
  .admin-layout.modern {
    grid-template-columns: 1fr;
  }

  .request-panel {
    position: static;
  }

  .metrics-row,
  .process-grid,
  .stats-grid,
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .dashboard-topbar,
  .split-head,
  .panel-head.row,
  .lead-item-top,
  .detail-toolbar,
  .status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel,
  .panel,
  .login-card {
    padding: 22px;
  }

  .metrics-row,
  .process-grid,
  .stats-grid,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .search-input {
    max-width: none;
  }
}
