/* =====================================================================
   home.css - Chrome publico + home de neurosigna.es
   Estética: clínica premium azul Prusia + dorado. Serif Spectral + Inter.
   Solo se carga en páginas públicas (base.html). No afecta al panel.
   ===================================================================== */

:root {
  /* Marca / tinta (azul Prusia NeuroSigna) */
  --ink: #0d1b2a;
  --navy: #0f3052;
  --blue: #14406b;
  --blue-700: #102f50;

  /* Acento — «señal» (dorado clásico) */
  --gold: #c8a24a;
  --gold-soft: #f4ecd6;

  /* CTA */
  --wa: #1f9d57;
  --wa-dark: #178247;

  /* Superficies (marfil cálido) */
  --paper: #fbfaf6;
  --paper-2: #f4f1e8;
  --card: #ffffff;
  --line: #e7e2d3;

  /* Texto */
  --text: #1f2a37;
  --muted: #5c6675;

  --maxw: 1140px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 34, 56, 0.05), 0 4px 14px rgba(14, 34, 56, 0.06);
  --shadow-md: 0 8px 30px rgba(14, 34, 56, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 34, 56, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.ns-site {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--paper-2);
  font-size: 17px;
  overflow-x: hidden;
}

/* :where() mantiene la especificidad en 0 para el ancla base, de modo que
   cualquier componente con clase (botones, sociales, footer) defina su color. */
:where(body.ns-site) a { color: var(--blue); text-decoration: none; }
:where(body.ns-site) a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.ns-container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.ns-eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.ns-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
/* Eyebrow "pastilla" del hero (idéntico a la maqueta de Claude Design).
   Se reutiliza en "Sobre mí". */
.ns-hero .ns-eyebrow,
.ns-about__copy .ns-eyebrow {
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: var(--gold-soft);
  border: 1px solid #e7d9ab;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.ns-hero .ns-eyebrow::before,
.ns-about__copy .ns-eyebrow::before {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.16);
}

