:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --border: #cbd5e1;
  --border-soft: #e2e8f0;
  --accent: #1d4ed8;
  --accent-soft: #eff6ff;
  --green: #047857;
  --green-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-wrap: break-word;
  overflow-x: clip;
}

.site-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.header-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
}

.header-top-row {
  display: contents;
}

.site-branding {
  order: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-tools-group {
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.header-ext-links {
  order: 3;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 36px;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.header-ext-icon {
  display: block;
  flex-shrink: 0;
}

.header-store-link {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #004F7D;
}

.header-store-link:hover,
.header-store-link:focus-visible {
  background: #004F7D;
  border-color: #004F7D;
  color: #ffffff;
}

.header-site-link {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #004F7D;
}

.header-site-link:hover {
  background: #eff6ff;
  border-color: #004F7D;
  color: #003b5e;
}

.header-wa-link {
  background: #16a34a;
  border: 1px solid #15803d;
  color: #ffffff;
}

.header-wa-link:hover {
  background: #15803d;
  border-color: #166534;
  color: #ffffff;
}

.cc-logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  height: auto;
  flex-shrink: 0;
  text-decoration: none;
  outline: none;
}

.cc-logo-svg {
  height: 44px;
  width: auto;
  overflow: visible;
  display: block;
}

.cc-logo-blog-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  color: #004F7D;
  margin-top: -3px;
  margin-right: -0.22em;
  opacity: 0;
  animation: ccBlogFade 0.4s ease forwards 0.8s;
}

@keyframes ccBlogFade {
  to {
    opacity: 1;
  }
}

.cc-fil0 {
  fill: none;
}

.cc-fil1 {
  fill: #4D4D4D;
}

.cc-fil2 {
  fill: #004F7D;
}

.cc-logo-part {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
}

.cc-char {
  animation: ccDropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: translateY(-40px);
  opacity: 0;
}

.cc-char-1 { animation-delay: 0.15s; }
.cc-char-2 { animation-delay: 0.25s; }
.cc-char-3 { animation-delay: 0.35s; }
.cc-char-4 { animation-delay: 0.45s; }
.cc-char-5 { animation-delay: 0.55s; }
.cc-char-6 { animation-delay: 0.65s; }
.cc-char-7 { animation-delay: 0.75s; }

.cc-icon-dot {
  animation: ccPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.05s;
  transform: scale(0);
}

@keyframes ccDropIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ccPopIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-footer .cc-logo-part,
.site-footer .cc-char,
.site-footer .cc-icon-dot {
  opacity: 1;
  animation: none;
  transform: none;
}

.site-footer .cc-logo-blog-tag {
  color: #7dd3fc;
  opacity: 1;
  animation: none;
  margin-top: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .cc-logo-part,
  .cc-char,
  .cc-icon-dot,
  .cc-logo-blog-tag {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

.header-search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
  min-width: 0;
}

.header-search-icon {
  position: absolute;
  left: 0.78rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.header-search-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.58rem 0.9rem 0.58rem 2.35rem;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.header-search-input:focus {
  outline: none;
  border-color: #004F7D;
  box-shadow: 0 0 0 3px rgba(0, 79, 125, 0.14);
  background: var(--surface);
}

.header-cat-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.header-cat-icon-link {
  min-height: 38px;
  padding: 0.4rem 0.72rem;
  gap: 0.34rem;
}

.header-cat-icon {
  display: block;
  flex-shrink: 0;
}

.header-cat-link:hover {
  border-color: #004F7D;
  color: #004F7D;
  background: var(--accent-soft);
}

.header-cat-link.is-active {
  background: #004F7D;
  border-color: #004F7D;
  color: #ffffff;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.header-cat-icon-link .cat-badge {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
}

.header-cat-link.is-active .cat-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  z-index: 50;
  max-height: 70vh;
  overflow-y: auto;
}

.search-dd-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--ink);
}

.search-dd-item:first-child {
  border-top: 0;
}

.search-dd-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.search-dd-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  flex-shrink: 0;
}

