/* Crecer Diferente — artículos ampliados */

.article-page {
  padding-bottom: 4rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-dark);
}

.article-back:hover {
  color: var(--orange);
}

.article-hero {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.article-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.article-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
}

.article-hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--ink);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.article-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-video {
  max-width: 44rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--teal-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-video__label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.article-video__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.85rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: #111;
}

.article-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.article-body {
  max-width: 44rem;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}

.article-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.75rem 0 0.65rem;
}

.article-body p,
.article-body li {
  line-height: 1.7;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
  margin: 0.75rem 0 1.25rem;
}

.article-body li {
  margin-bottom: 0.45rem;
}

.article-body li::marker {
  color: var(--teal);
}

.article-body a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--orange);
}

.article-body strong {
  color: var(--ink);
}

/* Bloques destacados */
.article-tldr,
.article-callout,
.article-caveats {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.75rem 0;
}

.article-tldr {
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
}

.article-tldr__label,
.article-callout__label,
.article-caveats__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.article-tldr ul {
  margin: 0;
  padding-left: 1.2rem;
}

.article-tldr li {
  margin-bottom: 0.65rem;
}

.article-callout {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
}

.article-callout__label {
  color: #a04a2a;
}

.article-caveats {
  background: var(--cream);
  border: 1px solid var(--border);
}

.article-caveats__label {
  color: var(--muted);
}

/* Hallazgos clave */
.article-findings {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.article-findings li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin: 0;
}

.article-findings__num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--teal-dark, #2d6f6f);
  border-radius: 50%;
}

/* Perfiles diagnóstico */
.article-profiles {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

@media (min-width: 640px) {
  .article-profiles {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.article-profile {
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.article-profile h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.article-profile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Recomendaciones */
.article-rec-block {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-rec-block h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--teal-dark);
}

.article-rec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-rec-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.75rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.article-rec-list li:last-child {
  border-bottom: none;
}

.article-rec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1rem;
  height: 1rem;
  background: url("../images/icons/check.png") center / contain no-repeat;
}

/* Recurso descargable del artículo */
.article-download {
  margin: 2rem 0 2.5rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--teal-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-download h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--teal-dark);
}

.article-download p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.article-download .btn--primary {
  background-color: var(--teal-btn);
  color: #ffffff;
  border-color: var(--teal-btn);
}

.article-download .btn--primary:hover {
  background-color: #245858;
  color: #ffffff;
}

.article-download__note {
  margin: 0.85rem 0 0 !important;
  font-size: 0.88rem;
  color: var(--muted);
}

.article-download__preview {
  margin: 0 auto 1.25rem;
  max-width: 14rem;
}

.article-download__preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(45, 111, 111, 0.15);
  box-shadow: 0 12px 28px rgba(45, 111, 111, 0.2);
}

/* Referencias */
.article-refs {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.article-refs h2 {
  margin-top: 0;
}

.article-refs ol {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 1.25rem;
}

.article-refs li {
  margin-bottom: 0.65rem;
  line-height: 1.55;
}

.article-refs a {
  word-break: break-word;
}

/* Recursos finales (España y enlaces gratuitos) */
.article-resources-final {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-resources-final h2 {
  margin-top: 0;
}

.article-resources-final h3 {
  margin-top: 1.75rem;
  color: var(--teal-dark);
}

.article-resources-final ul {
  margin-top: 0.85rem;
}

/* Tabla de datos */
.article-stats {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.92rem;
}

.article-stats th,
.article-stats td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-stats th {
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.article-stats tr:last-child td {
  border-bottom: none;
}

/* Footer del artículo */
.article-footer-cta {
  margin-top: 3rem;
  padding: 1.75rem;
  text-align: center;
  background: var(--teal-soft);
  border-radius: var(--radius);
}

.article-footer-cta p {
  margin: 0 0 1rem;
  font-weight: 600;
}

.article-footer-cta a.btn--primary {
  background-color: var(--teal-btn);
  color: #ffffff;
  border-color: var(--teal-btn);
}

.article-footer-cta a.btn--primary:hover {
  background-color: #245858;
  color: #ffffff;
}

/* Tarjetas en home */
.articles-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.article-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.article-card__cover {
  width: calc(100% + 2.7rem);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: -1.35rem -1.35rem 0.15rem;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.article-hero__thumb {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 12px;
}

.article-card__tags {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.article-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.article-card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.article-card__more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.article-card:hover .article-card__more {
  color: var(--orange);
}

/* Botón de descarga: el texto debe ir en blanco (el color de enlace del artículo lo tapaba) */
.article-body a.btn--primary, .article-body a.btn--primary:visited, .article-resources-final a.btn--primary{ color:#fff; }
.article-body a.btn--primary:hover, .article-resources-final a.btn--primary:hover{ color:#fff; }
.article-resources-final .resource-thumb{ display:inline-block; }
.article-resources-final .resource-thumb img{ max-width:230px; width:100%; border-radius:10px; box-shadow:0 6px 20px rgba(0,0,0,.14); border:1px solid #ececec; }
