/*
Theme Name: Quipu Landing
Theme URI: https://quipu.team/
Author: Orange 612
Author URI: https://orange612.com/
Description: Tema minimo para la landing de Quipu (QPU-1169). Una sola pagina estatica: front-page.php.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: Propietario
Text Domain: quipu-landing
*/

/* =========================================================
   Quipu — Landing  ·  by orange612_
   Tokens según Quipu_manual_de_marca_2026 (p.08 Color, p.09 Tipografía)
   ========================================================= */

:root {
  /* Color — manual p.08 */
  --verde: #0C2A12;        /* Verde Quipu · principal: fondos de marca, encabezados */
  --lima: #D5E94E;         /* Lima · acento: isotipo sobre oscuro, QA, acción principal */
  --crema: #F7F5E8;        /* Crema · wordmark sobre oscuro, fondos claros cálidos */
  --verde-2: #14361A;      /* Verde 2 · superficies y tarjetas sobre verde */
  --verde-ui: #1D4321;     /* Verde interfaz · botones y enlaces sobre claro */
  --tinta: #06180A;        /* Tinta · degradados y sombras */
  --menta: #A6D2A3;        /* Menta · estados secundarios y chips */
  --lima-suave: #F2F6D6;   /* Lima suave · fondos de chips y alertas */
  --aprobado: #2FB57E;
  --rechazado: #93000A;
  --blanco: #FFFFFF;
  --papel: #FAF8EC;        /* fondo "papel" usado en las páginas del manual */

  --texto: #0C2A12;
  --texto-suave: #3E5442;
  --linea: #E4E1CF;
  --linea-oscura: rgba(247, 245, 232, 0.12);

  /* Tipografía — manual p.09 */
  --f-display: "Poppins", system-ui, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1160px;
}

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

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

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 26px;               /* Texto Inter 16/26 */
  color: var(--texto);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--f-display); margin: 0; }
h1 { font-weight: 700; font-size: 48px; line-height: 52px; letter-spacing: -0.02em; } /* H1 48/52 −2 % */
h2 { font-weight: 600; font-size: 32px; line-height: 38px; }                          /* H2 32/38 */
h3 { font-weight: 600; font-size: 19px; line-height: 26px; }
p  { margin: 0; }

.mono { font-family: var(--f-mono); font-weight: 500; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--lima); color: var(--verde);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 6px; }
.section-paper :focus-visible,
.section-white :focus-visible { outline-color: var(--verde-ui); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-text); font-weight: 600; font-size: 16px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-accent { background: var(--lima); color: var(--verde); }        /* acción principal: lima */
.btn-accent:hover { background: #E0F06B; }

.btn-primary { background: var(--verde-ui); color: var(--crema); }   /* botón sobre claro */
.btn-primary:hover { background: var(--verde); }

.btn-ghost-dark { color: var(--crema); border-color: rgba(247,245,232,.3); }
.btn-ghost-dark:hover { border-color: var(--crema); }

/* ---------- Placeholders (datos por confirmar) ---------- */
.placeholder {
  display: inline-block;
  font-family: var(--f-mono); font-weight: 500; font-size: 13px; line-height: 20px;
  color: var(--rechazado);
  background: #FCEBEC;
  border: 1px dashed var(--rechazado);
  border-radius: 6px;
  padding: 1px 8px;
}
.placeholder-dark,
.plan-dark .placeholder,
.placeholder-inline {
  color: var(--lima);
  background: transparent;
  border: 1px dashed var(--lima);
}
.placeholder-inline {
  font-family: var(--f-mono); font-size: .85em;
  border-radius: 6px; padding: 0 6px;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--verde);
  border-bottom: 1px solid var(--linea-oscura);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  min-height: 80px;
}
.brand { flex-shrink: 0; }
.brand-full  { width: 232px; }      /* ≥ 220 px: tamaño mínimo del lockup + respaldo (p.05) */
.brand-short { width: 124px; display: none; }  /* ≥ 120 px: mínimo del lockup solo */

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  color: rgba(247,245,232,.78);
  text-decoration: none; font-weight: 500; font-size: 15px;
}
.main-nav a:hover { color: var(--crema); }