.search-dd-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.search-dd-wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(15, 23, 42, 0.34);
  background: rgba(255, 255, 255, 0.24);
  -webkit-text-stroke: 0.75px rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.search-dd-thumb.is-book {
  background: linear-gradient(135deg, #004F7D, #0f172a);
  border-color: #004F7D;
}

.search-dd-thumb.is-book .search-dd-wm {
  font-size: 0.78rem;
  color: #ffffff;
  background: transparent;
  -webkit-text-stroke: 0;
  text-align: center;
  padding: 0 3px;
}

.search-dd-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.search-dd-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.08rem 0.42rem;
  border-radius: 4px;
  line-height: 1.3;
}

.search-dd-badge.is-pregunta {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #bfdbfe;
}

.search-dd-badge.is-manual {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #a7f3d0;
}

.search-dd-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.search-dd-empty {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.search-dd-footer {
  display: block;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.search-dd-footer:hover {
  background: var(--accent-soft);
}

.breadcrumbs {
  margin: 0 0 1.05rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.breadcrumb-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--border);
  user-select: none;
}

.breadcrumb-list [aria-current="page"] {
  color: var(--ink-muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.container--wide,
.topbar-inner--wide {
  max-width: 1220px;
}

.hero-index {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.35rem;
}

.hero-index-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-index-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-cover {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e293b;
  background: #070d19;
}

.hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

h1 {
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  line-height: 1.24;
  margin: 0.25rem 0 0.85rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

p {
  margin: 0 0 0.9rem;
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.86rem;
  font-family: var(--mono);
}

.stat-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  color: var(--ink);
}

.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 900px) {
  .filter-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .filter-panel .search-input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .filter-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
  justify-self: end;
}

@media (max-width: 600px) {
  .view-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-self: stretch;
  }
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.view-btn:hover {
  color: var(--ink);
}

.view-btn.is-active {
  background: var(--ink);
  color: #ffffff;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .manual-cover-plate {
    padding: 0.4rem;
    gap: 0.15rem;
  }
  .manual-plate-fmt {
    font-size: 0.62rem;
    padding: 0.1rem 0.4rem;
  }
  .manual-plate-num {
    font-size: 1.4rem;
  }
  .manual-plate-org {
    font-size: 0.65rem;
  }
  .blog-card-body {
    padding: 0.6rem 0.65rem 0.7rem;
    gap: 0.35rem;
  }
  .blog-card-badges {
    gap: 0.25rem;
  }
  .blog-card .q-num {
    font-size: 0.7rem;
    padding: 0.12rem 0.35rem;
  }
  .card-bloque {
    font-size: 0.66rem;
    padding: 0.12rem 0.32rem;
  }
  .blog-card-title {
    font-size: 0.82rem;
    line-height: 1.32;
  }
  .blog-card-meta {
    font-size: 0.68rem;
    padding-top: 0.35rem;
  }
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card-media {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.blog-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.card-bloque {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.blog-card-title {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.38;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.blog-card-meta {
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.77rem;
  color: var(--ink-muted);
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.list-view-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.h1-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.h1-list-item {
  border-top: 1px solid var(--border-soft);
}

.h1-list-item:first-child {
  border-top: 0;
}

.h1-list-link {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.42;
}

.h1-list-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.h1-list-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  flex-shrink: 0;
}

.h1-list-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.h1-thumb-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(15, 23, 42, 0.30);
  background: rgba(255, 255, 255, 0.22);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.68);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.85);
  pointer-events: none;
  user-select: none;
}

.h1-list-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.h1-list-meta {
  display: block;
  margin-top: 0.22rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.blog-category-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.45rem;
  margin-bottom: 1.85rem;
}

.category-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-soft);
}

.category-box-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: #004F7D;
}

.category-box-count {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: #004F7D;
  border: 1px solid #bfdbfe;
}

.blog-category-box .filter-panel {
  background: var(--bg);
}

