:root {
  --ink: #14201f;
  --muted: #5c6b68;
  --line: #d8e1de;
  --bg: #f7faf8;
  --panel: #ffffff;
  --accent: #0f8a7a;
  --accent-strong: #075f55;
  --coral: #ef745c;
  --gold: #d4a33f;
  --navy: #10283a;
  --shadow: 0 22px 55px rgba(19, 45, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  max-width: 100%;
}
.whatsapp-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  min-width: 70px;
  max-width: 25vw;
  height: auto;
  min-height: 4vh;
  background-color: #25D366;
  color: white;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #1ea952;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn i {
  font-size: 20px;
  line-height: 1;
}

.whatsapp-btn span {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 248, 0.9);
  border-bottom: 1px solid rgba(216, 225, 222, 0.85);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-strong);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 138, 122, 0.22);
  background: var(--accent-strong);
}

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

.button.secondary:hover {
  background: white;
  box-shadow: var(--shadow);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 10px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 250, 248, 0.98) 0%, rgba(247, 250, 248, 0.9) 48%, rgba(247, 250, 248, 0.45) 100%),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 82px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

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

.hero-content {
  width: min(720px, 100%);
  padding: 82px 0 122px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
  max-width: 820px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 21px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 660px;
  margin: 24px 0 0;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  width: min(680px, 100%);
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: white;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(20, 32, 31, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 138, 122, 0.45);
  box-shadow: var(--shadow);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  margin-bottom: 18px;
}

.card:nth-child(2n) .icon {
  background: var(--accent);
}

.card:nth-child(3n) .icon {
  background: var(--coral);
}

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

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

.feature-list li {
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
  position: relative;
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 4px;
  top: 20px;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.portrait {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 40, 58, 0.1), rgba(15, 138, 122, 0.14)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1200&q=80") center / cover;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.timeline-item {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.case {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 138, 122, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.result {
  color: var(--navy);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.1;
}

.form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 138, 122, 0.16);
  border-color: var(--accent);
}

.notice {
  min-height: 24px;
  color: var(--accent-strong);
  font-weight: 700;
}

/* ============================================
   FOOTER STYLES - NAV CENTERED BETWEEN BRAND & CTA
   ============================================ */

.footer {
  background: var(--ink);
  color: white;
  padding: 46px 0;
  margin-top: 86px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* MAIN FOOTER CONTENT - THREE COLUMN GRID: BRAND | CENTERED NAV | CTA */
.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

/* BRAND SECTION - LEFT */
.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-page-message {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
  font-weight: 400;
  max-width: 480px;
}

/* NAVIGATION SECTION - CENTERED */
.footer-nav-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-nav-links {
  display: flex;
  flex-direction: row;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease;
  display: inline-block;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

/* CTA SECTION - RIGHT (WHATSAPP BUTTON) */
.footer-cta-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 138, 122, 0.22);
  background: var(--accent-strong);
}

/* DIVIDER */
.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 28px 0;
}

/* BOTTOM BAR - DISPLAYS ON ALL PAGES */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 0;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copyright {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin: 0;
}

.corporate-data {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}

.corporate-data a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 180ms ease;
}

.corporate-data a:hover {
  color: var(--accent);
}

.footer a,
.footer p {
  color: rgba(255, 255, 255, 0.74);
}

.page-hero {
  padding: 86px 0 52px;
  background: white;
  border-bottom: 1px solid var(--line);
}

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

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-nav {
  background: var(--ink);
  color: white;
  padding: 26px;
}

.admin-main {
  padding: 28px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
}

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

th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================
   RESPONSIVE DESIGN - MERGED BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
  .footer-main {
    gap: 18px;
  }

  .footer-nav-links {
    gap: 18px;
  }

  .footer-page-message {
    max-width: 300px;
    font-size: 13px;
  }

  .nav-link {
    font-size: 13px;
  }
}

@media (max-width: 880px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .grid.three,
  .grid.four,
  .grid.two,
  .split,
  .article-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .metrics,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(247, 250, 248, 0.98), rgba(247, 250, 248, 0.82)),
      url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=80") center / cover;
  }

  .portrait {
    min-height: 360px;
  }

  /* FOOTER RESPONSIVE - TABLET */
  .footer-main {
    gap: 16px;
    grid-template-columns: auto 1fr auto;
  }

  .brand-name {
    font-size: 15px;
  }

  .footer-page-message {
    font-size: 12px;
    max-width: 250px;
    display: none;
  }

  .footer-nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .whatsapp-btn {
    min-width: 90px;
    max-width: 30vw;
    min-height: 5vh;
    padding: 8px 14px;
  }

  .whatsapp-btn i {
    font-size: 22px;
  }

  .whatsapp-btn span {
    font-size: 11px;
  }

  .copyright,
  .corporate-data {
    font-size: 11px;
  }

  .footer-divider {
    margin: 20px 0;
  }

  .footer {
    padding: 32px 0;
    margin-top: 56px;
  }
}

@media (max-width: 640px) {
  /* MOBILE: Stack layout - Brand | Nav (centered) | CTA */
  .footer-main {
    gap: 12px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand-section {
    align-items: center;
  }

  .brand-name {
    font-size: 14px;
  }

  .footer-page-message {
    display: block;
    max-width: 100%;
    font-size: 12px;
  }

  .footer-nav-section {
    order: 2;
  }

  .footer-nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 11px;
  }

  .footer-cta-section {
    order: 3;
    justify-content: center;
  }

  .whatsapp-btn {
    min-width: 110px;
    max-width: 45vw;
    min-height: 6vh;
    padding: 10px 16px;
  }

  .whatsapp-btn i {
    font-size: 24px;
  }

  .whatsapp-btn span {
    font-size: 12px;
  }

  .copyright,
  .corporate-data {
    font-size: 12px;
  }

  .footer-divider {
    margin: 16px 0;
  }

  .footer {
    padding: 24px 0;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  /* SMALL MOBILE: Ultra compact */
  .footer-main {
    gap: 8px;
  }

  .brand-name {
    font-size: 13px;
  }

  .footer-page-message {
    font-size: 11px;
  }

  .footer-nav-links {
    gap: 8px;
  }

  .nav-link {
    font-size: 10px;
  }

  .whatsapp-btn {
    min-width: 130px;
    max-width: 60vw;
    min-height: 7vh;
    padding: 12px 18px;
  }

  .whatsapp-btn i {
    font-size: 26px;
  }

  .whatsapp-btn span {
    font-size: 13px;
  }

  .copyright,
  .corporate-data {
    font-size: 10px;
  }

  .footer-divider {
    margin: 12px 0;
  }

  .footer {
    padding: 20px 0;
    margin-top: 24px;
  }
}

  .footer-nav-links {
    gap: 8px;
  }

  .brand-name {
    font-size: 13px;
  }

  .nav-link {
    font-size: 10px;
  }

  .whatsapp-btn {
    min-width: 100px;
    min-height: 36px;
    padding: 8px 10px;
  }

  .whatsapp-btn i {
    font-size: 20px;
  }

  .whatsapp-btn span {
    font-size: 10px;
  }

  .copyright,
  .corporate-data {
    font-size: 10px;
  }

