/* ===== Alertas y guías (usa los tokens de estilos.css) ===== */
.feedlink { font-size: .9375rem; }

.ameta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: .8125rem; color: var(--ink-2); }
.ameta__cat { font-weight: 600; color: var(--brand); }
.ameta .sev { text-transform: none; }

/* Listado: el más reciente lidera, el resto en filas con filete */
.alist { display: grid; border-top: 1px solid var(--line); }
.aitem { display: grid; gap: var(--s2); padding-block: var(--s6); border-bottom: 1px solid var(--line); }
.aitem__t { font-size: 1.25rem; font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.25; max-width: 40ch; text-wrap: balance; }
.aitem__t a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--t-med) var(--ease-out), color var(--t-fast); }
.aitem__t a:hover { color: var(--brand); background-size: 100% 1px; }
.aitem__r { color: var(--ink-2); max-width: 64ch; }
.aitem__min { font-size: .8125rem; color: var(--ink-2); }
.aitem--lead { padding-block: var(--s7); }
.aitem--lead .aitem__t { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-stretch: var(--wide); letter-spacing: -0.025em; line-height: 1.1; max-width: 26ch; }
.aitem--lead .aitem__r { font-size: 1.0625rem; color: var(--ink); }

/* Artículo */
.art__head { padding-block: var(--s7) var(--s7); border-bottom: 1px solid var(--line); }
.art__head .wrap { display: grid; gap: var(--s4); }
.art__back { font-size: .9375rem; }
.art__back .link { min-height: 32px; }
.display--art { font-size: clamp(2rem, 6vw, 3.25rem); max-width: 24ch; line-height: 1.06; }
.art__head .lead { max-width: 60ch; }
.art__grid { display: grid; gap: var(--s7); padding-block: var(--s7) var(--s9); }

.prose { font-size: 1.0625rem; line-height: 1.7; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; font-weight: 650; font-stretch: 110%; letter-spacing: -0.015em; line-height: 1.25; margin-top: 2em; }
.prose h3 { font-size: 1.1875rem; font-weight: 650; font-stretch: 106%; margin-top: 1.6em; }
.prose p, .prose li { color: #26332C; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { margin: 1.5em 0 0; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.prose blockquote p { color: var(--ink); }
.prose code { font-size: .92em; background: var(--surface); padding: .1em .35em; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }

.art__help { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s3); background: var(--surface); }
.art__help-t { font-weight: 650; font-stretch: 108%; font-size: 1.0625rem; }
.art__help p:not(.art__help-t) { color: var(--ink-2); font-size: .9375rem; }
.art__help .btn { justify-self: start; }

.more__t { margin-bottom: var(--s5); }
.more { display: grid; border-top: 1px solid var(--line); }

/* Bloque en el inicio */
.home-alerts { display: grid; gap: var(--s6); }
.home-alerts__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); }
.home-alerts__grid { display: grid; gap: var(--s7); align-items: start; }
.home-ofi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s4); }
.home-ofi__t { display: flex; align-items: center; gap: var(--s2); font-size: 1rem; font-weight: 650; font-stretch: 108%; }
.dot--live { background: var(--danger); box-shadow: 0 0 0 3px rgb(180 35 24 / .15); }

/* Avisos oficiales (CSIRT, INCIBE) */
.ofi-wrap { display: grid; gap: var(--s6); }
.ofi-wrap__head { display: grid; gap: var(--s4); }
.ofi { display: grid; border-top: 1px solid var(--line); }
.ofi__item { display: grid; gap: 4px; padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.ofi__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ofi__tipo { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink-2); }
.ofi__tipo .ico { width: 14px; height: 14px; }
.ofi__tipo--crit { color: var(--danger); }
.ofi__tipo--fraude { color: var(--warn); }
.ofi__t { font-weight: 600; text-decoration: none; line-height: 1.35; display: inline; }
.ofi__t:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.ofi__ext { width: 13px; height: 13px; margin-left: 5px; vertical-align: -1px; color: var(--ink-2); }
.ofi__src { font-size: .8125rem; color: var(--ink-2); }
.guias__t { margin-bottom: var(--s6); }