.manual-cover-plate {
  background: linear-gradient(135deg, #f0f7ff 0%, #e2ecf8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem;
  text-align: center;
}

.manual-plate-fmt {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: #004F7D;
  color: #ffffff;
}

.manual-plate-num {
  font-family: var(--mono);
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.05;
  color: #0f172a;
}

.manual-plate-org {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manual-list-thumb {
  background: linear-gradient(135deg, #004F7D 0%, #0f172a 100%);
  border-color: #004F7D;
}

.manual-thumb-fmt {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.1rem 0.36rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  line-height: 1.2;
}

.manual-list-thumb .h1-thumb-watermark {
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ink-muted);
}

.btn-reset {
  margin-top: 0.75rem;
  padding: 0.48rem 0.95rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.entry-hero-figure {
  margin: 0 0 1.25rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.entry-hero-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
}

.entry-hero-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.paso-item .diagram-figure {
  margin: 0.85rem 0 0.1rem;
}

.search-input, .block-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  background: #ffffff;
  color: var(--ink);
}

.block-select {
  text-overflow: ellipsis;
}

.block-group {
  margin-bottom: 2rem;
}

.block-header {
  background: var(--ink);
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: 6px 6px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.block-count {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: #334155;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.question-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: var(--surface);
}

.question-item {
  border-top: 1px solid var(--border-soft);
}

.question-item:first-child {
  border-top: 0;
}

.question-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  align-items: start;
}

.question-link > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.question-link:hover {
  background: var(--accent-soft);
}

.q-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.q-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  display: block;
}

.q-meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.portada-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--ink);
  border-radius: 6px;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.25rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.portada-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.badge-norma {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.badge-bloque {
  background: var(--surface-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.portada-sub {
  font-size: 0.94rem;
  color: var(--ink-muted);
  margin: 0;
}

.respuesta-rapida {
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.2rem 1.35rem;
  margin: 1.15rem 0 2rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.respuesta-rapida-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.respuesta-rapida p {
  font-size: 1.03rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.btn-completo {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.48rem 0.95rem;
  border-radius: 5px;
}

.btn-completo:hover {
  background: #1e40af;
}

.entry-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.45rem 1.5rem;
  margin-bottom: 1.35rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sec-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  display: block;
}

.entry-section ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.3rem;
}

.entry-section li {
  margin-bottom: 0.45rem;
}

.norma-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0.65rem;
  margin: 0.8rem 0 1rem;
}

.norma-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.norma-card strong {
  display: block;
  color: var(--ink);
}

.norma-tipo {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-bottom: 0.25rem;
}

.tipo-nom {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #fecaca;
}

.tipo-std {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #bfdbfe;
}

.pasos-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.paso-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 0.9rem 1.05rem;
  background: #fcfdfd;
  min-width: 0;
  overflow-wrap: anywhere;
}

.paso-head {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.paso-num {
  font-family: var(--mono);
  color: var(--green);
  margin-right: 0.45rem;
}

.paso-check {
  margin-top: 0.45rem;
  padding: 0.45rem 0.65rem;
  background: var(--green-soft);
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  font-size: 0.89rem;
  color: #065f46;
}

.conclusion-box {
  background: #fffdf7;
  border-color: #fde68a;
  border-left: 5px solid var(--amber);
}

.diagram-figure {
  margin: 1.15rem 0 0.35rem;
  padding: 0.85rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.diagram-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
}

.diagram-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
  align-items: stretch;
}

.pager-card,
.pager-home {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.pager-card {
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
}

.pager-home {
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.pager-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}

.pager-title {
  font-size: 0.92rem;
  line-height: 1.38;
  font-weight: 600;
  color: var(--ink);
}

.pager-card:hover,
.pager-home:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager-card:hover .pager-title {
  color: var(--accent);
}

.pager-next {
  text-align: right;
}

@media (max-width: 760px) {
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager-next {
    text-align: left;
  }
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.15rem;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.category-tab:hover {
  border-color: #004F7D;
  color: #004F7D;
  background: var(--accent-soft);
}

.category-tab.is-active {
  background: #004F7D;
  border-color: #004F7D;
  color: #ffffff;
}

.filter-panel--manuales {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.container--book {
  max-width: 900px;
}

.manuales-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid #004F7D;
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}

.manuales-hero h1 {
  margin-top: 0;
}

.manuales-hero p:last-child {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.manuales-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.manual-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.manual-card:hover {
  border-color: #004F7D;
  box-shadow: 0 8px 22px rgba(0, 79, 125, 0.08);
}

.manual-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.manual-num-badge {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: #e0f2fe;
  color: #004F7D;
  border: 1px solid #bae6fd;
}

.manual-fmt-badge {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #a7f3d0;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}

.manual-cat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
}

.manual-card-title {
  font-size: 1.12rem;
  line-height: 1.32;
  margin: 0 0 0.45rem;
}

.manual-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.manual-card-title a:hover {
  color: #004F7D;
  text-decoration: underline;
}

.manual-org {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.manual-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.77rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.manual-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
}

.btn-recurso-read {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.85rem;
  background: #004F7D;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-recurso-read:hover {
  background: #003b5e;
}

.btn-recurso-dl {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.85rem;
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-recurso-dl:hover {
  border-color: #004F7D;
  color: #004F7D;
  background: var(--accent-soft);
}

.manual-reader {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.65rem 1.85rem;
}

.manual-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  padding-bottom: 0.95rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.book-dl-inline {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  color: #004F7D;
  font-weight: 700;
  text-decoration: none;
}

.book-dl-inline:hover {
  background: #004F7D;
  color: #ffffff;
}

.manual-transcript {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: var(--sans);
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--ink);
  background: #fafbfd;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
}

.site-footer {
  background: #0b1220;
  color: #e2e8f0;
  border-top: 3px solid #004F7D;
  margin-top: 3rem;
}

.site-footer .cc-fil1,
.site-footer .cc-fil2 {
  fill: #ffffff !important;
}

.site-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 2.25rem;
  align-items: start;
}

.footer-logo-link {
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-logo-link .cc-logo-svg {
  height: 42px;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 1.35rem;
}

.footer-heading {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  margin-bottom: 0.65rem;
}

.footer-contact-sections {
  display: grid;
  gap: 1.15rem;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  font-size: 0.87rem;
  color: #94a3b8;
}

.footer-contact-list a {
  color: #f8fafc;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-contact-list a:hover {
  color: #40a9ff;
  text-decoration: underline;
}

.footer-contact-list strong {
  color: #f8fafc;
  font-weight: 600;
}

.footer-ai-links {
  margin-top: 1.35rem;
}

.footer-ai-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-ai-pills a {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-decoration: none;
}

.footer-ai-pills a:hover {
  border-color: #40a9ff;
  color: #40a9ff;
  background: rgba(64, 169, 255, 0.12);
}

.footer-dl-intro {
  font-size: 0.87rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.footer-dl-accordions {
  display: grid;
  gap: 0.55rem;
}

.footer-dl-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.footer-dl-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  cursor: pointer;
  list-style: none;
}

.footer-dl-summary::-webkit-details-marker {
  display: none;
}

.footer-dl-summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.footer-dl-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(64, 169, 255, 0.18);
  color: #7dd3fc;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.footer-dl-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  gap: 0.35rem;
}

.footer-dl-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  border-radius: 5px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.83rem;
}

.footer-dl-list a:hover {
  background: rgba(64, 169, 255, 0.1);
  color: #40a9ff;
}

.dl-fmt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.36rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.18);
  color: #93c5fd;
}

