/* ==========================================================================
   Blog de Nextor: portada del blog (home.php) y nota (single.php).
   Mismo formato que el blog de Nextor Móvil, con los colores de Nextor.
   ========================================================================== */

.nx-b {
	--b-azul: #0070EB;
	--b-azul-claro: #EEF4FD;
	--b-tinta: #0B0B0D;
	--b-gris: #5B616B;
	--b-linea: #E4E7EC;
	--b-fondo: #F6F7F9;
	--b-ancho: 1100px;
	color: var(--b-tinta);
	font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	background: #fff;
	padding-top: 96px; /* bajo el encabezado fijo */
}
/* Hello Elementor limita el ancho de .site-main: el blog usa todo el ancho y centra cada bloque */
html body main.nx-b.site-main { max-width: none !important; width: 100%; margin: 0; padding-left: 0; padding-right: 0; }
.nx-b a { color: inherit; text-decoration: none; }
.nx-b h1, .nx-b h2, .nx-b h3 { margin: 0; color: var(--b-tinta); letter-spacing: -.01em; }
.nx-b p { margin: 0; }
.nx-b__wrap { max-width: var(--b-ancho); margin: 0 auto; padding: 0 20px; }

/* Piezas comunes */
.nx-b__eye { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--b-azul); }
.nx-b__eye a { color: var(--b-azul); }
.nx-b__cat { font-size: 14px; font-weight: 500; color: var(--b-azul); margin-bottom: 4px; }
.nx-b__res { color: var(--b-gris); font-weight: 300; font-size: 15px; line-height: 1.55; }
.nx-b__leer { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 14px; margin-top: 6px; }
.nx-b__leer span { transition: transform .2s; }
.nx-b__leer:hover span { transform: translateX(4px); }
.nx-b__leer--big { font-size: 20px; margin: 14px 0 10px; }
.nx-b__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: var(--b-linea); }
.nx-b__img--vacia { aspect-ratio: 4 / 3; }