@media (min-width: 720px) {
  .more { grid-template-columns: 1fr 1fr; column-gap: var(--s7); border-top: 0; }
  .more .aitem { border-top: 1px solid var(--line); border-bottom: 0; }
  .alist .aitem:not(.aitem--lead) { grid-template-columns: 11rem 1fr; column-gap: var(--s6); }
  .alist .aitem:not(.aitem--lead) > .ameta { grid-row: 1 / span 3; align-content: start; flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1000px) {
  .home-alerts__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s8); }
  .ofi-wrap { grid-template-columns: 5fr 7fr; gap: var(--s9); align-items: start; }
  .ofi-wrap__head { position: sticky; top: 110px; }
  .art__head { padding-block: var(--s8); }
  .art__grid { grid-template-columns: minmax(0, 68ch) 300px; justify-content: space-between; gap: var(--s9); }
  .art__aside { position: relative; }
  .art__help { position: sticky; top: 110px; }
}

/* ===== Método de noticias: estado, ficha y secciones con diseño propio ===== */
/* Estado de verificación: icono + texto, nunca solo color */
.estado { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.estado .ico { width: 15px; height: 15px; }
.estado--confirmado { color: var(--brand); }
.estado--no-verificado { color: var(--warn); }
.estado--informativo { color: var(--ink-2); }

/* Ficha del caso (columna lateral) */
.art__aside { display: grid; gap: var(--s5); align-content: start; }
.ficha { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s3); }
.ficha__t { font-weight: 650; font-stretch: 108%; }
.ficha dl { margin: 0; display: grid; }
.ficha dl > div { display: grid; grid-template-columns: 5.75rem 1fr; gap: var(--s3); padding-block: var(--s2); border-top: 1px solid var(--line); font-size: .9375rem; }
.ficha dt { color: var(--ink-2); }
.ficha dd { margin: 0; font-weight: 600; }

/* Cómo ocurrió: la lista numerada se lee como una cadena de pasos */
.bloque--como-ocurrio ol { list-style: none; padding: 0; counter-reset: paso; position: relative; }
.bloque--como-ocurrio ol::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: rgb(6 74 43 / .28); }
.bloque--como-ocurrio li { padding-top: 4px; }
.bloque--como-ocurrio li { counter-increment: paso; position: relative; padding-left: 52px; min-height: 32px; }
.bloque--como-ocurrio li + li { margin-top: var(--s5); }
.bloque--como-ocurrio li::before {
  content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brand); color: var(--brand);
  font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.bloque--como-ocurrio li:last-child::before { background: var(--brand); color: #fff; }

/* Qué se sabe: lo confirmado y lo abierto, separados */
.bloque--que-se-sabe { display: grid; gap: var(--s4); }
.bloque--que-se-sabe .sub { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4) var(--s5); }
.bloque--que-se-sabe .sub h3 { margin-top: 0; font-size: .875rem; font-weight: 700; display: flex; align-items: center; gap: var(--s2); }
.bloque--que-se-sabe .sub--confirmado { background: #F1F8F3; }
.bloque--que-se-sabe .sub--confirmado h3 { color: var(--brand); }
.bloque--que-se-sabe .sub--sin-verificar { background: var(--warn-bg); border-color: #F0DDB8; }
.bloque--que-se-sabe .sub--sin-verificar h3 { color: var(--warn); }
.bloque--que-se-sabe .sub h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bloque--que-se-sabe .sub ul { margin-top: var(--s3); }

/* Qué hacer: lista de acciones con check */
.bloque--que-hacer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin-top: 2em; }
.bloque--que-hacer h2 { margin-top: 0; }
.bloque--que-hacer ul, .bloque--que-hacer ol { list-style: none; padding: 0; margin-top: var(--s4); }
.bloque--que-hacer li { position: relative; padding-left: 30px; }
.bloque--que-hacer li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 5px; background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Fuentes y nota de elaboración: discretas, al final */
.bloque--fuentes { font-size: .9375rem; }
.bloque--fuentes h2 { font-size: 1.0625rem; }
.bloque--fuentes li, .bloque--fuentes p { color: var(--ink-2); }
.como-se-hizo { margin-top: 2.5em; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.6; }
.como-se-hizo__t { font-weight: 650; color: var(--ink); }
.como-se-hizo p:not(.como-se-hizo__t) { color: var(--ink-2); }

@media (min-width: 720px) {
  .bloque--que-se-sabe { grid-template-columns: 1fr 1fr; align-items: start; }
  .bloque--que-se-sabe > h2 { grid-column: 1 / -1; }
}
