/* =====================================================================
   dan.techandhealth.io: estilos propios sobre el sistema de techandhealth.io
   (styles.css es copia del sitio principal; aquí solo va lo nuevo)
   ===================================================================== */

/* Marca en texto */
.brand-name {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--foreground);
}
.brand-name span { font-family: var(--serif); font-style: italic; color: var(--accent-strong); letter-spacing: -.02em; }
.brand-name:hover { text-decoration: none; }
.dan-footer .brand-name--footer { font-size: 1.3rem; margin-bottom: 6px; color: var(--foreground); }

/* ---------- Inicio ---------- */
.dan-hero { padding-bottom: 36px; }
.dan-hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}
.dan-hero-text { text-align: left; }
.dan-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); margin-bottom: 20px; }
.dan-wordmark { font-size: 1.35rem; margin-bottom: 14px; }
.dan-wordmark span { font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.dan-hero .hero-sub { margin: 0 0 24px; max-width: 600px; }
.dan-hero-photo { margin: 0; justify-self: center; width: min(100%, 360px); }
.dan-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-4xl);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-mock);
}
.dan-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Chips de ejes */
.axis-chips, .entry-axes { display: flex; flex-wrap: wrap; gap: 7px; }
.axis-chips li, .entry-axes li {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .95);
  color: var(--muted-foreground-2);
}
.axis-chips li::before, .entry-axes li::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  background: var(--axis, var(--accent));
}
[data-axis="calidad"]        { --axis: #0C6B80; }
[data-axis="digital"]        { --axis: #22C6CE; }
[data-axis="ia"]             { --axis: #6C63D9; }
[data-axis="emprendimiento"] { --axis: #E08A2E; }
.entry-axes { margin-top: 12px; }
.entry-axes li { background: var(--muted); border-color: var(--border); font-size: .66rem; padding: 4px 10px; }

/* Datos rápidos bajo el inicio */
.dan-facts-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 44px;
}
.dan-facts-strip li {
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--radius-3xl);
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(12, 63, 80, .05);
}
.dan-facts-strip strong { display: block; font-size: 1.15rem; letter-spacing: -.03em; color: var(--foreground); }
.dan-facts-strip span { display: block; font-size: .82rem; line-height: 1.4; color: var(--muted-foreground-2); margin-top: 3px; }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 8px; }
.about-text p { max-width: 64ch; font-size: 1.05rem; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- Filtro por eje ---------- */
.axis-filter-wrap {
  position: sticky;
  top: calc(var(--nav-h) + var(--frame-w) + 8px);
  z-index: 50;
  padding: 10px 0 0;
}
.axis-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-card);
  width: fit-content;
  max-width: 100%;
}
.axis-filter-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.axis-filter button {
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-foreground-2);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.axis-filter button:hover { background: var(--muted); color: var(--foreground); }
.axis-filter button.is-active { background: var(--foreground); color: #fff; }
.axis-status { font-size: .82rem; color: var(--muted-foreground); margin: 8px 0 0 20px; min-height: 1.2em; }
@media (max-width: 640px) {
  .axis-filter-wrap { position: static; padding-top: 0; }
  .axis-filter { border-radius: var(--radius-3xl); padding: 12px; }
  .axis-filter .mono-label { width: 100%; padding-left: 4px; }
}

/* ---------- Listas de trayectoria ---------- */
.entry-list { display: grid; gap: 10px; }
.entry {
  display: grid;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.entry-when {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--accent-strong);
  padding-top: 3px;
}
.entry-body h3 { font-size: 1.08rem; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 4px; }
.entry-body p { font-size: .9rem; color: var(--muted-foreground-2); margin: 0; }
.entry-body a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 760px) {
  .entry { grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 28px; }
}

/* Estado de una publicación */
.status {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground-2);
}
.status--review { background: #FFF6EA; border-color: #F3DDBE; color: #8A5414; }
.status--done { background: var(--accent-tint-2); border-color: rgba(167, 221, 227, .8); color: var(--accent-strong); }

/* Formación: tablero por eje (reutiliza .cred-row del sitio principal) */
.cred-board { display: grid; gap: 10px; }
.cred-board .cred-row { padding: 22px 24px; }
.cred-board .cred-row ul { gap: 12px; }
@media (min-width: 640px) {
  .cred-board .cred-row { grid-template-columns: 170px 1fr; gap: 20px; }
}

/* Secciones de trayectoria más compactas */
.trayectoria .section { padding: 48px 0; }

/* Filtrado */
.filterable { scroll-margin-top: 190px; }
.entry.is-hidden { display: none; }
.filterable.is-empty { display: none; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; gap: 14px; max-width: 980px; margin-inline: auto; }
.contact-cards .card { display: flex; flex-direction: column; align-items: flex-start; }
.contact-cards .card p { flex: 1 1 auto; }
.contact-cards .btn { margin-top: 10px; }
.contact-card-actions { display: flex; flex-wrap: wrap; gap: 0 10px; }

/* ---------- Pie ---------- */
.dan-footer {
  display: grid;
  gap: 22px;
  padding-bottom: 28px;
}
.dan-footer p { margin: 0; font-size: .93rem; color: var(--muted-foreground); }
.dan-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.dan-footer-links a { color: var(--muted-foreground-2); font-size: .93rem; }
.dan-footer-links a:hover { color: var(--foreground); }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  .dan-hero { padding-bottom: 48px; }
  .dan-hero-inner { grid-template-columns: 1.35fr 1fr; gap: 64px; }
  .dan-hero-photo { justify-self: end; }
  .dan-facts-strip { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
  .about { grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .dan-footer { grid-template-columns: 1fr auto; align-items: end; }
}