.ns-skip {
  position: absolute;
  left: -999px;
}
.ns-skip:focus {
  left: 1rem; top: 1rem;
  z-index: 200;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px;
}

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.ns-btn svg { width: 1.15em; height: 1.15em; }
/* Doble clase (.ns-btn.ns-btn--x) para ganar especificidad a `body.ns-site a`. */
.ns-btn.ns-btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(31, 157, 87, 0.28); }
.ns-btn.ns-btn--wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 157, 87, 0.34); color: #fff; }
.ns-btn.ns-btn--primary { background: var(--blue); color: #fff; }
.ns-btn.ns-btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); color: #fff; }
/* CTA dorado de marca (texto en tinta para contraste sobre dorado). */
.ns-btn.ns-btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(200, 162, 74, 0.30); }
.ns-btn.ns-btn--gold:hover { background: #b8923f; transform: translateY(-2px); color: var(--ink); }
.ns-btn.ns-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ns-btn.ns-btn--ghost:hover { border-color: var(--ink); background: rgba(14,34,56,0.03); color: var(--ink); }
/* Botón secundario del hero: blanco con borde suave y sombra ligera. */
.ns-hero .ns-btn.ns-btn--ghost {
  background: #fff; border-color: rgba(20, 64, 107, 0.28);
  color: var(--blue); box-shadow: var(--shadow-sm);
}
.ns-hero .ns-btn.ns-btn--ghost:hover {
  border-color: var(--blue); background: var(--gold-soft); color: var(--blue-700);
}
.ns-btn.ns-btn--light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.32); backdrop-filter: blur(4px); }
.ns-btn.ns-btn--light:hover { background: rgba(255,255,255,0.2); color: #fff; transform: translateY(-2px); }
.ns-btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.ns-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.ns-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.ns-brand {
  font-family: "Spectral", serif;
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.ns-brand span { font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.ns-brand:hover { text-decoration: none !important; }

.ns-nav { display: flex; align-items: center; gap: 1.6rem; }
.ns-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.ns-nav a:not(.ns-btn):hover { text-decoration: none; color: var(--blue); }
.ns-nav a:not(.ns-btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.25s var(--ease);
}
.ns-nav a:not(.ns-btn):hover::after { width: 100%; }

.ns-nav__links { display: flex; align-items: center; gap: 1.6rem; }

.ns-burger { display: none; }

/* ---------------------------------------------------------------------
   Secciones genéricas
   --------------------------------------------------------------------- */
.ns-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.ns-section--paper { background: var(--paper); }
.ns-section--white { background: #fff; }
.ns-section__head { max-width: 640px; margin-bottom: 2.6rem; }
.ns-section__head--center { margin-inline: auto; text-align: center; }
.ns-h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.ns-lead { color: var(--muted); font-size: 1.12rem; margin-top: 0.4rem; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.ns-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(200,162,74,0.12), transparent 70%),
    radial-gradient(55% 60% at 5% 90%, rgba(20,64,107,0.12), transparent 70%),
    var(--paper-2);
  overflow: hidden;
}
.ns-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.ns-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 560;
  margin-bottom: 1rem;
}
.ns-hero h1 em { font-style: italic; color: var(--blue); }
.ns-hero__sub { font-size: 1.18rem; color: var(--muted); max-width: 30ch; margin: 0 0 1.8rem; }
.ns-hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }

.ns-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.ns-trust__item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.ns-trust__item svg { width: 1.05rem; height: 1.05rem; color: var(--gold); flex: none; }

/* Foto */
.ns-hero__media { position: relative; justify-self: center; }
.ns-portrait {
  position: relative;
  width: min(420px, 88vw);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #dde7f2, #c7d6e6);
  z-index: 2;
}
.ns-portrait img { display: block; width: 100%; height: auto; }
.ns-hero__blob {
  position: absolute;
  inset: -8% -10% -12% -8%;
  background: radial-gradient(circle at 30% 30%, rgba(200,162,74,0.45), transparent 60%),
              radial-gradient(circle at 75% 80%, rgba(20,64,107,0.4), transparent 62%);
  filter: blur(28px);
  z-index: 1;
  border-radius: 50%;
}
.ns-cred-card {
  position: absolute;
  left: -8%;
  bottom: 7%;
  z-index: 3;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: max-content;
  max-width: 320px;
}
.ns-cred-row { display: flex; align-items: center; gap: 0.7rem; }
.ns-cred-row + .ns-cred-row { padding-top: 0.7rem; border-top: 1px solid var(--line); }
.ns-cred-card svg { width: 1.7rem; height: 1.7rem; color: var(--gold); flex: none; }
.ns-cred-card strong { display: block; font-size: 0.92rem; color: var(--ink); font-weight: 700; line-height: 1.25; }
.ns-cred-card span { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.3; }

/* ---------------------------------------------------------------------
   Banda nocturna — Pruebas de sueño a domicilio
   --------------------------------------------------------------------- */
.ns-night {
  position: relative;
  color: #eaf1f8;
  background:
    radial-gradient(80% 120% at 80% 0%, rgba(200,162,74,0.22), transparent 55%),
    linear-gradient(165deg, #0e2238 0%, #14365f 60%, #102a4a 100%);
  overflow: hidden;
}
.ns-night::before {
  /* constelación */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 28% 64%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 47% 33%, rgba(255,255,255,0.55), transparent),
    radial-gradient(2px 2px at 68% 18%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 82% 52%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 91% 78%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 56% 82%, rgba(255,255,255,0.5), transparent);
  opacity: 0.8;
}
.ns-night > * { position: relative; z-index: 1; }
.ns-night h2, .ns-night h3 { color: #fff; }
.ns-night .ns-eyebrow { color: #e4c777; }
.ns-night .ns-eyebrow::before { background: #e4c777; }
.ns-night .ns-lead { color: #b9c8db; }

.ns-night__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.ns-night__copy p { color: #c5d2e2; }
.ns-pill-list { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: 0.7rem; }
.ns-pill-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: #dbe5f1; }
.ns-pill-list svg { width: 1.25rem; height: 1.25rem; color: #e4c777; flex: none; margin-top: 0.2rem; }

.ns-steps { display: grid; gap: 1rem; }
.ns-step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(4px);
}
.ns-step__num {
  flex: none;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Spectral", serif; font-weight: 600; font-size: 1.1rem;
  color: var(--ink);
  background: #e4c777;
}
.ns-step h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.ns-step p { margin: 0; font-size: 0.95rem; color: #b9c8db; }

/* ---------------------------------------------------------------------
   Áreas
   --------------------------------------------------------------------- */
.ns-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 1.3rem;
}
.ns-area {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}
.ns-area::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: linear-gradient(var(--gold), var(--blue));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.ns-area:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #ddd2b2; }
.ns-area:hover::after { transform: scaleY(1); }
.ns-area__icon {
  width: 3rem; height: 3rem;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.ns-area__icon svg { width: 1.55rem; height: 1.55rem; }
.ns-area h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.ns-area p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------------------------------------------------------------------
   Sobre mí
   --------------------------------------------------------------------- */
.ns-about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.ns-about__media { position: sticky; top: 88px; align-self: start; }
.ns-about__copy p { color: var(--muted); }
.ns-about__copy p strong { color: var(--text); }

.ns-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 1.6rem; }
.ns-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--gold-soft);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem; font-weight: 600;
}
.ns-badge svg { width: 1rem; height: 1rem; color: var(--gold); }

.ns-timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 2px solid var(--line); }
.ns-timeline li { position: relative; padding: 0 0 1.3rem 1.5rem; }
.ns-timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gold);
}
.ns-timeline li:last-child { padding-bottom: 0; }
.ns-timeline .yr { font-weight: 700; color: var(--blue); font-size: 0.85rem; letter-spacing: 0.02em; }
.ns-timeline .ev { display: block; color: var(--text); }

/* ---------------------------------------------------------------------
   Callout Wone Health
   --------------------------------------------------------------------- */
/* ---------------------------------------------------------------------
   Mapa / ubicación
   --------------------------------------------------------------------- */
.ns-map__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.ns-nap { }
.ns-nap__row { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.ns-nap__row svg { width: 1.3rem; height: 1.3rem; color: var(--gold); flex: none; margin-top: 0.2rem; }
.ns-nap__row strong { display: block; color: var(--ink); }
.ns-nap__row span { color: var(--muted); font-size: 0.96rem; }
.ns-nap__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.ns-map__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.ns-map__frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------------------------------------------------------------------
   Redes / reel (en Sobre mí)
   --------------------------------------------------------------------- */
.ns-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 1.6rem 0; }
.ns-social {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ns-social:hover { transform: translateY(-3px); text-decoration: none; color: #fff; }
.ns-social svg { width: 1.35rem; height: 1.35rem; }
.ns-social--ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: transparent; }
.ns-social--yt:hover { background: #ff0000; border-color: transparent; }
.ns-social--tk:hover { background: #010101; border-color: transparent; }
.ns-social--li:hover { background: #0a66c2; border-color: transparent; }
.ns-social--fb:hover { background: #1877f2; border-color: transparent; }
.ns-social--x:hover  { background: #000; border-color: transparent; }

.ns-reel {
  position: relative;
  display: block;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background-color: var(--ink);
}
.ns-reel:hover { text-decoration: none; }
.ns-reel__cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s var(--ease);
}
.ns-reel:hover .ns-reel__cover { transform: scale(1.04); }
.ns-reel__chrome {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(14,34,56,0.5) 0%, rgba(14,34,56,0) 26%,
              rgba(14,34,56,0) 58%, rgba(14,34,56,0.78) 100%);
}
.ns-reel__top { display: flex; align-items: center; justify-content: space-between; }
.ns-reel__handle { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 600; color: #fff; }
.ns-reel__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.7);
  display: grid; place-items: center;
}
.ns-reel__avatar svg { width: 16px; height: 16px; }
.ns-reel__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ns-reel__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 999px; color: #fff;
}
.ns-reel__badge svg { width: 14px; height: 14px; }
.ns-reel__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.92); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
  color: var(--blue);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.ns-reel:hover .ns-reel__play { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.ns-reel__play svg { width: 28px; height: 28px; margin-left: 4px; }
.ns-reel__cap { margin: 0; font-family: "Spectral", serif; font-size: 1.02rem; font-weight: 500; color: #fff; line-height: 1.2; }
.ns-reel__cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.88); }
.ns-reel__cta svg { width: 0.9rem; height: 0.9rem; }

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */
.ns-faq { max-width: 760px; margin-inline: auto; }
.ns-faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ns-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ns-faq__item summary::-webkit-details-marker { display: none; }
.ns-faq__item summary::after {
  content: "+";
  font-family: "Spectral", serif;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
  flex: none;
}
.ns-faq__item[open] summary::after { transform: rotate(45deg); }
.ns-faq__item p { margin: 0; padding: 0 1.4rem 1.25rem; color: var(--muted); }

/* Acordeón de trayectoria (Sobre mí) — reutiliza .ns-faq__item */
.ns-cv { margin-top: 1.8rem; }
/* Ficha suelta (Formación) entre párrafos: mismo espacio arriba y abajo. */
.ns-cv--single { margin-bottom: 1.8rem; }
.ns-cv--single .ns-faq__item { margin-bottom: 0; }
.ns-cv__small { font-size: 0.95rem; }
.ns-cv .ns-faq__item summary { padding: 0.85rem 1.1rem; font-size: 1rem; }
.ns-cv__body { padding: 0 1.1rem 1.1rem; color: var(--muted); }
.ns-cv__body p { margin: 0 0 0.6rem; padding: 0; color: var(--muted); }
.ns-cv__body ul { margin: 0.3rem 0 0.9rem; padding-left: 1.15rem; }
.ns-cv__body li { margin-bottom: 0.35rem; font-size: 0.95rem; line-height: 1.5; }
.ns-cv__body em { font-style: italic; color: var(--text); }
.ns-cv__note { font-size: 0.85rem; font-style: italic; }

/* ---------------------------------------------------------------------
   CTA final
   --------------------------------------------------------------------- */
.ns-cta {
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(200,162,74,0.2), transparent 60%),
    linear-gradient(160deg, #123a66, #0e2238);
  color: #fff;
}
.ns-cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.ns-cta p { color: #b9c8db; max-width: 52ch; margin: 0.6rem auto 1.8rem; }
.ns-cta__btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.ns-footer { background: var(--ink); color: #aebfd2; padding: 3rem 0 2rem; }
.ns-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.ns-footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.9rem; }
.ns-footer a { color: #aebfd2; }
.ns-footer a:hover { color: #fff; }
.ns-footer__brand { font-family: "Spectral", serif; font-size: 1.3rem; color: #fff; }
.ns-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.ns-footer__col ul + h4 { margin-top: 1.4rem; }
.ns-footer__socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.ns-footer__socials a { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.07); }
.ns-footer__socials a:hover { background: rgba(255,255,255,0.16); }
.ns-footer__socials svg { width: 1.1rem; height: 1.1rem; color: #fff; }
.ns-footer__legal {
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: #7e91a8;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.ns-footer__legal a { color: #7e91a8; text-decoration: underline; }

/* ---------------------------------------------------------------------
   Páginas internas simples (contacto / login) — encabezado de página
   --------------------------------------------------------------------- */
.ns-page { padding: clamp(2.5rem, 6vw, 4rem) 0; min-height: 50vh; }

/* ---------------------------------------------------------------------
   Animaciones de revelado
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes ns-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.ns-hero .anim { opacity: 0; animation: ns-fade-up 0.8s var(--ease) forwards; }
.ns-hero .anim.d1 { animation-delay: 0.05s; }
.ns-hero .anim.d2 { animation-delay: 0.18s; }
.ns-hero .anim.d3 { animation-delay: 0.31s; }
.ns-hero .anim.d4 { animation-delay: 0.44s; }
.ns-hero .anim.d5 { animation-delay: 0.57s; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .ns-hero__grid,
  .ns-night__grid,
  .ns-about__grid,
  .ns-map__grid { grid-template-columns: 1fr; }
  /* Móvil: eyebrow centrado y antes de la foto (display:contents saca los
     hijos del texto al grid del hero para poder reordenarlos). */
  .ns-hero__grid { gap: 0; }
  .ns-hero__text { display: contents; }
  .ns-hero .ns-eyebrow { order: -2; justify-self: center; }
  .ns-hero__media { order: -1; margin-bottom: 3rem; }
  .ns-about__media { max-width: 360px; position: static; }
  .ns-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .ns-nav__links { display: none; }
  .ns-burger {
    display: inline-grid; place-items: center;
    width: 2.6rem; height: 2.6rem; border-radius: 10px;
    background: #fff; border: 1px solid var(--line); cursor: pointer;
  }
  .ns-nav__links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(251, 250, 246,0.97);
    backdrop-filter: blur(14px);
    padding: 1.2rem 1.4rem 1.6rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .ns-nav__links.is-open .ns-btn { justify-content: center; }
  .ns-footer__grid { grid-template-columns: 1fr; }
  .ns-portrait { width: min(280px, 88vw); }
  .ns-cred-card { left: 50%; transform: translateX(-50%); bottom: -3.5rem; }
  /* Espacio bajo la foto para que la tarjeta no solape el H1. */
  .ns-hero__media { margin-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .ns-hero .anim { transition: none; animation: none; opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================ PRENSA / EN LOS MEDIOS ============================ */
.ns-section--tint { background: var(--gold-soft); }
.ns-press__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.ns-press__media { display: flex; justify-content: center; align-self: center; }
.ns-press__img {
  display: block;
  height: 360px; width: auto; aspect-ratio: 390 / 586;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.ns-press__head { max-width: 60ch; margin-bottom: 1.6rem; }
.ns-press__intro { color: var(--muted); margin-top: 0.6rem; }
.ns-press {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}
.ns-press__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  height: 100%;
}
.ns-press__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #ddd2b2; }
.ns-press__meta {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 0.86rem;
}
.ns-press__medio { font-weight: 700; color: var(--blue); letter-spacing: 0.01em; }
.ns-press__fecha { color: var(--muted); }
.ns-press__fecha::before { content: "·"; margin-right: 0.7rem; color: var(--line); }
.ns-press__title { font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.6rem; }
.ns-press__title a { color: var(--text); }
.ns-press__title a:hover { color: var(--blue); }
.ns-press__resumen { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.97rem; }
.ns-press__cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; color: var(--blue);
}
.ns-press__cta svg { width: 1.05em; height: 1.05em; }
.ns-press__cta:hover { color: var(--blue-700); }

/* Responsive de prensa: declarado tras la base para ganar en la cascada
   (la media query general de arriba precede a .ns-press__grid en el fichero). */
@media (max-width: 900px) {
  .ns-press__grid { grid-template-columns: 1fr; }
  .ns-press__media { max-width: 360px; margin-inline: auto; order: 1; }
  .ns-press__img { height: auto; max-height: 360px; max-width: 100%; }
}

/* ---------------------------------------------------------------------
   Herramienta EMG (/emg) — localización radicular por EMG de aguja
   --------------------------------------------------------------------- */
.ns-emg__note {
  background: var(--gold-soft);
  border: 1px solid #e7d9ab;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--text);
  font-size: 0.98rem;
  max-width: 760px;
  margin: 0 0 2rem;
}
.ns-emg__note strong { color: var(--ink); }

.ns-emg__form { margin-bottom: 2rem; }

.ns-emg__table-wrap { overflow-x: auto; margin-bottom: 1.6rem; }

.ns-emg__muscles {
  border-collapse: collapse;
  width: 100%;
  max-width: 620px;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-size: 0.95rem;
}
.ns-emg__muscles th,
.ns-emg__muscles td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  text-align: center;
}
.ns-emg__muscles thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}
.ns-emg__muscle-name { text-align: left; font-weight: 500; white-space: nowrap; }
.ns-emg__muscles tbody tr:nth-child(even) { background: var(--paper); }
.ns-emg__muscles input[type="radio"] { width: 1.05rem; height: 1.05rem; accent-color: var(--blue); cursor: pointer; }

/* Resultados */
.ns-emg__result { margin-top: 1.2rem; }
.ns-emg__selected { margin-bottom: 1.4rem; }
.ns-emg__selected p { margin: 0.1rem 0; }
.ns-emg__selected strong { color: var(--ink); }

.ns-emg__result-table {
  border-collapse: collapse;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.92rem;
}
.ns-emg__result-table th,
.ns-emg__result-table td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  text-align: center;
  min-width: 54px;
}
.ns-emg__result-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.ns-emg__rowlabel { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }

.ns-emg__error {
  color: #b3261e;
  font-weight: 600;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  display: inline-block;
}

/* ---------------------------------------------------------------------
   Banner de consentimiento de cookies
   --------------------------------------------------------------------- */
.ns-cookie {
  display: none; /* lo muestra cookies.js si no hay decisión previa */
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(960px, calc(100% - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  align-items: center;
  gap: 0.9rem 1.25rem;
  flex-wrap: wrap;
}
.ns-cookie__text { margin: 0; font-size: 0.92rem; color: var(--text); flex: 1 1 280px; }
.ns-cookie__actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
@media (max-width: 560px) {
  .ns-cookie { flex-direction: column; align-items: stretch; }
  .ns-cookie__actions .ns-btn { flex: 1; }
}

/* Enlaces legales del pie */
.ns-footer__links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.55rem; }

/* ---------------------------------------------------------------------
   Páginas legales (aviso legal, privacidad, cookies)
   --------------------------------------------------------------------- */
.ns-legal { max-width: 760px; margin-inline: auto; }
.ns-legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.4rem; }
.ns-legal__updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.8rem; }
.ns-legal h2 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.ns-legal p, .ns-legal li { color: var(--text); }
.ns-legal ul { margin: 0.3rem 0 0.8rem; padding-left: 1.2rem; }

/* ---------------------------------------------------------------------
   Página de error 404
   --------------------------------------------------------------------- */
.ns-404__card {
  max-width: 620px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.ns-404__card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 0.6rem; }
.ns-404__card p { color: var(--muted); margin: 0 0 1.6rem; }

/* ---------------------------------------------------------------------
   Motivo de marca: filete y onda/señal dorada
   --------------------------------------------------------------------- */
/* Filete dorado bajo los títulos de sección centrados */
.ns-section__head--center .ns-h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin: 0.95rem auto 0;
}

/* Onda/señal dorada en la base del hero (motivo «NeuroSigna = señales») */
.ns-hero .ns-container { position: relative; z-index: 1; }
.ns-hero__signal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  color: var(--gold);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}
.ns-hero__signal svg { display: block; width: 100%; height: 100%; }

/* La banda nocturna lleva la misma firma de onda en su borde superior */
.ns-night__signal {
  color: var(--gold);
  opacity: 0.5;
  line-height: 0;
  margin-bottom: 0.4rem;
}
.ns-night__signal svg { display: block; width: 220px; max-width: 60%; height: 24px; }