.dl-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dl-size {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
}

.footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.82rem;
  color: #94a3b8;
}

.legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.legal-links a {
  color: #93c5fd;
  text-decoration: none;
}

.legal-links a:hover {
  color: #40a9ff;
  text-decoration: underline;
}

body.search-open {
  overflow: hidden;
}

.search-dropdown.header-search-results-fullscreen[hidden] {
  display: none !important;
}

.search-dropdown.header-search-results-fullscreen {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100dvh - var(--header-h));
  max-height: none;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(8px);
  z-index: 9998;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.search-fs-inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-fs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.search-fs-summary {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.search-fs-summary strong {
  color: var(--ink);
}

.search-fs-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.search-fs-close:hover {
  border-color: #004F7D;
  color: #004F7D;
  background: var(--accent-soft);
}

.search-fs-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.search-fs-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #004F7D;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-fs-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #004F7D;
  border: 1px solid #bae6fd;
}

.search-fs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.header-search-results-fullscreen .search-dd-item,
.header-search-results-fullscreen .search-dd-item:first-child {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.header-search-results-fullscreen .search-dd-item:hover {
  border-color: #004F7D;
  box-shadow: 0 6px 18px rgba(0, 79, 125, 0.08);
  background: var(--accent-soft);
}

.header-search-results-fullscreen .search-dd-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.96rem;
}

.header-search-results-fullscreen .search-dd-footer {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.78rem 1rem;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}

.manual-lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.8rem 1rem;
  margin: 0 0 1.2rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #004F7D;
  border-radius: 8px;
}

.manual-lang-bar.is-spanish {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #047857;
}

.manual-lang-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  min-width: 0;
}

