/* Hogares de Paz — Design Tokens */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Paleta — ECCLA · Navy + White + acento vino */
  --hp-bg: #ffffff;
  --hp-paper: #ffffff;
  --hp-ink: #0A1F44;             /* ECCLA navy */
  --hp-ink-deep: #061534;
  --hp-ink-soft: #3a4a6b;
  --hp-ink-ghost: #7a8599;
  --hp-line: #e6e9ef;
  --hp-line-strong: #d0d6e0;

  /* Acento primario: navy — se usa donde antes era gold */
  --hp-gold: #0A1F44;             /* alias: primario navy */
  --hp-gold-deep: #061534;
  --hp-gold-tint: #eef1f8;        /* tint azul claro */

  /* Acento secundario: vino (wine/burgundy) — solo sobre fondos claros */
  --hp-wine: #7A1F2B;
  --hp-wine-deep: #5a1720;
  --hp-wine-tint: #fbeef0;

  /* Acento sobre navy: amarillo puro + blanco */
  --hp-yellow: #FFD23F;
  --hp-yellow-deep: #E0B400;
  --hp-yellow-tint: #FFF8DC;
  --hp-on-navy: #ffffff;

  --hp-sage: #2b6a4f;
  --hp-sage-tint: #ecf4ef;

  --hp-plum: #5a4278;
  --hp-plum-tint: #f2eef7;

  --hp-sky: #1E4D8C;
  --hp-sky-tint: #eaf1fa;

  --hp-danger: #7A1F2B;
  --hp-danger-tint: #fbeef0;

  --hp-success: #2b6a4f;

  /* Radios — más redondeados */
  --hp-r-sm: 8px;
  --hp-r: 14px;
  --hp-r-lg: 20px;
  --hp-r-full: 999px;

  /* Sombra */
  --hp-shadow-sm: 0 1px 2px rgba(10,31,68,0.05);
  --hp-shadow: 0 1px 2px rgba(10,31,68,0.05), 0 4px 12px rgba(10,31,68,0.05);
  --hp-shadow-lg: 0 1px 2px rgba(10,31,68,0.06), 0 12px 32px rgba(10,31,68,0.1);

  /* Tipografía — solo Inter (ECCLA) */
  --hp-serif: 'Inter', -apple-system, system-ui, sans-serif;
  --hp-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --hp-mono: 'JetBrains Mono', ui-monospace, monospace;
}

.hp-root {
  font-family: var(--hp-sans);
  color: var(--hp-ink);
  background: var(--hp-bg);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}

.hp-root * { box-sizing: border-box; }

.hp-serif {
  font-family: var(--hp-sans);
  letter-spacing: -0.022em;
  font-weight: 600;
}

.hp-mono { font-family: var(--hp-mono); }

.hp-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hp-ink-soft);
}

.hp-label-sm {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hp-ink-ghost);
}

.hp-card {
  background: var(--hp-paper);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-r);
}

.hp-card-hover:hover {
  border-color: var(--hp-line-strong);
  box-shadow: var(--hp-shadow);
}

.hp-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--hp-line-strong);
  border-radius: var(--hp-r-sm);
  background: white;
  font-family: inherit;
  font-size: 13px;
  color: var(--hp-ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-input:focus {
  border-color: var(--hp-ink);
  box-shadow: 0 0 0 3px rgba(10,31,68,0.1);
}
.hp-input::placeholder { color: var(--hp-ink-ghost); }

.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--hp-r-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.hp-btn-primary {
  background: var(--hp-ink);
  color: white;
}
.hp-btn-primary:hover { background: var(--hp-ink-deep); }

.hp-btn-ghost {
  background: white;
  color: var(--hp-ink);
  border-color: var(--hp-line-strong);
}
.hp-btn-ghost:hover { background: #f5f7fa; }

.hp-btn-gold {
  background: var(--hp-wine);
  color: white;
}
.hp-btn-gold:hover { background: var(--hp-wine-deep); }

.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--hp-r-full);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--hp-line-strong);
  background: var(--hp-bg);
  color: var(--hp-ink-soft);
}

.hp-divider {
  height: 1px;
  background: var(--hp-line);
  width: 100%;
}

.hp-stripe-bg {
  background-image: repeating-linear-gradient(
    135deg,
    var(--hp-line) 0,
    var(--hp-line) 1px,
    transparent 1px,
    transparent 8px
  );
}

.hp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.hp-focus-ring:focus-visible {
  outline: 2px solid var(--hp-gold);
  outline-offset: 2px;
}

/* Placeholder graphic */
.hp-placeholder {
  background: var(--hp-wine-tint);
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 8px,
      rgba(122,31,43,0.1) 8px, rgba(122,31,43,0.1) 9px);
  color: var(--hp-wine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hp-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px dashed rgba(122,31,43,0.4);
  border-radius: var(--hp-r-sm);
}

/* Progress bar */
.hp-progress {
  height: 4px;
  background: var(--hp-line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.hp-progress > div {
  height: 100%;
  background: var(--hp-ink);
  transition: width 0.3s;
}

/* Animations */
@keyframes hp-pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.hp-pulse-slow { animation: hp-pulse-slow 2.6s ease-in-out infinite; }

@keyframes hp-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Sparkline bars */
.hp-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.hp-bars > div {
  flex: 1;
  background: var(--hp-ink);
  border-radius: 1px;
  opacity: 0.85;
  min-height: 2px;
}

/* Checkbox dot list */
.hp-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--hp-ink-soft);
}
