/* ============================================================
   NeuroNet · Brand Book 2.0 para todo el sitio
   Poppins + DM Mono · negro absoluto · blanco plano #F4F2EE · acento lavanda.
   Se carga después de styles.css en todas las páginas (y en la home, para el chat).
   ============================================================ */
@font-face { font-family: 'Poppins'; font-weight: 200; font-style: normal; font-display: swap; src: url('../fonts/poppins-200.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/dm-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/dm-mono-500.woff2') format('woff2'); }

/* ---------- Páginas secundarias (todo menos la home) ---------- */
body:not(.home-rd) {
  --bg: #000; --bg-deep: #000;
  --card: #0b0b0e; --card-2: #111115;
  --text: #F4F2EE; --text-2: #d9d6d0; --text-3: #c9c5bf; --text-nav: #b4b0aa;
  --muted: #A9A6A0; --muted-2: #8e8b86; --muted-3: #77746f;
  --gold: #B9A4F4; --gold-btn: #F4F2EE; --gold-ink: #000;
  --serif: 'Poppins', 'Inter', sans-serif;
  --sans: 'Poppins', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', 'JetBrains Mono', ui-monospace, monospace;
  background: #000;
  font-family: var(--sans);
}
/* Títulos: Poppins con peso fuerte y la segunda parte delgada (como la home), sin cursiva */
body:not(.home-rd) :is(h1, h2, h3, h4) { font-family: 'Poppins', sans-serif !important; font-weight: 700; letter-spacing: -0.025em; font-style: normal; }
body:not(.home-rd) :is(h1, h2, h3) em, body:not(.home-rd) :is(h1, h2, h3) i {
  font-family: 'Poppins', sans-serif !important; font-style: normal !important; font-weight: 200 !important; color: #F4F2EE;
}
body:not(.home-rd) [class*="kicker"], body:not(.home-rd) [class*="eyebrow"] { font-family: 'DM Mono', monospace !important; letter-spacing: 0.18em; }