.manual-lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  background: #004F7D;
  color: #ffffff;
  white-space: nowrap;
}

.manual-lang-bar.is-spanish .manual-lang-pill {
  background: #047857;
}

.manual-lang-note {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.btn-translate-es {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 1.05rem;
  border: 1px solid #004F7D;
  border-radius: 7px;
  background: #004F7D;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-translate-es:hover:not(:disabled) {
  background: #003b5e;
  border-color: #003b5e;
}

.btn-translate-es.is-spanish {
  background: #ffffff;
  color: #047857;
  border-color: #047857;
}

.btn-translate-es.is-spanish:hover:not(:disabled) {
  background: #047857;
  color: #ffffff;
}

.btn-translate-es:disabled {
  opacity: 0.7;
  cursor: wait;
}

.norma-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-soft);
}

.norma-manual-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #004F7D;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 0.18rem 0.5rem;
  text-decoration: none;
}

.norma-manual-link:hover {
  background: #004F7D;
  color: #ffffff;
  border-color: #004F7D;
}

.related-qa-section {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.related-qa-section h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 800;
  color: #004F7D;
}

.related-qa-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.related-qa-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.related-qa-list a:hover {
  color: #004F7D;
  text-decoration: underline;
}

@media (max-width: 920px) {
  .site-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 780px) {
  .manuales-grid,
  .filter-panel--manuales,
  .search-fs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .search-fs-inner {
    padding: 0.95rem 0.85rem 2rem;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 98px;
  }
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
    padding: 0.48rem 0.85rem;
    min-height: 0;
  }
  .header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
  }
  .site-branding,
  .header-tools-group,
  .header-ext-links {
    order: initial;
    margin-left: 0;
  }
  .header-tools-group {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    width: 100%;
    min-width: 0;
  }
  .cc-logo-link {
    height: auto;
  }
  .cc-logo-svg {
    height: 28px;
  }
  .cc-logo-blog-tag {
    font-size: 0.5rem;
    letter-spacing: 0.22em;
    margin-top: -2px;
  }
  .header-ext-links {
    gap: 0.34rem;
  }
  .header-ext-link {
    min-height: 30px;
    padding: 0.28rem 0.56rem;
    font-size: 0.72rem;
    gap: 0.26rem;
  }
  .header-store-link {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
  }
  .header-search-wrap {
    flex: 1;
    max-width: none;
    min-width: 0;
  }
  .header-cat-nav {
    display: flex;
    align-items: center;
    width: auto;
    gap: 0.36rem;
    flex-shrink: 0;
  }
  .header-cat-icon-link {
    justify-content: center;
    padding: 0.34rem 0.54rem;
    min-height: 36px;
    gap: 0.26rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .cc-logo-svg {
    height: 25px;
  }
  .header-ext-links {
    gap: 0.25rem;
  }
  .header-ext-link {
    padding: 0.25rem 0.46rem;
    font-size: 0.69rem;
    gap: 0.22rem;
  }
  .header-store-link {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 1rem 0.85rem 2.5rem;
  }
  .blog-category-box {
    padding: 0.9rem 0.75rem;
    margin-bottom: 1.35rem;
  }
  .hero-index,
  .entry-section,
  .respuesta-rapida,
  .manuales-hero,
  .manual-reader {
    padding: 1rem;
  }
  .manual-transcript {
    padding: 0.95rem 1rem;
    font-size: 0.9rem;
  }
  .manual-lang-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-translate-es {
    width: 100%;
  }
  .book-dl-inline {
    margin-left: 0;
  }
  .question-link {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.85rem;
  }
  .q-num {
    justify-self: start;
  }
  .block-header {
    flex-wrap: wrap;
  }
  .h1-list-link {
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
    line-height: 1.38;
  }
}

/* =========================================================
   Table of Contents, Heading Anchors & Floating Sticky Bar
   ========================================================= */

.bullet-lead {
  color: var(--ink);
  font-weight: 700;
}

.entry-section > p,
.entry-section > ul > li {
  line-height: 1.68;
  max-width: 72ch;
}

.entry-section h2,
.paso-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.heading-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.38rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  opacity: 0.62;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.entry-section h2:hover .heading-anchor,
.paso-head:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
  color: #004F7D;
  background: #e0f2fe;
  border-color: #93c5fd;
  outline: none;
}

