/* ═══════════════════════════════════════════════════════════════
   Piezas de los artículos de Recursos (nov-2026).
   Las usan las páginas públicas (public/web/recursos/*.html) y el
   mismo artículo leído dentro de la app (js/recursos.js), por eso no
   dependen de las variables de web.css: colores de marca a mano.
   azul #4312d8 · tinta #1b0759 · lavanda #b392f6 / #efe8fe ·
   crema #f2f2f2 · lima #e9ff60 (un solo acento: el botón de play).
   ═══════════════════════════════════════════════════════════════ */

/* ── Cabecera del artículo: etiquetas y línea de datos ─────────── */
.art-etiquetas { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.art-etiqueta {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #4312d8; background: #efe8fe; padding: .25rem .8rem; border-radius: 999px;
}
.art-etiqueta--video { background: #4312d8; color: #fff; }
.art-etiqueta--video::before {
  content: ''; width: 0; height: 0;
  border-left: 7px solid #e9ff60; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
.art-datos { font-size: 14px; color: #55577a; margin: .75rem 0 1.75rem; }

/* ── Entrada: foto grande y primer párrafo ─────────────────────── */
.art-portada { margin: 0 0 2rem; }
.art-portada img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 20px; background: #efe8fe;
}
p.art-entradilla { font-size: clamp(18px, 2vw, 20px); line-height: 1.6; color: #1b0759; }

/* ── Descargas (p. ej. la Guía en dos idiomas): dos botones iguales en una tira ── */
.art-descargas { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.75rem 0 .75rem; }
a.art-descarga {
  display: flex; align-items: center; gap: .85rem; padding: 1rem 1.25rem; border-radius: 16px;
  background: #4312d8; color: #fff !important; text-decoration: none !important;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease;
}
a.art-descarga:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(67,18,216,.6); }
a.art-descarga:focus-visible { outline: 3px solid #e9ff60; outline-offset: 3px; }
a.art-descarga .material-symbols-outlined { font-size: 28px; flex: none; }
.art-descarga-texto { display: flex; flex-direction: column; line-height: 1.3; }
.art-descarga-titulo { font-weight: 600; font-size: 16px; }
.art-descarga-dato { font-size: 13px; opacity: .8; }
a.art-descarga--clara { background: #efe8fe; color: #4312d8 !important; }
p.art-nota { font-size: 14px; color: #55577a; margin: 0 0 2rem; }

/* ── Cifras: tres tarjetas iguales en una tira ─────────────────── */
.art-cifras {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  margin: 1.5rem 0 2rem; padding: 0 !important; max-width: none !important;
}
.art-cifras li {
  margin: 0 !important; padding: 1.25rem 1.25rem 1.1rem; border-radius: 16px;
  background: #efe8fe; display: flex; flex-direction: column; gap: .35rem;
}
.art-cifras li::marker { content: none; }
.art-cifras li:last-child { background: #4312d8; }
.art-cifra { font-size: clamp(26px, 3vw, 32px); font-weight: 700; line-height: 1.1; color: #4312d8; letter-spacing: -.01em; }
.art-cifra-texto { font-size: 14px; line-height: 1.45; color: #1b0759; }
.art-cifras li:last-child .art-cifra { color: #fff; }
.art-cifras li:last-child .art-cifra-texto { color: #efe8fe; }

/* ── Pasos numerados (1, 2, 3) ─────────────────────────────────── */
.art-paso { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1rem; margin: 1.5rem 0; }
.art-paso-n {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #4312d8; box-shadow: inset 0 0 0 2px #b392f6;
}
.art-paso h3 { font-size: 19px; line-height: 1.3; font-weight: 600; color: #4312d8; margin: .35rem 0 .4rem; }
.art-paso p { margin: 0; }
.art-paso p + p { margin-top: .75rem; }

/* ── Tarjeta del vídeo de YouTube ──────────────────────────────── */
a.art-video {
  display: block; margin: 2.25rem 0; border-radius: 20px; overflow: hidden;
  background: #4312d8; color: #fff !important; text-decoration: none !important;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease;
}
a.art-video:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(67,18,216,.55); }
a.art-video:focus-visible { outline: 3px solid #e9ff60; outline-offset: 3px; }
.art-video-imagen { position: relative; display: block; }
.art-video-imagen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.art-video-play {
  /* En la esquina y no en el centro: cada miniatura lleva su titular en medio. */
  position: absolute; left: 20px; bottom: 20px; width: 64px; height: 64px;
  border-radius: 50%; background: #e9ff60; box-shadow: 0 8px 24px rgba(27,7,89,.35);
  transition: transform .2s cubic-bezier(.2,.7,.2,1);
}
.art-video-play::after {
  content: ''; position: absolute; left: 25px; top: 20px;
  border-left: 19px solid #4312d8; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
a.art-video:hover .art-video-play { transform: scale(1.08); }
.art-video-duracion {
  position: absolute; right: 12px; bottom: 12px; font-size: 13px; font-weight: 600;
  background: rgba(27,7,89,.85); color: #fff; padding: .15rem .55rem; border-radius: 6px;
}
.art-video-pie { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem 1.25rem; }
.art-video-texto { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.art-video-titulo { font-size: 17px; font-weight: 600; line-height: 1.35; color: #fff; }
.art-video-canal { font-size: 14px; color: #d9ccfb; }
.art-video-ir {
  flex: none; display: inline-flex; align-items: center; gap: .35rem; font-size: 14px; font-weight: 600;
  padding: .55rem 1rem; border-radius: 999px; background: #fff; color: #4312d8;
}
.art-video-ir .material-symbols-outlined { font-size: 18px; }

/* ── Resumen final ─────────────────────────────────────────────── */
.art-resumen { margin: 2.5rem 0; padding: 1.5rem 1.75rem; border-radius: 20px; background: #efe8fe; }
.art-resumen h2 { font-size: 20px !important; margin: 0 0 .75rem !important; color: #4312d8; }
.art-resumen ul { margin: 0; padding-left: 1.25rem; }
.art-resumen li { margin: .5rem 0; }

/* ── Cierre con llamada ────────────────────────────────────────── */
.art-cierre {
  margin: 2.5rem 0 0; padding: 1.75rem; border-radius: 20px; background: #f2f2f2;
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
.art-cierre p { margin: 0; }
.art-cierre p.art-cierre-titulo { font-size: 20px; font-weight: 700; line-height: 1.3; color: #4312d8; }
a.art-boton {
  display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.3rem; border-radius: 999px;
  background: #4312d8; color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important;
}
a.art-boton:hover { background: #3209b8; }

/* ── «Sigue leyendo»: tira de tarjetas pequeñas con foto ───────── */
.art-relacionados { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid #d6d3dc; }
.art-relacionados h2 { font-size: 20px !important; margin: 0 0 1rem !important; }
.art-relacionados-lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
a.art-mini {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #f2f2f2;
  color: #1b0759 !important; text-decoration: none !important; transition: box-shadow .15s ease;
}
a.art-mini:hover { box-shadow: 0 0 0 2px #4312d8; }
a.art-mini img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.art-mini-titulo { padding: .85rem 1rem 1rem; font-size: 15px; font-weight: 600; line-height: 1.35; color: #4312d8; }

@media (max-width: 640px) {
  .art-cifras { grid-template-columns: 1fr; }
  .art-descargas { grid-template-columns: 1fr; }
  .art-video-pie { flex-direction: column; align-items: flex-start; }
  .art-relacionados-lista { grid-template-columns: 1fr; }
  .art-video-play { left: 12px; bottom: 12px; width: 48px; height: 48px; }
  .art-video-play::after { left: 19px; top: 15px; border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  a.art-video, .art-video-play, a.art-descarga { transition: none; }
  a.art-descarga:hover { transform: none; }
  a.art-video:hover, a.art-video:hover .art-video-play { transform: none; }
}
