/* ============================================================
   ROCALDE — Blog estático (BLOG-STATIC-PILOT-1)
   Plantilla de artículo + índice.
   Scoped bajo .rocalde-home, usa los tokens ya definidos en site.css.
   No redefine variables: las hereda.
   ============================================================ */

/* ---------- Cabecera del artículo ---------- */

.rocalde-home .rh-arthead {
  position: relative;
  padding: 8.5rem 0 3rem;
  background: var(--rh-bg-dark);
  color: var(--rh-text-on-dark);
  overflow: hidden;
}

.rocalde-home .rh-arthead::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--rh-line-on-dark);
}

.rocalde-home .rh-arthead__inner { max-width: 760px; }

.rocalde-home .rh-artcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 13px;
  color: var(--rh-text-dim-on-dark);
}

.rocalde-home .rh-artcrumb a { color: var(--rh-teal); text-decoration: none; }
.rocalde-home .rh-artcrumb a:hover { text-decoration: underline; }
.rocalde-home .rh-artcrumb span[aria-hidden] { opacity: 0.45; }

.rocalde-home .rh-artmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 13px;
  color: var(--rh-text-dim-on-dark);
}

.rocalde-home .rh-artmeta__tag {
  padding: 0.2em 0.7em;
  border: 1px solid rgba(30, 155, 196, 0.4);
  border-radius: 100px;
  color: var(--rh-teal);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
}

.rocalde-home .rh-artmeta__dot { opacity: 0.4; }

.rocalde-home .rh-arttitle {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

.rocalde-home .rh-artlead {
  margin: 0;
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  line-height: 1.6;
  color: var(--rh-text-dim-on-dark);
}

/* ---------- Cuerpo del artículo ---------- */

.rocalde-home .rh-article {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.78;
  color: var(--rh-ink);
}

.rocalde-home .rh-article > h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--rh-navy);
  scroll-margin-top: 6rem;
}

.rocalde-home .rh-article > h2:first-child { margin-top: 0; }

.rocalde-home .rh-article > h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rh-ink);
}

.rocalde-home .rh-article p { margin: 0 0 1.2rem; }

.rocalde-home .rh-article ul,
.rocalde-home .rh-article ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}

.rocalde-home .rh-article ul { list-style: disc; }
.rocalde-home .rh-article ol { list-style: decimal; }
.rocalde-home .rh-article li { margin-bottom: 0.6rem; }

.rocalde-home .rh-article a {
  color: var(--rh-teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rocalde-home .rh-article a:hover { color: var(--rh-orange); }

.rocalde-home .rh-article strong { font-weight: 650; color: var(--rh-navy); }

/* Nota destacada dentro del artículo */
.rocalde-home .rh-artnote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--rh-teal);
  border-radius: 0 10px 10px 0;
  background: rgba(30, 155, 196, 0.07);
  font-size: 16px;
}

.rocalde-home .rh-artnote p:last-child { margin-bottom: 0; }

/* Tabla de herramientas */
.rocalde-home .rh-arttable-wrap {
  margin: 1.75rem 0;
  overflow-x: auto;
  border: 1px solid var(--rh-border);
  border-radius: 10px;
}

.rocalde-home .rh-arttable {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}

.rocalde-home .rh-arttable th,
.rocalde-home .rh-arttable td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rh-border);
  vertical-align: top;
}

.rocalde-home .rh-arttable th {
  background: rgba(27, 79, 114, 0.05);
  font-weight: 650;
  color: var(--rh-navy);
  white-space: nowrap;
}

.rocalde-home .rh-arttable tr:last-child td { border-bottom: 0; }

/* ---------- CTA contextual ---------- */

.rocalde-home .rh-artcta {
  margin: 3.5rem 0 0;
  padding: 2rem;
  border: 1px solid var(--rh-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--rh-bg-light) 100%);
}

.rocalde-home .rh-artcta__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-orange);
}

.rocalde-home .rh-artcta__title {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--rh-navy);
}

.rocalde-home .rh-artcta p {
  margin: 0 0 1.25rem;
  font-size: 16px;
  color: rgba(15, 45, 68, 0.8);
}

.rocalde-home .rh-artcta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---------- Índice del blog ---------- */

.rocalde-home .rh-bloglist {
  display: grid;
  gap: 1.25rem;
  max-width: 860px;
}

.rocalde-home .rh-blogcard {
  display: block;
  padding: 1.75rem;
  border: 1px solid var(--rh-border);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.rocalde-home .rh-blogcard:hover {
  border-color: var(--rh-teal);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 45, 68, 0.08);
}

.rocalde-home .rh-blogcard:focus-visible {
  outline: 2px solid var(--rh-teal);
  outline-offset: 3px;
}

.rocalde-home .rh-blogcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.7rem;
  font-size: 12.5px;
  color: rgba(15, 45, 68, 0.6);
}

.rocalde-home .rh-blogcard__tag {
  padding: 0.2em 0.7em;
  border-radius: 100px;
  background: rgba(30, 155, 196, 0.12);
  color: var(--rh-teal-dark);
  font-weight: 650;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rocalde-home .rh-blogcard__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--rh-navy);
}

.rocalde-home .rh-blogcard:hover .rh-blogcard__title { color: var(--rh-teal-dark); }

.rocalde-home .rh-blogcard__sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15, 45, 68, 0.75);
}

.rocalde-home .rh-blognote {
  max-width: 860px;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rh-border);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(15, 45, 68, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .rocalde-home .rh-blogcard { transition: none; }
  .rocalde-home .rh-blogcard:hover { transform: none; }
}

@media (max-width: 640px) {
  .rocalde-home .rh-arthead { padding: 7rem 0 2.25rem; }
  .rocalde-home .rh-article { font-size: 16px; }
  .rocalde-home .rh-artcta { padding: 1.5rem; }
  .rocalde-home .rh-blogcard { padding: 1.35rem; }
  .rocalde-home .rh-artcta__actions .rh-btn { width: 100%; text-align: center; }
}
