:root {
  --bg: #f2f8f6;
  --surface: #ffffff;
  --surface-alt: #e7f3ef;
  --text: #082d25;
  --muted: #2f6158;
  --primary: #00795f;
  --primary-strong: #005443;
  --accent: #e9f7f3;
  --border: #b9d9d1;
  --success: #166534;
  --danger: #b42318;
  --radius: 16px;
  --radius-xl: 26px;
  --shadow-soft: 0 14px 40px rgba(16, 33, 30, 0.12);
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 1.75rem;
  --space-5: 2.5rem;
  --space-6: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbfa 0%, #edf5f3 100%);
  line-height: 1.5;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/assets/img/logo_empresa.jpeg");
  background-repeat: no-repeat;
  background-position: center 52%;
  background-size: min(920px, 72vw) auto;
  opacity: 0.06;
  filter: saturate(0.9);
  pointer-events: none;
  z-index: -2;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-2);
  font-family: "Lexend", "Trebuchet MS", sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-intro {
  max-width: 100%;
  color: var(--muted);
}

.graphics-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  justify-items: center;
  margin: var(--space-4) 0 var(--space-4);
}

.section-graphic {
  width: min(980px, 100%);
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.section-graphic-wide {
  margin-top: var(--space-3);
}

.bg-shape {
  position: fixed;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}

.bg-shape-a {
  width: 320px;
  height: 320px;
  background: #17a07f;
  top: -80px;
  right: -90px;
}

.bg-shape-b {
  width: 300px;
  height: 300px;
  background: #73c8b2;
  left: -80px;
  bottom: 120px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 6px 24px rgba(8, 45, 37, 0.08);
}

.header-nav-bar {
  background: var(--primary-strong);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.brand-text {
  font-family: "Lexend", "Trebuchet MS", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 240px;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #e9f7f3;
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.site-nav a.is-home {
  background: #9dcf3c;
  color: #103226;
}

.header-cta {
  display: flex;
  gap: 0.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 200ms ease, background 200ms ease;
}

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

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 121, 95, 0.25);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 121, 95, 0.24);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: #d9ede7;
  color: #0e3d33;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #edf7f4;
}

.hero {
  padding-top: 2.6rem;
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-3);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-4) 0;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.highlights li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
  color: #284740;
}

.hero-card {
  background: #f6fbf9;
  border: 1px solid #c5dfd8;
  border-radius: 20px;
  padding: var(--space-4);
  box-shadow: 0 10px 30px rgba(16, 33, 30, 0.08);
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

.hero-card ul {
  margin: var(--space-2) 0 0;
  padding-left: 1rem;
}

.service-grid {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-4);
  border-top: 4px solid var(--primary);
  box-shadow: 0 10px 24px rgba(16, 33, 30, 0.06);
  transition: transform 160ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(16, 33, 30, 0.1);
}

.label {
  font-weight: 700;
  color: var(--primary);
  margin-top: var(--space-2);
}

.text-link {
  font-weight: 700;
  color: var(--primary-strong);
}

.split {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.kpi-grid article {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: var(--space-3);
  min-height: 180px;
  box-shadow: 0 8px 22px rgba(16, 33, 30, 0.06);
}

.kpi-grid strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.25;
  font-family: "Lexend", "Trebuchet MS", sans-serif;
  overflow-wrap: normal;
}

.kpi-grid span {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: normal;
}

.case-grid,
.badge-row {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.case-card,
.badge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-3);
  overflow-wrap: normal;
  box-shadow: 0 10px 24px rgba(16, 33, 30, 0.06);
}

.case-card.is-featured {
  border: 2px solid var(--primary);
  background: #ffffff;
  position: relative;
}

#casos .case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#casos .case-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b8d5cd;
}

#casos .plan-head {
  background: #a8cfad;
  color: #0f2b23;
  font-family: "Lexend", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  padding: 1.2rem 1rem;
}

#casos .case-card:nth-child(2) .plan-head {
  background: #77bf89;
}

