@font-face {
  font-family: icomoon;
  src: url("/hc-static/fonts/icomoon.woff") format("woff"),
       url("/hc-static/fonts/icomoon.ttf") format("truetype");
  font-weight: normal; font-style: normal; font-display: block;
}

@keyframes laraFloat { 0%,100%{transform:translateY(0) rotate(-1.5deg)} 50%{transform:translateY(-5px) rotate(1.5deg)} }
@keyframes caretPulse { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.lara-float { animation: laraFloat 4.6s ease-in-out infinite; }

/* ── tokens ── */
:root {
  --navy:   #2E4774;
  --blue:   #3D5D98;
  --green:  #10B06C;
  --ink:    #111A2B;
  --ink-2:  #3D4148;
  --ink-3:  #545964;
  --gray:   #6B7280;
  --border: #D8DADF;
  --border-light: #E1E7F3;
  --bg:     #F3F6FA;
  --white:  #fff;
  --new-bg: #DCFBEE;
  --new-fg: #033D20;
  --radius-card: 16px;
  --shadow-sm: 0 1px 2px rgba(17,26,43,.06);
  --shadow-md: 0 10px 24px rgba(17,26,43,.12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: #20304F; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* ── compact nav bar (inner pages) ── */
.topbar {
  height: 70px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
}
.topbar-logo { height: 24px; width: auto; display: block; flex: none; }

/* Lara pill (topbar) */
.topbar-lara {
  flex: 1; max-width: 400px; position: relative;
  display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 6px 0 10px;
  background: var(--white); border-radius: 999px;
}
.topbar-lara-img { width: 24px; height: auto; display: block; flex: none; }
.topbar-lara input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 13.5px; color: var(--gray);
  min-width: 0;
}
.topbar-lara input::placeholder { color: var(--gray); }
/* suppress browser-native search decoration (magnifier icon) */
.topbar-lara input[type="search"]::-webkit-search-decoration,
.topbar-lara input[type="search"]::-webkit-search-cancel-button,
.topbar-lara input[type="search"]::-webkit-search-results-button,
.topbar-lara input[type="search"]::-webkit-search-results-decoration { display: none; }
.topbar-lara-btn {
  width: 28px; height: 28px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); border: none; border-radius: 999px;
  cursor: pointer; transition: background 160ms;
}
.topbar-lara-btn:hover { background: #0C814F; }
.topbar-lara-btn span { font-family: icomoon; font-size: 12px; line-height: 1; color: #fff; }

/* ── lang toggle (shared) ── */
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 3px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  margin-left: auto;
  flex: none;
}
.lang-toggle .active {
  font-weight: 600; font-size: 12.5px; line-height: 1;
  color: var(--navy); background: var(--white);
  padding: 7px 12px; border-radius: 999px;
}
.lang-toggle a {
  font-weight: 600; font-size: 12.5px; line-height: 1;
  color: rgba(255,255,255,.8);
  padding: 7px 12px; border-radius: 999px;
}
.lang-toggle a:hover { color: #fff; }

/* ── hero (index only) ── */
.hero {
  background: linear-gradient(180deg, #1E3460 0%, #2E4774 40%, #3D5D98 62%, #D0DFF2 92%, #EBF1FA 100%);
  position: relative; overflow: hidden;
}
.hero-waves {
  position: absolute; left: -110px; top: -46px;
  width: 380px; opacity: .10; pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
}
.hero-nav {
  height: 76px; display: flex; align-items: center;
}
.hero-logo { height: 26px; width: auto; display: block; }
.hero-body {
  padding: 52px 0 108px; max-width: 700px;
}
.hero-title {
  font-weight: 800; font-size: 38px; line-height: 1.18;
  letter-spacing: -.03em; color: #fff;
  margin: 0 0 10px; text-wrap: balance;
}
.hero-subtitle {
  font-weight: 400; font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,.88); margin-bottom: 26px;
}

/* Lara pill (hero) */
.hero-lara {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 16px;
  background: var(--white); border-radius: 999px;
  box-shadow: 0 14px 34px rgba(17,26,43,.22);
  max-width: 620px; position: relative;
}
.hero-lara-avatar {
  position: relative; width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.hero-lara-avatar::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: radial-gradient(circle, #C5FAE3 0%, rgba(197,250,227,0) 68%);
}
.hero-lara-avatar img { position: relative; width: 38px; height: auto; display: block; }
.hero-lara-field {
  flex: 1; display: flex; align-items: center; gap: 2px; min-width: 0;
}
.hero-lara-field input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 16px; color: var(--gray);
  min-width: 0;
}
.hero-lara-field input::placeholder { color: var(--gray); }
.hero-lara-caret {
  width: 1.5px; height: 17px; background: var(--blue); flex: none;
  animation: caretPulse 1.1s step-end infinite; align-self: center;
}
.hero-lara-btn {
  height: 46px; padding: 0 24px; flex: none;
  display: flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: 14.5px; color: #fff;
  background: var(--green); border: none; border-radius: 999px;
  cursor: pointer; transition: background 160ms;
}
.hero-lara-btn:hover { background: #0C814F; }
.hero-lara-btn span { font-family: icomoon; font-size: 15px; line-height: 1; }

/* hero examples row */
.hero-examples {
  display: flex; align-items: center; gap: 9px;
  margin-top: 18px; flex-wrap: wrap;
}
.hero-examples-label { font-weight: 600; font-size: 12.5px; line-height: 1; color: #fff; }
.hero-example-chip {
  font-weight: 500; font-size: 12.5px; line-height: 1;
  color: var(--navy); background: var(--white);
  border: 1px solid #B8CCE4; padding: 8px 13px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms, box-shadow 160ms;
}
.hero-example-chip:hover { border-color: #98AED6; box-shadow: var(--shadow-md); }

/* legacy hero-search (search landing page only) */
.hero-search {
  position: relative; display: flex; align-items: center; max-width: 560px;
}
.hero-search .ico {
  position: absolute; left: 20px;
  font-family: icomoon; font-size: 17px; line-height: 1; color: #858C99;
}
.hero-search input {
  width: 100%; height: 54px; padding: 0 130px 0 50px;
  font-family: inherit; font-size: 16px; color: var(--ink-2);
  background: var(--white); border: none; border-radius: 999px;
  box-shadow: 0 14px 34px rgba(17,26,43,.22); outline: none;
}
.hero-search input::placeholder { color: #9CA3AF; }
.hero-search button {
  position: absolute; right: 6px;
  height: 42px; padding: 0 22px;
  font-family: inherit; font-weight: 600; font-size: 14px; color: #fff;
  background: var(--green); border: none; border-radius: 999px;
  cursor: pointer; transition: background 160ms;
}
.hero-search button:hover { background: #0C814F; }

/* ── featured nuevo section ── */
.nuevo-wrap {
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
  transform: translateY(-32px);
}
.nuevo-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 14px 34px rgba(17,26,43,.12); overflow: hidden;
}
.nuevo-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; border-bottom: 1px solid var(--border-light);
  background: #F4FEFA; color: inherit;
  transition: background 160ms;
}
.nuevo-header:hover { background: #EAFBF3; }
.nuevo-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: #C5FAE3;
  display: flex; align-items: center; justify-content: center;
}
.nuevo-icon span { font-family: icomoon; font-size: 19px; line-height: 1; color: #085333; }
.nuevo-label {
  flex: 1;
}
.nuevo-label b { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); display: block; }
.nuevo-label p { font-weight: 400; font-size: 13.5px; line-height: 1.5; color: var(--gray); margin-top: 3px; }
.nuevo-chevron { font-family: icomoon; font-size: 15px; line-height: 1; color: #858C99; flex: none; }
.nuevo-articles {
  padding: 14px 20px 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.nuevo-art {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  color: inherit;
  transition: border-color 160ms, box-shadow 160ms, transform 160ms;
}
.nuevo-art-icon {
  width: 28px; height: 28px; border-radius: 8px; background: var(--blue);
  display: flex; align-items: center; justify-content: center; flex: none; margin-bottom: 2px;
}
.nuevo-art-icon span { font-family: icomoon; font-size: 14px; line-height: 1; color: #fff; }
.nuevo-art:hover {
  border-color: #98AED6; box-shadow: 0 6px 16px rgba(17,26,43,.10);
  transform: translateY(-2px);
}
.nuevo-art-cat {
  font-weight: 700; font-size: 10.5px; line-height: 1;
  letter-spacing: .07em; text-transform: uppercase; color: var(--gray);
}
.nuevo-art-title {
  font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ink); flex: 1;
}
.nuevo-art-more {
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg); border: 1px dashed #98AED6; gap: 4px;
}
.nuevo-art-more:hover { background: var(--border-light); transform: translateY(-2px); }
.nuevo-art-more-n {
  font-weight: 700; font-size: 22px; line-height: 1; color: var(--navy);
}
.nuevo-art-more-label {
  font-weight: 500; font-size: 11.5px; line-height: 1.35; color: var(--gray); text-align: center;
}

/* ── categories section (index) ── */
.cats-wrap {
  max-width: 1120px; margin: 0 auto; padding: 0 32px 46px;
}
.cats-label {
  font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray);
  margin: 0 0 16px;
}
.cats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch;
}
.cat-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-sm);
  color: inherit;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.cat-card:hover {
  border-color: #98AED6; box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.cat-card-head {
  height: 76px; flex: none;
  background: var(--blue);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
.cat-card-icon { font-family: icomoon; font-size: 26px; line-height: 1; color: #fff; }
.cat-card-count {
  font-weight: 600; font-size: 12px; line-height: 1; color: #fff;
  background: rgba(255,255,255,.20); padding: 6px 11px; border-radius: 999px;
}
.cat-card-body { padding: 18px 22px 14px; flex: 1; }
.cat-card-name {
  font-weight: 600; font-size: 17px; line-height: 1.32; color: var(--ink);
  letter-spacing: -.01em; display: block;
}
.cat-card-desc {
  font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--gray);
  margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card-cta {
  padding: 12px 22px; border-top: 1px solid var(--border-light);
  font-weight: 600; font-size: 13px; line-height: 1; color: var(--navy);
}

/* ── collection page ── */
.inner-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.subheader {
  background: var(--bg); border-bottom: 1px solid var(--border-light);
  padding: 20px 32px 30px;
}
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 12.5px; line-height: 1; color: var(--ink-3);
  margin-bottom: 20px;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--navy); }
.crumb-sep { font-family: icomoon; font-size: 10px; line-height: 1; color: #858C99; }
.crumb-cur { color: var(--ink-2); }
.col-hero { display: flex; align-items: flex-start; gap: 20px; max-width: 860px; }
.col-icon {
  width: 62px; height: 62px; flex: none; border-radius: 16px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.col-icon span { font-family: icomoon; font-size: 29px; line-height: 1; color: #fff; }
.col-meta { }
.col-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; flex-wrap: wrap; }
.col-title {
  font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; color: var(--navy);
}
.col-count {
  font-weight: 600; font-size: 12px; line-height: 1; color: var(--navy);
  background: var(--white); border: 1px solid #B8CCE4;
  padding: 6px 11px; border-radius: 999px;
}
.col-desc { font-weight: 400; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }

/* article list (legacy rows — search results) */
.art-list-wrap { padding: 24px 32px 46px; }
.art-list-label {
  font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin: 0 0 16px;
}
.art-list { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.art-row {
  display: grid; grid-template-columns: 1fr 18px; gap: 16px; align-items: center;
  padding: 18px 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-sm); color: inherit;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.art-row:hover { border-color: #98AED6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.art-row-title {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-weight: 600; font-size: 16.5px; line-height: 1.35; color: var(--ink);
}
.art-row-desc {
  font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--gray); margin-top: 4px;
}
.art-row-chevron { font-family: icomoon; font-size: 15px; line-height: 1; color: #858C99; }
.nuevo-pill {
  font-weight: 700; font-size: 10px; line-height: 1;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--new-fg); background: var(--new-bg);
  padding: 4px 8px; border-radius: 999px;
}

/* ── article grid (2-col cards, collection page) ── */
.art-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch;
}
.art-card {
  display: grid; grid-template-columns: 44px 1fr 16px;
  column-gap: 16px; align-items: start;
  padding: 20px 22px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm);
  color: inherit;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.art-card:hover { border-color: #98AED6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.art-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #EBF1FA;
  display: flex; align-items: center; justify-content: center;
}
.art-card-icon span { font-family: icomoon; font-size: 20px; line-height: 1; color: var(--blue); }
.art-card-title {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-weight: 600; font-size: 16.5px; line-height: 1.35; color: var(--ink);
}
.art-card-desc {
  font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--gray); margin-top: 5px;
}
.art-card-chevron {
  font-family: icomoon; font-size: 15px; line-height: 1; color: #858C99; margin-top: 14px;
}

/* ── Lara CTA (bottom of collection/search) ── */
.lara-cta {
  margin-top: 30px; padding: 22px 26px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.lara-cta img { width: 40px; height: auto; display: block; flex: none; }
.lara-cta p {
  font-weight: 400; font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2); flex: 1; min-width: 220px;
}
.lara-cta-btn {
  height: 42px; padding: 0 22px; flex: none;
  display: inline-flex; align-items: center;
  font-family: inherit; font-weight: 600; font-size: 14px; color: #fff;
  background: var(--green); border: none; border-radius: 999px;
  cursor: pointer; transition: background 160ms; text-decoration: none;
}
.lara-cta-btn:hover { background: #0C814F; color: #fff; }

/* ── crumbs back link (merged into crumbs row) ── */
.crumbs-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-size: 12.5px; line-height: 1; color: var(--ink-3);
  transition: color 140ms; flex: none;
}
.crumbs-back:hover { color: var(--navy); }
.crumbs-back::before { content: '←'; font-size: 13px; line-height: 1; }

/* ── search landing ── */
.search-landing { text-align: center; padding: 52px 0 32px; max-width: 600px; margin: 0 auto; }
.search-landing-title { font-weight: 700; font-size: 30px; color: var(--ink); margin-bottom: 10px; }
.search-landing-sub { font-size: 16px; color: var(--ink-3); margin-bottom: 32px; }
.search-landing-form { max-width: 520px; margin: 0 auto; }

/* ── article page ── */
.article-layout {
  max-width: 1120px; margin: 0 auto;
  padding: 22px 32px 48px;
  display: grid; grid-template-columns: 1fr 236px; gap: 52px; align-items: start;
}
.article-main { min-width: 0; max-width: 680px; margin: 0 auto; }
.article-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.article-updated { font-weight: 500; font-size: 12.5px; line-height: 1; color: var(--ink-3); }
.article-title {
  font-weight: 700; font-size: 34px; line-height: 1.22;
  letter-spacing: -.025em; color: var(--navy);
  margin-bottom: 16px; text-wrap: balance;
}
.article-lead {
  font-weight: 400; font-size: 18px; line-height: 1.6; color: var(--ink-3);
  margin-bottom: 34px;
}
.article-body { }
.article-body h1 { font-size: 26px; margin: 32px 0 12px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.article-body h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); font-weight: 700; margin: 32px 0 12px; }
.article-body h3 { font-size: 18px; margin: 24px 0 10px; color: var(--ink); font-weight: 600; }
.article-body p  { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.article-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.article-body blockquote { border-left: 3px solid var(--blue); margin: 0 0 24px; padding: 14px 18px; background: var(--bg); border-radius: 0 10px 10px 0; }
.article-body blockquote p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.article-body blockquote strong { color: var(--ink); }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.article-body iframe { max-width: 100%; border: 0; aspect-ratio: 16/9; width: 100%; height: auto; border-radius: 10px; margin-bottom: 24px; }
.article-body table { border-collapse: collapse; width: 100%; margin-bottom: 24px; }
.article-body td, .article-body th { border: 1px solid var(--border-light); padding: 8px 12px; text-align: left; font-size: 15px; }
.article-body th { background: var(--bg); font-weight: 600; }
.article-body code { font-family: ui-monospace, Menlo, monospace; font-size: .87em; background: var(--bg); border-radius: 4px; padding: 2px 5px; }
.article-body pre { background: var(--ink); color: #e5e7eb; padding: 16px 20px; border-radius: 10px; overflow-x: auto; margin-bottom: 24px; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body hr { border: none; border-top: 1px solid var(--border-light); margin: 32px 0 16px; }

/* "Siga leyendo" / related articles — JS-rendered */
.siga-leyendo { border-top: 1px solid var(--border-light); padding-top: 30px; margin-top: 32px; }
.siga-leyendo-label {
  font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray); display: block; margin-bottom: 16px;
}
.siga-leyendo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch;
}
.siga-leyendo-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 22px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm); color: inherit;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.siga-leyendo-card:hover { border-color: #98AED6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.siga-leyendo-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #EBF1FA;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.siga-leyendo-icon span { font-family: icomoon; font-size: 17px; line-height: 1; color: var(--navy); }
.siga-leyendo-title { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink); flex: 1; }
.siga-leyendo-cta { font-weight: 600; font-size: 12.5px; line-height: 1; color: var(--navy); }

/* fallback for old hr+ul related articles (if JS doesn't run) */
.article-body hr + p {
  font-weight: 700; font-size: 11px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 16px;
}
.article-body hr + p + ul {
  list-style: none; padding: 0; margin-bottom: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.article-body hr + p + ul li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.article-body hr + p + ul li a::after {
  content: '\e90c'; font-family: icomoon; font-size: 14px; color: #858C99; flex: none;
}
.article-body hr + p + ul li a:hover {
  border-color: #98AED6; box-shadow: var(--shadow-md); transform: translateY(-2px);
}

/* sidebar TOC */
.article-sidebar { position: sticky; top: 20px; }
.toc-label {
  display: block; font-weight: 700; font-size: 11px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px;
}
.toc-list { display: flex; flex-direction: column; border-left: 2px solid var(--border-light); margin-bottom: 22px; }
.toc-list a {
  padding: 8px 0 8px 14px; font-weight: 500; font-size: 13.5px; line-height: 1.45;
  color: var(--gray); transition: color 150ms;
}
.toc-list a:hover { color: var(--navy); }

/* Lara widget in sidebar */
.lara-sidebar-widget {
  padding: 18px; background: #F4FEFA; border: 1px solid #C5FAE3;
  border-radius: 14px; display: flex; flex-direction: column; gap: 11px;
}
.lara-sidebar-widget img { width: 38px; height: auto; display: block; }
.lara-sidebar-widget p { font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.lara-sidebar-widget a {
  height: 38px; display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 13px; color: #fff;
  background: var(--green); border-radius: 999px;
  transition: background 160ms;
}
.lara-sidebar-widget a:hover { background: #0C814F; color: #fff; }

/* ── search page ── */
.search-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 32px 48px; }
.search-title {
  font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--ink); margin-bottom: 20px;
}
.search-list { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.search-empty { font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--ink-3); }

/* Lara results banner */
.search-lara-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: #F4FEFA; border: 1px solid #C5FAE3;
  border-radius: 14px; margin-bottom: 26px;
}
.search-lara-banner img { width: 34px; height: auto; flex: none; }
.search-lara-banner p { font-weight: 400; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); flex: 1; }

/* search result card (with icon) */
.search-result-card {
  display: grid; grid-template-columns: 44px 1fr 16px;
  column-gap: 16px; align-items: start;
  padding: 20px 22px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm); color: inherit;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.search-result-card:hover { border-color: #98AED6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.search-result-cat {
  font-weight: 700; font-size: 10.5px; line-height: 1;
  letter-spacing: .07em; text-transform: uppercase; color: var(--gray);
  margin-bottom: 4px; display: block;
}

/* no-results Lara page */
.search-no-results {
  max-width: 620px; margin: 0 auto; text-align: center;
  padding: 56px 0 60px; display: flex; flex-direction: column; align-items: center;
}
.search-no-results-lara {
  position: relative; width: 112px; height: 112px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.search-no-results-lara::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: radial-gradient(circle, #DCFBEE 0%, rgba(220,251,238,0) 70%);
}
.search-no-results-lara img { position: relative; width: 90px; height: auto; display: block; }
.search-no-results h1 {
  font-weight: 700; font-size: 26px; line-height: 1.28;
  letter-spacing: -.02em; color: var(--navy);
  margin-bottom: 12px; text-wrap: balance;
}
.search-no-results > p {
  font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--ink-3); margin-bottom: 30px;
}
.search-no-results-suggestions { display: flex; flex-direction: column; gap: 11px; width: 100%; margin-bottom: 28px; text-align: left; }
.search-no-results-label {
  font-weight: 700; font-size: 11px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray);
}
.search-no-results-sug {
  display: grid; grid-template-columns: 36px 1fr 16px;
  column-gap: 14px; align-items: center;
  padding: 16px 18px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm); color: inherit;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.search-no-results-sug:hover { border-color: #98AED6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.search-no-results-sug-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #EBF1FA;
  display: flex; align-items: center; justify-content: center;
}
.search-no-results-sug-icon span { font-family: icomoon; font-size: 17px; line-height: 1; color: var(--blue); }
.search-no-results-sug-text { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink); }
.search-no-results-sug-chevron { font-family: icomoon; font-size: 14px; line-height: 1; color: #858C99; }

/* ── integrations EHR picker ── */
.integraciones-wrap { padding: 32px 32px 52px; }
.ehr-section { margin-bottom: 44px; }
.ehr-section-label {
  font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin: 0 0 16px;
}
.ehr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ehr-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm); color: inherit;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.ehr-card:hover { border-color: #98AED6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ehr-card-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: icomoon; font-size: 20px; line-height: 1; color: #fff;
}
.ehr-card-body { flex: 1; }
.ehr-card-name { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); display: block; margin-bottom: 5px; }
.ehr-card-desc { font-size: 13.5px; line-height: 1.5; color: var(--gray); margin-bottom: 10px; }
.ehr-card-count { font-weight: 600; font-size: 11.5px; color: var(--ink-3); }
.ehr-card-arrow { font-family: icomoon; font-size: 14px; color: #858C99; flex: none; align-self: center; }
.ehr-general .art-list-label { margin: 0 0 12px; }
.ehr-general { max-width: 820px; }

/* ── search dropdown ── */
.topbar-search { position: relative; }
.hero-search { position: relative; }
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-md); overflow: hidden; display: none;
}
.search-dropdown.open { display: block; }
.search-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--border-light);
  color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.35;
  transition: background 130ms;
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover { background: var(--bg); color: var(--navy); }
.search-drop-item::before { content: '\e924'; font-family: icomoon; font-size: 12px; color: #858C99; flex: none; }
.search-drop-empty { padding: 14px 18px; color: var(--ink-3); font-size: 14px; }

/* ── footer ── */
.site-footer {
  background: #D6E2F3; border-top: 1px solid #B8CCE4; padding: 34px 32px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-brand { max-width: 390px; }
.footer-logo { height: 26px; width: auto; display: block; margin-bottom: 12px; }
.footer-tagline { font-weight: 400; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-label {
  font-weight: 700; font-size: 11px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px;
}
.footer-col a { font-weight: 500; font-size: 13.5px; line-height: 1; color: var(--ink-3); }
.footer-col a:hover { color: var(--navy); }

/* ── not found ── */
.not-found { max-width: 820px; margin: 60px auto; padding: 0 32px; text-align: center; }
.not-found h1 { font-size: 72px; color: var(--border); margin-bottom: 16px; }
.not-found p { font-size: 17px; color: var(--ink-3); margin-bottom: 24px; }
.not-found a { font-weight: 600; color: var(--navy); }

/* ── mobile ── */
@media (max-width: 768px) {
  .topbar { height: 56px; padding: 0 16px; gap: 12px; }
  .topbar-logo { height: 21px; }
  .topbar-lara { display: none; }
  .lang-toggle .active, .lang-toggle a { font-size: 12px; padding: 7px 10px; }

  .hero-waves { width: 260px; left: -74px; top: -26px; }
  .hero-inner { padding: 0 16px; }
  .hero-nav { height: 60px; }
  .hero-logo { height: 22px; }
  .hero-body { padding: 28px 0 70px; }
  .hero-title { font-size: 27px; margin-bottom: 8px; }
  .hero-subtitle { font-size: 14.5px; margin-bottom: 18px; }
  .hero-lara { padding: 10px 10px 10px 13px; gap: 11px; }
  .hero-lara-avatar { width: 38px; height: 38px; }
  .hero-lara-avatar img { width: 31px; }
  .hero-lara-field input { font-size: 14.5px; }
  .hero-lara-caret { display: none; }
  .hero-lara-btn { height: 42px; padding: 0 16px; font-size: 13.5px; }

  .hero-examples { gap: 7px; margin-top: 14px; }
  .hero-example-chip { font-size: 12px; padding: 7px 11px; }

  .nuevo-wrap { padding: 0 16px; transform: translateY(-24px); }
  .nuevo-articles { grid-template-columns: repeat(2, 1fr); }
  .nuevo-header { padding: 14px 16px; }
  .nuevo-label b { font-size: 15.5px; }
  .nuevo-label p { display: none; }

  .cats-wrap { padding: 0 16px 32px; }
  .cats-grid { grid-template-columns: 1fr; }
  .cat-card { flex-direction: row; border-radius: 14px; }
  .cat-card-head { width: 66px; height: auto; border-radius: 0; flex-direction: column; justify-content: center; gap: 7px; }
  .cat-card-icon { font-size: 23px; }
  .cat-card-count { font-size: 11px; padding: 4px 8px; }
  .cat-card-body { padding: 14px 16px; }
  .cat-card-name { font-size: 16px; }
  .cat-card-desc { -webkit-line-clamp: 2; font-size: 13.5px; }
  .cat-card-cta { display: none; }

  .subheader { padding: 14px 16px 20px; }
  .col-hero { gap: 13px; }
  .col-icon { width: 48px; height: 48px; border-radius: 14px; }
  .col-icon span { font-size: 23px; }
  .col-title { font-size: 23px; }
  .col-desc { font-size: 14px; }

  .art-list-wrap { padding: 4px 16px 22px; }
  .art-row { padding: 14px 16px; }
  .art-row:hover { transform: none; box-shadow: var(--shadow-sm); }
  .art-grid { grid-template-columns: 1fr; }
  .art-card { grid-template-columns: 38px 1fr 14px; column-gap: 13px; padding: 16px; }
  .art-card-icon { width: 38px; height: 38px; border-radius: 11px; }
  .art-card-icon span { font-size: 18px; }
  .art-card-chevron { margin-top: 12px; font-size: 13px; }

  .lara-cta { padding: 18px; }
  .lara-cta img { width: 32px; }
  .lara-cta p { font-size: 13.5px; }

  .article-layout { grid-template-columns: 1fr; padding: 14px 16px 32px; gap: 0; }
  .article-sidebar { display: none; }
  .article-title { font-size: 25px; }
  .article-lead { font-size: 16px; margin-bottom: 20px; }
  .article-body p { font-size: 16px; }
  .article-body h2 { font-size: 19px; }
  .article-body hr + p + ul { grid-template-columns: 1fr; }
  .siga-leyendo-grid { grid-template-columns: 1fr; }

  .search-wrap { padding: 20px 16px 32px; }
  .search-lara-banner { padding: 14px 16px; }
  .search-result-card { grid-template-columns: 38px 1fr 14px; column-gap: 13px; padding: 16px; }
  .search-no-results { padding: 34px 0 40px; }
  .search-no-results-lara { width: 92px; height: 92px; }
  .search-no-results-lara img { width: 74px; }
  .search-no-results h1 { font-size: 22px; }

  .site-footer { padding: 22px 16px; }
  .footer-links { gap: 24px; flex-wrap: wrap; }
  .footer-logo { height: 22px; }
  .footer-tagline { font-size: 13px; }

  .inner-wrap { padding: 0 16px; }
  .crumbs { margin-bottom: 14px; }
}
