/* NicaraguaEs — portada y buscador (tema hijo de BlogSite Pro). Prefijo .nes- para no chocar con el padre. */
:root {
	--nes-azul: #142D4E;
	--nes-azul-osc: #0E2240;
	--nes-rojo: #D62839;
	--nes-gris: #F1F4F8;
	--nes-borde: #D9E0EA;
	--nes-texto: #303846;
	--nes-suave: #5A6577;
	--nes-dorado: #F2B33D;
	--nes-radio: 12px;
	--nes-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--nes-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- v0.3.0: aislamiento de la portada ----------
   Neutraliza estilos heredados (tema padre, CSS adicional, plugins) dentro de la portada.
   :where() mantiene la especificidad baja (0,1,0) para que las reglas de componentes de abajo manden. */
.nes-home, .nes-topbar { font-family: var(--nes-sans); font-size: 16px; line-height: 1.5; color: var(--nes-texto); text-align: left; letter-spacing: normal; word-spacing: normal; }
.nes-home :where(*, *::before, *::after), .nes-topbar :where(*, *::before, *::after) { box-sizing: border-box; }
.nes-home :where(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, article, section, aside, nav, form), .nes-topbar :where(p, ul, li) { margin: 0; padding: 0; border: 0; list-style: none; text-transform: none; float: none; line-height: inherit; }
.nes-home :where(h1, h2, h3, h4) { line-height: 1.25; }
.nes-home :where(h1, h2, h3, h4) { font-weight: 700; letter-spacing: normal; }
.nes-home :where(a), .nes-topbar :where(a) { text-decoration: none; box-shadow: none; border: 0; }
.nes-home :where(img) { max-width: 100%; height: auto; border: 0; }
.nes-home :where(input, button, select) { font-family: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; line-height: normal; margin: 0; }

/* Cabecera: el nombre del sitio ya no es H1 (mismo aspecto). */
.site-title .nes-site-name { margin: 0; font: inherit; line-height: inherit; }

/* ---------- Portada ---------- */
body.nes-portada #content.site-content { width: auto; max-width: none; padding: 0; margin: 0; float: none; }
.nes-home { color: var(--nes-texto); background: var(--nes-gris); }
.nes-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.nes-home h2 { font-family: var(--nes-serif); color: var(--nes-azul); font-size: 30px; line-height: 1.2; margin: 0 0 16px; }
.nes-home h3 { margin: 0; }

.nes-hero { background: var(--nes-azul); color: #fff; }
.nes-hero__inner { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.nes-hero__titulo { font-family: var(--nes-serif); font-weight: 600; font-size: 52px; line-height: 1.1; margin: 0; color: #fff; max-width: 820px; }
.nes-hero__titulo span { color: #FFB4BC; }
.nes-hero__sub { margin: 0; font-size: 17px; line-height: 1.5; color: #D5DEEA; max-width: 640px; }

.nes-buscador { position: relative; display: flex; width: 100%; background: #fff; border: 2px solid var(--nes-azul); border-radius: 10px; overflow: visible; box-sizing: border-box; }
.nes-buscador input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; height: 48px; padding: 0 14px; color: var(--nes-texto); box-shadow: none; }
.nes-buscador input[type="search"]:focus-visible { outline: 3px solid #8FB4E3; outline-offset: -3px; border-radius: 8px; }
.nes-buscador button { border: 0; background: var(--nes-rojo); color: #fff; font-weight: 700; font-size: 15px; padding: 0 22px; border-radius: 0 7px 7px 0; cursor: pointer; min-height: 48px; }
.nes-buscador button:hover { background: #B81F2E; }
.nes-buscador--grande { max-width: 760px; border: 0; border-radius: 12px; padding: 6px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.nes-buscador--grande input[type="search"] { font-size: 17px; height: 52px; }
.nes-buscador--grande button { border-radius: 8px; min-height: 52px; padding: 0 28px; font-size: 16px; }
.nes-buscador__icono { color: var(--nes-suave); margin: 0 4px 0 10px; flex: none; }

.nes-populares { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; max-width: 820px; }
.nes-populares > span { font-size: 14px; color: #D5DEEA; }
.nes-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #C4CDD9; background: #fff; color: var(--nes-azul); font-size: 14px; font-weight: 600; text-decoration: none; }
.nes-chip:hover, .nes-chip.is-activo { background: var(--nes-azul); color: #fff; border-color: var(--nes-azul); }
.nes-chip--claro { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.nes-chip--claro:hover { background: #fff; color: var(--nes-azul); }

.nes-bloque { padding-top: 40px; }
.nes-bloque__cabecera { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.nes-bloque__cabecera h2 { margin: 0; }
.nes-etiqueta { font-size: 13px; color: var(--nes-suave); background: #fff; border: 1px solid var(--nes-borde); padding: 4px 10px; border-radius: 999px; }

.nes-grid { display: grid; gap: 16px; }
.nes-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nes-grid--secciones { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

.nes-tarjeta { background: #fff; border: 1px solid var(--nes-borde); border-radius: var(--nes-radio); box-sizing: border-box; }
.nes-herramienta { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.nes-herramienta__cab { display: flex; align-items: center; gap: 10px; color: var(--nes-azul); }
.nes-herramienta h3 { font-size: 17px; color: var(--nes-azul); }
.nes-herramienta p { margin: 0; font-size: 14px; color: var(--nes-suave); line-height: 1.5; }
.nes-enlace-fuerte { font-weight: 700; color: var(--nes-azul); text-decoration: none; }
.nes-enlace-fuerte:hover { color: var(--nes-rojo); }
.nes-herramienta .nes-enlace-fuerte { margin-top: auto; }

.nes-seccion { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-height: 88px; text-decoration: none; border-top: 4px solid var(--nes-azul); }
.nes-seccion__nombre { font-size: 17px; font-weight: 700; color: var(--nes-azul); }
.nes-seccion__desc { font-size: 14px; color: var(--nes-suave); line-height: 1.4; }
.nes-seccion--2 { border-top-color: #2C6E9B; } .nes-seccion--3 { border-top-color: var(--nes-rojo); }
.nes-seccion--4 { border-top-color: #303846; } .nes-seccion--5 { border-top-color: #3E7C59; }
.nes-seccion--6 { border-top-color: #B8732A; } .nes-seccion--7 { border-top-color: #6B4C9A; }
.nes-seccion:hover .nes-seccion__nombre { color: var(--nes-rojo); }

.nes-columnas { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 40px; }
.nes-columnas__principal { flex: 999 1 560px; min-width: 0; }
.nes-columnas__lateral { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.nes-nota { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--nes-borde); }
.nes-nota__img { flex: none; width: 150px; height: 100px; border-radius: 8px; overflow: hidden; display: block; background: #E2E8F0; }
.nes-nota__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nes-nota h3 { font-size: 18px; line-height: 1.3; }
.nes-nota h3 a, .nes-carta h3 a, .nes-resultado__titulo a { color: var(--nes-azul); text-decoration: none; }
.nes-nota h3 a:hover, .nes-carta h3 a:hover, .nes-resultado__titulo a:hover { color: var(--nes-rojo); }
.nes-nota__texto { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nes-nota--destacada { flex-direction: column; background: #fff; border: 1px solid var(--nes-borde); border-radius: var(--nes-radio); padding: 0; overflow: hidden; margin-bottom: 4px; }
.nes-nota--destacada .nes-nota__img { width: 100%; height: 300px; border-radius: 0; }
.nes-nota--destacada .nes-nota__texto { padding: 18px 22px 22px; }
.nes-nota--destacada h3 { font-family: var(--nes-serif); font-size: 28px; line-height: 1.2; }
.nes-sin-imagen { display: flex; width: 100%; height: 100%; min-height: 80px; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--nes-suave); background: repeating-linear-gradient(135deg, #E2E8F0 0 10px, #EAEFF5 10px 20px); }
.nes-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nes-rojo); }
.nes-kicker--claro { color: #FFB4BC; }
.nes-kicker--dorado { color: var(--nes-dorado); }
.nes-meta { font-size: 13px; color: var(--nes-suave); }
.nes-ver-todo { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; }

.nes-lista { padding: 20px; }
.nes-lista h2 { font-size: 22px; margin-bottom: 4px; }
.nes-lista a { display: block; padding: 12px 0; border-top: 1px solid #E6EBF2; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--nes-azul); text-decoration: none; }
.nes-lista a:hover { color: var(--nes-rojo); }
.nes-lista a span { display: block; font-weight: 400; font-size: 12px; color: var(--nes-suave); margin-top: 3px; }
.nes-comunidad { background: var(--nes-azul); border-color: var(--nes-azul); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.nes-comunidad h2 { color: #fff; font-size: 22px; margin: 0; }
.nes-comunidad p { margin: 0; color: #D5DEEA; font-size: 14px; line-height: 1.5; }

.nes-carta { overflow: hidden; display: flex; flex-direction: column; }
.nes-carta__img { display: block; height: 160px; background: #E2E8F0; }
.nes-carta__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nes-carta h3 { font-size: 16px; line-height: 1.3; padding: 14px 16px 4px; }
.nes-carta .nes-meta { padding: 0 16px 16px; }

.nes-mpn { margin-top: 48px; background: #0B1626; color: #fff; }
.nes-mpn__inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.nes-mpn h2 { color: #fff; margin: 6px 0; }
.nes-mpn p { margin: 0; color: #B9C4D3; }
.nes-boton { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.nes-boton--dorado { background: var(--nes-dorado); color: #0B1626; }
.nes-boton--dorado:hover { background: #FFC75A; color: #0B1626; }

.nes-ad { margin: 28px auto 0; text-align: center; }
.nes-ad-marcador { margin: 28px 0 0; border: 2px dashed #9AA6B8; border-radius: 8px; padding: 18px; text-align: center; font-size: 12px; color: var(--nes-suave); background: #fff; }

/* ---------- Resultados de búsqueda ---------- */
.nes-resultados .nes-buscador { margin: 8px 0 12px; max-width: 720px; }
.nes-resultados__titulo { font-family: var(--nes-serif); color: var(--nes-azul); }
.nes-resumen { font-size: 14px; color: var(--nes-suave); margin: 0 0 12px; }
.nes-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.nes-accesos { display: grid; gap: 10px; margin: 0 0 16px; }
.nes-acceso { display: flex; flex-direction: column; gap: 3px; background: var(--nes-azul); color: #fff !important; border-radius: var(--nes-radio); padding: 16px 20px; text-decoration: none; }
.nes-acceso strong { font-size: 18px; color: #fff; }
.nes-acceso:hover { background: var(--nes-azul-osc); }
.nes-acceso__kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFB4BC; }
.nes-acceso__nota { font-size: 13px; color: #D5DEEA; }
.nes-lista-resultados { display: flex; flex-direction: column; gap: 12px; }
.nes-resultado { display: flex; gap: 16px; background: #fff; border: 1px solid var(--nes-borde); border-radius: var(--nes-radio); padding: 14px; margin: 0 !important; }
.nes-resultado__img { flex: none; width: 160px; height: 100px; border-radius: 8px; overflow: hidden; display: block; background: #E2E8F0; }
.nes-resultado__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nes-resultado__texto { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nes-resultado__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nes-resultado__titulo { font-size: 19px; line-height: 1.3; margin: 0; }
.nes-resultado__extracto { margin: 0; font-size: 14px; color: var(--nes-suave); line-height: 1.5; }
.nes-aviso-fecha { margin: 0; align-self: flex-start; font-size: 12px; color: #7A4B00; background: #FFF1D6; border-radius: 6px; padding: 5px 9px; }
.nes-sin-resultados { background: #fff; border: 1px solid var(--nes-borde); border-radius: var(--nes-radio); padding: 24px; }
.nes-sin-resultados h2 { font-family: var(--nes-serif); color: var(--nes-azul); margin-top: 0; }

/* ---------- Sugerencias ---------- */
.nes-con-sugerencias { position: relative; }
.nes-sugerencias { position: absolute; z-index: 9999; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--nes-borde); border-radius: 10px; box-shadow: 0 12px 28px rgba(20, 45, 78, .18); overflow: hidden; text-align: left; }
.nes-sug { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid #E6EBF2; text-decoration: none; color: var(--nes-azul); min-height: 44px; box-sizing: border-box; }
.nes-sug:hover, .nes-sug.is-activo { background: var(--nes-gris); }
.nes-sug__tipo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--nes-suave); }
.nes-sug--directo .nes-sug__tipo { color: var(--nes-rojo); }
.nes-sug__titulo { font-size: 15px; font-weight: 600; line-height: 1.3; }
.nes-sug-todo { display: block; width: 100%; border: 0; background: #fff; color: var(--nes-rojo); font-weight: 700; padding: 12px; cursor: pointer; min-height: 44px; }
.nes-sug-vacio { margin: 0; padding: 12px 14px; font-size: 14px; color: var(--nes-suave); }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1179px) {
	.nes-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.nes-hero__inner { padding-top: 32px; padding-bottom: 28px; align-items: stretch; text-align: left; }
	.nes-hero__titulo { font-size: 32px; }
	.nes-populares { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; }
	.nes-populares > * { flex: none; }
	.nes-buscador--grande button { padding: 0 16px; }
	.nes-home h2 { font-size: 23px; }
	.nes-grid--4 { gap: 10px; }
	.nes-herramienta { padding: 14px; }
	.nes-herramienta p { font-size: 13px; }
	.nes-nota__img { width: 96px; height: 72px; }
	.nes-nota h3 { font-size: 15px; }
	.nes-nota--destacada .nes-nota__img { width: 100%; height: 200px; }
	.nes-nota--destacada h3 { font-size: 22px; }
	.nes-resultado { padding: 12px; gap: 12px; }
	.nes-resultado__img { width: 88px; height: 72px; }
	.nes-resultado__titulo { font-size: 16px; }
	.nes-resultado__extracto { display: none; }
	.nes-filtros { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.nes-filtros .nes-chip { flex: none; }
}


/* v0.2.0 — herramientas con fuente y aviso */
.nes-herramienta__que { font-weight: 600; color: var(--nes-texto) !important; }
.nes-herramienta__valor { font-family: var(--nes-serif); font-size: 30px; font-weight: 700; color: var(--nes-azul) !important; margin: 0; }
.nes-herramienta__aviso { font-size: 13px !important; color: #7A4B00 !important; background: #FFF1D6; border-radius: 6px; padding: 8px 10px; }
.nes-herramienta__fuente { font-size: 12px !important; }
.nes-herramienta__enlaces { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.nes-enlace-secundario { font-size: 14px; font-weight: 600; color: var(--nes-suave); text-decoration: none; }
.nes-enlace-secundario:hover { color: var(--nes-rojo); }

/* ---------- v0.3.0: fidelidad con la maqueta aprobada ---------- */
.nes-home h2, .nes-home h3, .nes-hero__titulo { font-family: var(--nes-serif); }
.nes-home h3.nes-sans, .nes-herramienta h3, .nes-nota h3, .nes-carta h3, .nes-seccion__nombre, .nes-lista a { font-family: var(--nes-sans); }
.nes-nota--destacada h3 { font-family: var(--nes-serif); }

/* Barra superior (Mi Pantalla Nica, puntos, cuenta) */
.nes-topbar { background: var(--nes-azul-osc); color: #C9D3E0; font-size: 13px; }
.nes-topbar__inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.nes-topbar__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.nes-topbar a { color: #fff; }
.nes-topbar a:hover { color: #FFD58A; }
.nes-topbar .nes-topbar__mpn { color: #FFD58A; font-weight: 600; }
.nes-topbar__pronto { font-size: 11px; background: var(--nes-rojo); color: #fff; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.nes-topbar .nes-topbar__registro { background: #fff; color: var(--nes-azul-osc); padding: 6px 12px; border-radius: 6px; font-weight: 600; }

/* Etiquetas cortas/largas según pantalla */
.nes-solo-movil { display: none; }

@media (max-width: 767px) {
	.nes-topbar__lema { display: none; }
	.nes-topbar__inner { justify-content: flex-end; }
	.nes-hero__titulo { font-size: 32px; }
	.nes-hero__sub, .nes-populares > span { display: none; }
	.nes-home h2 { font-size: 23px; }

	/* Herramientas en cuadrícula 2 × 2 compacta, como la maqueta móvil */
	.nes-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.nes-herramienta { padding: 12px; gap: 6px; }
	.nes-herramienta__cab { gap: 6px; }
	.nes-herramienta__cab svg { width: 18px; height: 18px; }
	.nes-herramienta h3 { font-size: 14px; }
	.nes-herramienta__que, .nes-solo-escritorio { display: none; }
	.nes-solo-movil { display: inline; }
	.nes-herramienta__aviso { font-size: 11px !important; padding: 5px 7px; }
	.nes-herramienta__fuente { font-size: 11px !important; }
	.nes-herramienta .nes-enlace-fuerte, .nes-herramienta .nes-enlace-secundario { font-size: 12px; }

	/* Secciones y turismo en carrusel horizontal */
	.nes-grid--secciones, .nes-grid--carrusel { display: flex; overflow-x: auto; gap: 10px; margin: 0 -20px; padding: 0 20px 6px; scroll-snap-type: x proximity; }
	.nes-grid--secciones > .nes-seccion { flex: none; width: 160px; scroll-snap-align: start; }
	.nes-grid--carrusel > .nes-carta { flex: none; width: 250px; scroll-snap-align: start; }
	.nes-seccion__nombre { font-size: 15px; }
	.nes-seccion__desc { font-size: 12px; }

	.nes-columnas { gap: 20px; }
	.nes-mpn__inner { padding-top: 24px; padding-bottom: 24px; }
}
@media (max-width: 767px) {
	.nes-topbar__gana { display: none; }
	.nes-topbar__acciones { gap: 14px; flex-wrap: nowrap; }
}