.entry-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid #004F7D;
  border-radius: 10px;
  padding: 1.05rem 1.2rem 1.15rem;
  margin: 0 0 1.25rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.entry-toc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
  padding-bottom: 0.72rem;
  margin-bottom: 0.82rem;
  border-bottom: 1px solid var(--border-soft);
}

.entry-toc-heading {
  font-size: 0.96rem;
  font-weight: 800;
  color: #004F7D;
  letter-spacing: -0.01em;
}

.entry-toc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.toc-read-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border-soft);
}

.toc-quick-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #004F7D;
  border: 1px solid #bfdbfe;
  text-decoration: none;
}

.toc-quick-link:hover {
  background: #004F7D;
  color: #ffffff;
  border-color: #004F7D;
}

.entry-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 680px) {
  .entry-toc-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.toc-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.toc-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding: 0.58rem 0.72rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.toc-link:hover {
  border-color: #004F7D;
  background: var(--accent-soft);
}

.toc-link.is-active {
  border-color: #004F7D;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #004F7D;
}

.toc-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--surface);
  color: #004F7D;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.toc-link.is-active .toc-num {
  background: #004F7D;
  color: #ffffff;
  border-color: #004F7D;
}

.toc-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.toc-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.toc-sub {
  font-size: 0.77rem;
  color: var(--ink-muted);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.toc-step-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-left: 0.15rem;
}

.toc-step-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--green-soft);
  color: #065f46;
  border: 1px solid #a7f3d0;
  transition: all 0.14s ease;
}

.toc-step-chip:hover,
.toc-step-chip.is-active {
  background: #065f46;
  color: #ffffff;
  border-color: #065f46;
}

