:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #efeee9;
  --text: #1d211f;
  --muted: #59635e;
  --line: #d9ddd9;
  --accent: #176b4c;
  --accent-strong: #0f5239;
  --accent-soft: #e4f3ec;
  --brand-teal: #25bfc2;
  --brand-navy: #102844;
  --shadow: 0 18px 50px rgba(22, 35, 28, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --shell: 1120px;

  /* Escala tipográfica deliberada: cada nivel cumple una función distinta. */
  --text-small: clamp(.84rem, .3vw + .78rem, .95rem);
  --text-body: clamp(1rem, .25vw + .95rem, 1.08rem);
  --text-lead: clamp(1.16rem, .8vw + 1rem, 1.42rem);
  --text-h3: clamp(1.18rem, .5vw + 1.06rem, 1.38rem);
  --text-h2: clamp(2.05rem, 3vw + 1.2rem, 3.55rem);
  --text-h1: clamp(3rem, 6vw + 1rem, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
p { max-width: 68ch; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 246, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 221, 217, 0.78);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}
.brand-copy {
  display: grid;
  line-height: 1.05;
}
.brand-copy strong {
  color: var(--brand-navy);
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -.025em;
}
.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .01em;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 680;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }

.hero { padding: 82px 0 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, .76fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--accent-strong);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: .095em;
  font-weight: 850;
}
h1, h2, h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -.036em;
}
h1 {
  max-width: 820px;
  margin-bottom: 0;
  color: #19211d;
  font-size: var(--text-h1);
  font-weight: 860;
}
h2 {
  margin-bottom: 0;
  color: #202824;
  font-size: var(--text-h2);
  font-weight: 830;
}
h3 {
  margin-bottom: 0;
  font-size: var(--text-h3);
  font-weight: 790;
}
.lead {
  max-width: 720px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-reassurance {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .94rem;
}
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .text-link:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid rgba(23,107,76,.24);
  outline-offset: 3px;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.button.secondary:hover { border-color: #aeb7b1; }
.button.large { min-height: 58px; padding-inline: 26px; font-size: 1.03rem; }
.button.full { width: 100%; }

.trust-strip {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: var(--muted);
  font-size: .94rem;
}
.trust-strip li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 7px;
}

.hero-card {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.conversation-label {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 760;
  line-height: 1.45;
}
.bubble {
  width: fit-content;
  max-width: 92%;
  margin: 10px 0;
  padding: 12px 15px;
  border-radius: 17px;
  font-size: .98rem;
  line-height: 1.5;
}
.bubble.client { margin-left: auto; background: var(--surface-soft); border-bottom-right-radius: 5px; }
.bubble.carlos { background: var(--accent-soft); border-bottom-left-radius: 5px; }

.section { padding: 80px 0; }
.section.muted { background: #ecece7; }
.section-heading { max-width: 790px; margin-bottom: 36px; }
.section-heading > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.66;
}
.section-heading.compact { margin-bottom: 34px; }

.situation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.situation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.situation-card p {
  margin: 11px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.situation-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.guided-section {
  background: var(--text);
  color: #f8faf8;
}
.guided-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 54px;
  align-items: start;
}
.guided-section h2 { color: #fff; }
.guided-section .eyebrow { color: #9ee2c5; }
.guided-copy p:not(.eyebrow) {
  color: #cbd2ce;
  font-size: 1.06rem;
}
.soft-note {
  padding: 14px 16px;
  border-left: 3px solid #9ee2c5;
  background: rgba(255,255,255,.06);
  border-radius: 0 10px 10px 0;
}
.guided-form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 29px;
}
.field { margin-bottom: 23px; }
.field label, .field legend {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 790;
}
.field label span { color: var(--muted); font-weight: 520; }
textarea {
  width: 100%;
  resize: vertical;
  min-height: 102px;
  border: 1px solid #cfd5d1;
  border-radius: 13px;
  background: #fbfbf9;
  color: var(--text);
  padding: 13px 14px;
  line-height: 1.55;
}
textarea::placeholder { color: #78807c; }
fieldset.field { border: 0; padding: 0; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-row label {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: .96rem;
  font-weight: 650;
}
.choice-row label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice-row input { margin-right: 5px; }
.form-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.process li {
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.process li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  font-weight: 850;
}
.process p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.58;
}

.human-grid {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  gap: 54px;
  align-items: center;
}
.portrait-card {
  overflow: hidden;
  max-width: 430px;
  justify-self: center;
  border-radius: calc(var(--radius) + 6px);
  background: #d9ece8;
  box-shadow: var(--shadow);
}
.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
}
.human-copy { max-width: 720px; }
.human-copy h2 { margin-bottom: 20px; }
.human-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}
.human-copy .human-lead {
  color: var(--text);
  font-size: var(--text-lead);
  line-height: 1.52;
}
.human-note {
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent-strong) !important;
  font-weight: 730;
}

.cta-section { padding-top: 30px; }
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
  align-items: center;
}
.cta-box h2 { max-width: 730px; }
.cta-box p:not(.eyebrow):not(.connection-note) {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.text-link { color: var(--accent-strong); font-weight: 730; }
.connection-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff3cd;
  color: #5b4600;
}

.site-footer { padding: 42px 0 70px; }
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.footer-brand {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.footer-mark { flex: 0 0 auto; }
.footer-inner strong {
  color: var(--brand-navy);
  font-size: 1.04rem;
}
.footer-inner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .91rem;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .92rem; }

.message-modal[hidden] { display: none; }
.message-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 14, 12, .65);
}
.message-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 29px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0,0,0,.25);
}
.message-dialog h2 {
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
}
.message-dialog textarea { min-height: 220px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.modal-status { min-height: 24px; margin: 12px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding-top: 58px; }
  .hero-grid, .guided-grid, .human-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 620px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .portrait-card { max-width: 360px; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-actions { align-items: stretch; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 1.04rem; }
  .brand-copy small { font-size: .68rem; }

  .hero { padding: 48px 0 56px; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .lead { font-size: 1.12rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust-strip { display: grid; }
  .section { padding: 60px 0; }
  .situation-grid, .process { grid-template-columns: 1fr; }
  .guided-form { padding: 21px; }
  .choice-row { display: grid; grid-template-columns: 1fr; }
  .portrait-card { max-width: 300px; }
  .footer-inner { flex-direction: column; }
  .message-dialog { padding: 23px 18px 20px; }
  .modal-actions { display: grid; }
}

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