/* Columna derecha: recientes y más leídos */
.nx-b__lado { display: flex; flex-direction: column; gap: 22px; }
.nx-b__caja { border: 1px solid var(--b-linea); border-radius: 16px; padding: 16px 18px; background: #fff; }
.nx-b__caja-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.nx-b__caja-h h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nx-b__caja-h a { font-size: 12px; color: var(--b-azul); white-space: nowrap; }
.nx-b__rec, .nx-b__top { list-style: none; margin: 0; padding: 0; }
.nx-b__rec li + li { margin-top: 12px; }
.nx-b__rec a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.nx-b__mini { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; background: var(--b-linea); }
.nx-b__rec b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.nx-b__rec small { display: block; font-size: 12px; color: var(--b-gris); margin-top: 4px; }
.nx-b__rec em { font-style: normal; color: var(--b-azul); font-weight: 500; }
.nx-b__top { counter-reset: nxtop; }
.nx-b__top li { counter-increment: nxtop; position: relative; padding-left: 30px; }
.nx-b__top li + li { margin-top: 14px; }
.nx-b__top li::before { content: counter(nxtop); position: absolute; left: 0; top: -2px; font-size: 22px; font-weight: 700; color: #C9CED6; }
.nx-b__top b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.nx-b__top em { display: block; font-style: normal; font-size: 12px; color: var(--b-azul); font-weight: 600; margin-top: 6px; }
.nx-b__rec a:hover b, .nx-b__top a:hover b, .nx-b__card h3 a:hover { color: var(--b-azul); }

/* ---------- Portada del blog ---------- */
.nx-b__intro { max-width: var(--b-ancho); margin: 0 auto; padding: 48px 20px 26px; }
.nx-b__intro h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 300; text-transform: uppercase; line-height: 1.08; margin-top: 8px; }
.nx-b__intro h1 b { font-weight: 700; }
.nx-b__lead { margin-top: 14px; max-width: 70ch; color: var(--b-gris); font-weight: 300; font-size: 16px; line-height: 1.55; }
.nx-b__lead b { color: var(--b-tinta); font-weight: 600; }
.nx-b__top-grid { max-width: var(--b-ancho); margin: 0 auto; padding: 0 20px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.nx-b__dest-img { display: block; aspect-ratio: 16 / 10; margin-bottom: 18px; }
.nx-b__dest h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; text-transform: uppercase; line-height: 1.1; }

.nx-b__explora { background: var(--b-fondo); padding: 64px 0 72px; }
.nx-b__h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 300; text-transform: uppercase; }
.nx-b__h2 b { font-weight: 700; }
.nx-b__filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 26px 0 18px; }
.nx-b .nx-b__filtros button { border: 0; background: transparent; color: var(--b-gris); font: 300 14px/1 Roboto, sans-serif; padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.nx-b .nx-b__filtros button:hover, .nx-b .nx-b__filtros button:focus { color: var(--b-tinta); background: #E9EDF3; }
.nx-b .nx-b__filtros button.is-on { background: var(--b-azul); color: #fff; font-weight: 500; }
.nx-b__buscar { display: flex; align-items: center; gap: 8px; width: min(100%, 300px); margin: 0 auto 34px; background: #fff; border: 1px solid var(--b-linea); border-radius: 999px; padding: 0 16px; }
.nx-b__buscar svg { width: 16px; height: 16px; fill: none; stroke: var(--b-azul); stroke-width: 2; flex: none; }
.nx-b__buscar input { border: 0 !important; outline: 0; background: transparent; padding: 12px 0 !important; width: 100%; font: 300 14px Roboto, sans-serif; box-shadow: none !important; }
.nx-b__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; }
.nx-b__card { display: grid; grid-template-columns: 42% 1fr; gap: 16px; align-items: start; }
.nx-b__card[hidden] { display: none; }
.nx-b__card-img { display: block; aspect-ratio: 4 / 5; }
.nx-b__card h3 { font-size: 19px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.nx-b__card .nx-b__res { font-size: 14px; }
.nx-b__vacio { text-align: center; color: var(--b-gris); margin-top: 20px; }
.nx-b [hidden] { display: none !important; }
.nx-b .nx-b__mas { display: block; margin: 40px auto 0; border: 0; background: #fff; color: var(--b-tinta); font: 400 16px Roboto, sans-serif; padding: 12px 22px; border-radius: 999px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); cursor: pointer; }
.nx-b .nx-b__mas:hover, .nx-b .nx-b__mas:focus { color: var(--b-azul); background: #fff; }

/* ---------- Nota ---------- */
.nx-b__nota-grid { max-width: var(--b-ancho); margin: 0 auto; padding: 40px 20px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.nx-b--nota .nx-b__lado { position: sticky; top: 110px; }
/* Los títulos de la nota van en mayúsculas y minúsculas (el kit del sitio los pone en mayúsculas) */
.nx-b--nota h1, .nx-b .nx-b__texto h2, .nx-b .nx-b__texto h3, .nx-b__card h3, .nx-b__cta h2, .nx-b__mas-h h2 { text-transform: none; }
.nx-b__nota h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; line-height: 1.18; margin: 10px 0 16px; }
.nx-b__autor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--b-gris); margin-bottom: 20px; }
.nx-b__autor > span:nth-child(2) { color: var(--b-tinta); font-weight: 500; }
.nx-b__logo { width: 30px; height: 30px; border-radius: 50%; background: #0B0B0D; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.nx-b__logo img { width: 70%; height: 70%; object-fit: contain; }
.nx-b__portada { margin: 0 0 28px; aspect-ratio: 16 / 10; }
.nx-b__texto { font-size: 16px; line-height: 1.7; color: #3F444C; font-weight: 300; }
.nx-b .nx-b__texto > * + * { margin-top: 1.1em; }
.nx-b .nx-b__texto > h2 + *, .nx-b .nx-b__texto > h3 + * { margin-top: .6em; }
.nx-b .nx-b__texto h2 { font-size: 24px; font-weight: 600; line-height: 1.25; margin-top: 1.8em; color: var(--b-tinta); }
.nx-b .nx-b__texto h3 { font-size: 19px; font-weight: 600; margin-top: 1.5em; color: var(--b-tinta); }
.nx-b__texto strong, .nx-b__texto b { font-weight: 600; color: var(--b-tinta); }
.nx-b__texto a { color: var(--b-azul); text-decoration: underline; text-underline-offset: 3px; }
.nx-b__texto ul, .nx-b__texto ol { padding-left: 1.3em; }
.nx-b__texto li + li { margin-top: .4em; }
.nx-b__texto table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.nx-b__texto th, .nx-b__texto td { border-bottom: 1px solid var(--b-linea); padding: 10px 8px; text-align: left; vertical-align: top; }
.nx-b__texto th { font-weight: 600; color: var(--b-tinta); }
/* "La respuesta, en breve": <div class="nx-breve"><p>…</p></div> o un bloque de cita */
.nx-b__texto .nx-breve, .nx-b__texto blockquote { margin-left: 0; margin-right: 0; background: var(--b-azul-claro); border-left: 4px solid var(--b-azul); border-radius: 0 12px 12px 0; padding: 16px 20px; color: var(--b-tinta); font-weight: 400; }
.nx-b__texto .nx-breve::before { content: "La respuesta, en breve"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--b-azul); margin-bottom: 6px; }
.nx-b__texto blockquote p { margin: 0; }

.nx-b__cta { margin-top: 44px; background: var(--b-azul-claro); border-radius: 18px; padding: 28px; }
.nx-b__cta h2 { font-size: 22px; font-weight: 600; }
.nx-b__cta p { color: var(--b-gris); margin: 8px 0 18px; line-height: 1.5; }
.nx-b__cta div { display: flex; flex-wrap: wrap; gap: 10px; }
.nx-b__btn { display: inline-flex; align-items: center; gap: 12px; padding: 7px 8px 7px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--b-linea); font-weight: 500; font-size: 14px; transition: transform .2s, box-shadow .2s; }
.nx-b__btn i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--b-tinta); color: #fff; }
.nx-b__btn--pri { background: var(--b-azul); border-color: var(--b-azul); color: #fff !important; }
.nx-b__btn--pri i { background: #fff; color: var(--b-azul); }
.nx-b__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .45); }

.nx-b__mas-art { background: var(--b-fondo); padding: 64px 0 72px; }
.nx-b__mas-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.nx-b__mas-h h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; margin-top: 4px; }
.nx-b__flechas { display: flex; gap: 8px; }
.nx-b .nx-b__flechas button { width: 40px; padding: 0; height: 40px; border-radius: 50%; border: 1px solid var(--b-linea); background: #fff; color: var(--b-tinta); font-size: 16px; cursor: pointer; }
.nx-b .nx-b__flechas button[data-dir="1"] { background: var(--b-azul); border-color: var(--b-azul); color: #fff; }
.nx-b__carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.nx-b__carrusel::-webkit-scrollbar { display: none; }
.nx-b__vcard { scroll-snap-align: start; background: #fff; border: 1px solid var(--b-linea); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; transition: box-shadow .2s, transform .2s; }
.nx-b__vcard:hover { box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .45); transform: translateY(-2px); }
.nx-b__vcard .nx-b__img { border-radius: 0; aspect-ratio: 16 / 10; height: auto; }
.nx-b__pill { align-self: flex-start; margin: 0 12px; background: var(--b-azul); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.nx-b__vcard b { margin: 0 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.nx-b__vcard small { margin: auto 12px 0; font-size: 12px; color: var(--b-gris); }

/* ---------- Celular y tableta ---------- */
@media (max-width: 960px) {
	.nx-b__top-grid, .nx-b__nota-grid { grid-template-columns: minmax(0, 1fr); }
	.nx-b--nota .nx-b__lado { position: static; }
	.nx-b__carrusel { grid-auto-columns: 46%; }
}
@media (max-width: 680px) {
	.nx-b { padding-top: 80px; }
	.nx-b__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.nx-b__card { grid-template-columns: 38% 1fr; }
	.nx-b__card h3 { font-size: 17px; }
	.nx-b__carrusel { grid-auto-columns: 78%; }
	.nx-b__filtros { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.nx-b__filtros button { white-space: nowrap; }
}