/* ---------- Hero ---------- */
.hero {
  /* Degradado de fondo principal → tinta a 160°, como el ícono de marca (p.07). Nunca sobre el logo. */
  background: linear-gradient(160deg, var(--verde) 0%, var(--tinta) 100%);
  color: var(--crema);
  padding: 88px 0 104px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.prompt {
  font-size: 14px; line-height: 20px;
  color: rgba(247,245,232,.6);
  margin-bottom: 24px;
}
.cursor { color: var(--lima); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.hero h1 { font-size: 56px; line-height: 60px; color: var(--crema); }
.lead {
  margin-top: 24px;
  font-size: 18px; line-height: 29px;
  color: rgba(247,245,232,.8);
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }

/* Tablero ilustrativo — interfaz clara sobre papel (p.11) */
.board {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.board-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.board-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 16px;
}
.board-meta { font-size: 12px; color: var(--texto-suave); }
.board-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.board-col {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  min-height: 230px;
  display: flex; flex-direction: column; gap: 8px;
}
.col-label {
  font-size: 11px; line-height: 16px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--texto-suave);
  padding: 0 4px 4px;
}
.tcard {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 10px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 12.5px; line-height: 17px;
}
.tcard strong { font-weight: 600; }
.tid { font-size: 11px; color: var(--texto-suave); }
.who { font-size: 11.5px; color: var(--texto-suave); }
.tcard-qa { border: 2px solid var(--lima); background: var(--lima-suave); }

.chip {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 10.5px; line-height: 14px;
  padding: 3px 8px;
  border-radius: 999px;
}
.chip-qa { background: var(--lima); color: var(--verde); }
.chip-ok { background: #DDF3E8; color: #135A3C; }
.chip-fathom { background: var(--lima-suave); color: var(--verde-ui); border: 1px solid #DCE5A3; }

.board-notif {
  position: absolute;
  left: -28px; bottom: -26px;
  display: flex; align-items: center; gap: 10px;
  background: var(--verde-2);
  color: var(--crema);
  border: 1px solid var(--linea-oscura);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px; line-height: 20px;
  max-width: 360px;
}
.notif-dot {
  width: 10px; height: 10px; flex-shrink: 0;
  border-radius: 50%; background: var(--aprobado);
}

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section-paper { background: var(--papel); }
.section-white { background: var(--crema); }
.section-dark  { background: var(--verde); color: var(--crema); }

.eyebrow {
  font-size: 12px; line-height: 16px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--verde-ui);
  margin-bottom: 14px;
}
.eyebrow-accent { color: var(--lima); }
.section h2 { max-width: 22em; }
.section-dark h2 { color: var(--crema); }
.section-lead {
  margin-top: 16px; max-width: 38em;
  font-size: 18px; line-height: 29px;
  color: rgba(247,245,232,.75);
}
.section-lead-light { color: var(--texto-suave); }

/* Problema */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.problem {
  border-top: 2px solid var(--verde);
  padding-top: 20px;
}
.problem-before {
  color: var(--texto-suave);
  text-decoration: line-through;
  text-decoration-color: rgba(147, 0, 10, .45);
  text-decoration-thickness: 1.5px;
}
.problem-after {
  margin-top: 14px;
  font-weight: 500;
}
.tag {
  display: inline-block;
  font-size: 11px; line-height: 16px;
  background: var(--verde); color: var(--lima);
  border-radius: 6px; padding: 2px 7px; margin-right: 6px;
  vertical-align: 1px;
}

/* Funciones */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
}
.feature {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: 28px;
}
.feature h3 { margin-top: 20px; }
.feature p { margin-top: 8px; color: var(--texto-suave); }
.ficon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--verde);
  display: grid; place-items: center;
}
.ficon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--lima); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Flujo */
.flow {
  list-style: none; padding: 0;
  margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  position: relative;
}
/* la "cuerda" que une los estados */
.flow::before {
  content: "";
  position: absolute; left: 24px; right: 24px; top: 62px;
  height: 2px; background: rgba(247,245,232,.18);
}
.flow-step {
  position: relative;
  background: var(--verde-2);
  border: 1px solid var(--linea-oscura);
  border-radius: var(--radius);
  padding: 20px;
}
.step-n { display: block; font-size: 12px; color: rgba(247,245,232,.5); }
.state {
  display: inline-block; position: relative;
  margin-top: 14px;
  font-size: 13px; line-height: 18px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(166, 210, 163, .16);
  color: var(--menta);
}
.state-qa { background: var(--lima); color: var(--verde); }
.state-ok { background: rgba(47, 181, 126, .2); color: #7FE0B4; }
.flow-step h3 { margin-top: 18px; color: var(--crema); font-size: 18px; }
.flow-step p { margin-top: 6px; font-size: 15px; line-height: 23px; color: rgba(247,245,232,.72); }
.flow-step-qa { border-color: rgba(213, 233, 78, .5); }

.voice {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px;
  border-top: 1px solid var(--linea-oscura);
  padding-top: 28px;
}
.voice-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(247,245,232,.55); }
.voice-msg { font-size: 18px; color: var(--crema); }

