/*
Theme Name: HuellaBiT
Theme URI: https://huellabit.com/
Description: Tema hijo ligero de Twenty Twenty-Five. Portada editorial para comparativas, guías y artículos sobre tecnología para mascotas.
Author: HuellaBiT
Version: 1.0.0
Template: twentytwentyfive
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: huellabit
*/

/* ===== VARIABLES Y BASE CORPORATIVA ===== */
:root {
  --hb-ink: #1c1b1e;
  --hb-navy: #12355b;
  --hb-coral: #ff6f61;
  --hb-teal: #16c1b7;
  --hb-muted: #586d85;
  --hb-pale: #f3f9ff;
  --hb-line: #e4eef8;
  --hb-container: 1600px;
  --hb-gutter: 100px;
  --hb-radius-sm: 14px;
  --hb-radius-md: 14px;
  --hb-radius-lg: 14px;
  --hb-shadow: 0 12px 34px rgba(18, 53, 91, .075);
  --hb-font: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: #fff; color: var(--hb-ink); font-family: var(--hb-font); -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font-family: var(--hb-font); }
body .wp-site-blocks { padding: 0; }
body .wp-site-blocks > * { margin-block-start: 0; }
a { color: var(--hb-navy); text-decoration: none; }
a:hover { color: var(--hb-teal); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--hb-teal); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; }
.hb-container { width: min(var(--hb-container), calc(100% - 2 * var(--hb-gutter))); margin-inline: auto; }
.material-symbols-outlined { font-family: 'Material Symbols Outlined' !important; font-weight: normal !important; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; flex-shrink: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ===== CABECERA FIJA / GLASS ===== */
.hb-skip-link { position: fixed; left: 24px; top: -100px; z-index: 2000; padding: 10px 18px; border-radius: 14px; color: #fff; background: var(--hb-navy); }
.hb-skip-link:focus { top: 16px; color: #fff; }
.hb-site-header { position: fixed; z-index: 1000; top: 18px; left: 50%; transform: translateX(-50%); width: min(var(--hb-container), calc(100% - 2 * var(--hb-gutter))); transition: top .2s ease; }
.admin-bar .hb-site-header { top: 50px; }
.hb-header-shell { min-height: 76px; display: flex; align-items: center; gap: clamp(18px, 2.5vw, 42px); padding: 8px 20px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%); box-shadow: 0 10px 36px rgba(18,53,91,.09); transition: background .25s ease, box-shadow .25s ease; }
.hb-site-header.is-scrolled .hb-header-shell { background: rgba(255,255,255,.72); box-shadow: 0 14px 36px rgba(18,53,91,.15); }
.hb-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.hb-logo img { display: block; width: 180px; height: auto; }
.hb-primary-nav { display: flex; align-items: center; align-self: center; justify-content: center; gap: clamp(18px,2vw,30px); white-space: nowrap; margin: 0; }
.hb-primary-nav a { color: var(--hb-navy); font-weight: 700; font-size: 1.05rem; transition: color .2s ease; }
.hb-primary-nav a:hover, .hb-primary-nav .current-menu-item > a { color: var(--hb-teal); }
.hb-header-search { flex: 0 1 314px; }
.hb-search { display: flex; align-items: center; min-width: 0; gap: 10px; border: 1px solid #dce6ef; border-radius: 14px; background: rgba(247,250,255,.8); padding: 4px 5px 4px 18px; transition: border-color .2s ease, background .2s ease; }
.hb-search:focus-within { border-color: var(--hb-navy); background: #fff; }
.hb-search input[type='search'] { border: 0; outline: none; box-shadow: none; min-width: 0; width: 100%; padding: 7px 0; margin: 0; font-family: var(--hb-font); font-size: .9rem; color: var(--hb-navy); background: transparent; }
.hb-search input[type='search']:focus, .hb-search input[type='search']:focus-visible { outline: none !important; box-shadow: none !important; }
.hb-search input::placeholder { color: #687d95; opacity: 1; }
.hb-search button { display: inline-flex; width: 37px; height: 37px; align-items: center; justify-content: center; flex: 0 0 37px; border: 0; border-radius: 90px; color: #fff; background: var(--hb-navy); transition: background .22s ease; }
.hb-search button:hover { background: var(--hb-teal); }
.hb-search button .material-symbols-outlined { font-size: 23px; }
.hb-mobile-nav { display: none; }

/* ===== HERO ===== */
.hb-home-main { overflow: clip; }


.hb-hero-copy { position: relative; z-index: 3; max-width: 550px; }
.hb-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 21px; color: var(--hb-teal); font-size: .74rem; font-weight: 800; line-height: 1.3; letter-spacing: .17em; }
.hb-kicker::before { content: ''; width: 19px; height: 4px; border-radius: 14px; background: var(--hb-teal); }
.hb-hero h1 { max-width: 540px; margin: 0 0 20px; color: var(--hb-navy); font-size: clamp(2.9rem, 5.1vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.hb-hero h1 span { color: var(--hb-coral); }
.hb-hero-intro { max-width: 450px; margin: 0; color: #405570; font-size: 1.12rem; line-height: 1.55; }
.hb-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hb-button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 49px; padding: 11px 22px; font-size: .97rem; font-weight: 800; border-radius: 14px; white-space: nowrap; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.hb-button .material-symbols-outlined { font-size: 19px; }
.hb-button-primary { background: var(--hb-coral); border: 1px solid var(--hb-coral); box-shadow: 0 7px 18px rgba(255,111,97,.17); color: #fff; }
.hb-button-primary:hover { background: var(--hb-coral); border-color: var(--hb-coral); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,111,97,.23); }
.hb-button-secondary { color: var(--hb-navy); border: 1px solid var(--hb-navy); background: rgba(255,255,255,.89); }
.hb-button-secondary:hover { color: var(--hb-navy); border-color: var(--hb-navy); background: #f0f9ff; transform: translateY(-2px); }
.hb-hero-benefits { display: flex; flex-wrap: wrap; gap: 30px; margin: 30px 0 0; padding: 0; list-style: none; }
.hb-hero-benefits li { display: flex; align-items: center; gap: 9px; color: var(--hb-navy); font-size: .85rem; line-height: 1.25; font-weight: 600; }
.hb-hero-benefits .material-symbols-outlined { font-size: 26px; }


/* ===== SECCIONES COMUNES ===== */
.hb-home-sections { padding-top: 32px; padding-bottom: 36px; }
.hb-section + .hb-section { margin-top: 78px; }
.hb-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.hb-section-heading h2 { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--hb-ink); font-size: clamp(1.55rem,2.6vw,2.2rem); line-height: 1.18; letter-spacing: -.022em; font-weight: 800; }
.hb-section-heading h2::before { content: ''; flex: 0 0 22px; height: 4px; border-radius: 14px; background: var(--hb-teal); }
.hb-section-eyebrow, .hb-section-link { display: inline-flex; align-items: center; gap: 7px; color: var(--hb-navy); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.hb-section-link:hover { color: var(--hb-teal); }
.hb-section-link .material-symbols-outlined { font-size: 18px; }

/* ===== 3 ACCESOS EDITORIALES ===== */
.hb-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hb-start-card { position: relative; isolation: isolate; display: block; min-height: 230px; padding: 27px 26px; overflow: hidden; border-radius: 14px; color: var(--hb-navy) !important; box-shadow: var(--hb-shadow); }

.hb-start-navy { --hb-card-glow: 45, 112, 255; background: #f4f8ff; }
.hb-start-coral { --hb-card-glow: 45, 112, 255; background: #f4f8ff; }
.hb-start-teal { --hb-card-glow: 45, 112, 255; background: #f4f8ff; }
.hb-start-card::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse at 78% 15%, rgba(var(--hb-card-glow), .16), transparent 62%), linear-gradient(90deg, rgba(255,255,255,.72), transparent 76%); box-shadow: inset 0 0 0 1px rgba(var(--hb-card-glow), .2), inset 0 1px 18px rgba(var(--hb-card-glow), .12); }
.hb-start-card > img { position: absolute; z-index: 0; right: 0; top: 0; height: 100%; width: 58%; object-fit: cover; object-position: center; opacity: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.15) 10%, rgba(0,0,0,.45) 22%, rgba(0,0,0,.78) 34%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.15) 10%, rgba(0,0,0,.45) 22%, rgba(0,0,0,.78) 34%, #000 48%); }
.hb-start-card-content { position: relative; z-index: 1; max-width: 76%; min-height: 178px; display: flex; flex-direction: column; align-items: flex-start; }
.hb-start-card-content > .material-symbols-outlined { font-size: 33px; }
.hb-start-card h3 { margin: 13px 0 7px; font-size: 1.42rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--hb-navy); }
.hb-start-card p { max-width: 350px; margin: 0; font-size: .92rem; line-height: 1.35; font-weight: 600; color: var(--hb-navy); }
.hb-start-arrow { display: grid; width: 34px; height: 34px; border-radius: 14px; place-items: center; margin-top: auto; background: var(--hb-navy); color: #fff; }
.hb-start-arrow .material-symbols-outlined { font-size: 20px; }

/* ===== COMPARATIVA DESTACADA ===== */
.hb-featured-card { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: stretch; min-height: 315px; padding: 26px 26px 26px 34px; background: linear-gradient(105deg,#fff 11%,#f4fafe 63%,#fff 100%); border: 1px solid #e5eef8; border-radius: 14px; box-shadow: var(--hb-shadow); overflow: hidden; }
.hb-featured-copy { position: relative; z-index: 2; width: 42%; align-self: center; }
.hb-label { display: inline-flex; border-radius: 14px; background: #e8f3ff; color: var(--hb-navy); padding: 5px 12px; font-size: .7rem; font-weight: 800; letter-spacing: .03em; }
.hb-featured-copy h3 { margin: 15px 0 11px; color: var(--hb-ink); font-size: clamp(1.45rem,2.5vw,2rem); line-height: 1.13; letter-spacing: -.02em; font-weight: 800; }
.hb-featured-copy p { margin: 0 0 19px; max-width: 365px; color: var(--hb-muted); line-height: 1.45; font-size: .99rem; }
.hb-featured-photo { position: absolute; left: 39%; top: 0; height: 100%; width: 36%; object-fit: cover; object-position: 50% 54%; -webkit-mask-image: linear-gradient(90deg,transparent 0%,#000 25%,#000 71%,transparent 100%); mask-image: linear-gradient(90deg,transparent 0%,#000 25%,#000 71%,transparent 100%); }
.hb-featured-list { z-index: 3; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 17px; width: 27%; margin: 0; padding: 21px; list-style: none; border-radius: 14px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 7px 24px rgba(18,53,91,.055); }
.hb-featured-list li { display: flex; gap: 11px; align-items: center; color: var(--hb-navy); font-weight: 700; font-size: .86rem; line-height: 1.25; }
.hb-featured-list .material-symbols-outlined { font-size: 23px; }

/* ===== CATEGORÍAS ===== */
.hb-categories-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; }
.hb-category-card { min-height: 134px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 17px 10px; text-align: center; border: 1px solid #e8f2fc; border-radius: 14px; background: linear-gradient(135deg,#f5faff 0%,#eef6ff 100%); color: var(--hb-navy); }

.hb-category-card > .material-symbols-outlined { font-size: 40px; }
.hb-category-card > span:last-child { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

/* ===== TARJETAS DE ARTÍCULOS ===== */
.hb-article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.hb-article-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e5eff9; border-radius: 14px; background: #fff; box-shadow: var(--hb-shadow); }

.hb-article-image { position: relative; display: block; width: 100%; aspect-ratio: 2.14/1; background: #eef7fc; overflow: hidden; }
.hb-article-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.hb-article-chip { position: absolute; left: 13px; bottom: 10px; z-index: 1; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--hb-navy); font-size: .67rem; font-weight: 800; padding: 5px 12px; line-height: 1; }
.hb-article-body { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 20px; }
.hb-article-body h3 { margin: 0 0 8px; color: var(--hb-ink); font-size: 1.23rem; font-weight: 800; line-height: 1.22; letter-spacing: -.015em; }
.hb-article-body h3 a { color: inherit; }
.hb-article-body h3 a:hover { color: var(--hb-teal); }
.hb-article-body p { margin: 0 0 13px; flex: 1; color: var(--hb-muted); font-size: .95rem; line-height: 1.45; }
.hb-text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--hb-navy); font-weight: 800; font-size: .91rem; }
.hb-text-link .material-symbols-outlined { font-size: 18px; transition: transform .2s ease; }
.hb-text-link:hover .material-symbols-outlined { transform: translateX(3px); }
.hb-demo-note { margin: 16px 0 0; font-size: .8rem; color: #627994; }

/* ===== FOOTER FLOTANTE, MISMO ANCHO QUE TODA LA WEB ===== */
.hb-footer-wrap { padding: 12px 0 24px; background: linear-gradient(180deg,#fff 0%,#f7fbff 100%); }
.hb-site-footer { width: min(var(--hb-container), calc(100% - 2 * var(--hb-gutter))); padding: 31px 34px 17px; border-radius: 14px; border: 1px solid #e9f1f9; background: rgba(255,255,255,.95); box-shadow: 0 10px 38px rgba(18,53,91,.085); }
.hb-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr; align-items: start; gap: 22px; }
.hb-footer-logo img { width: 172px; }
.hb-footer-brand p { font-size: .88rem; color: var(--hb-muted); margin: 4px 0 0; line-height: 1.45; }
.hb-footer-column h2, .hb-footer-social h2 { margin: 0 0 14px; font-weight: 800; color: var(--hb-navy); font-size: .93rem; }
.hb-footer-column ul { display: grid; gap: 7px; list-style: none; padding: 0; margin: 0; }
.hb-footer-column a { font-size: .82rem; line-height: 1.25; color: var(--hb-muted); }
.hb-footer-column a:hover { color: var(--hb-teal); }
.hb-footer-social { padding-left: 22px; border-left: 1px solid #e0e9f4; }
.hb-social-list { display: flex; flex-wrap: wrap; gap: 9px; }
.hb-social-item { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 7px 9px; border: 1px solid #d7e4f1; border-radius: 14px; color: var(--hb-navy); background: #f8fbff; font-size: .75rem; font-weight: 800; transition: transform .2s ease, color .2s ease, border-color .2s ease; }
.hb-social-item .material-symbols-outlined { font-size: 20px; }
.hb-social-item:not(.hb-social-disabled):hover { transform: translateY(-2px); color: var(--hb-teal); border-color: var(--hb-teal); }
.hb-social-disabled { opacity: .49; cursor: default; }
.hb-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 16px; border-top: 1px solid #e9f0f7; font-size: .75rem; color: #71839a; }
.hb-footer-bottom p { margin: 0; }
.hb-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 9px 14px; }
.hb-footer-bottom nav a { color: inherit; }
.hb-footer-bottom nav a:hover { color: var(--hb-navy); }

/* ===== PÁGINAS, ARCHIVOS Y BLOG NATIVOS DE WP ===== */
.hb-interior { min-height: 65vh; padding-top: 148px; padding-bottom: 70px; }
.hb-interior h1, .hb-entry h1 { font-size: clamp(2.4rem,4.5vw,3.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -.027em; }
.hb-interior h2, .hb-entry h2 { font-size: clamp(1.65rem,3vw,2.3rem); font-weight: 800; line-height: 1.2; }
.hb-interior h3, .hb-entry h3 { font-size: 1.5rem; font-weight: 700; }
.hb-entry { width: min(var(--hb-container), calc(100% - 2 * var(--hb-gutter))); margin-inline: auto; padding-top: 140px; padding-bottom: 65px; }
.hb-entry .wp-block-post-title { color: var(--hb-ink); }
.hb-entry p, .hb-interior p { color: #425571; line-height: 1.75; }
.hb-entry a:not(.hb-button) { color: var(--hb-navy); text-decoration: underline; text-underline-offset: 3px; }
.hb-entry .wp-block-post-featured-image img { border-radius: 14px; }
.hb-post-date { color: #6a809a; font-size: .88rem; }
.hb-archive-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.hb-archive-grid .wp-block-post { overflow: hidden; padding-bottom: 22px; border-radius: 14px; background: #fff; border: 1px solid #e4eef8; box-shadow: var(--hb-shadow); }
.hb-archive-grid .wp-block-post .wp-block-post-featured-image { margin: 0; }
.hb-archive-grid .wp-block-post .wp-block-post-featured-image img { aspect-ratio: 1.9; object-fit: cover; width: 100%; }
.hb-archive-grid .wp-block-post .wp-block-post-title, .hb-archive-grid .wp-block-post .wp-block-post-excerpt, .hb-archive-grid .wp-block-post .wp-block-post-date { margin-inline: 20px; }
.hb-archive-grid .wp-block-post .wp-block-post-title { margin-top: 16px; font-size: 1.35rem; }
.hb-archive-grid .wp-block-post .wp-block-post-title a { color: var(--hb-ink); }
.hb-archive-grid .wp-block-post .wp-block-post-excerpt { font-size: .94rem; }
.hb-archive-grid .wp-block-query-pagination { margin-top: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hb-logo img { width: 165px; }
  .hb-header-shell { gap: 24px; }
  .hb-primary-nav { gap: 18px; }
  .hb-featured-copy { width: 43%; }
  .hb-footer-top { grid-template-columns: 1.4fr repeat(3,1fr); }
  .hb-footer-social { grid-column: 1/-1; padding: 18px 0 0; border-left: 0; border-top: 1px solid #e0e9f4; }
}
@media (max-width: 1024px) {
  :root { --hb-gutter: 50px; }
  .hb-header-shell { min-height: 70px; padding: 8px 15px; }
  .hb-primary-nav, .hb-header-search { display: none; }
  .hb-mobile-nav { display: block; margin-left: auto; }
  .hb-mobile-nav summary { width: 43px; height: 43px; display: grid; place-items: center; list-style: none; cursor: pointer; color: var(--hb-navy); border-radius: 14px; background: #f0f9ff; }
  .hb-mobile-nav summary::-webkit-details-marker { display: none; }
  .hb-mobile-nav[open] .hb-menu-icon, .hb-mobile-nav:not([open]) .hb-close-icon { display: none; }
  .hb-mobile-nav nav { display: grid; gap: 15px; position: absolute; top: calc(100% + 12px); right: 0; width: min(360px,calc(100vw - 2 * var(--hb-gutter))); padding: 22px; background: rgba(255,255,255,.96); border: 1px solid #dfecf8; border-radius: 14px; -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); box-shadow: var(--hb-shadow); }
  .hb-mobile-nav nav > a { display: block; color: var(--hb-navy); font-weight: 800; }
  .hb-mobile-nav nav .hb-search { margin-top: 8px; }

  .hb-hero-copy { max-width: 480px; }

  .hb-hero h1 { font-size: clamp(2.6rem,7.4vw,3.8rem); }
  .hb-hero-benefits { margin-top: 25px; }
  .hb-start-grid { gap: 12px; }
  .hb-start-card { min-height: 225px; padding: 22px 17px; }
  .hb-start-card-content { max-width: 90%; }
  .hb-start-card h3 { font-size: 1.18rem; }
  .hb-start-card p { font-size: .85rem; }
  .hb-featured-copy { width: 50%; }
  .hb-featured-photo { left: 42%; width: 33%; opacity: .85; }
  .hb-featured-list { width: 38%; }
  .hb-categories-grid { grid-template-columns: repeat(7,minmax(140px,1fr)); overflow-x: auto; padding-block: 4px 14px; }
}
@media (max-width: 767px) {
  :root { --hb-gutter: 20px; }
  .hb-site-header { top: 10px; }
  .admin-bar .hb-site-header { top: 56px; }
  .hb-logo img { width: 154px; }


  .hb-hero h1 { font-size: clamp(2.65rem,9.2vw,3.5rem); }
  .hb-hero-intro { font-size: 1rem; }
  .hb-hero-actions { gap: 10px; }
  .hb-button { min-height: 47px; padding: 11px 15px; gap: 8px; font-size: .88rem; }
  .hb-hero-benefits { gap: 17px; }
  .hb-hero-benefits li { font-size: .7rem; gap: 6px; }
  .hb-hero-benefits .material-symbols-outlined { font-size: 21px; }
  .hb-home-sections { padding-top: 28px; }
  .hb-section + .hb-section { margin-top: 55px; }
  .hb-section-heading { align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
  .hb-section-heading h2 { font-size: 1.6rem; }
  .hb-section-eyebrow, .hb-section-link { font-size: .67rem; margin-left: 36px; }
  .hb-start-grid, .hb-article-grid { grid-template-columns: 1fr; gap: 15px; }
  .hb-start-card { min-height: 195px; padding: 22px 24px; }
  .hb-start-card > img { width: 56%; }
  .hb-start-card-content { max-width: 67%; min-height: 155px; }
  .hb-start-card h3 { font-size: 1.3rem; }
  .hb-start-card p { font-size: .9rem; }
  .hb-featured-card { flex-direction: column; min-height: 0; padding: 23px; }
  .hb-featured-copy { width: 100%; padding-bottom: 20px; }
  .hb-featured-copy h3 { max-width: 365px; }
  .hb-featured-copy p { max-width: 345px; }
  .hb-featured-photo { display: none; }
  .hb-featured-list { width: 100%; padding: 17px; gap: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid #e4f2fc; }
  .hb-featured-list li { font-size: .77rem; }
  .hb-categories-grid { gap: 10px; }
  .hb-category-card { min-height: 120px; }
  .hb-article-image { aspect-ratio: 2.2; }
  .hb-footer-wrap { padding-top: 12px; }
  .hb-site-footer { padding: 23px; }
  .hb-footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 18px; }
  .hb-footer-brand { grid-column: 1/-1; }
  .hb-footer-social { grid-column: 1/-1; }
  .hb-footer-bottom { flex-direction: column; align-items: flex-start; }
  .hb-archive-grid .wp-block-post-template { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Keep shortcode layouts independent of WordPress block spacing. */
body .wp-site-blocks > .hb-home-main { max-width: none; width: 100%; margin: 0; }
.hb-home-main > .hb-hero { width: 100%; margin: 0; }
.hb-header-shell > *, .hb-primary-nav > * { margin-block: 0; }
.hb-primary-nav { padding: 0; list-style: none; }
.hb-header-shell .hb-search { margin: 0; }
.hb-start-grid > *, .hb-categories-grid > * { margin: 0; min-width: 0; }
.hb-featured-card > .hb-featured-copy { margin: 0; padding-inline: 0; text-align: left; }
.hb-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }


/* Shared outer edges for header, content and footer. */
@media (min-width: 1600px) {
  :root { --hb-gutter: 0px; }

}
@media (max-width: 1200px) and (min-width: 1025px) {
  .hb-header-shell { gap: 18px; }
  .hb-header-search { flex-basis: 250px; }
  .hb-hero h1 { font-size: 3.2rem; }
}
@media (max-width: 1024px) {
  .hb-section-heading { flex-wrap: wrap; }
  .hb-footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hb-footer-brand { grid-column: 1/-1; }
  .hb-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {

  .hb-featured-list { grid-template-columns: 1fr; }
  .hb-section-eyebrow, .hb-section-link { white-space: normal; }
}

/* Minimal hero: shared 1600px container and a transparent photographic cutout. */
.hb-hero { position: relative; isolation: isolate; background: #fff; }
.hb-hero-layout {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 550px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 100px);
  padding-top: 130px;
  padding-bottom: 40px;
}
.hb-hero-copy { width: 100%; max-width: 550px; }
.hb-hero-media { min-width: 0; width: 100%; align-self: center; }
.hb-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}
@media (min-width: 1025px) and (max-width: 1399px) {
  .hb-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 1024px) {
  .hb-hero-layout { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 128px; padding-bottom: 36px; }
  .hb-hero-media { max-width: 680px; justify-self: center; }
  .hb-hero-media img { max-height: 460px; }
}
@media (max-width: 767px) {
  .hb-hero-layout { padding-top: 112px; padding-bottom: 24px; gap: 24px; }
}

/* Equal side columns keep navigation centered in the entire header. */
@media (min-width: 1025px) {
  .hb-header-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
  .hb-header-logo { justify-self: start; }
  .hb-primary-nav { justify-self: center; }
  .hb-header-search { justify-self: end; width: min(314px, 100%); min-width: 0; }
}

/* Leave extra breathing room above the categories anchor. */
#hb-categories-heading { scroll-margin-top: 80px; }

/* Header logo size, independent of the footer brand. */
.hb-header-logo img { width: 200px; }
@media (max-width: 1200px) {
  .hb-header-logo img { width: 180px; }
}
@media (max-width: 767px) {
  .hb-header-logo img { width: 170px; }
}

/* Keep benefit labels on one line, with extra room on desktop. */
.hb-hero-benefits li { white-space: nowrap; }
@media (min-width: 1400px) {
  .hb-hero-benefits { width: max-content; max-width: 680px; flex-wrap: nowrap; gap: 30px; }
}


/* Landing: light surfaces and electric-blue ambient light behind content. */
body.home {
  --hb-landing-surface: #f4f8ff;
  --hb-landing-border: rgba(45,112,255,.18);
  --hb-landing-shadow: 0 10px 30px rgba(18,53,91,.06), 0 0 22px rgba(45,112,255,.05);
}
.home .hb-header-shell,
.home .hb-site-header.is-scrolled .hb-header-shell {
  background: linear-gradient(110deg,rgba(255,255,255,.80),rgba(244,248,255,.76));
  border-color: var(--hb-landing-border);
  box-shadow: var(--hb-landing-shadow);
}
.home .hb-search,
.home .hb-mobile-nav nav {
  background: var(--hb-landing-surface);
  border-color: var(--hb-landing-border);
}
.home .hb-hero {
  background: radial-gradient(ellipse at 15% 38%,rgba(45,112,255,.065),transparent 55%),#fff;
}
.home .hb-hero .hb-button-primary,
.home .hb-featured-card .hb-button-primary {
  background: var(--hb-navy);
  border-color: var(--hb-navy);
  box-shadow: 0 6px 20px rgba(45,112,255,.14);
}
.home .hb-hero .hb-button-primary:hover,
.home .hb-featured-card .hb-button-primary:hover {
  box-shadow: 0 8px 26px rgba(45,112,255,.25);
}
.home .hb-button-secondary {
  background: #f4f8ff;
  border-color: var(--hb-landing-border);
}
.home .hb-section-heading h2,
.home .hb-featured-copy h3,
.home .hb-article-body h3 { color: var(--hb-navy); }
.home .hb-featured-card {
  background: radial-gradient(ellipse at 12% 0,rgba(45,112,255,.09),transparent 60%),var(--hb-landing-surface);
  border-color: var(--hb-landing-border);
  box-shadow: var(--hb-landing-shadow);
}
.home .hb-featured-list {
  background: #f8fbff;
  border: 1px solid var(--hb-landing-border);
  box-shadow: 0 5px 18px rgba(45,112,255,.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home .hb-label,
.home .hb-article-chip { background: #edf4ff; color: var(--hb-navy); }
.home .hb-category-card {
  background: radial-gradient(ellipse at 85% 0,rgba(45,112,255,.13),transparent 70%),var(--hb-landing-surface);
  border-color: var(--hb-landing-border);
  box-shadow: 0 5px 18px rgba(45,112,255,.035);
}

.home .hb-article-card {
  background: var(--hb-landing-surface);
  border-color: var(--hb-landing-border);
  box-shadow: var(--hb-landing-shadow);
}
.home .hb-article-body {
  background: radial-gradient(ellipse at 95% 100%,rgba(45,112,255,.08),transparent 65%);
}
.home .hb-footer-wrap { background: linear-gradient(180deg,#fff,#f4f8ff); }
.home .hb-site-footer {
  background: radial-gradient(ellipse at 95% 0,rgba(45,112,255,.09),transparent 55%),#f8fbff;
  border-color: var(--hb-landing-border);
  box-shadow: var(--hb-landing-shadow);
}
.home .hb-social-item { background: #fff; border-color: var(--hb-landing-border); }
.home .hb-footer-bottom,
.home .hb-footer-social { border-color: var(--hb-landing-border); }

/* Primary action hover matches the corporate turquoise. */
.hb-button-primary:hover,
.home .hb-hero .hb-button-primary:hover,
.home .hb-featured-card .hb-button-primary:hover {
  background: var(--hb-teal);
  border-color: var(--hb-teal);
}

/* Turquoise accent for secondary actions and category section. */
.hb-button-secondary:hover,
.home .hb-button-secondary:hover { border-color: var(--hb-teal); }
.home .hb-categories-section {
  padding: 30px;
  border-radius: 14px;
  background: linear-gradient(115deg, #f4f8ff 0%, #e9faf8 45%, rgba(22,193,183,.28) 100%);
}
.home .hb-categories-section .hb-category-card {
  background: rgba(255,255,255,.85);
  border-color: rgba(22,193,183,.22);
}

@media (max-width: 767px) {
  .home .hb-categories-section { padding: 20px 16px; }
}


/* Compact ambient light fades completely before the page edges. */
.home .hb-home-sections { position: relative; isolation: isolate; }
.home .hb-home-sections::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: 0;
  background: none;
}
.home .hb-hero {
  background: radial-gradient(ellipse 50% 300px at 0% 48%,rgba(45,112,255,.18),transparent 100%), radial-gradient(ellipse 380px 240px at 65% 50%,rgba(45,112,255,.065),transparent 100%),#fff;
}
.home .hb-footer-wrap { background: #fff; }
.home .hb-label,
.home .hb-article-chip {
  background: var(--hb-navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(18,53,91,.12);
}
.home .hb-featured-photo {
  left: 36%; right: 0; width: 64%; height: 100%;
  object-fit: cover; object-position: 52% 60%; opacity: 1;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 22%);
  mask-image: linear-gradient(90deg,transparent,#000 22%);
}
.home .hb-featured-list {
  flex: 0 0 auto; width: max-content; max-width: 30%;
  align-self: center; padding: 20px; gap: 16px;
}
@media (max-width: 1024px) and (min-width: 768px) {
  .home .hb-featured-copy { width: 44%; }
  .home .hb-featured-list { max-width: 36%; padding: 16px; }
}
@media (max-width: 767px) {
  .home .hb-featured-photo { display: block; position: relative; left: auto; right: auto; order: 2; width: calc(100% + 46px); max-width: none; height: 210px; margin: 0 -23px; -webkit-mask-image: none; mask-image: none; }
  .home .hb-featured-copy { order: 1; }
  .home .hb-featured-list { order: 3; width: 100%; max-width: none; margin-top: 20px; }
  .home .hb-home-sections::before { background: none; }
}


.home .hb-article-card:hover .hb-text-link .material-symbols-outlined { transform: none; }

/* Categories: open section without an enclosing background. */
.home .hb-categories-section {
  background: transparent;
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  padding: 30px 0;
}
.home .hb-categories-section .hb-category-card {
  background: var(--hb-landing-surface);
  border-color: transparent;
}

@media (max-width: 767px) {
  .home .hb-categories-section { padding: 24px 0; }
}

/* Introductory card arrows follow the primary button hover state. */
.home .hb-start-arrow {
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.home .hb-start-card:hover .hb-start-arrow,
.home .hb-start-card:focus-visible .hb-start-arrow {
  background: var(--hb-teal);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(45,112,255,.25);
}

/* Paragraphs occupy half of the available card content width. */
.home .hb-start-card-content { max-width: 100%; }
.home .hb-start-card p { width: 50%; max-width: none; }

/* Featured comparison label uses the corporate salmon. */
.home .hb-featured-card .hb-label { background: var(--hb-coral); }

/* Pointer clicks do not show the keyboard focus outline. */
body :focus:not(:focus-visible) { outline: none !important; }

/* Interior surfaces inherit the home finish. */
body:not(.home) { --hb-landing-surface:#f4f8ff; --hb-landing-border:rgba(45,112,255,.18); --hb-landing-shadow:0 10px 30px rgba(18,53,91,.06),0 0 22px rgba(45,112,255,.05); }
body:not(.home) .hb-header-shell,
body:not(.home) .hb-site-header.is-scrolled .hb-header-shell{
  background: linear-gradient(110deg,rgba(255,255,255,.80),rgba(244,248,255,.76));
  border-color: var(--hb-landing-border);
  box-shadow: var(--hb-landing-shadow);
}
body:not(.home) .hb-search,
body:not(.home) .hb-mobile-nav nav{
  background: var(--hb-landing-surface);
  border-color: var(--hb-landing-border);
}
body:not(.home) .hb-button-secondary{
  background: #f4f8ff;
  border-color: var(--hb-landing-border);
}
body:not(.home) .hb-label,
body:not(.home) .hb-article-chip{ background: #edf4ff; color: var(--hb-navy); }
body:not(.home) .hb-category-card{
  background: radial-gradient(ellipse at 85% 0,rgba(45,112,255,.13),transparent 70%),var(--hb-landing-surface);
  border-color: var(--hb-landing-border);
  box-shadow: 0 5px 18px rgba(45,112,255,.035);
}

body:not(.home) .hb-article-card{
  background: var(--hb-landing-surface);
  border-color: var(--hb-landing-border);
  box-shadow: var(--hb-landing-shadow);
}
body:not(.home) .hb-article-body{
  background: radial-gradient(ellipse at 95% 100%,rgba(45,112,255,.08),transparent 65%);
}
body:not(.home) .hb-footer-wrap{ background: linear-gradient(180deg,#fff,#f4f8ff); }
body:not(.home) .hb-site-footer{
  background: radial-gradient(ellipse at 95% 0,rgba(45,112,255,.09),transparent 55%),#f8fbff;
  border-color: var(--hb-landing-border);
  box-shadow: var(--hb-landing-shadow);
}
body:not(.home) .hb-social-item{ background: #fff; border-color: var(--hb-landing-border); }
body:not(.home) .hb-footer-bottom,
body:not(.home) .hb-footer-social{ border-color: var(--hb-landing-border); }
body:not(.home) .hb-categories-section{
  padding: 30px;
  border-radius: 14px;
  background: linear-gradient(115deg, #f4f8ff 0%, #e9faf8 45%, rgba(22,193,183,.28) 100%);
}
body:not(.home) .hb-categories-section .hb-category-card{
  background: rgba(255,255,255,.85);
  border-color: rgba(22,193,183,.22);
}

body:not(.home) .hb-categories-section{ padding: 20px 16px; }
body:not(.home) .hb-home-sections::before{
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: 0;
  background: none;
}
body:not(.home) .hb-footer-wrap{ background: #fff; }
body:not(.home) .hb-label,
body:not(.home) .hb-article-chip{
  background: var(--hb-navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(18,53,91,.12);
}
body:not(.home) .hb-home-sections::before{ background: none; }


body:not(.home) .hb-article-card:hover .hb-text-link .material-symbols-outlined{ transform: none; }
body:not(.home) .hb-categories-section .hb-category-card{
  background: var(--hb-landing-surface);
  border-color: transparent;
}

body:not(.home) .hb-categories-section{ padding: 24px 0; }

/* Interior pages: editorial hierarchy and responsive reading layouts. */
.hb-inner { padding-top:140px; padding-bottom:70px; min-height:70vh; }
.hb-breadcrumb { display:flex; gap:12px; align-items:center; margin-bottom:28px; color:var(--hb-muted); font-size:13px; }
.hb-inner-hero { padding:44px 48px; border:1px solid rgba(45,112,255,.16); background:radial-gradient(ellipse at 8% 15%,rgba(45,112,255,.08),transparent 65%),#f4f8ff; border-radius:20px; margin-bottom:36px; }
.hb-inner-hero-split { display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:center; overflow:hidden; }
.hb-inner-hero-split>img { width:100%; height:290px; object-fit:cover; border-radius:14px; }
.hb-inner h1 { font-size:clamp(2.3rem,4vw,3.6rem); color:var(--hb-navy); line-height:1.08; letter-spacing:-.035em; font-weight:800; margin:12px 0 22px; max-width:900px; }
.hb-inner .hb-inner-intro { color:var(--hb-muted); font-size:18px; line-height:1.65; max-width:760px; margin:0; }
.hb-inner h2 { color:var(--hb-navy); font-weight:800; font-size:clamp(1.5rem,2.3vw,2rem); line-height:1.2; }
.hb-topic-links { display:flex; flex-wrap:wrap; gap:10px; margin:30px 0 42px; }
.hb-topic-links a { padding:9px 16px; border:1px solid #dce7f4; border-radius:30px; font-size:14px; font-weight:700; background:#fff; }
 .hb-topic-links a { transition:border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.hb-topic-links a:hover { border-color:rgba(45,112,255,.35); color:var(--hb-navy); background:#f4f8ff; box-shadow:0 8px 22px rgba(18,53,91,.1),0 0 18px rgba(45,112,255,.14); transform:translateY(-2px); }
.hb-topic-links a[aria-current]:hover { background:var(--hb-navy); color:#fff; border-color:rgba(45,112,255,.55); }
@media(prefers-reduced-motion:reduce) { .hb-topic-links a { transition:none; } .hb-topic-links a:hover { transform:none; } }
.hb-topic-links a[aria-current],.hb-inner .page-numbers.current { background:var(--hb-navy); color:#fff; border-color:var(--hb-navy); }
.hb-primary-nav a[aria-current], .hb-primary-nav .current-menu-item > a, .hb-mobile-nav nav > a[aria-current], .hb-mobile-nav .current-menu-item > a { color:var(--hb-coral); text-decoration:none; }
.hb-inner .hb-button-primary { background:var(--hb-navy); border-color:var(--hb-navy); box-shadow:0 6px 20px rgba(45,112,255,.14); }
.hb-inner .hb-button-primary:hover { border-color:var(--hb-teal); }
.hb-inner .hb-button-secondary { background:#f4f8ff; border-color:#dce7f4; }
.hb-inner .hb-button-secondary:hover { border-color:var(--hb-teal); }
.hb-inner .hb-article-body h2 { font-size:23px; margin:0 0 12px; }
.hb-inner .hb-article-body h2 a { color:inherit; }
.hb-inner .hb-article-body h2 a:hover { color:var(--hb-teal); }
.hb-inner .hb-article-body { padding:24px; }
.hb-inner .hb-card-meta { font-size:12px; font-weight:700; color:var(--hb-muted); margin:0 0 12px; flex:0; }
.hb-results-count { color:var(--hb-muted); font-size:14px; }
.hb-help-panel { margin-top:60px; padding:32px; background:#f4f8ff; border:1px solid #dce7f4; border-radius:16px; display:flex; justify-content:space-between; align-items:center; gap:30px; }
.hb-help-panel h2 { margin:8px 0; font-size:26px; }
.hb-help-panel p { margin:0; color:var(--hb-muted); }
.hb-help-panel .material-symbols-outlined { color:var(--hb-navy); }
.hb-empty { text-align:center; border:1px dashed #cedcec; padding:55px 24px; border-radius:16px; background:#f8fbff; }
.hb-empty>.material-symbols-outlined { font-size:42px; color:var(--hb-navy); }
.hb-empty p { color:var(--hb-muted); }
.hb-pagination ul { display:flex; gap:10px; justify-content:center; list-style:none; padding:0; margin:36px 0; }
.hb-pagination a,.hb-pagination span { display:block; padding:8px 15px; border:1px solid #dce7f4; border-radius:10px; }
.hb-support-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); gap:40px; align-items:start; }
.hb-surface,.hb-side-note { background:#f4f8ff; border:1px solid #dce7f4; border-radius:16px; padding:32px; }
.hb-side-note { position:sticky; top:120px; }
.hb-side-note h2 { font-size:24px; margin:0 0 16px; }
.hb-side-note p { color:var(--hb-muted); line-height:1.65; }
.hb-side-note>.material-symbols-outlined { color:var(--hb-coral); font-size:38px; margin-bottom:20px; }
.hb-contact-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.hb-info-nav { display:grid; gap:16px; }
.hb-info-nav [aria-current] { font-weight:800; text-decoration:underline; text-underline-offset:4px; }
.hb-faq-list details { border:1px solid #dce7f4; background:#f8fbff; border-radius:14px; margin-bottom:14px; }
.hb-faq-list summary { cursor:pointer; padding:24px; color:var(--hb-navy); font-size:19px; font-weight:800; }
.hb-faq-list details[open] { border-color:#b2cceb; }
.hb-faq-list p { padding:0 24px 24px; margin:0; color:var(--hb-muted); line-height:1.75; }
.hb-article-heading { max-width:1000px; margin:0 auto 32px; text-align:center; }
.hb-article-heading h1,.hb-article-heading .hb-inner-intro { margin-left:auto; margin-right:auto; }
.hb-article-heading .hb-card-meta { margin-top:20px; }
.hb-article-cover { display:block; width:100%; max-height:470px; object-fit:cover; border-radius:18px; margin-bottom:48px; }
.hb-reading-layout { display:grid; grid-template-columns:260px minmax(0,780px); gap:70px; justify-content:center; align-items:start; }
.hb-reading-aside { position:sticky; top:125px; }
.hb-toc { background:#f4f8ff; padding:24px; border:1px solid #dce7f4; border-radius:14px; display:grid; gap:15px; }
.hb-toc h2 { font-size:18px; margin:0 0 5px; }
.hb-toc a { font-size:14px; line-height:1.4; }
.hb-prose { font-size:17px; line-height:1.8; color:#425571; overflow-wrap:anywhere; }
.hb-prose h2 { margin:38px 0 18px; scroll-margin-top:130px; }
.hb-prose>h2:first-child { margin-top:0; }
.hb-prose p { margin:0 0 22px; }
.hb-prose ul { padding-left:22px; }
.hb-prose li { margin-bottom:10px; }
.hb-prose a { text-decoration:underline; text-underline-offset:3px; }
.hb-prose .hb-table-wrap { overflow-x:auto; margin:28px 0; }
.hb-prose table { width:100%; border-collapse:collapse; font-size:15px; background:#f8fbff; }
.hb-prose th,.hb-prose td { padding:16px; border:1px solid #dce7f4; text-align:left; vertical-align:top; min-width:140px; }
.hb-prose th { background:#edf4ff; color:var(--hb-navy); }
.hb-editorial-note { padding:22px; border-left:3px solid var(--hb-coral); background:#f4f8ff; border-radius:0 12px 12px 0; }
.hb-related { margin-top:70px; }
.hb-not-found { text-align:center; max-width:720px; margin:40px auto 60px; }
.hb-not-found>.material-symbols-outlined { font-size:75px; color:var(--hb-coral); }
.hb-not-found p { color:var(--hb-muted); font-size:18px; }
.hb-not-found .hb-search { margin:28px auto; max-width:480px; }
.hb-collection { margin-top:32px; }
@media(max-width:1100px) { .hb-inner-hero {padding:32px;} .hb-inner-hero-split {gap:28px;} .hb-reading-layout {gap:35px;grid-template-columns:220px minmax(0,1fr);} .hb-support-grid {gap:24px;} }
@media(max-width:830px) { .hb-inner {padding-top:115px;} .hb-inner-hero-split,.hb-support-grid,.hb-reading-layout {grid-template-columns:1fr;} .hb-inner-hero {padding:28px;} .hb-inner-hero-split>img {height:250px;} .hb-inner .hb-article-grid {grid-template-columns:repeat(2,minmax(0,1fr));} .hb-help-panel {align-items:flex-start;flex-direction:column;} .hb-side-note,.hb-reading-aside {position:static;} .hb-article-heading {text-align:left;} .hb-article-cover {max-height:320px;} }
@media(max-width:560px) { .hb-inner .hb-article-grid {grid-template-columns:1fr;} .hb-inner h1 {font-size:36px;} .hb-inner-hero {padding:24px;} .hb-inner-hero-split>img {height:200px;} .hb-inner .hb-inner-intro {font-size:16px;} .hb-topic-links {gap:8px;} .hb-topic-links a {font-size:12px;padding:8px 12px;} .hb-surface,.hb-side-note,.hb-help-panel {padding:24px;} .hb-breadcrumb {font-size:12px;flex-wrap:wrap;} .hb-faq-list summary {font-size:17px;padding:20px;} .hb-inner .hb-section-heading {gap:12px;} .hb-inner .hb-button {white-space:normal;} }
@media(prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} .hb-inner * {transition:none!important;} }
.hb-post-categories { margin-bottom:18px; font-size:13px; font-weight:800; }
.hb-post-categories a { text-decoration:underline; text-underline-offset:4px; }

.hb-reading-layout > *, .hb-prose { min-width:0; max-width:100%; }

/* Linked breadcrumb hierarchy and category format sections. */
.hb-breadcrumb ol { display:flex; flex-wrap:wrap; gap:8px 12px; list-style:none; padding:0; margin:0; }
.hb-breadcrumb li { display:flex; align-items:baseline; gap:12px; min-width:0; }
.hb-breadcrumb a,.hb-breadcrumb [aria-current] { overflow-wrap:anywhere; }
.hb-breadcrumb-separator { color:#8193a8; flex-shrink:0; }
.hb-category-section { margin-top:48px; }
.hb-category-section h2[id] { scroll-margin-top:125px; }
.hb-inner .hb-article-body h3 { font-size:23px; line-height:1.2; font-weight:800; margin:0 0 12px; color:var(--hb-navy); }
.hb-inner .hb-article-body h3 a { color:inherit; }
.hb-inner .hb-article-body h3 a:hover { color:var(--hb-teal); }
.hb-category-empty { padding:24px; background:#f8fbff; border:1px dashed #dce7f4; border-radius:14px; color:var(--hb-muted); }
.hb-category-empty p { margin:0; }

/* Coral labels across the home and interior pages. */
body.home .hb-label, body.home .hb-article-chip, body:not(.home) .hb-label, body:not(.home) .hb-article-chip { background:var(--hb-coral); color:#fff; }

/* Label colours identify category or editorial format. */
body .hb-label.hb-label-category, body .hb-article-chip.hb-label-category { background:var(--hb-coral); color:#fff; }
body .hb-label.hb-label-guide, body .hb-article-chip.hb-label-guide { background:var(--hb-teal); color:#fff; }
body .hb-label.hb-label-comparison, body .hb-article-chip.hb-label-comparison,
body.home .hb-featured-card .hb-label.hb-label-comparison { background:var(--hb-navy); color:#fff; }
/* Align badge edges with the card copy and keep each background snug. */
.hb-article-card { --hb-card-inset:20px; }
.hb-inner .hb-article-card { --hb-card-inset:24px; }
body .hb-article-card .hb-article-chip { left:var(--hb-card-inset); right:auto; display:inline-flex; align-items:center; justify-content:center; width:fit-content; max-width:calc(100% - 2 * var(--hb-card-inset)); padding:5px 10px; line-height:1.2; text-align:left; overflow-wrap:anywhere; }
body .hb-featured-card .hb-label { display:inline-flex; align-items:center; width:fit-content; max-width:100%; align-self:flex-start; line-height:1.2; padding:5px 10px; }

/* Category badge above card titles, aligned with the text column. */
body .hb-article-body .hb-label-category { display:inline-flex; align-items:center; width:fit-content; max-width:100%; padding:5px 10px; line-height:1.2; color:#fff; background:var(--hb-coral); text-decoration:none; vertical-align:middle; overflow-wrap:anywhere; }

/* Featured comparison title. */
.home .hb-featured-copy h3 { color:var(--hb-navy); }
.home .hb-featured-copy h3 .hb-featured-question { display:block; color:inherit; }

.hb-inner-hero h1 .hb-title-accent { color:var(--hb-coral); }

/* Slightly narrower featured text column on desktop. */
@media (min-width:1025px) { .home .hb-featured-copy { width:38%; max-width:540px; } }

/* Article hero: clean editorial split, copy left and photography right. */
.hb-article-hero { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); align-items:center; gap:clamp(32px,5vw,72px); margin:32px 0 56px; padding:8px 0 40px; border-bottom:1px solid var(--hb-line); }
.hb-article-hero-copy { min-width:0; text-align:left; }
.hb-article-hero-labels { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:24px; }
.hb-article-hero-labels .hb-label { align-items:center; width:fit-content; max-width:100%; line-height:1.3; padding:6px 12px; overflow-wrap:anywhere; }
.hb-single .hb-article-hero h1 { font-size:clamp(2rem,3.5vw,3.5rem); margin:0 0 24px; line-height:1.1; }
.hb-article-hero .hb-inner-intro { max-width:600px; }
.hb-article-hero .hb-card-meta { margin:26px 0 0; line-height:1.7; }
.hb-article-hero-media { margin:0; min-width:0; }
.hb-article-hero-photo { display:block; width:100%; height:clamp(350px,32vw,480px); object-fit:cover; object-position:center; border-radius:16px; }
.hb-article-hero-text-only { grid-template-columns:minmax(0,900px); }
@media(max-width:830px) { .hb-article-hero { grid-template-columns:minmax(0,1fr); gap:28px; margin-top:26px; margin-bottom:36px; padding-bottom:32px; } .hb-article-hero-photo { height:auto; aspect-ratio:1.6; } .hb-single .hb-article-hero h1 { font-size:clamp(2rem,6vw,3rem); } }

/* Index and article together fill the shared container width. */
.hb-single .hb-reading-layout { grid-template-columns:260px minmax(0,1fr); width:100%; justify-content:stretch; }
.hb-single .hb-reading-layout > .hb-prose { width:100%; }
@media(max-width:1100px) { .hb-single .hb-reading-layout { grid-template-columns:220px minmax(0,1fr); } }
@media(max-width:830px) { .hb-single .hb-reading-layout { grid-template-columns:minmax(0,1fr); } }


/* Text-only landing heroes use all available space inside existing padding. */
.hb-inner .hb-inner-hero:not(.hb-inner-hero-split) > div,
.hb-inner .hb-inner-hero:not(.hb-inner-hero-split) h1,
.hb-inner .hb-inner-hero:not(.hb-inner-hero-split) .hb-inner-intro { width:100%; max-width:none; }

/* Native full-card links support modifier clicks and browser link menus. */
.hb-whole-card { isolation:isolate; }
.hb-whole-card:not(.hb-side-note) { position:relative; }
@media(max-width:830px) { .hb-side-note.hb-whole-card { position:relative; } }
.hb-whole-card > .hb-card-overlay { position:absolute; inset:0; z-index:3; border-radius:inherit; cursor:pointer; }
.hb-whole-card .hb-article-body a { position:relative; z-index:4; }

/* Header search: fully rounded border. */
.hb-site-header .hb-search { border-radius:100px; }


/* ===== INTERACCIÓN GLOBAL DE CARDS =====
 * hb-card se comparte entre portada, listados, comparativas y paneles enlazados.
 * Los componentes conservan sus fondos, bordes y sombras en reposo.
 */
.hb-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

body .hb-card:is(:hover, :focus-within) {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(18, 53, 91, 0.12);
}

body .hb-card.hb-category-card:is(:hover, :focus-within) {
  color: var(--hb-navy);
  border-color: var(--hb-landing-border);
}

/* Las categorías conservan sus iconos e imágenes sin zoom. Las imágenes de
 * contenido ya se recortan dentro de cada componente o de hb-article-image.
 */
.hb-card:not(.hb-category-card) img {
  transition: transform .4s ease;
}

.hb-card:not(.hb-category-card):is(:hover, :focus-within) img {
  transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
  .hb-card,
  .hb-card * {
    transition: none !important;
  }

  .hb-card:is(:hover, :focus-within),
  .hb-card:not(.hb-category-card):is(:hover, :focus-within) img,
  .hb-card .hb-start-arrow,
  .hb-card .hb-button,
  .hb-card .hb-text-link .material-symbols-outlined {
    transform: none !important;
  }
}

/* Four editorial categories share the established container. */
.hb-categories-grid { grid-template-columns:repeat(4,minmax(0,1fr)); overflow:visible; }
@media(max-width:767px) { .hb-categories-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Product article actions match the home hero primary action. */
.hb-prose a.hb-button-primary { background:var(--hb-navy); border-color:var(--hb-navy); color:#fff; text-decoration:none; box-shadow:0 6px 20px rgba(45,112,255,.14); }
.hb-prose a.hb-button-primary:hover,
.hb-prose a.hb-button-primary:focus-visible { background:var(--hb-teal); border-color:var(--hb-teal); color:#fff; text-decoration:none; box-shadow:0 8px 26px rgba(45,112,255,.25); }

/* Keep real product photography complete and bounded on every screen. */
.hb-single .hb-article-hero-photo { width:100%; max-width:480px; height:auto; max-height:480px; aspect-ratio:auto; object-fit:contain; object-position:center; margin-inline:auto; }
