/* Encargapp · landing
   Diseño: blanco y tinta del logo, verde de la etiqueta "app" como acento.
   El verde marca lo importante (una frase del titular, botones principales).
   Tipografía: Outfit para títulos (redonda y gruesa, como el logo), DM Sans para texto. */
:root {
  --ink: #1F2421;
  --ink-2: #3A403C;
  --muted: #5B645E;
  --line: #E2E8E4;
  --bg: #FFFFFF;
  --bg-tint: #F2F6F3;
  --green: #37E27D;
  --green-ink: #0B7A3B;
  --green-soft: #E2FAEC;
  --dark: #1B201D;
  --dark-2: #2A312D;
  --dark-line: #3A433E;
  --on-dark: #F1F5F2;
  --on-dark-muted: #A9B5AE;

  --f-display: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 14px;
  --r-lg: 22px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-body); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #2fd472; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand img { width: 142px; height: auto; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; margin-left: auto; height: 42px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font: 600 15px var(--f-body); color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 4px 0 16px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 10px; }
}

/* ---------- Portada ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
/* El verde del logo: una etiqueta inclinada detrás de la frase clave */
.mark {
  display: inline-block; position: relative; z-index: 0; padding: 0 .14em; margin: 0 -.02em;
  white-space: nowrap;
}
.mark::before {
  content: ""; position: absolute; z-index: -1; inset: .1em -.02em .02em;
  background: var(--green);
  border-radius: .16em .5em .2em .42em;
  transform: rotate(-2.2deg) skewX(-6deg);
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Maqueta del portal (CSS, sin imágenes) */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 64px 0; }
.phone {
  width: min(330px, 100%); background: #fff; border: 1px solid var(--line);
  border-radius: 34px; padding: 18px 14px 14px;
  box-shadow: 0 30px 60px -20px rgba(31, 36, 33, .28), 0 0 0 9px #E9EEEA;
  font-size: 13px; position: relative; z-index: 1;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); }
