/* ============================================================
   NODO ROLERO · Directorio de profesionales del rol
   Tokens y gramática visual portados de sevillarolweek.com
   (assets/css/srw-handoff.css). Sin Bootstrap: esta app no lo
   necesita, así que los selectores no llevan el prefijo .r
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-soft: #5a5550;
  --red: #d12e2e;
  --red-deep: #a82020;
  --red-tint: #fae0df;
  --azulejo: #2a4d6b;
  --azulejo-deep: #1d3850;
  --azulejo-tint: #e1e8ef;
  --ocre: #c08a1c;
  --ocre-deep: #8a6210;
  --ocre-tint: #f6ecd2;
  --cream: #fffdfb;
  --cream-2: #f4f3f1;
  --paper: #ffffff;
  --line: rgba(26, 26, 26, .13);
  --line-2: rgba(26, 26, 26, .07);
  --shadow: 0 1px 0 rgba(26, 26, 26, .03), 0 16px 34px -22px rgba(26, 26, 26, .32);
  --shadow-sm: 0 8px 22px -16px rgba(26, 26, 26, .42);
  --maxw: 1180px;
  --r: 14px;
  --r-lg: 22px;
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Mulish', system-ui, sans-serif;
  --font-accent: 'Rye', serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* La banda de demo. Igual que en la app: una sola regla, y su altura es
   un token porque tres cosas más leen el hueco que deja. */
:root { --demo-bar: 30px; }
body.demo::before {
  content: "VMP · datos de demostración";
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--demo-bar); line-height: var(--demo-bar);
  background: var(--ocre-deep); color: #fff; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap;
}
@media (min-width: 720px) {
  body.demo::before { content: "VMP · datos de demostración · nada de esto se guarda en ningún servidor"; }
}
body.demo { padding-top: var(--demo-bar); }
body.demo .nav { top: var(--demo-bar); }

[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 800; line-height: 1.06;
  letter-spacing: -.02em; margin: 0; color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-accent); font-size: .95rem; color: var(--red);
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow.azulejo { color: var(--azulejo); }
.eyebrow.ocre { color: var(--ocre-deep); }
.kicker {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: .74rem; color: var(--ink-soft);
}

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; flex: none;
}
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bt b { font-size: .98rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 900; }
.brand .bt span {
  font-size: .62rem; letter-spacing: .2em; color: var(--red);
  font-weight: 700; text-transform: uppercase;
}
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  padding: 8px 10px; border-radius: 9px; white-space: nowrap;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out);
}
.nav-links a:hover { background: rgba(28, 22, 19, .06); }
.nav-links a.active { color: var(--red); }
.nav-links a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nav-cta {
  font-family: var(--font-head); font-weight: 800; font-size: .86rem;
  background: var(--red); color: #fff !important; padding: 10px 18px;
  border-radius: 10px; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--red-deep); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 800; font-size: .96rem;
  padding: 13px 24px; border-radius: 12px; cursor: pointer; border: 0;
  min-height: 44px; text-align: center;
  transition: transform .16s var(--ease-out), background-color .18s var(--ease-out), color .16s var(--ease-out);
}
.btn-red { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-quiet {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  font-weight: 700; font-size: .88rem; padding: 10px 16px;
}
.btn-quiet:hover { background: var(--cream-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn-sm { padding: 8px 14px; font-size: .84rem; min-height: 38px; border-radius: 10px; }

/* Secciones y superficies */
.sec { padding: clamp(40px, 6vw, 80px) 0; }
.sec-head { max-width: 680px; margin-bottom: 34px; }
.sec-head .eyebrow { margin-bottom: 12px; }
.sec-head p { margin-top: 12px; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px;
}
.tiles {
  height: 14px; background-size: 28px 28px;
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-position: 0 0, 14px 14px; opacity: .92;
}

/* Formularios */
label.field { display: block; margin-bottom: 16px; }
label.field > span {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-soft); margin-bottom: 6px;
}
input[type="text"], input[type="password"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent;
}
.hint { font-size: .84rem; color: var(--ink-soft); margin: 4px 0 0; }
.error {
  background: var(--red-tint); color: var(--red-deep); border-radius: var(--r);
  padding: 11px 14px; font-weight: 700; font-size: .92rem; margin-bottom: 16px;
}

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  padding: 5px 11px; border-radius: 999px;
  background: var(--cream-2); color: var(--ink-soft); border: 1px solid var(--line-2);
}
.tag.on { background: var(--red-tint); color: var(--red-deep); border-color: transparent; }
.tag.ranked { background: var(--azulejo-tint); color: var(--azulejo-deep); border-color: transparent; }
.tag .rank {
  font-size: .68rem; font-weight: 900; background: var(--azulejo); color: #fff;
  min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center;
}
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }

button.tag { cursor: pointer; min-height: 30px; }
button.tag:hover { border-color: var(--ink-soft); }
button.tag.on:hover { background: var(--red); color: #fff; }
button.tag:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Avatar */
.avatar {
  width: 56px; height: 56px; border-radius: 16px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-family: var(--font-head);
  font-weight: 900; color: #fff; font-size: 1.15rem; letter-spacing: -.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 108px; height: 108px; border-radius: 24px; font-size: 2.1rem; }

/* Footer */
.foot { background: var(--ink); color: #e9ddc9; padding: 44px 0 26px; margin-top: 60px; }
.foot a { opacity: .8; }
.foot a:hover { opacity: 1; color: #fff; }
.foot-in { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.foot p { color: #e9ddc9; opacity: .7; font-size: .84rem; margin: 0; max-width: 54ch; }

@media (max-width: 720px) {
  .nav-in { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .nav-links { margin-left: 0; width: 100%; }
}
