/* Notas de Salud financiera (IND-0388): acomodo amplio, datos a la vista, tarjetas y panel.
   Se apoya en los tokens de styles.css; convive con los estilos ah- del encabezado de cada nota. */
.nt { max-width: 1040px; }
.nt p { color: var(--texto); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem; max-width: 64ch; }
.nt h2 { font-family: Merriweather, Georgia, serif; color: var(--navy); font-size: 1.55rem; line-height: 1.3; letter-spacing: -.005em; margin: 3.4rem 0 1.3rem; scroll-margin-top: 96px; }
.nt .nt-lede { font-family: Merriweather, Georgia, serif; font-weight: 700; color: var(--navy); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.5; max-width: 30em; margin: 0 0 2.4rem; text-wrap: balance; }
.nt .nt-lede .ah-parr { font-family: Inter, sans-serif; font-weight: 400; font-size: .55em; }

/* Dato principal */
.nt-dato { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.6rem; align-items: center; background: var(--fondo-alt); border-radius: 16px; padding: 2.3rem 2.6rem; }
.nt-dato__cifra { font-family: Merriweather, Georgia, serif; font-weight: 900; color: var(--navy); font-size: clamp(3.2rem, 8vw, 5rem); line-height: 1; letter-spacing: -.02em; }
.nt-dato__cifra small { display: block; font-family: Inter, sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: 0; line-height: 1.45; color: var(--texto-2); margin-top: .7rem; }
.nt-dato__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.nt-dato__lista li { position: relative; padding-left: 1.5rem; font-size: 1.02rem; line-height: 1.55; color: var(--texto); }
.nt-dato__lista li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); }
.nt-dato__lista b { color: var(--navy); }

/* Tarjetas */
.nt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.nt-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nt-card { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 1.5rem 1.6rem 1.6rem; transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease, border-color .2s ease; }
.nt-card:hover { transform: translateY(-3px); border-color: var(--acento); box-shadow: 0 12px 28px rgb(var(--marca-oscuro-rgb) / .08); }
.nt-card__n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fondo-alt); color: var(--acento-texto); font-weight: 700; font-size: .9rem; margin-bottom: .9rem; }
.nt-card h3 { font-family: Merriweather, Georgia, serif; font-size: 1.12rem; line-height: 1.35; color: var(--navy); margin: 0 0 .5rem; }
.nt .nt-card p { font-size: .98rem; line-height: 1.6; margin: 0; max-width: none; }
.nt-card dl { margin: .9rem 0 0; display: grid; gap: .9rem; }
.nt-card dt { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acento-texto); margin-bottom: .2rem; }
.nt-card dd { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--texto); }
.nt .nt-nota { font-size: .95rem; color: var(--texto-2); margin: 1.3rem 0 0; max-width: 70ch; }

/* Pastillas */
.nt-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 1rem; padding: 0; list-style: none; }
.nt-chips li { border: 1px solid var(--linea); background: #fff; border-radius: 999px; padding: .5rem 1.05rem; font-size: .95rem; color: var(--navy); font-weight: 600; }

/* Barra de reparto */
.nt-barra { display: flex; height: 16px; border-radius: 999px; overflow: hidden; margin: 1.4rem 0 1rem; background: var(--fondo-alt-2); }
.nt-barra i { display: block; transform-origin: left center; }
.nt-barra i:nth-child(1) { background: var(--marca); }
.nt-barra i:nth-child(2) { background: var(--acento); }
.nt-barra i:nth-child(3) { background: var(--gris-2); }
.nt-reparto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.nt-reparto li { font-size: .92rem; color: var(--texto-2); line-height: 1.4; }
.nt-reparto b { display: block; font-family: Merriweather, Georgia, serif; font-size: 1.35rem; color: var(--navy); }
.nt-reparto li::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; }
.nt-reparto li:nth-child(1)::before { background: var(--marca); }
.nt-reparto li:nth-child(2)::before { background: var(--acento); }
.nt-reparto li:nth-child(3)::before { background: var(--gris-2); }

