:root {
  --green: #287a5b;
  --green-dark: #1f5f47;
  --green-soft: rgba(40, 122, 91, 0.1);
  --orange: #e86a17;
  --orange-hover: #cf5c10;
  --cream: #f7f5f0;
  --white: #ffffff;
  --charcoal: #2d3436;
  --charcoal-soft: #5c6366;
  --border: rgba(45, 52, 54, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --wrap: min(1080px, 100% - 2.5rem);
  --section-space: clamp(4rem, 10vw, 6.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: var(--green-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal-soft);
}

.nav a:not(.btn):hover {
  color: var(--green);
}

/* Buttons — naranja solo en CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 106, 23, 0.28);
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.8125rem;
}

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid rgba(40, 122, 91, 0.35);
}

.btn-secondary:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

/* Sections */
.section {
  padding: var(--section-space) 0;
}

.section-white {
  background: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.hero-body p {
  color: var(--charcoal-soft);
  margin-bottom: 0.65rem;
  max-width: 36rem;
}

.hero-body strong {
  color: var(--charcoal);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  min-height: 280px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media:not(.has-image) img {
  display: none;
}

.hero-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(145deg, var(--green-soft), rgba(247, 245, 240, 0.9));
  color: var(--green-dark);
}

.hero-media.has-image .hero-media-placeholder {
  display: none;
}

.hero-media-placeholder span {
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-media-placeholder small {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--charcoal-soft);
  max-width: 22rem;
}

.hero-media-placeholder code {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Prose blocks */
.prose-block h2,
.philosophy h2,
.system-block h2,
.cta-block h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
  max-width: 28ch;
}

.prose p {
  color: var(--charcoal-soft);
  margin-bottom: 0.55rem;
  max-width: 40rem;
}

.prose-emphasis {
  color: var(--charcoal) !important;
  font-weight: 700;
}

.prose-closer {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--green-dark) !important;
}

.prose-narrow p {
  max-width: 36rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.skill-list li {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(40, 122, 91, 0.15);
}

/* Philosophy */
.philosophy-lead {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 1.25rem;
  max-width: 22ch;
}

/* Audience cards */
.cards {
  list-style: none;
}

.cards-audience {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-audience {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(40, 122, 91, 0.25);
  box-shadow: 0 8px 28px rgba(45, 52, 54, 0.06);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.45rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--charcoal-soft);
  line-height: 1.55;
}

/* Icon grid */
.icon-grid {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.icon-item:hover {
  background: var(--cream);
  border-color: var(--border);
}

.icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--green);
}

.icon-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}

.icon-item p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

/* System section */
.section-system {
  background: var(--green);
  color: var(--white);
}

.system-block h2 {
  color: var(--white);
  max-width: 20ch;
}

.system-block .prose p {
  color: rgba(255, 255, 255, 0.88);
}

.system-tagline {
  margin-top: 1rem !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  color: var(--white) !important;
}

/* CTA */
.section-cta {
  background: var(--white);
}

.cta-block {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.cta-block h2 {
  max-width: none;
  margin-inline: auto;
}

.cta-block > p {
  color: var(--charcoal-soft);
  margin-bottom: 0.75rem;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.signup input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cream);
  font: inherit;
  color: var(--charcoal);
}

.signup input:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: transparent;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--charcoal-soft);
  opacity: 0.75;
}

/* Footer */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.footer-inner {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--charcoal-soft);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.footer-credit {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--charcoal);
}

.footer-copy {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .nav a:not(.btn) {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