.entry-sticky-bar {
  position: fixed;
  top: var(--sticky-top, 76px);
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.entry-sticky-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.search-open .entry-sticky-bar {
  opacity: 0 !important;
  pointer-events: none !important;
}

.sticky-bar-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sticky-status {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.sticky-sec-view,
.sticky-howto-view {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.sticky-howto-view {
  display: none;
}

.entry-sticky-bar.is-howto .sticky-sec-view {
  display: none;
}

.entry-sticky-bar.is-howto .sticky-howto-view {
  display: flex;
}

.sticky-sec-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  background: #004F7D;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-sec-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sticky-howto-label {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background-color: #065f46;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-howto-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.68rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sticky-step-tag {
  font-family: var(--mono);
  font-weight: 800;
  color: #1d4ed8;
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-step-name {
  color: #1e3a8a;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sticky-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.sticky-sec-nav,
.sticky-step-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sticky-step-nav {
  display: none;
}

.entry-sticky-bar.is-howto .sticky-sec-nav {
  display: none;
}

.entry-sticky-bar.is-howto .sticky-step-nav {
  display: flex;
}

.sticky-sec-nav a,
.sticky-step-nav a {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  transition: all 0.14s ease;
}

.sticky-sec-nav a:hover,
.sticky-sec-nav a.is-active {
  background: #004F7D;
  border-color: #004F7D;
  color: #ffffff;
}

.sticky-step-nav a:hover,
.sticky-step-nav a.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.sticky-popover-wrap {
  position: relative;
}

.sticky-toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sticky-toc-toggle:hover {
  border-color: #004F7D;
  color: #004F7D;
  background: var(--accent-soft);
}

.sticky-toc-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, 88vw);
  max-height: 65dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  z-index: 9500;
}

.sticky-pop-heading {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.2rem 0.45rem 0.35rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 0.15rem;
}

.sticky-pop-link,
.sticky-pop-step {
  display: block;
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.83rem;
  color: var(--ink);
  line-height: 1.3;
}

.sticky-pop-link:hover,
.sticky-pop-link.is-active {
  background: var(--accent-soft);
  color: #004F7D;
  font-weight: 700;
}

.sticky-pop-quick {
  font-weight: 700;
  color: var(--accent);
}

.sticky-pop-steps {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.65rem;
  border-left: 2px solid #a7f3d0;
  margin: 0.15rem 0 0.25rem 0.45rem;
}

.sticky-pop-step {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.sticky-pop-step:hover,
.sticky-pop-step.is-active {
  background: var(--green-soft);
  color: #065f46;
  font-weight: 700;
}

.sticky-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(203, 213, 225, 0.45);
}

.sticky-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #004F7D 0%, #1d4ed8 60%, #047857 100%);
  transition: width 0.08s linear;
}

@media (max-width: 760px) {
  .sticky-bar-inner {
    padding: 0.4rem 0.75rem;
    gap: 0.45rem;
  }
  .sticky-sec-nav,
  .sticky-step-nav {
    display: none !important;
  }
  .sticky-sec-badge,
  .sticky-howto-label {
    font-size: 0.72rem;
    padding: 0.18rem 0.52rem;
  }
  .sticky-howto-step {
    padding: 0.18rem 0.52rem;
    font-size: 0.74rem;
  }
  .sticky-sec-title {
    font-size: 0.76rem;
  }
  .sticky-toc-toggle {
    padding: 0.24rem 0.55rem;
    font-size: 0.74rem;
  }
}

/* =========================================================
   AI Assistant Prompt Launchpad CTA & Search AI Fallback
   ========================================================= */

.ai-agent-cta {
  background: linear-gradient(135deg, #0b2545 0%, #004F7D 58%, #075985 100%);
  border: 1px solid #38bdf8;
  border-left: 5px solid #10b981;
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  margin: 0 0 1.2rem;
  box-shadow: 0 10px 26px rgba(0, 79, 125, 0.2);
  color: #ffffff;
  min-width: 0;
}

.ai-cta-head {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-bottom: 0.55rem;
}

.ai-cta-title {
  font-size: clamp(1.02rem, 1.75vw, 1.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.28;
}

.ai-cta-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #e0f2fe;
  line-height: 1.42;
}

.ai-cta-note {
  margin: 0 0 0.6rem;
  padding: 0.52rem 0.75rem;
  background: rgba(254, 243, 199, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 7px;
  font-size: 0.81rem;
  color: #fef3c7;
  line-height: 1.44;
}

.ai-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ai-question-wrap {
  flex: 1 1 250px;
  min-width: 0;
}

.ai-question-input {
  width: 100%;
  height: 38px;
  min-width: 0;
  max-width: 100%;
  padding: 0.42rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #7dd3fc;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  font-family: var(--sans);
  font-size: 0.87rem;
  line-height: 1.25;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-question-input::placeholder {
  color: #64748b;
}

.ai-question-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
  background: #ffffff;
}

.ai-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.ai-icon-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.36rem;
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #ffffff;
  color: #0f172a;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.1s ease, box-shadow 0.14s ease;
}

.ai-btn:hover {
  transform: translateY(-1px);
}

.ai-btn--copy {
  height: 38px;
  min-height: 38px;
  padding: 0.4rem 0.82rem;
  background: #10b981;
  border-color: #34d399;
  color: #052e16;
  font-weight: 800;
}

.ai-copy-svg {
  display: block;
  flex-shrink: 0;
}

.ai-btn--copy:hover {
  background: #34d399;
  border-color: #6ee7b7;
  color: #052e16;
}

.ai-btn--copy.is-copied {
  background: #a7f3d0;
  border-color: #6ee7b7;
  color: #064e3b;
}

.ai-btn--icon {
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 9px;
}

.ai-platform-svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ai-btn--chatgpt:hover {
  border-color: #10a37f;
  background: #ecfdf5;
}

.ai-btn--gemini:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.ai-btn--claude:hover {
  border-color: #d97757;
  background: #fff7ed;
}

.ai-btn--perplexity:hover {
  border-color: #1a7f8a;
  background: #f0fdfa;
}

.ai-btn--copilot:hover {
  border-color: #0078d4;
  background: #eff6ff;
}

.ai-btn--grok:hover {
  border-color: #0f172a;
  background: #f1f5f9;
}

.ai-btn--deepseek:hover {
  border-color: #4d6bfe;
  background: #eef2ff;
}

.ai-btn--mistral:hover {
  border-color: #fa520f;
  background: #fff7ed;
}

@media (hover: hover) {
  .ai-btn--icon[data-tooltip]:hover::after,
  .ai-btn--icon[data-tooltip]:focus-visible::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.22rem 0.48rem;
    border-radius: 5px;
    background: #0f172a;
    color: #ffffff;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
    z-index: 20;
  }
}

.ai-cta-status {
  margin-top: 0.6rem;
  padding: 0.44rem 0.72rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #34d399;
  color: #ecfdf5;
  font-size: 0.82rem;
  font-weight: 600;
}

.ai-prompt-preview {
  margin-top: 0.65rem;
  border-top: 1px dashed rgba(186, 230, 253, 0.35);
  padding-top: 0.5rem;
}

.ai-prompt-preview summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 700;
  color: #bae6fd;
  user-select: none;
}