/* Menú: barra negra plana con el logo oficial (isotipo + NeuroNet) */
body:not(.home-rd) .nav {
  background: rgba(0, 0, 0, 0.78); border: 1px solid rgba(244, 242, 238, 0.12); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9);
}
.nav__brand .rd-iso--img { width: 26px; height: auto; display: block; }
.rd-wordmark { font-family: 'Poppins', sans-serif; font-weight: 200; font-size: 21px; letter-spacing: -0.03em; color: #F4F2EE; line-height: 1; }
.rd-wordmark b { font-weight: 700; }
body:not(.home-rd) .nav__brand { gap: 10px; }
body:not(.home-rd) .nav__links a { font-family: 'Poppins', sans-serif; font-size: 14px; color: #b4b0aa; }
body:not(.home-rd) .nav__links a:hover { color: #F4F2EE; }
body:not(.home-rd) .nav__links a[aria-current="page"] { color: #F4F2EE; font-weight: 600; }
body:not(.home-rd) .nav__cta, body:not(.home-rd) .btn--gold-solid, body:not(.home-rd) .btn--primary {
  background: #F4F2EE !important; color: #000 !important; border-radius: 2px !important; font-family: 'Poppins', sans-serif; font-weight: 500;
}

/* Pestañas y filtros: el activo en blanco plano, el resto con borde fino */
body:not(.home-rd) :is([class*="tab"], [class*="filtro"], [class*="chip"], [class*="pill"]):not(.neura__chip) { font-family: 'Poppins', sans-serif; }
body:not(.home-rd) :is([class*="tab"], [class*="filtro"], [class*="chip"]):is(.is-active, .active, [aria-selected="true"], [aria-pressed="true"]):not(.neura__chip) {
  background: #F4F2EE !important; color: #000 !important; border-color: #F4F2EE !important;
}
body:not(.home-rd) a { text-decoration-color: rgba(185, 164, 244, 0.5); }

/* ---------- Chat de Neura (todas las páginas) ---------- */
.neura__launcher {
  width: auto !important; height: 58px !important; padding: 0 22px 0 8px !important; border-radius: 999px !important;
  display: inline-flex !important; align-items: center; gap: 14px;
  background: #000 !important; color: #F4F2EE !important;
  box-shadow: inset 0 0 0 1.5px rgba(244, 242, 238, 0.55), 0 16px 40px -12px rgba(0, 0, 0, 0.9), 0 0 30px -8px rgba(185, 164, 244, 0.45) !important;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.neura__launcher::before {
  content: ''; flex: 0 0 auto; width: 76px; height: 39px; border-radius: 999px;
  background: url('../assets/opt/home/neura-visor.webp') center / contain no-repeat;
  box-shadow: 0 0 16px rgba(95, 242, 255, 0.22);
  animation: nn-visor-blink 5s cubic-bezier(0.2, 0, 0, 1) infinite;
}
.neura__launcher::after { content: 'Neura AI'; }
.neura__launcher .neura__icon-chat, .neura__launcher .neura__status { display: none !important; }
.neura--open .neura__launcher { width: 58px !important; padding: 0 !important; justify-content: center; }
.neura--open .neura__launcher::before, .neura--open .neura__launcher::after { display: none; }
@keyframes nn-visor-blink { 0%, 90%, 100% { filter: none; } 93% { filter: brightness(0.35); } }

.neura__panel {
  background: #08080a !important; border: 1px solid rgba(244, 242, 238, 0.12) !important; border-radius: 18px !important;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(185, 164, 244, 0.06) !important;
  font-family: 'Poppins', sans-serif;
}
.neura__head { background: #000 !important; border-bottom: 1px solid rgba(244, 242, 238, 0.08) !important; }
.neura__avatar {
  width: 62px !important; height: 32px !important; border-radius: 999px !important; border: 0 !important;
  background: url('../assets/opt/home/neura-visor.webp') center / contain no-repeat !important;
  box-shadow: 0 0 14px rgba(95, 242, 255, 0.22);
}
.neura__avatar img { display: none !important; }
.neura__id strong { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: #F4F2EE; }
.neura__id span { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: #8e8b86; }
.neura__body { background: #08080a; }
.neura__burbuja { font-family: 'Poppins', sans-serif; font-size: 14px; line-height: 1.55; border-radius: 4px 16px 16px 16px !important; }
.neura__msg--bot .neura__burbuja { background: #131317 !important; border: 1px solid rgba(244, 242, 238, 0.08) !important; color: #e6e3de !important; }
.neura__msg--user .neura__burbuja { background: #F4F2EE !important; color: #000 !important; border: 0 !important; border-radius: 16px 4px 16px 16px !important; }
.neura__burbuja strong { color: #B9A4F4 !important; }
.neura__hora { font-family: 'DM Mono', monospace; font-size: 10.5px; color: #5f5c58 !important; }
.neura__chip {
  font-family: 'Poppins', sans-serif !important; font-weight: 500; font-size: 13px;
  background: transparent !important; color: #F4F2EE !important;
  border: 1px solid rgba(244, 242, 238, 0.22) !important; border-radius: 999px !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.neura__chip:hover { background: #F4F2EE !important; color: #000 !important; border-color: #F4F2EE !important; }
.neura__chip--wa { background: #25D366 !important; color: #04140a !important; border-color: #25D366 !important; }
.neura__chip--wa:hover { background: #2fe174 !important; color: #04140a !important; }
.neura__accion { background: #F4F2EE !important; color: #000 !important; font-family: 'Poppins', sans-serif; }
.neura__accion--wa { background: #25D366 !important; color: #04140a !important; }
.neura__form { background: #000 !important; border-top: 1px solid rgba(244, 242, 238, 0.08) !important; }
.neura__input {
  font-family: 'Poppins', sans-serif !important; background: #0e0e11 !important; color: #F4F2EE !important;
  border: 1px solid rgba(244, 242, 238, 0.16) !important; border-radius: 999px !important;
}
.neura__input::placeholder { color: #6f6c67; }
.neura__input:focus { border-color: #B9A4F4 !important; outline: none; box-shadow: 0 0 0 3px rgba(185, 164, 244, 0.15); }
.neura__enviar { background: #F4F2EE !important; color: #000 !important; }
.neura__enviar:hover { background: #B9A4F4 !important; }
.pie__brand { display: inline-flex; align-items: center; gap: 10px; }
body:not(.home-rd) .vistas__btn { font-family: 'Poppins', sans-serif; }
body:not(.home-rd) .vistas__btn.is-activa, body:not(.home-rd) .vistas__btn[aria-pressed="true"] { background: #F4F2EE !important; color: #000 !important; }
body:not(.home-rd) .vistas { border-color: rgba(244, 242, 238, 0.14) !important; background: #0b0b0e !important; }
.neura__id span { font-family: 'Poppins', sans-serif !important; font-size: 12px !important; letter-spacing: 0 !important; white-space: nowrap; color: #8e8b86 !important; }
body:not(.home-rd) .pie__heading { font-family: 'DM Mono', monospace !important; font-size: 11px !important; font-weight: 400 !important; letter-spacing: 0.14em !important; text-transform: uppercase; color: #8e8b86 !important; }
body:not(.home-rd) .pie { background: #000; }
/* Recursos: dos botones (PDF + Ver guía) */
.recurso__btns { display: inline-flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.recurso__btns .recurso__btn { margin-left: 0; }
body:not(.home-rd) .recurso__btn:not(.recurso__btn--outline) { background: #F4F2EE !important; color: #000 !important; border-color: #F4F2EE !important; }
body:not(.home-rd) .recurso__btn--outline { border-color: rgba(244, 242, 238, 0.3) !important; color: #F4F2EE !important; background: transparent !important; }
/* Chat en celular: pantalla completa, como una app (todas las páginas) */
@media (max-width: 699px) {
  .neura__panel {
    position: fixed !important; inset: 0 !important; width: 100% !important; max-width: none !important;
    height: 100dvh !important; max-height: none !important; border-radius: 0 !important; border: 0 !important;
    z-index: 1000 !important; padding-top: env(safe-area-inset-top); display: flex; flex-direction: column;
  }
  .neura__panel[hidden] { display: none !important; }
  .neura--open .neura__launcher { display: none !important; }
  .neura__body { flex: 1 1 auto; min-height: 0; }
  .neura__form { padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
  .neura__input { font-size: 16px !important; }
  .neura__launcher { height: 50px !important; padding: 0 7px !important; gap: 0 !important; right: 14px !important; bottom: 14px !important; }
  .neura__launcher::after { display: none !important; }
  .neura__launcher::before { width: 66px !important; height: 34px !important; }
}

/* ============================================================
   Chat Neura v2: tipografía limpia, sin morado, acentos neutros
   ============================================================ */
.neura__panel { background: #0a0a0b !important; border: 1px solid rgba(244, 242, 238, 0.1) !important; border-radius: 16px !important; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.9) !important; }
.neura__head { background: #0a0a0b !important; padding: 14px 16px !important; gap: 12px !important; }
.neura__head > .dot { display: none !important; }
.neura__id { gap: 3px; }
.neura__id strong { font-family: 'Poppins', sans-serif !important; font-weight: 600 !important; font-size: 15px !important; letter-spacing: -0.01em !important; color: #F4F2EE !important; }
.neura__id span { display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins', sans-serif !important; font-weight: 400 !important; font-size: 12px !important; letter-spacing: 0 !important; color: #8e8b86 !important; }
.neura__id span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #35d68a; box-shadow: 0 0 0 3px rgba(53, 214, 138, 0.15); flex: none; }
.neura__wa-link, .neura__cerrar { color: #8e8b86 !important; transition: color .2s ease; }
.neura__wa-link:hover, .neura__cerrar:hover { color: #F4F2EE !important; }
.neura__body { background: #0a0a0b !important; padding: 18px 16px !important; gap: 14px !important; }
.neura__burbuja { font-family: 'Poppins', sans-serif !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.6 !important; padding: 12px 14px !important; }
.neura__msg--bot .neura__burbuja { background: #151517 !important; border: 1px solid rgba(244, 242, 238, 0.06) !important; color: #d9d6d1 !important; border-radius: 4px 14px 14px 14px !important; }
.neura__msg--user .neura__burbuja { background: #F4F2EE !important; color: #0a0a0b !important; border-radius: 14px 4px 14px 14px !important; }
.neura__burbuja strong { color: #F4F2EE !important; font-weight: 600 !important; }
.neura__msg--user .neura__burbuja strong { color: #0a0a0b !important; }
.neura__hora { font-family: 'Poppins', sans-serif !important; font-size: 11px !important; letter-spacing: 0 !important; color: #5f5c58 !important; margin-top: 4px; }
.neura__quick { padding: 4px 16px 14px !important; gap: 8px !important; }
.neura__chip { font-size: 13px !important; font-weight: 400 !important; padding: 8px 14px !important; color: #d9d6d1 !important; border-color: rgba(244, 242, 238, 0.16) !important; background: transparent !important; }
.neura__chip:hover { background: rgba(244, 242, 238, 0.08) !important; color: #F4F2EE !important; border-color: rgba(244, 242, 238, 0.32) !important; }
.neura__chip--wa, .neura__accion--wa { background: transparent !important; color: #F4F2EE !important; border: 1px solid rgba(37, 211, 102, 0.45) !important; }
.neura__chip--wa svg, .neura__accion--wa svg { color: #25D366; }
.neura__chip--wa:hover, .neura__accion--wa:hover { background: rgba(37, 211, 102, 0.1) !important; color: #F4F2EE !important; border-color: #25D366 !important; }
.neura__accion { font-size: 13px !important; font-weight: 500 !important; border-radius: 999px !important; }
.neura__form { background: #0a0a0b !important; padding: 12px 16px 14px !important; }
.neura__input { background: #151517 !important; border-color: rgba(244, 242, 238, 0.1) !important; font-size: 14px !important; }
.neura__input:focus { border-color: rgba(244, 242, 238, 0.4) !important; box-shadow: 0 0 0 3px rgba(244, 242, 238, 0.06) !important; }
.neura__enviar:hover { background: #ffffff !important; }

/* ============================================================
   Visor de Neura: la cápsula queda fija y solo parpadean los ojos
   (dos capas: cápsula sin ojos + ojos que se cierran en vertical)
   ============================================================ */
@property --nn-ojo { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
html body .neura .neura__launcher::before,
html body .neura .neura__avatar {
  background-image: url('../assets/opt/home/neura-visor-ojos.webp'), url('../assets/opt/home/neura-visor-shell.webp') !important;
  background-size: 100% var(--nn-ojo), 100% 100% !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-color: transparent !important;
  background-blend-mode: screen, normal !important;
  filter: none !important;
  animation: nn-ojos 5s ease-in-out infinite !important;
}
@keyframes nn-ojos {
  0%, 88%, 96%, 100% { --nn-ojo: 100%; }
  91.5% { --nn-ojo: 12%; }
}
@media (prefers-reduced-motion: reduce) {
  html body .neura .neura__launcher::before, html body .neura .neura__avatar { animation: none !important; }
}

/* Celular: los botones largos pasan a dos líneas en vez de salirse (todas las páginas) */
@media (max-width: 699px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body .btn, body .rd-btn, body .recurso__btn, body .rd-hero__cta, body .rd-puertas-detail__cta { white-space: normal !important; max-width: 100% !important; box-sizing: border-box; }
  body .btn, body .rd-btn, body .rd-hero__cta { text-align: left; }
}
