:root {
  --ink: #0d0d0d;
  --cream: #f8f6f1;
  --cobalt: #1b4fd8;
  --cobalt-hover: #1540b8;
  --amber: #c8873a;
  --on-dark-soft: color-mix(in srgb, var(--cream) 72%, var(--ink));
  --line-dark: color-mix(in srgb, var(--cream) 18%, var(--ink));
  --panel: color-mix(in srgb, var(--cream) 5%, var(--ink));
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Círculos degradados del isologo, en las esquinas. */
body::before, body::after { position: fixed; z-index: 0; aspect-ratio: 1; border-radius: 50%; content: ""; pointer-events: none; }
body::before { top: -18rem; right: -16rem; width: 36rem; background: radial-gradient(circle, color-mix(in srgb, var(--cobalt) 30%, transparent), transparent 65%); }
body::after { bottom: -20rem; left: -18rem; width: 34rem; background: radial-gradient(circle, color-mix(in srgb, var(--amber) 16%, transparent), transparent 65%); }

.card { position: relative; z-index: 1; width: min(30rem, 100%); margin: 0 auto; padding: 3.5rem 1rem 2.5rem; }

.profile { text-align: center; }
.portrait { display: block; width: 8.5rem; height: 8.5rem; margin: 0 auto 1.5rem; border: 1px solid var(--line-dark); border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 6px var(--ink), 0 0 0 7px color-mix(in srgb, var(--amber) 55%, transparent); }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 3rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.025em; }
h1 em { font-style: italic; }
.tagline { margin: .9rem 0 0; color: var(--on-dark-soft); font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.bio { max-width: 24rem; margin: 1.1rem auto 0; color: var(--on-dark-soft); font-size: .95rem; font-weight: 400; line-height: 1.65; }

.orbit { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: 2rem 0; }
.orbit span { display: block; border-radius: 50%; }
.orbit span:nth-child(1) { width: 8px; height: 8px; background: var(--amber); }
.orbit span:nth-child(2) { width: 6px; height: 6px; background: var(--cobalt); }
.orbit span:nth-child(3) { width: 5px; height: 5px; background: var(--cream); opacity: .55; }

.links { display: grid; gap: .7rem; }
.link { display: flex; align-items: center; gap: .95rem; min-height: 3.75rem; padding: .85rem 1.1rem; border: 1px solid var(--line-dark); border-radius: 3px; background: var(--panel); color: var(--cream); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.link:hover { border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 14%, var(--ink)); }
.link:active { transform: translateY(1px); }
.link:focus-visible, .social a:focus-visible, .foot a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.link svg { flex: none; width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.link svg .fill, .social svg .fill { fill: currentColor; stroke: none; }
.link__text { display: grid; flex: 1; min-width: 0; }
.link__title { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.link__sub { color: var(--on-dark-soft); font-size: .82rem; line-height: 1.35; }
.link__arrow { flex: none; color: var(--on-dark-soft); transition: transform .2s, color .2s; }
.link:hover .link__arrow { color: var(--cream); transform: translateX(3px); }

.link--primary { border-color: var(--cobalt); background: var(--cobalt); }
.link--primary:hover { border-color: var(--cobalt-hover); background: var(--cobalt-hover); }
.link--primary .link__sub, .link--primary .link__arrow { color: color-mix(in srgb, var(--cream) 82%, var(--cobalt)); }

/* Línea amber a la izquierda: énfasis del canal propio. */
.link--accent { box-shadow: inset 2px 0 0 var(--amber); }

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.social a { display: grid; width: 2.9rem; height: 2.9rem; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--cream); transition: background .2s, border-color .2s; }
.social a:hover { border-color: var(--cobalt); background: var(--cobalt); }
.social svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.foot { margin-top: 2.75rem; text-align: center; }
.foot a { display: inline-flex; align-items: center; gap: .6rem; color: var(--on-dark-soft); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-decoration: none; text-transform: uppercase; }
.foot a:hover { color: var(--cream); }
.foot__mark { flex: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