/* Planes */
.plans {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 48px;
}
.plan {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column;
}
.plan-dark { background: var(--verde); color: var(--crema); border-color: var(--verde); }
.plan-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--verde-ui); }
.plan-dark .plan-kicker { color: var(--lima); }
.plan-name { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 36px; margin-top: 6px; }
.plan-for { margin-top: 10px; color: var(--texto-suave); }
.plan-dark .plan-for { color: rgba(247,245,232,.75); }
.plan-price { margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.plan-dark .plan-price { border-color: var(--linea-oscura); }
.plan-list { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; display: grid; gap: 12px; align-content: start; }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--lima-suave);
  border: 2px solid var(--verde-ui);
}
.plan-dark .plan-list li::before { background: transparent; border-color: var(--lima); }

/* CTA final */
.cta {
  background: linear-gradient(160deg, var(--verde) 0%, var(--tinta) 100%);
  color: var(--crema);
  padding: 112px 0;
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 72px; margin-bottom: 28px; }
.cta h2 { font-weight: 700; font-size: 44px; line-height: 50px; letter-spacing: -0.02em; max-width: 16em; }
.cta p { margin-top: 16px; font-size: 18px; color: rgba(247,245,232,.78); }
.cta-actions { justify-content: center; }

/* Pie */
.site-footer {
  background: var(--tinta);
  color: rgba(247,245,232,.6);
  padding: 48px 0;
  border-top: 1px solid var(--linea-oscura);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo tag seal" "legal legal legal";
  gap: 20px 32px; align-items: center;
}
.footer-logo { grid-area: logo; width: 124px; }
.footer-tag  { grid-area: tag; font-size: 15px; }
.footer-seal { grid-area: seal; width: 170px; }
.footer-legal { grid-area: legal; font-size: 12px; border-top: 1px solid var(--linea-oscura); padding-top: 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .board { max-width: 640px; }
  .board-notif { left: 16px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow::before { display: none; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  h1, .hero h1 { font-size: 38px; line-height: 44px; }
  h2 { font-size: 26px; line-height: 32px; }
  .cta h2 { font-size: 32px; line-height: 38px; }

  .container { padding: 0 20px; }
  .header-inner { min-height: 68px; gap: 12px; }
  /* Por debajo de 220 px el respaldo se omite y se usa el lockup solo (p.05) */
  .brand-full { display: none; }
  .brand-short { display: block; }

  .hero { padding: 56px 0 88px; }
  .lead { font-size: 17px; line-height: 27px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .board { padding: 14px; }
  .board-cols { grid-template-columns: repeat(2, 1fr); }
  .board-col { min-height: 0; }
  .board-notif { position: static; margin-top: 14px; max-width: none; }

  .section { padding: 72px 0; }
  .problem-grid,
  .features,
  .plans,
  .flow { grid-template-columns: 1fr; }
  .plan { padding: 28px; }

  .cta { padding: 80px 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "tag" "seal" "legal";
  }
}
