/* axiokyn.com — dirección «Axioma»: tinta, violeta e IBM Plex. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0e0e12; --surface: #17161d; --line: #2a2933;
  --text: #ecebf2; --dim: #a9a8b6;
  --accent: #8b7cff; --accent-hover: #a594ff; --on-accent: #0e0e12;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f3ef; --surface: #eae8e2; --line: #d6d4cc;
    --text: #141318; --dim: #55535f;
    --accent: #5b47e0; --accent-hover: #4a37c9; --on-accent: #ffffff;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  max-width: 80rem; margin: 0 auto;
  padding: 2.5rem clamp(1rem, 5vw, 4.5rem);
}

/* Cabecera */
.top {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  justify-content: space-between; align-items: center;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px;
  text-decoration: none; font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.mark-axis { stroke: var(--text); }
.mark-a { stroke: var(--accent); }
.top ul {
  display: flex; flex-wrap: wrap; gap: 0 2rem; margin: 0; padding: 0; list-style: none;
  font-family: var(--mono); font-size: 0.875rem;
}
.top nav a { display: inline-block; padding: 0.75rem 0; text-decoration: none; }
.top nav a:hover { color: var(--accent); }

/* Portada */
.hero {
  flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4.5rem; align-items: center; padding: 4.5rem 0;
}
.eyebrow {
  margin: 0 0 1.75rem; font-family: var(--mono); font-size: 0.875rem;
  letter-spacing: 0.04em; color: var(--accent);
}
h1 {
  margin: 0 0 1.75rem; font-weight: 600;
  font-size: clamp(2.75rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em;
}
.lead { margin: 0 0 2.25rem; max-width: 32.5rem; font-size: 1.1875rem; color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.375rem;
  border: 1px solid var(--line); text-decoration: none; font-size: 1rem;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--dim); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Proyectos */
.projects { border: 1px solid var(--line); }
.projects-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.8125rem; color: var(--dim);
}
.projects-head h2 { margin: 0; font: inherit; }
.project {
  display: flex; gap: 1.25rem; align-items: center;
  padding: 1.75rem 1.25rem; text-decoration: none;
  transition: background-color 0.15s;
}
.project:hover { background: var(--surface); }
.project-icon { width: 64px; height: 64px; flex: none; }
.project-text { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 0; }
.project-name { font-size: 1.375rem; font-weight: 600; }
.project-desc { font-size: 0.9375rem; color: var(--dim); }
.arrow { width: 22px; height: 22px; flex: none; color: var(--accent); transition: transform 0.15s; }
.project:hover .arrow { transform: translateX(4px); }
.tags {
  display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 0; padding: 0 1.25rem 1.375rem;
  list-style: none; font-family: var(--mono); font-size: 0.75rem; color: var(--dim);
}
.tags li { padding: 0.25rem 0.5rem; border: 1px solid var(--line); }

/* Secciones: cada una abre con su eje (una línea con un tramo en violeta) */
html { scroll-behavior: smooth; }
.section { position: relative; padding: 5.5rem 0 1rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.section::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 4.5rem; height: 2px; background: var(--accent);
}
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.section-label { margin: 0; font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.04em; color: var(--accent); }
.section h2 {
  margin: 0; max-width: 22ch; font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em;
}

/* Principios */
.axioms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0 0 4rem; padding: 0; list-style: none; }
.axiom {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.75rem; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.15s, transform 0.15s;
}
.axiom:hover { border-color: var(--accent); transform: translateY(-2px); }
.axiom-n { font-family: var(--mono); font-size: 0.8125rem; color: var(--dim); }
.axiom h3 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.axiom p { margin: 0; color: var(--dim); }

/* Sonkore */
.showcase { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; margin-bottom: 4rem; }
.shot { margin: 0; padding: 0.625rem; border: 1px solid var(--line); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
.showcase-text .lead { margin-bottom: 1.75rem; }
.features { margin: 0 0 2.25rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features li { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.features strong { font-weight: 600; }
.features span { font-size: 0.9375rem; color: var(--dim); }

/* Contacto */
.contact { padding-bottom: 5rem; }
.mail {
  display: inline-flex; align-items: center; gap: 1rem; max-width: 100%;
  font-size: clamp(1.5rem, 4.4vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; color: var(--accent); overflow-wrap: anywhere;
  border-bottom: 2px solid transparent; transition: border-color 0.15s;
}
.mail:hover { border-bottom-color: var(--accent); }
.mail .arrow { width: 0.9em; height: 0.9em; }
.mail:hover .arrow { transform: translateX(6px); }

/* Página no encontrada */
.notfound { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4.5rem 0; }

/* Pie */
.foot {
  display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; justify-content: space-between; align-items: center;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.8125rem; color: var(--dim);
}
.foot a { display: inline-block; padding: 0.75rem 0; text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (max-width: 52rem) {
  .page { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 3rem; padding: 3rem 0; }
  .eyebrow { margin-bottom: 1.25rem; }
  .lead { font-size: 1.0625rem; }
  .project { padding: 1.25rem; }
  .project-icon { width: 52px; height: 52px; }
  .section { padding-top: 4rem; }
  .section-head { margin-bottom: 2rem; }
  .axioms { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 3rem; }
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-bottom: 3rem; }
  .contact { padding-bottom: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .axiom:hover { transform: none; }
}
