/* Kuaapiti — sitio público. Paleta B: verde bosque, verde claro, crema y grafito verdoso. */

:root {
  --crema: #f4eedf;
  --superficie: #fffdf8;
  --borde: #e6ddc8;
  --borde-fuerte: #d4c8ae;
  --tinta: #263b36;
  --texto-suave: #55635e;
  --verde: #176b57;
  --verde-oscuro: #135746;
  --verde-claro: #a7c957;
  --verde-lima: #7da233;
  --menta: #d3ede4;
  --ocre-fondo: #f4e2c8;
  --ocre: #7c4719;

  --display: "Manrope", system-ui, sans-serif;
  --texto: "Inter", system-ui, sans-serif;
  --ancho: 1200px;
  --radio: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--verde);
}

a:hover {
  color: var(--tinta);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--verde-claro);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--superficie);
  border-radius: 8px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e3edcb;
  color: #3f5a12;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lead,
.intro {
  font-size: 1.15rem;
  color: var(--texto-suave);
  max-width: 40rem;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--verde);
  color: #fff;
}

.btn-primary:hover {
  background: var(--verde-oscuro);
  color: #fff;
}

.btn-secondary {
  background: var(--superficie);
  border-color: var(--borde-fuerte);
  color: var(--tinta);
}

.btn-secondary:hover {
  border-color: var(--tinta);
  color: var(--tinta);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Encabezado */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(244 238 223 / 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tinta);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a:not(.btn) {
  color: var(--tinta);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover {
  color: var(--verde);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--borde-fuerte);
  border-radius: 10px;
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-weight: 600;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-bottom: 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 10px 4px;
  }
}

/* Portada */

.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--texto-suave);
}

/* Vista del producto */

.preview {
  flex: 1 1 520px;
  min-width: 0;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 20px;
  box-shadow: 0 24px 48px -24px rgb(38 59 54 / 0.35);
  overflow: hidden;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--borde);
  background: #faf8f3;
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--borde);
}

.preview-bar p {
  margin-left: 8px;
}

.preview-body {
  display: flex;
}

.preview-side {
  width: 56px;
  flex-shrink: 0;
  padding: 16px 0;
  background: var(--tinta);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preview-side span {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: #3d554b;
}

.preview-side span:first-child {
  height: 22px;
  border-radius: 6px;
  background: rgb(167 201 87 / 0.25);
  box-shadow: inset 2px 0 0 var(--verde-claro);
}

.preview-main {
  flex: 1;
  min-width: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--crema);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 14px;
}

.preview-card .label {
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.preview-card .value {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.preview-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
}

.preview-chart-head span {
  font-weight: 400;
  color: var(--texto-suave);
  font-size: 0.6875rem;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  margin-top: 10px;
}

.chart div {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
}

.chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--verde);
}

.chart i + i {
  background: var(--verde-claro);
}

.plain.preview-list {
  padding: 6px 14px;
}

.preview-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid #f3efe5;
}

.preview-list li:last-child {
  border-bottom: 0;
}

.preview-list strong {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .preview-side {
    display: none;
  }

  .preview-main {
    padding: 14px;
  }

  .preview-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

ul.plain,
ol.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill-ok {
  background: var(--menta);
  color: var(--verde-oscuro);
}

.pill-pending {
  background: var(--ocre-fondo);
  color: var(--ocre);
}

/* Secciones */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--superficie);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 40rem;
  margin-bottom: 40px;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--texto-suave);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.step {
  padding: 28px;
  border-radius: 16px;
  background: var(--crema);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: var(--display);
  font-weight: 800;
  color: var(--verde);
}

.step h3 {
  font-size: 1.3rem;
}

.step p {
  color: var(--texto-suave);
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.module {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}

.module-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--menta);
  color: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-icon svg {
  width: 20px;
  height: 20px;
}

.module h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.module p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--texto-suave);
}

/* Familias */

.families {
  background: var(--tinta);
  color: #eef1e8;
}

.families-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.families-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.families-copy .kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--verde-claro);
}

.families-copy h2 {
  color: #fff;
}

.families-copy p:last-child {
  font-size: 1.125rem;
  color: #d5ddd7;
}

.portal {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 460px;
  padding: 24px;
  border-radius: 20px;
  background: var(--superficie);
  color: var(--tinta);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.5);
}

.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-head strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
}

.portal-head span {
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--borde);
  border-radius: 14px;
}

.child-info {
  display: flex;
  flex-direction: column;
}

.child-info span {
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.child-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.child-amount strong {
  font-family: var(--display);
  font-weight: 800;
}

/* Acompañamiento */

.support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.support div {
  padding-top: 18px;
  border-top: 3px solid var(--verde);
}

.support h3 {
  margin-bottom: 8px;
}

.support p {
  font-size: 0.95rem;
  color: var(--texto-suave);
}

/* Demo */

.demo {
  padding: 0 0 88px;
}

.demo-card {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 48px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 24px;
}

.demo-copy {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-copy .intro {
  font-size: 1.05rem;
}

#demo-form {
  flex: 1 1 460px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#demo-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

#demo-form .wide,
#demo-form .form-actions,
#demo-form .form-note,
#demo-form .form-result {
  grid-column: 1 / -1;
}

#demo-form input,
#demo-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--borde-fuerte);
  border-radius: 10px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  font-weight: 400;
}

#demo-form textarea {
  min-height: 110px;
  resize: vertical;
}

#demo-form input:focus,
#demo-form textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgb(23 107 87 / 0.18);
}

#demo-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.form-result {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--menta);
  color: var(--verde-oscuro);
  font-weight: 600;
}

@media (max-width: 640px) {
  .demo-card {
    padding: 28px 20px;
  }

  #demo-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pie */

.site-footer {
  background: var(--tinta);
  color: #a3b3ac;
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.site-footer a {
  color: #d5ddd7;
}

.site-footer a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
