:root {
  /* Paleta Esmeralda */
  --primary: #0f4c3a;
  --primary-dark: #0a3328;
  --secondary: #3d9b7a;
  --neutral-light: #eef6f2;
  --surface: #ffffff;
  --text: #0f4c3a;
  --muted: #3d7a66;
  --border: rgba(15, 76, 58, 0.14);
  --shadow: 0 10px 30px rgba(15, 76, 58, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shell: 1100px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background: var(--neutral-light);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(61, 155, 122, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 90%, rgba(15, 76, 58, 0.1), transparent 50%),
    linear-gradient(165deg, #f5fbf8 0%, var(--neutral-light) 45%, #e2f0ea 100%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 76, 58, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 58, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  opacity: 0.65;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  animation: glow-drift 14s ease-in-out infinite alternate;
}

.glow-a {
  width: 360px;
  height: 360px;
  top: 8%;
  right: 4%;
  background: var(--secondary);
}

.glow-b {
  width: 420px;
  height: 420px;
  bottom: -12%;
  left: -8%;
  background: var(--primary);
  animation-delay: -6s;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 24px) scale(1.08); }
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.shell.narrow {
  width: min(100% - 2.5rem, 720px);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: inline;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(15, 76, 58, 0.78);
  text-decoration: none;
}

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

/* ── Hero ── */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: 4rem 0 4.5rem;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: hero-rise 0.9s ease-out both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  width: clamp(4.5rem, 12vw, 6rem);
  height: clamp(4.5rem, 12vw, 6rem);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 12px 28px rgba(15, 76, 58, 0.22));
  animation: hero-mark 1.1s ease-out both;
}

@keyframes hero-mark {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}

.brand {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--primary);
  max-width: 16ch;
}

.headline {
  margin: 0 0 1.1rem;
  max-width: 30ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.3;
  color: var(--primary-dark);
}

.lead {
  margin: 0 auto 1.5rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.6;
  color: rgba(15, 76, 58, 0.82);
}

.lead strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.value-points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  max-width: 50rem;
}

.value-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: rgba(15, 76, 58, 0.88);
}

.value-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--secondary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.3rem;
  border-radius: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-ghost:hover {
  background: rgba(15, 76, 58, 0.06);
}

/* ── Sections ── */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.5);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--primary);
}

.section-intro {
  margin: 0 auto;
  max-width: 42ch;
  color: rgba(15, 76, 58, 0.72);
}

.cases-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.case-item {
  padding: 1.4rem 1.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.case-featured {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #fff 0%, #eaf5f0 100%);
}

.case-tag {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}

.case-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.case-item p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(15, 76, 58, 0.78);
}

.text-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 76, 58, 0.3);
}

.text-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--secondary);
}

.prose {
  text-align: center;
}

.prose p {
  margin: 0 0 1rem;
  color: rgba(15, 76, 58, 0.82);
  font-size: 1.05rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--primary-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}

.contact-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.4rem;
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 155, 122, 0.45);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  word-break: break-word;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 1.35rem;
  height: 1.35rem;
}

.footer-inner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 760px) {
  .nav {
    gap: 0.25rem 0.85rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .cases-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-featured {
    grid-column: auto;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 22rem);
  }

  .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding-block: 0.65rem;
    height: auto;
  }

  .site-header {
    height: auto;
  }

  :root {
    --header-h: auto;
  }

  .nav {
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
