:root {
  --bg: #f6f7f4;
  --bg-elevated: #ffffff;
  --text: #1a2e14;
  --muted: #3d5346;
  --muted-soft: #5a6b5e;
  /* Paleta alineada al logo corporativo */
  --brand: #3d6b2e;
  --brand-mid: #4b7a32;
  --brand-dark: #2d5016;
  --accent: #e87722;
  --accent-mid: #f8941d;
  --accent-soft: rgba(232, 119, 34, 0.12);
  --line: rgba(26, 46, 20, 0.1);
  --shadow-sm: 0 1px 2px rgba(26, 46, 20, 0.05);
  --shadow-md: 0 16px 48px rgba(26, 46, 20, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  width: min(1080px, 92vw, calc(100% - 24px));
  margin: 0 auto;
}

/* ——— Sticky header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 247, 244, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-mark__img {
  height: 48px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s ease;
}

.brand-mark:hover .brand-mark__img {
  opacity: 0.88;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.site-nav a:focus-visible,
.brand-mark:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }

  .brand-mark__img {
    max-width: min(220px, 70vw);
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 72px) 0 clamp(48px, 8vw, 80px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    155deg,
    #faf8f5 0%,
    #f2f6f0 45%,
    #eef4eb 100%
  );
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: -40% -20% auto;
  height: 90%;
  background:
    radial-gradient(
      ellipse 55% 50% at 15% 25%,
      rgba(232, 119, 34, 0.09),
      transparent 60%
    ),
    radial-gradient(
      ellipse 65% 55% at 85% 15%,
      rgba(75, 122, 50, 0.12),
      transparent 58%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.hero-logo-wrap {
  margin: 0;
  padding: clamp(16px, 3vw, 24px);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-width: min(360px, 100%);
  width: 100%;
  box-sizing: border-box;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-copy {
  min-width: 0;
  width: 100%;
}

@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: minmax(220px, 400px) 1fr;
    justify-items: stretch;
    text-align: left;
  }

  .hero-brand {
    align-items: flex-start;
  }

  .hero-logo-wrap {
    max-width: none;
    width: auto;
  }

  .hero-logo {
    max-width: 360px;
  }

  .hero-copy {
    text-align: left;
  }

  .subtitle {
    margin: 0;
  }

  .actions {
    justify-content: flex-start;
  }

  h1 {
    max-width: 18ch;
  }
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff8f0;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  box-shadow: var(--shadow-sm);
}

h1 {
  margin: 0 0 20px;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--brand-dark);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.subtitle {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted-soft);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 107, 46, 0.35);
  background: var(--bg-elevated);
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-mid);
  background: rgba(75, 122, 50, 0.06);
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent-mid) 0%, var(--accent) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 1px 2px rgba(140, 70, 20, 0.15),
    0 10px 28px rgba(232, 119, 34, 0.35);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #ffa64d 0%, #e86810 100%);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* ——— Sections ——— */
.section {
  padding: clamp(56px, 8vw, 88px) 0;
}

.section.alt {
  background: linear-gradient(180deg, #eef2ee 0%, #e8ece9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  position: relative;
  padding-bottom: 16px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand-mid));
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: start;
}

.card {
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.card p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 16px;
  color: var(--muted-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.list li:last-child {
  margin-bottom: 0;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent-mid), var(--brand-mid));
  opacity: 0.9;
}

.legal-name {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-box {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--shadow-sm);
}

.contact-box p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: var(--text);
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-box strong {
  font-weight: 600;
  color: var(--brand-dark);
  min-width: 5.5rem;
  display: inline-block;
}

.contact-box a {
  color: var(--brand-mid);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
   text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.contact-box a:hover {
  color: var(--accent);
}

.contact-box a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.note {
  color: var(--muted-soft);
  margin-top: 20px;
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 40rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 32px 0 36px;
  font-size: 0.8125rem;
  color: var(--muted-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.92;
}

.footer p {
  margin: 0;
  letter-spacing: 0.01em;
  max-width: 36rem;
}

/* ——— Scroll reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