#casos .case-card.is-featured .plan-head {
  background: #006f57;
  color: #ffffff;
}

#casos .plan-focus {
  margin: 1.2rem 1rem 0.9rem;
  background: #edf5f0;
  border: 1px solid #b8d5cd;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  color: #142f28;
  padding: 0.85rem 0.8rem;
}

#casos .plan-body {
  margin: 0 1.2rem 1.3rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.25;
  color: #15332b;
}

#casos .plan-reco {
  background: #008245;
  color: #ffffff;
  font-family: "Lexend", "Trebuchet MS", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
  padding: 0.55rem 0.6rem;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.logo-row span {
  text-align: center;
  border: 1px dashed #9eb8b2;
  border-radius: 10px;
  padding: 0.8rem 0.4rem;
  color: #507169;
  font-weight: 700;
}

.regulatory-text {
  margin-top: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16, 33, 30, 0.06);
  padding: 1.15rem 1rem;
}

.regulatory-text h3 {
  margin-bottom: 0.6rem;
}

.regulatory-text p {
  color: var(--muted);
}

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

.regulatory-grid article {
  position: relative;
  border: 1px solid #cde2dc;
  border-radius: 12px;
  padding: 3.9rem 0.8rem 0.8rem;
  background: #f7fcfa;
  margin-top: 2.6rem;
}

.regulatory-icon {
  position: absolute;
  top: -2.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #cde2dc;
  box-shadow: 0 8px 16px rgba(16, 33, 30, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.regulatory-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.regulatory-grid h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--primary-strong);
  word-break: normal;
  overflow-wrap: normal;
}

.regulatory-grid article p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.4;
}

.closing-claim {
  margin-top: 1.3rem;
  padding: 1.15rem 1rem 0.85rem;
  border-top: 2px solid #c8dfd8;
  text-align: center;
}

.claim-main {
  margin: 0 0 0.5rem;
  font-family: "Lexend", "Trebuchet MS", sans-serif;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0d3a30;
}

.claim-sub {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 500;
  color: #244e45;
}

.contact-wrap {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

form {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: var(--space-4);
  box-shadow: 0 14px 36px rgba(16, 33, 30, 0.1);
}

label {
  display: block;
  font-weight: 700;
  margin-top: var(--space-2);
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #9db8b2;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
}

.error {
  display: block;
  min-height: 1rem;
  color: var(--danger);
  font-size: 0.85rem;
}

.form-feedback {
  min-height: 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.7rem;
  line-height: 1.4;
}

.form-feedback.success {
  color: var(--success);
}

.form-feedback.error {
  color: var(--danger);
}

.hidden-field {
  display: none;
}

.site-footer {
  border-top: 1px solid #d7e7e3;
  background: #eff8f5;
  padding: var(--space-5) 0;
}

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

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-grid p,
.footer-grid a {
  color: #35554e;
  margin-bottom: 0.35rem;
}

.social-links {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.35rem;
}

.social-links a {
  text-decoration: none;
  font-weight: 600;
}

.social-links a:hover {
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
}

.legal-wrap {
  max-width: 860px;
  padding: var(--space-6) 0;
}

.legal-wrap h1 {
  font-size: 2rem;
}

.legal-wrap h2 {
  margin-top: var(--space-4);
}

@media (max-width: 1024px) {
  body::before {
    background-size: min(640px, 92vw) auto;
    opacity: 0.05;
  }

  .site-nav {
    display: none;
  }

  .hero-grid,
  .service-grid,
  .graphics-grid,
  .split,
  .badge-row,
  .regulatory-grid,
  .contact-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  #casos .case-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 1.2rem;
  }

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

  .header-cta .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .header-nav-bar .nav-wrap {
    padding: 0.45rem 0;
  }

  .header-cta {
    width: 100%;
  }

  .header-cta .btn {
    flex: 1;
  }

  .kpi-grid,
  .logo-row {
    grid-template-columns: 1fr;
  }

  .kpi-grid article {
    min-height: auto;
  }
}