/* Panel de preguntas */
.nt-panel { margin-top: 3.4rem; background: var(--superficie-oscura); color: #fff; border-radius: 18px; padding: 2.4rem 2.6rem 2.6rem; }
.nt .nt-panel h2 { color: #fff; margin: 0 0 1.5rem; }
.nt-panel ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; counter-reset: q; }
.nt-panel li { counter-increment: q; font-size: 1.08rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.nt-panel li::before { content: counter(q); display: block; font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--acento-claro); margin-bottom: .6rem; }

/* Para empresas */
.nt-empresa { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.2rem; border: 1px solid var(--linea); border-radius: 14px; padding: 1.2rem 1.6rem; background: #fff; }
.nt .nt-empresa p { margin: 0; max-width: none; font-size: 1rem; }
.nt-empresa b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--acento-texto); margin-bottom: .25rem; }
.nt-empresa a { color: var(--marca); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.nt-empresa svg { flex: none; color: var(--acento-texto); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.nt-empresa:hover svg { transform: translate(3px, -3px); }

.nt .ah-next { margin-top: 1.2rem; }
.nt .ah-fuentes { margin-top: 3rem; }
.nt .ah-fuentes h2 { margin-top: 0; font-size: 1.15rem; }
.nt-volver { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; font-size: .9rem; font-weight: 600; color: var(--marca); text-decoration: none; }

/* Entrada rápida al hacer scroll (la clase la pone nota.js; sin movimiento si el sistema lo pide) */
.nt-espera { opacity: 0; transform: translateY(14px); }
.nt-entra { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * .06s); }
.nt-espera.nt-barra i, .nt-espera .nt-barra i { transform: scaleX(0); }
.nt-barra i { transition: transform .7s cubic-bezier(.16, 1, .3, 1) .15s; }

@media (max-width: 860px) {
  .nt-dato { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.7rem 1.4rem; }
  .nt-cards, .nt-cards--2 { grid-template-columns: 1fr; }
  .nt-panel { padding: 1.8rem 1.4rem 2rem; border-radius: 14px; }
  .nt-panel ol { grid-template-columns: 1fr; gap: 1.3rem; }
  .nt-panel li { display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; }
  .nt-panel li::before { margin: 0; font-size: 1.7rem; }
  .nt-empresa { padding: 1.1rem 1.2rem; }
  .nt h2 { margin-top: 2.6rem; font-size: 1.35rem; }
}

.nt h2 .ah-parr { font-family: Inter, sans-serif; font-weight: 400; font-size: .55em; }

/* Respuestas rápidas y «sigue leyendo» (IND-0390) */
.nt-faq { margin-top: 3rem; }
.nt .nt-faq h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.nt-faq details { border-top: 1px solid var(--linea); }
.nt-faq details:last-child { border-bottom: 1px solid var(--linea); }
.nt-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem .2rem; font-weight: 600; font-size: 1.02rem; color: var(--navy); }
.nt-faq summary::-webkit-details-marker { display: none; }
.nt-faq summary::after { content: '+'; flex: none; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--acento-texto); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.nt-faq details[open] summary::after { transform: rotate(45deg); }
.nt .nt-faq p { margin: 0 0 1.1rem; padding: 0 .2rem; font-size: 1rem; max-width: 70ch; }
.nt-sigue { margin-top: 2.2rem; }
.nt .nt-sigue p { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acento-texto); margin: 0 0 .2rem; }
.nt-sigue .nt-chips { margin-top: .6rem; }
.nt-sigue .nt-chips li { padding: 0; }
.nt-sigue .nt-chips a { display: block; padding: .5rem 1.05rem; color: var(--navy); text-decoration: none; border-radius: 999px; transition: background .18s ease, color .18s ease; }
.nt-sigue .nt-chips a:hover { background: var(--fondo-alt); color: var(--marca); }
