/* ===== Page background ===== */
body.single-post{background:#f6f8fb}
body.single-post #primary{background:transparent}
body.single-post .site-content{padding-top:0}
body.single-post .inside-article{background:transparent;padding-top:0}

/* ===== Article header (breadcrumb/badges/title/lede/meta) ===== */
body.single-post .site-content{flex-wrap:wrap}
body.single-post .cb-article-intro{width:100%;flex:0 0 auto;background:#f6f8fb}
body.single-post .entry-header{background:#f6f8fb;padding:34px 0 30px;border-bottom:1px solid #e9edf3;max-width:78%;width:60%;margin:32px auto 32px auto}

.single-post .entry-title{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:700;font-size:clamp(30px,4.4vw,48px);line-height:1.1;letter-spacing:-.02em;color:#0e1726;margin:0 0 16px;max-width:820px}
.single-post .entry-content h2{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:700;font-size:clamp(22px,2.8vw,28px);color:#0e1726;margin:34px 0 14px;line-height:1.2}
.single-post .entry-content h3{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:600;font-size:clamp(18px,2.2vw,21px);color:#0e1726;margin:28px 0 12px}
.single-post .entry-content p{font-size:17px;line-height:1.75;color:#3a4656}

.cb-breadcrumb{font-size:13px;color:#8a94a3;font-weight:500;margin-bottom:16px}
.cb-breadcrumb a{color:#8a94a3;text-decoration:none}
.cb-breadcrumb a:hover{color:#1f6feb}
.cb-breadcrumb-sep{color:#c7cfda}
.cb-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.cb-badge{display:inline-block;font-size:12px;font-weight:700;color:#5a6573;background:#eef2f8;border:1px solid #e3e9f1;padding:6px 12px;border-radius:8px;text-decoration:none}
.cb-badge-primary{color:#fff;background:#1f6feb;border-color:#1f6feb}
.cb-lede{font-size:clamp(18px,2.1vw,20.5px);line-height:1.6;color:#5a6573;margin:14px 0 22px}

.cb-meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;padding-top:18px;border-top:1px solid #eef1f6;margin-bottom:0}
.cb-meta-author{display:flex;align-items:center;gap:10px}
.cb-meta-author img{border-radius:50%;border:2px solid #fff;box-shadow:0 3px 10px rgba(16,24,40,.14)}
.cb-meta-author-text{display:flex;flex-direction:column;line-height:1.25}
.cb-meta-author-name{font-size:14.5px;font-weight:700;color:#0e1726}
.cb-meta-author-role{font-size:12.5px;color:#8a94a3;font-weight:500}
.cb-meta-sep{width:1px;height:26px;background:#e9edf3}
.cb-meta-item{font-size:13.5px;color:#5a6573;font-weight:500}
.cb-meta-item:before{content:'\25CF';color:#1f6feb;font-size:6px;vertical-align:middle;margin-right:7px}

/* ===== Two-column layout: content + sidebar ===== */

/* ===== Featured image ===== */
.featured-image.page-header-image-single{margin:0 0 30px}
.featured-image.page-header-image-single img{width:100%;aspect-ratio:16/8;object-fit:cover;border-radius:18px;border:1px solid #e9edf3;display:block}

/* ===== Sidebar cards ===== */
#right-sidebar{position:sticky;top:24px}
#right-sidebar .widget{background:#fff;border:1px solid #e9edf3;border-radius:18px;padding:22px;box-shadow:0 1px 3px rgba(16,24,40,.04);margin:0 0 18px}
#right-sidebar .widget:last-child{margin-bottom:0}
#right-sidebar .widget_custom_html{background:radial-gradient(120% 130% at 78% 8%,#1a2740 0%,#0d1320 46%,#080b12 100%);border:none;color:#eef3fa}
#right-sidebar .widget_custom_html .widget-title{color:#fff;font-family:'Space Grotesk',system-ui,sans-serif;font-weight:700;font-size:19px;margin:8px 0 0}
#right-sidebar .widget_custom_html p{color:#b3c0d1;font-size:14px;line-height:1.6}
#right-sidebar .widget_custom_html{padding-bottom:34px}
#right-sidebar .widget_custom_html a{display:inline-flex;align-items:center;justify-content:center;background:#1f6feb;color:#fff;font-family:'Manrope',system-ui,sans-serif;font-weight:700;font-size:15px;padding:11px 18px;border-radius:12px;margin-top:14px;text-decoration:none;box-shadow:0 14px 34px rgba(31,111,235,.42);transition:transform .3s ease,background-color .3s ease}
#right-sidebar .widget_custom_html a:hover{background:#155ec9;transform:translateY(-6px)}
.cb-card-title,#right-sidebar .widget-title{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:600;font-size:15.5px;color:#0e1726;margin:0 0 14px}
.cb-toc{display:flex;flex-direction:column;gap:2px}
.cb-toc a{font-size:14px;color:#5a6573;font-weight:500;padding:8px 12px;border-radius:9px;border-left:2px solid #e9edf3;text-decoration:none;line-height:1.4}
.cb-toc a:hover{color:#1f6feb;background:#f6f9ff;border-left-color:#1f6feb}
#right-sidebar .widget_recent_entries ul,#right-sidebar .widget_categories ul{list-style:none;margin:0;padding:0}
#right-sidebar .widget_recent_entries li{margin-bottom:14px}
#right-sidebar .widget_recent_entries a{font-size:14.5px;font-weight:700;color:#0e1726;text-decoration:none;line-height:1.4}
#right-sidebar .widget_recent_entries .post-date{display:block;font-size:12.5px;color:#8a94a3;font-weight:500;margin-top:4px}
#right-sidebar .widget_categories li{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid #f2f5f9;font-size:14px;color:#3a4656;font-weight:600}
#right-sidebar .widget_categories li:last-child{border-bottom:none}
#right-sidebar .widget_categories a{color:#3a4656;text-decoration:none}

/* ===== Tags, share, author card, pager ===== */
.cb-tags-share{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:34px;padding-top:22px;border-top:1px solid #e9edf3}
.cb-tags{display:flex;flex-wrap:wrap;gap:8px}
.cb-tag{background:#eef2f8;border:1px solid #e3e9f1;color:#2b3645;font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:8px;text-decoration:none}
.cb-share{display:flex;align-items:center;gap:8px}
.cb-share-btn{width:32px;height:32px;border-radius:9px;border:1px solid #e3e9f1;background:#fff;display:flex;align-items:center;justify-content:center;color:#5a6573;font-size:13px;font-weight:700;text-decoration:none}
.cb-share-btn:hover{border-color:#1f6feb;color:#1f6feb}

.cb-author-card{display:flex;gap:16px;align-items:flex-start;background:#fff;border:1px solid #e9edf3;border-radius:16px;padding:22px;margin-top:26px}
.cb-author-card img{border-radius:12px}
.cb-author-card-name{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:600;font-size:16px;color:#0e1726}
.cb-author-card-bio{margin:8px 0 0;font-size:14px;line-height:1.6;color:#5a6573}

.cb-pager{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.cb-pager-link{background:#fff;border:1px solid #e9edf3;border-radius:12px;padding:16px 18px;text-decoration:none;display:block}
.cb-pager-link:hover{border-color:#1f6feb}
.cb-pager-next{text-align:right}
.cb-pager-label{display:block;font-size:11px;font-weight:700;letter-spacing:.05em;color:#8a94a3;text-transform:uppercase}
.cb-pager-title{display:block;font-family:'Space Grotesk',system-ui,sans-serif;font-weight:600;font-size:14px;color:#0e1726;margin-top:5px}

/* ===== "Sigue leyendo" related posts (custom) ===== */
.cb-related{background:#f6f8fb;border-top:1px solid #e9edf3;padding:48px 0}
.cb-related-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:26px}
.cb-related-kicker{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#1f6feb;margin-bottom:6px}
.cb-related-title{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:700;font-size:clamp(24px,3vw,32px);color:#0e1726;margin:0}
.cb-related-all{font-size:14px;font-weight:600;color:#1f6feb;text-decoration:none;white-space:nowrap}
.cb-related-all:hover{text-decoration:underline}
.cb-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.cb-related-card{display:block;text-decoration:none;background:#fff;border:1px solid #e9edf3;border-radius:16px;overflow:hidden;box-shadow:0 1px 3px rgba(16,24,40,.04);transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.cb-related-card:hover{transform:translateY(-6px);box-shadow:0 14px 34px rgba(31,111,235,.18);border-color:#1f6feb}
.cb-related-card-img{aspect-ratio:16/9;background:linear-gradient(135deg,#1a2740 0%,#0d1320 55%,#1f6feb 130%)}
.cb-related-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.cb-related-card-body{padding:16px 18px 20px}
.cb-related-card-cat{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#1f6feb;margin-bottom:8px}
.cb-related-card-title{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:600;font-size:16.5px;color:#0e1726;margin:0 0 10px;line-height:1.35}
.cb-related-card-date{display:block;font-size:12.5px;color:#8a94a3;font-weight:500}
.cb-related .grid-container.grid-parent{padding-left:20px;padding-right:20px}
@media (max-width:980px){.cb-related-grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.cb-related-grid{grid-template-columns:1fr}}

@media (max-width:768px){
	#right-sidebar{position:static;padding-left:20px;padding-right:20px}
	body.single-post .entry-header{width:auto;max-width:none;margin:32px 0;padding-left:20px;padding-right:20px}
}
@media (max-width:600px){
	.cb-pager{grid-template-columns:1fr}
	.cb-pager-next{text-align:left}
}
@media (max-width:480px){
	.cb-meta-sep{display:none}
}
/* ===== Footer nav menu: force vertical (xpro-horizontal-menu widget reused in footer) ===== */
.elementor-element-9a34502 .xpro-elementor-horizontal-navbar-nav{flex-direction:column;align-items:flex-start}

/* ===== Legal pages (Aviso Legal / Privacidad / Cookies): gray content bg matching rest of site ===== */
body.page-id-40595,body.page-id-40596,body.page-id-40597,body.page-id-40598,body.page-id-40599,body.page-id-40600,body.page-id-40601,body.page-id-40602,body.page-id-40603,body.page-id-5{background:#f6f8fb}
body.page-id-40595 #primary,body.page-id-40596 #primary,body.page-id-40597 #primary,body.page-id-40598 #primary,body.page-id-40599 #primary,body.page-id-40600 #primary,body.page-id-40601 #primary,body.page-id-40602 #primary,body.page-id-40603 #primary,body.page-id-5 #primary{background:transparent}
body.page-id-40595 .inside-article,body.page-id-40596 .inside-article,body.page-id-40597 .inside-article,body.page-id-40598 .inside-article,body.page-id-40599 .inside-article,body.page-id-40600 .inside-article,body.page-id-40601 .inside-article,body.page-id-40602 .inside-article,body.page-id-40603 .inside-article,body.page-id-5 .inside-article{background:transparent}
