/* Layout: una sola pantalla editorial, texto alineado a la izquierda, tipografía enorme, barra superior y pie con contacto. */
:root {
  --bg: #0C0D0E;
  --fg: #ecece6;
  --muted: #8d9094;
  --line: #26292c;
  --accent: #6fe0d2;
  --accent-ink: #06201d;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f2ee;
    --fg: #111214;
    --muted: #5f6368;
    --line: #d7d8d2;
    --accent: #0a7a70;
    --accent-ink: #ffffff;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f2ee;
  --fg: #111214;
  --muted: #5f6368;
  --line: #d7d8d2;
  --accent: #0a7a70;
  --accent-ink: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 8vw, 96px);
  padding-block: 24px 28px;
}

/* barra superior */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand { color: var(--fg); text-decoration: none; font-weight: 500; }
.brand span { color: var(--accent); }
.right { display: flex; align-items: center; gap: 20px; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* selector de idioma */
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang button {
  font: inherit;
  letter-spacing: .08em;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  min-height: 32px;
  min-width: 44px;
  padding: 0 12px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* hero */
.hero { display: flex; flex-direction: column; gap: 28px; }
.tag {
  font-family: var(--mono);
  font-size: clamp(13px, 2.4vw, 15px);
  color: var(--accent);
  margin: 0;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 15.5vw, 188px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h1 .soft { color: var(--muted); font-weight: 500; }
.lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(17px, 2.6vw, 21px);
  color: var(--muted);
}
.lead strong { color: var(--fg); font-weight: 500; }

/* dos disciplinas */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.split > div { padding: 22px 0 0; min-width: 0; }
.split > div + div { padding-left: clamp(16px, 4vw, 48px); border-left: 1px solid var(--line); }
.split h2 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.split p { margin: 0 0 14px; max-width: 58ch; color: var(--muted); }
.split p:last-child { margin-bottom: 0; }
.split p.lead-line {
  color: var(--fg);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-wrap: balance;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
}

/* terminal */
.term {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}
.term b { color: var(--fg); font-weight: 500; }
.caret {
  display: inline-block; width: 8px; height: 1em; vertical-align: -2px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* contacto */
.foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill .arr { transition: transform .2s; }
.pill:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill:hover .arr { transform: translate(3px, -3px); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; }
.mail code { font: inherit; color: var(--fg); user-select: all; overflow-wrap: anywhere; }
.copy {
  font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  min-height: 32px; padding: 0 14px; cursor: pointer;
}
.copy:hover { color: var(--fg); border-color: var(--muted); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

@media (max-width: 560px) {
  .status .txt { display: none; }
  .right { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dot, .caret { animation: none; }
  .pill, .pill .arr, .lang button { transition: none; }
}
