/* =========================================================
   PMP — Landing page
   Paleta neutra + un acento verde. Escala tipográfica fluida.
   ========================================================= */

:root {
  --ink:        #10161C;
  --ink-2:      #3C4650;
  --muted:      #6B7683;
  --line:       #E6E8EA;
  --line-soft:  #EFF1F2;
  --bg:         #FFFFFF;
  --bg-alt:     #F8F9F9;
  --accent:     #12614A;
  --accent-dark:#0D4636;
  --accent-soft:#EDF4F1;

  --radius:     10px;
  --radius-lg:  16px;

  --container:  1160px;
  --pad:        24px;

  --shadow-sm:  0 1px 2px rgba(16, 22, 28, .04);
  --shadow-md:  0 12px 32px -12px rgba(16, 22, 28, .12);
  --shadow-lg:  0 32px 64px -24px rgba(16, 22, 28, .18);

  --ease:       cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* Gana a las reglas de display de componentes (.field, .btn, …) */
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: 1.0625rem; letter-spacing: -.012em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Layout ---------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 780px; }

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.section__head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__sub { margin-top: 18px; color: var(--muted); font-size: 1.0625rem; }

.eyebrow {
  margin: 0 0 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: rgba(255,255,255,.62); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------- Header ---------------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}
.logo__mark svg { width: 17px; height: 17px; }
.logo__text { font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  transition: color .18s var(--ease);
}
.nav a:hover { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; margin-left: -8px;
  background: var(--ink);
  transition: transform .25s var(--ease), margin-top .25s var(--ease);
}
.nav-toggle span:first-child { margin-top: -4px; }
.nav-toggle span:last-child  { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span { margin-top: 0; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: rotate(-45deg); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .9375rem; font-weight: 600; letter-spacing: -.005em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--sm { padding: 9px 17px; font-size: .875rem; }
.btn--block { width: 100%; padding: 15px 24px; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: none; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #CFD4D8; background: #FCFCFD; }

.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: var(--shadow-sm); }

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(64px, 8vw, 108px) 0 clamp(56px, 6vw, 80px);
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(18, 97, 74, .07), transparent 60%),
    linear-gradient(180deg, #FCFDFD 0%, #FFFFFF 55%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero__copy .lead {
  margin-top: 22px;
  max-width: 30em;
  font-size: 1.1875rem;
  color: var(--ink-2);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin: 30px 0 0; padding: 0; list-style: none;
  font-size: .875rem; color: var(--muted);
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* Panel mock */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: #FCFDFD;
}
.panel__title { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.pill {
  font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.pill--ok { background: var(--accent-soft); color: var(--accent); }

.panel__body { padding: 20px; display: grid; gap: 20px; }

.row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row__name { font-size: .875rem; font-weight: 500; color: var(--ink); }
.row__val { font-size: .8125rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.row__meta { display: block; margin-top: 8px; font-size: .75rem; color: var(--muted); }

.bar { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar i {
  display: block; height: 100%; width: var(--w); border-radius: 999px;
  background: linear-gradient(90deg, #1B7A5D, var(--accent));
  transform-origin: left;
  animation: grow 1.1s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.panel__foot {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  background: #FCFDFD;
}
.panel__foot div {
  padding: 16px 12px; text-align: center;
  border-left: 1px solid var(--line-soft);
}
.panel__foot div:first-child { border-left: 0; }
.panel__foot strong { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.panel__foot span { font-size: .6875rem; color: var(--muted); }

/* Industrias */
.industries {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.industries__label {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.industries ul {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.industries li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: var(--ink-2);
  background: #fff;
}

/* ---------------- Cards ---------------- */

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: #D6DBDE; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card p { margin-top: 10px; font-size: .9375rem; color: var(--muted); }

.card--plain { background: transparent; border: 0; padding: 0; }
.card--plain:hover { transform: none; box-shadow: none; }
.card--plain h3 { padding-top: 20px; border-top: 2px solid var(--ink); }

.icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg { width: 20px; height: 20px; }

/* ---------------- Steps ---------------- */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 0; padding: 0; list-style: none;
  counter-reset: step;
}
.step {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  display: block; margin-bottom: 18px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  color: var(--accent);
}
.step p { margin-top: 10px; font-size: .9375rem; color: var(--muted); }

/* ---------------- Métricas ---------------- */

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  padding: 34px 26px;
  border-left: 1px solid var(--line);
}
.metric:first-child { border-left: 0; }
.metric strong {
  display: block;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
}
.metric span { display: block; margin-top: 8px; font-size: .875rem; color: var(--muted); }
.metrics__note { margin-top: 18px; font-size: .8125rem; color: var(--muted); }

/* ---------------- FAQ ---------------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__item p { padding-bottom: 24px; max-width: 62ch; color: var(--muted); font-size: .9375rem; }

/* ---------------- CTA / Formulario ---------------- */

.cta {
  background: var(--ink);
  color: #fff;
}
.cta h2 { color: #fff; }

.cta__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.cta__sub { margin-top: 18px; color: rgba(255,255,255,.66); font-size: 1.0625rem; max-width: 34em; }

.checklist { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li {
  position: relative; padding-left: 30px;
  font-size: .9375rem; color: rgba(255,255,255,.82);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 9px;
  border-left: 1.75px solid #4EB893; border-bottom: 1.75px solid #4EB893;
  transform: rotate(-45deg);
}

.cta__form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.field { display: block; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
  display: block; margin-bottom: 7px;
  font-size: .8125rem; font-weight: 600; color: var(--ink-2);
}
.field .opt { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit; font-size: .9375rem; color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7683' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 97, 74, .12);
}
.field.has-error input, .field.has-error select { border-color: #C0392B; }

.error { display: block; margin-top: 6px; font-size: .75rem; color: #C0392B; min-height: 0; }

.form__legal { margin-top: 14px; font-size: .75rem; color: var(--muted); text-align: center; }

.form__success { text-align: center; padding: 22px 0 8px; }
.form__success-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}
.form__success-icon svg { width: 22px; height: 22px; }
.form__success h3 { font-size: 1.25rem; }
.form__success p { margin-top: 10px; color: var(--muted); font-size: .9375rem; }

/* ---------------- Footer ---------------- */

.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
  padding-bottom: 36px;
}
.footer__brand { max-width: 340px; }
.footer__brand p { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.footer__nav a { font-size: .875rem; color: var(--ink-2); }
.footer__nav a:hover { color: var(--accent); }

.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: .8125rem; color: var(--muted);
}
.footer__legal a:hover { color: var(--accent); }

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }

  .grid--3, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
