/* ============================================================================
   HK Engine 1 — Estilos dedicados para hk-engine/index.html
   Hereda la paleta y tipografía de styles.css (Chakra Petch + Manrope)
   ============================================================================ */

:root {
  --ink: #0d0c14;
  --ink-soft: #14131f;
  --panel: #1b1929;
  --panel-alt: #242136;
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.18);
  --text: #f5f3fa;
  --text-dim: #aca6c7;
  --pink: #ff3f7f;
  --cyan: #38e6df;
  --amber: #ffb238;
  --violet: #9d6cff;
  --orange-hk: #ff7a18;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

.hke-hero {
  padding: clamp(92px, 11vw, 132px) 0 72px;
  background:
    radial-gradient(680px 380px at 14% 18%, rgba(56, 230, 223, 0.14), transparent 62%),
    radial-gradient(640px 360px at 86% 24%, rgba(255, 63, 127, 0.16), transparent 64%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.hke-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.hke-kicker {
  display: inline-block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.hke-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.04;
  margin: 0 0 18px;
  color: var(--text);
}

.hke-title span {
  color: var(--cyan);
}

.hke-lead {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 58ch;
  margin: 0 0 28px;
}

.hke-lead strong {
  color: var(--text);
}

.hke-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hke-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.hke-btn:hover {
  transform: translateY(-2px);
}

.hke-btn--primary {
  background: linear-gradient(135deg, var(--cyan), #1fa8c9);
  color: #091318;
  box-shadow: 0 10px 28px rgba(56, 230, 223, 0.28);
}

.hke-btn--donate {
  background: linear-gradient(135deg, var(--pink), var(--orange-hk));
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(255, 63, 127, 0.30);
}

.hke-btn--ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-bright);
}

.hke-btn--ghost:hover {
  border-color: var(--cyan);
}

.hke-btn--lg {
  padding: 15px 26px;
  font-size: 1.02rem;
}

.hke-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hke-badges span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 178, 56, 0.10);
  border: 1px solid rgba(255, 178, 56, 0.28);
  color: var(--amber);
}

/* Tarjeta técnica lateral */
.hke-spec-card {
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hke-spec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: 'Chakra Petch', sans-serif;
}

.hke-spec-head small {
  margin-left: auto;
  color: var(--cyan);
  font-weight: 700;
}

.hke-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hke-spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hke-spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hke-spec-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hke-spec-list span {
  color: var(--text-dim);
}

.hke-spec-list strong {
  color: var(--text);
  text-align: right;
}

/* Grilla de características */
.hke-features {
  padding: 72px 0;
  background: var(--ink-soft);
}

.hke-section-head {
  max-width: 64ch;
  margin-bottom: 36px;
}

.hke-section-head h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin: 0 0 10px;
  color: var(--text);
}

.hke-section-head p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
}

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

.hke-feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.hke-feature-card h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.18rem;
  margin: 0 0 10px;
  color: var(--text);
}

.hke-feature-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.95rem;
}

.hke-feature-card code {
  color: var(--cyan);
  font-size: 0.88em;
}

/* Banner de donaciones */
.hke-support {
  padding: 68px 0 84px;
  background: var(--ink);
}

.hke-donate-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 63, 127, 0.35);
  background:
    radial-gradient(520px 260px at 90% 20%, rgba(255, 122, 24, 0.18), transparent 65%),
    radial-gradient(460px 260px at 10% 80%, rgba(255, 63, 127, 0.16), transparent 65%),
    var(--panel);
}

.hke-donate-copy {
  max-width: 56ch;
}

.hke-donate-copy h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  margin: 0 0 10px;
  color: var(--text);
}

.hke-donate-copy p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
}

.hke-donate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}

@media (max-width: 880px) {
  .hke-hero-grid,
  .hke-grid {
    grid-template-columns: 1fr;
  }
  .hke-donate-actions {
    width: 100%;
  }
}