.ai-prompt-code {
  margin: 0.52rem 0 0;
  padding: 0.7rem 0.82rem;
  border-radius: 7px;
  background: rgba(7, 19, 38, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.3);
  font-family: var(--mono);
  font-size: 0.77rem;
  line-height: 1.5;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.ai-howto-nudge {
  background: linear-gradient(135deg, #0b2545 0%, #004F7D 100%);
  border: 1px solid #38bdf8;
  border-left: 4px solid #10b981;
  border-radius: 9px;
  padding: 0.68rem 0.92rem;
  margin: 0.75rem 0 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.8rem;
  color: #ffffff;
  min-width: 0;
}

.ai-howto-nudge-text {
  font-size: 0.85rem;
  color: #e0f2fe;
  line-height: 1.38;
}

.ai-howto-nudge-text strong {
  color: #ffffff;
}

.ai-cta-actions--compact {
  gap: 0.34rem;
}

.ai-cta-actions--compact .ai-btn--copy {
  height: 34px;
  min-height: 34px;
  padding: 0.32rem 0.68rem;
  font-size: 0.78rem;
}

.ai-icon-group--compact {
  gap: 0.3rem;
}

.ai-cta-actions--compact .ai-btn--icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 8px;
}

.ai-cta-actions--compact .ai-platform-svg {
  width: 18px;
  height: 18px;
}

.search-ai-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.55rem 0.1rem 0.45rem;
  color: var(--ink);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

.search-ai-box.is-footer {
  margin-top: 0.45rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--border);
}

.search-ai-head {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.search-ai-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.search-ai-sub {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.search-ai-box .ai-btn--copy {
  border-color: #059669;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.search-ai-box .ai-btn--icon {
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.search-ai-box .ai-cta-status {
  background: var(--green-soft);
  border: 1px solid #6ee7b7;
  color: #065f46;
}

@media (max-width: 640px) {
  .ai-agent-cta {
    padding: 0.85rem 0.9rem;
  }
  .ai-cta-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .ai-question-wrap {
    flex: none;
    width: 100%;
  }
  .ai-cta-actions {
    gap: 0.36rem;
  }
  .ai-icon-group {
    gap: 0.28rem;
  }
  .ai-btn--icon {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 8px;
  }
  .ai-btn--icon .ai-platform-svg {
    width: 18px;
    height: 18px;
  }
  .ai-howto-nudge {
    flex-direction: column;
    align-items: stretch;
  }
  .search-ai-box {
    padding: 0.45rem 0.05rem;
  }
}

/* =========================================================
   Store Catalog Pre-Footer CTA Band
   ========================================================= */

.store-catalog-cta-band {
  padding: 0 1.25rem 2.25rem;
  background: var(--bg);
}

.store-cta-card {
  max-width: 1220px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 62%, #ecfdf5 100%);
  border: 1px solid #bae6fd;
  border-left: 5px solid #004F7D;
  border-radius: 14px;
  padding: 1.4rem 1.65rem;
  box-shadow: 0 8px 24px rgba(0, 79, 125, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.store-cta-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.store-cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #004F7D;
  text-transform: uppercase;
}

.store-cta-title {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.store-cta-desc {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-muted);
  line-height: 1.52;
  max-width: 66ch;
}

.store-cta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.store-cta-tags span {
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  color: #004F7D;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
}

.store-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  flex-shrink: 0;
}

.store-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.32rem;
  border-radius: 9px;
  background: #004F7D;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 79, 125, 0.24);
  transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.store-cta-btn:hover {
  background: #003b5e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 79, 125, 0.28);
}

.store-cta-url-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .store-cta-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.05rem;
    padding: 1.15rem 1.1rem;
  }
  .store-cta-action {
    align-items: stretch;
  }
  .store-cta-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .store-cta-url-hint {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .store-catalog-cta-band {
    padding: 0 0.85rem 1.75rem;
  }
}
