/* /analisis-tecnico/ · usa los tokens del sitio (sitio.css) */
.at-cab h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: #fff; margin: .4rem 0 .6rem; }
.at-migas { font-size: 14px; color: #a9c3dc; }
.at-migas a { color: #cfe0ee; text-decoration: none; }
.at-migas a:hover { text-decoration: underline; }
.at-lead { color: #d2e2ef; }
.at-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.at-meta span { background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: 14px; }

.at-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; padding: 2.2rem 0 4rem; align-items: start; }
.at-aviso-dia { color: var(--muted); margin: 0 0 1rem; }
.at-aviso-dia a { color: var(--acc); font-weight: 600; }

.at-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin-bottom: 1.6rem; }
.at-resumen a { display: grid; gap: .25rem; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; text-decoration: none; background: #fff; }
.at-resumen a:hover { border-color: var(--acc); }
.at-resumen b { font-size: 17px; }
.at-resumen span:last-child { font-size: 14px; color: var(--muted); }
.at-resumen .at-chip { justify-self: start; }

.at-chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .1rem .65rem; font-size: 13px; font-weight: 600; white-space: nowrap; }
.at-chip--verde { background: #e3f4ed; color: #0f6b4c; }
.at-chip--rojo { background: #fbe9e7; color: #a5311f; }
.at-chip--ambar { background: #fdf3e1; color: #94600f; }
.at-chip--azul { background: #e6f1f7; color: #005580; }
.at-chip--gris { background: #eef1f4; color: var(--muted); }

.at-item { border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.5rem; margin-bottom: 1.4rem; background: #fff; box-shadow: 0 1px 2px rgba(11,37,69,.04), 0 6px 20px rgba(11,37,69,.05); scroll-margin-top: 90px; }
.at-item__cab { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.at-item h2, .at-item h3 { font-size: 1.55rem; margin: 0; }
.at-item__sub { color: var(--muted); margin: .2rem 0 0; font-size: 15px; }
.at-niveles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1.1rem 0; }
.at-nivel { background: var(--surface); border-radius: 10px; padding: .65rem .85rem; display: grid; }
.at-nivel span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.at-nivel b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.at-nivel--piv b { color: #1f5fbf; }
.at-nivel--obj b { color: #12805c; }
.at-nivel--alt b { color: #8a4b3f; }
.at-grafica { margin: 0 0 1rem; }
.at-grafica img, .at-grafica svg { width: 100%; height: auto; border-radius: 10px; border: 1px solid #e8edf2; display: block; }
.at-textos p { margin: 0 0 .55rem; }
.at-tend { color: var(--muted); font-size: 15px; }
.at-item__mas { display: inline-block; margin-top: .3rem; color: var(--acc); font-weight: 600; text-decoration: none; }
.at-item__mas:hover { text-decoration: underline; }

.at-dias { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.at-dias a { color: var(--acc); font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .9rem; }

.at-lado { display: grid; gap: 1.1rem; position: sticky; top: 90px; }
.at-caja { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; background: #fff; }
.at-caja h3 { font-size: 1.15rem; margin: .3rem 0 .5rem; }
.at-caja p { color: var(--muted); font-size: 15px; }
.at-caja--senal { background: linear-gradient(160deg, #f2f8fc, #fff); }
.at-caja--senal .btn { width: 100%; justify-content: center; }
.at-lista { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.at-lista li { border-top: 1px solid #eef1f4; }
.at-lista li:first-child { border-top: 0; }
.at-lista a { display: block; padding: .4rem 0; text-decoration: none; color: var(--fg); }
.at-lista a:hover, .at-lista a[aria-current] { color: var(--acc); }
.at-etiquetas { display: flex; flex-wrap: wrap; gap: .4rem; }
.at-etiquetas a { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: 14px; text-decoration: none; }
.at-etiquetas a:hover { border-color: var(--acc); color: var(--acc); }
.at-riesgo { font-size: 13px; color: var(--muted); margin: 0; }
.at-riesgo a { color: var(--acc); }

.at-historial h2 { font-size: 1.35rem; }
.at-historial table { width: 100%; border-collapse: collapse; font-size: 15px; }
.at-historial th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.at-historial td { padding: .5rem; border-bottom: 1px solid #eef1f4; }
.at-historial td a { color: var(--acc); }
.at-historial .num { font-variant-numeric: tabular-nums; }
.at-vacio { border: 1px dashed var(--line); border-radius: 12px; padding: 2.5rem 1.5rem; text-align: center; }
.at-vacio p { color: var(--muted); }

@media (max-width: 960px) {
  .at-rejilla { grid-template-columns: 1fr; }
  .at-lado { position: static; }
}
@media (max-width: 560px) {
  .at-niveles { grid-template-columns: 1fr; }
  .at-item { padding: 1.1rem; }
  .at-item h2, .at-item h3 { font-size: 1.3rem; }
  .at-historial { overflow-x: auto; }
}