.ph-logo { width: 34px; height: 34px; border-radius: 9px; background: #7A3B1D; color: #FCEBDD; font: 700 13px var(--f-display); display: grid; place-items: center; }
.ph-t { display: flex; flex-direction: column; line-height: 1.25; }
.ph-t small { color: var(--muted); font-size: 11.5px; }
.ph-tabs { display: flex; gap: 4px; background: var(--bg-tint); border-radius: 10px; padding: 4px; margin: 12px 0 8px; }
.ph-tabs span { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; font-weight: 600; color: var(--muted); font-size: 12px; }
.ph-tabs .on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ph-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #F0F3F1; }
.ph-item span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ph-item small { color: var(--muted); font-size: 11.5px; }
.ph-item em { font-style: normal; font-weight: 700; min-width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; }
.ph-item.dim em { color: #B8C0BA; }
.sw { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.c1 { background: linear-gradient(140deg, #6B3A1E, #B8743F); }
.c2 { background: linear-gradient(140deg, #23262B, #7A6A3B); }
.c3 { background: linear-gradient(140deg, #6D7B2E, #C2B44A); }
.c4 { background: linear-gradient(140deg, #8E2F3A, #D7895C); }
.ph-cart { margin-top: 10px; background: var(--bg-tint); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ph-cart small { color: var(--ink-2); font-size: 11.5px; }
.ph-bar { height: 6px; border-radius: 3px; background: #DCE4DE; overflow: hidden; }
.ph-bar span { display: block; height: 100%; width: 76%; background: var(--green); border-radius: 3px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.ph-row b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ph-row b small { font-weight: 500; color: var(--muted); }
.ph-btn { background: var(--ink); color: #fff; font-weight: 700; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; }
.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 16px 34px -14px rgba(31, 36, 33, .3); font-size: 13px; line-height: 1.3; max-width: 250px;
}
.float span:last-child { display: flex; flex-direction: column; }
.float small { color: var(--muted); }
.f1 { top: 8px; left: 2%; }
.f2 { bottom: 8px; right: 2%; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex-shrink: 0; }
.ok { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--green); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
@media (max-width: 520px) {
  .f1 { left: 0; }
  .f2 { right: 0; }
  .float { max-width: 220px; padding: 8px 12px; }
}

/* ---------- Cifras ---------- */
.facts { background: var(--ink); color: var(--on-dark); }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 34px; gap: 24px; }
@media (max-width: 860px) { .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts strong { display: block; font-family: var(--f-display); font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--green); letter-spacing: -0.02em; line-height: 1.05; }
.facts span { color: var(--on-dark-muted); font-size: 15px; }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec-tint { background: var(--bg-tint); }
.sec-dark { background: var(--dark); color: var(--on-dark); }
.sec h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; max-width: 18em; }
.sec-lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); max-width: 38em; margin-top: 16px; }
.sec-dark .sec-lead { color: var(--on-dark-muted); }
.center { text-align: center; margin-top: 36px; }

.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }
.pain { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.pain h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.pain p { color: var(--ink-2); }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: #fff; border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.steps .n { width: 44px; height: 44px; border-radius: 12px; background: var(--green); font: 800 22px var(--f-display); display: grid; place-items: center; margin-bottom: 6px; }
.steps h3 { font-size: 23px; font-weight: 700; }
.steps p { color: var(--ink-2); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 80px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: clamp(30px, 3.6vw, 42px); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks b { color: var(--ink); }

.feat-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
@media (max-width: 760px) { .feat-groups { grid-template-columns: 1fr; } }
.feat { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: 28px; }
.feat h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.feat ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.feat li { padding: 11px 0 11px 26px; border-top: 1px solid var(--dark-line); position: relative; color: var(--on-dark); }
.feat li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 3px; background: var(--green); transform: rotate(-8deg); }

.brandline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .brandline { grid-template-columns: 1fr; } }
.brandline p:not(.sec-lead):not(.powered-demo) { color: var(--ink-2); margin-top: 16px; max-width: 36em; }
.urls { background: var(--bg-tint); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.url { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 14px 20px; font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.url b { color: var(--ink); }
.lock { width: 14px; height: 16px; border: 2.5px solid var(--green-ink); border-radius: 4px; position: relative; flex-shrink: 0; margin-top: 4px; }
.lock::before { content: ""; position: absolute; left: 1px; right: 1px; top: -9px; height: 9px; border: 2.5px solid var(--green-ink); border-bottom: 0; border-radius: 6px 6px 0 0; }
.powered-demo { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.powered-demo img { width: 78px; }

.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }
.who article { background: #fff; border-radius: var(--r-lg); padding: 24px; }
.who h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.who p { color: var(--ink-2); font-size: 16px; }

.table-wrap { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--f-display); font-size: 18px; background: var(--bg-tint); }
.compare thead th:last-child { background: var(--green); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:last-child { font-weight: 600; }

.price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.price > p { grid-column: 1; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }
.price .ticks { margin-top: 6px; }

.faq { max-width: 860px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 20px; font-weight: 700; display: inline; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 500 28px var(--f-display); color: var(--green-ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

.demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.demo .fine { color: var(--on-dark-muted); }
.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.form input, .form select, .form textarea {
  font: 400 16px var(--f-body); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--green-soft); }
.form textarea { resize: vertical; min-height: 88px; }
.form .fine { color: var(--muted); margin: 0; text-align: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand img { width: 120px; }
.foot-brand p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.foot nav a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; font-size: 14px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Página de gracias / 404 ---------- */
.simple { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.simple h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
.simple p { color: var(--ink-2); font-size: 19px; margin: 16px auto 28px; max-width: 30em; }

/* Los enlaces del menú no quedan bajo la barra fija */
[id] { scroll-margin-top: 84px; }
