/* ============================================================
   KTOWA — Estilos específicos de página
   ============================================================ */

/* ---------- MENÚ MÓVIL ---------- */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu {
  display: none; flex-direction: column; padding: 1rem 1.25rem 1.5rem;
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 68px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0; color: var(--text); text-decoration: none;
  font-size: 0.95rem; border-bottom: 1px solid var(--border);
}
.mobile-menu a.mm-cta {
  border-bottom: none; margin-top: 0.85rem; text-align: center;
  background: var(--teal); color: var(--white); font-weight: 600;
  border-radius: 9px; padding: 0.8rem 1rem;
}

/* ---------- HERO (home) ---------- */
.hero-wrap { background: linear-gradient(160deg, #f0fdfa 0%, var(--bg) 55%); border-bottom: 1px solid var(--border); }
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: 3.5rem; padding: 5.5rem 2rem; max-width: var(--wrap); margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); color: var(--teal-dark);
  font-size: 0.78rem; font-weight: 600; padding: 5px 13px;
  border-radius: 20px; margin-bottom: 1.4rem; border: 1px solid #b2f0e8;
}
/* 2.6rem, no más: a 2.9rem el titular en español ("Una bandeja
   compartida para") desbordaba y dejaba "para" solo en una línea. */
.hero h1 {
  font-size: 2.6rem; font-weight: 700; line-height: 1.15;
  color: var(--dark); margin-bottom: 1.3rem;
}
.hero h1 span { color: var(--teal); }
.hero .lead { font-size: 1.08rem; color: var(--muted); line-height: 1.75; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--muted); margin-top: 1.5rem; }

/* Hero de páginas interiores */
.page-hero {
  background: linear-gradient(160deg, #f0fdfa 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 2rem 4rem; text-align: center;
}
.page-hero h1 { font-size: 2.4rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; line-height: 1.18; }
.page-hero p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 620px; margin: 0 auto; }

/* ---------- CANALES (chips) ---------- */
.channels { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.75rem; }
.channel-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.channel-chip svg { width: 15px; height: 15px; }
.channel-chip.soon { color: var(--muted); font-weight: 500; border-style: dashed; background: transparent; }
.channel-chip.soon small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }

/* El mockup del inbox dibujado en HTML (.inbox-mock, .mock-*, .bubble)
   vivía aquí. Se retiró al sustituirlo por una captura real de la app;
   ver .app-shot en home-b.css. */

/* ---------- STATS ---------- */
.stats-bar { background: var(--teal); padding: 2.75rem 2rem; }
.stats-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
}
.stat-item { border-right: 1px solid rgba(255,255,255,0.2); padding: 0 1rem; }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.stat-label { font-size: 0.86rem; color: rgba(255,255,255,0.8); margin-top: 0.4rem; line-height: 1.5; }

/* ---------- GRIDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ---------- PROBLEMA (lista de dolores) ---------- */
.pain-section { background: var(--white); padding: 6rem 2rem; border-top: 1px solid var(--border); }
.pain-inner { max-width: var(--wrap); margin: 0 auto; }
.pain-item { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.pain-item:last-child { border-bottom: none; }
.pain-x {
  width: 22px; height: 22px; min-width: 22px; border-radius: 50%; background: #fef2f2;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.pain-x svg { width: 11px; height: 11px; stroke: #ef4444; stroke-width: 2.4; }
.pain-item p { font-size: 0.95rem; color: var(--text); line-height: 1.6; }

/* ---------- FEATURE ROWS (producto) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  align-items: center; padding: 4rem 0; border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row h2 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 0.9rem; line-height: 1.25; }
.feature-row .lead { color: var(--muted); font-size: 0.98rem; line-height: 1.75; margin-bottom: 1.35rem; }
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.feature-bullets li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text); line-height: 1.55; }
.feature-bullets svg { width: 16px; height: 16px; min-width: 16px; stroke: var(--teal); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

.feature-visual {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; min-height: 240px; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem;
}
.visual-line { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 9px; font-size: 0.82rem; }
.visual-line.accent { background: var(--teal-pale); border-color: #b2f0e8; color: var(--teal-dark); font-weight: 600; }
.visual-line svg { width: 16px; height: 16px; min-width: 16px; }

/* ---------- PRECIOS ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.plan {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.75rem; display: flex; flex-direction: column; height: 100%;
}
.plan.featured { border-color: var(--teal); box-shadow: 0 12px 40px rgba(13,148,136,0.12); position: relative; }
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white); font-size: 0.68rem; font-weight: 700;
  padding: 4px 13px; border-radius: 20px; letter-spacing: 0.04em; text-transform: uppercase;
}
.plan h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 0.4rem; }
.plan-for { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; min-height: 2.6em; }
.plan-price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
.plan-price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.plan-price-note { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.5rem; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.75rem; flex: 1; }
.plan li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.875rem; color: var(--text); line-height: 1.5; }
.plan li svg { width: 15px; height: 15px; min-width: 15px; stroke: var(--teal); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.plan .btn-primary, .plan .btn-ghost { text-align: center; width: 100%; }

.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.35rem 0; }
.faq-item h4 { font-size: 0.98rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ---------- CONTACTO ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.45rem; }
.field label .req { color: #ef4444; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.72rem 0.9rem; border: 1px solid var(--border); border-radius: 9px;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--text);
  background: var(--white); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,0.10);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; text-align: center; line-height: 1.6; }

.form-status {
  margin-top: 1.15rem; padding: 0.85rem 1.1rem; border-radius: 9px;
  font-size: 0.88rem; line-height: 1.55; text-align: center;
}
.form-status.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.form-status.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.form-status.pending { background: var(--teal-pale); border: 1px solid #b2f0e8; color: var(--teal-dark); }

.contact-aside h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }
.aside-item { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.5rem; }
.aside-item .icon-box { width: 36px; height: 36px; min-width: 36px; margin-bottom: 0; }
.aside-item .icon-box svg { width: 18px; height: 18px; }
.aside-item h4 { font-size: 0.92rem; font-weight: 600; color: var(--dark); margin-bottom: 0.2rem; }
.aside-item p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.aside-item a { color: var(--teal); text-decoration: none; }
.aside-item a:hover { text-decoration: underline; }

/* ---------- CTA FINAL ---------- */
.cta-band { background: var(--dark); padding: 5rem 2rem; text-align: center; }
.cta-band h2 { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.cta-band p { color: rgba(255,255,255,0.65); font-size: 1.02rem; line-height: 1.7; max-width: 520px; margin: 0 auto 2rem; }

/* ---------- LEGAL ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.legal h1 { font-size: 2rem; color: var(--dark); margin-bottom: 0.5rem; }
.legal .updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.15rem; color: var(--dark); margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { font-size: 0.94rem; color: var(--text); line-height: 1.8; margin-bottom: 0.85rem; }
.legal ul { padding-left: 1.25rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .burger { display: flex; }
  /* El CTA del nav se mueve al menú hamburguesa: en pantallas
     estrechas partía el texto en dos líneas y aplastaba la barra. */
  nav .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; padding: 3.5rem 1.25rem; gap: 2.5rem; }
  .hero h1 { font-size: 2.1rem; }
  .page-hero { padding: 3rem 1.25rem; }
  .page-hero h1 { font-size: 1.85rem; }
  .stats-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1.75rem; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .feature-row.reverse .feature-copy { order: 0; }
  .pain-section { padding: 4rem 1.25rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 1.5rem; }
  .cta-band { padding: 3.5rem 1.25rem; }
  .cta-band h2 { font-size: 1.6rem; }
  .legal { padding: 3rem 1.25rem 4rem; }
}
