/* ==========================================================
   BARRA SUPERIOR ESTILO GOV.CO
   ========================================================== */
.ieoma-topbar {
	background: var(--ieoma-topbar-bg);
	color: var(--ieoma-topbar-text);
	font-size: 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ieoma-topbar .ieoma-container {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.ieoma-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
	width: max-content;
	min-width: 100%;
}

.ieoma-topbar-govco {
	color: var(--ieoma-topbar-text);
	font-weight: 700;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.ieoma-topbar-right {
	display: flex;
	align-items: center;
	gap: 20px;
	white-space: nowrap;
}

.ieoma-topbar-menu {
	list-style: none;
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.ieoma-topbar-menu a {
	color: var(--ieoma-topbar-text);
	opacity: 0.9;
}

.ieoma-topbar-menu a:hover {
	opacity: 1;
	text-decoration: underline;
}

.ieoma-topbar-pqrsd {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ieoma-topbar-text);
	font-weight: 600;
	font-size: 0.85rem;
	opacity: 0.95;
}

.ieoma-topbar-pqrsd:hover,
.ieoma-topbar-pqrsd:focus {
	opacity: 1;
	text-decoration: underline;
}

.ieoma-topbar-pqrsd-icon {
	font-size: 0.9rem;
}

/* ==========================================================
   HEADER PRINCIPAL
   ========================================================== */
.ieoma-header {
	background: var(--ieoma-color-header-bg);
}

/* --- Barra intermedia: logo (enlace a inicio) + buscador --- */
.ieoma-middle-bar {
	padding: 16px 0;
	border-bottom: 1px solid #eee;
}

.ieoma-middle-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.ieoma-branding {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	min-width: 240px;
	color: inherit;
	text-decoration: none;
}

.ieoma-branding:hover,
.ieoma-branding:focus {
	text-decoration: none;
}

.ieoma-branding:hover .ieoma-site-title-text {
	text-decoration: underline;
}

.ieoma-logo-principal img {
	max-height: 80px;
	width: auto;
	display: block;
}

.ieoma-logo-secundario {
	max-height: 60px;
	width: auto;
}

.ieoma-site-description {
	display: flex;
	flex-direction: column;
}

.ieoma-site-title,
.ieoma-site-title-text {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--ieoma-color-primary);
	margin: 0;
}

.ieoma-site-tagline {
	margin: 2px 0 0;
	font-size: 0.85rem;
	color: #555;
}

.ieoma-middle-search {
	flex-shrink: 0;
}

.ieoma-search-form {
	display: flex;
	align-items: center;
	border: 2px solid var(--ieoma-color-primary);
	border-radius: 30px;
	overflow: hidden;
	background: #fff;
}

.ieoma-search-field {
	border: none;
	padding: 10px 16px;
	font-size: 0.9rem;
	min-width: 200px;
	outline: none;
}

.ieoma-search-submit {
	border: none;
	background: var(--ieoma-color-primary);
	color: #fff;
	padding: 10px 18px;
	cursor: pointer;
	font-weight: 600;
}

.ieoma-search-submit:hover {
	background: var(--ieoma-color-secondary);
}

/* --- Barra de navegación (menú principal) --- */
.ieoma-nav-bar {
	background: var(--ieoma-color-primary);
	border-bottom: 4px solid var(--ieoma-color-accent);
}

.ieoma-nav-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* ==========================================================
   MENÚ PRINCIPAL / RESPONSIVE
   ========================================================== */
.ieoma-primary-menu {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.ieoma-primary-menu > li {
	position: relative;
	max-width: 200px;
}

.ieoma-primary-menu a {
	color: #fff;
	font-weight: 600;
	display: inline-block;
	padding: 14px 4px;
	white-space: normal;
	line-height: 1.3;
}

.ieoma-primary-menu a:hover,
.ieoma-primary-menu a:focus {
	color: var(--ieoma-color-accent);
}

.ieoma-primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	min-width: 200px;
	display: none;
	z-index: 50;
}

.ieoma-primary-menu li:hover > .sub-menu,
.ieoma-primary-menu li:focus-within > .sub-menu {
	display: block;
}

.ieoma-primary-menu .sub-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--ieoma-color-text);
}

.ieoma-primary-menu .sub-menu a:hover {
	color: var(--ieoma-color-primary);
}

/* --- Checkbox-hack: oculto visualmente pero enfocable por teclado.
   Esto hace que el menú funcione con CSS puro, sin depender de JS. --- */
.ieoma-menu-check,
.ieoma-submenu-checkbox {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

.ieoma-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 2px solid #fff;
	border-radius: 4px;
	padding: 8px 10px;
	cursor: pointer;
	margin: 10px 0;
}

.ieoma-menu-check:focus-visible ~ .ieoma-menu-toggle {
	outline: 3px solid var(--ieoma-color-accent);
	outline-offset: 2px;
}

.ieoma-menu-toggle-bar {
	width: 22px;
	height: 2px;
	background: #fff;
	display: block;
}

@media (max-width: 782px) {
	.ieoma-menu-toggle {
		display: flex;
	}

	.ieoma-primary-navigation {
		display: none;
		width: 100%;
		order: 3;
	}

	/* El checkbox oculto controla el <nav> hermano: funciona sin JS */
	.ieoma-menu-check:checked ~ .ieoma-primary-navigation {
		display: block;
	}

	.ieoma-primary-menu {
		flex-direction: column;
		gap: 0;
		border-top: 1px solid #eee;
		margin-top: 10px;
	}

	.ieoma-primary-menu li {
		position: relative;
		max-width: none;
	}

	.ieoma-primary-menu a {
		padding: 12px 44px 12px 4px;
		border-bottom: 1px solid #f0f0f0;
	}

	/* Submenús: colapsados por defecto; el checkbox-hack los abre sin JS */
	.ieoma-primary-menu .sub-menu {
		position: static;
		box-shadow: none;
		display: none;
		background: rgba(0, 0, 0, 0.03);
	}

	.ieoma-submenu-checkbox:checked ~ .sub-menu {
		display: block;
	}

	.ieoma-submenu-label {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 4px;
		right: 0;
		width: 40px;
		height: 40px;
		cursor: pointer;
		color: #fff;
	}

	.ieoma-submenu-checkbox:focus-visible ~ .ieoma-submenu-label {
		outline: 3px solid var(--ieoma-color-accent);
		outline-offset: -2px;
	}

	.ieoma-submenu-label-arrow {
		font-size: 1.1rem;
		transition: transform 0.2s ease;
	}

	.ieoma-submenu-checkbox:checked ~ .ieoma-submenu-label .ieoma-submenu-label-arrow {
		transform: rotate(180deg);
	}

	.ieoma-middle-bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.ieoma-middle-search {
		width: 100%;
	}

	.ieoma-search-form {
		width: 100%;
	}

	.ieoma-search-field {
		flex: 1;
		min-width: 0;
	}
}

/* ==========================================================
   CONTENIDO
   ========================================================== */
.ieoma-content-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding: 36px 20px;
}

@media (min-width: 992px) {
	.ieoma-content-layout {
		grid-template-columns: 2.5fr 1fr;
	}
}

.ieoma-card {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

.ieoma-card-title a {
	color: var(--ieoma-color-text);
}

.ieoma-card-title a:hover {
	color: var(--ieoma-color-primary);
}

.ieoma-card-meta {
	color: #777;
	font-size: 0.85rem;
}

.ieoma-sidebar .widget {
	margin-bottom: 28px;
}

.widget-title {
	color: var(--ieoma-color-primary);
	border-bottom: 2px solid var(--ieoma-color-accent);
	padding-bottom: 6px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.ieoma-footer {
	background: var(--ieoma-color-footer-bg);
	color: var(--ieoma-color-footer-text);
	margin-top: 40px;
	padding-top: 32px;
}

.ieoma-footer a {
	color: var(--ieoma-color-footer-text);
}

.ieoma-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	padding-bottom: 20px;
	min-width: 0;
}

.ieoma-footer-col {
	min-width: 0;
	overflow-wrap: break-word;
}

.footer-widget-title {
	color: var(--ieoma-color-accent);
	font-size: 1rem;
}

.ieoma-footer-contacto {
	display: block;
	padding: 28px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Sangría adicional y reforzada para TODO el contenido del footer
   (contacto, menú, legal/copyright), independiente del padding base
   del .ieoma-container, para que el texto nunca quede pegado al
   borde de la pantalla. */
.ieoma-footer .ieoma-container {
	padding-left: 32px !important;
	padding-right: 32px !important;
}

@media (max-width: 600px) {
	.ieoma-footer .ieoma-container {
		padding-left: 28px !important;
		padding-right: 28px !important;
	}
}

.ieoma-footer-contacto-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--ieoma-color-accent);
}

.ieoma-footer-contacto-titulo {
	margin: 0;
	font-size: 1.3rem;
	color: #fff;
}

.ieoma-footer-contacto-imagen {
	max-height: 70px;
	width: auto;
}

.ieoma-footer-contacto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	margin-bottom: 20px;
	min-width: 0;
}

.ieoma-footer-contacto-item {
	min-width: 0;
	max-width: 100%;
}

.ieoma-footer-contacto-item-titulo {
	margin: 0 0 6px;
	font-size: 0.95rem;
	color: var(--ieoma-color-accent);
	overflow-wrap: break-word;
}

.ieoma-footer-contacto-item-texto {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.95;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ieoma-footer-contacto-correos {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	min-width: 0;
}

.ieoma-footer-contacto-correos li {
	margin-bottom: 4px;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ieoma-redes-sociales,
.ieoma-legal-lista,
.ieoma-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ieoma-redes-sociales-titulo {
	margin: 0 0 12px;
	font-size: 1rem;
	color: var(--ieoma-color-accent);
}

.ieoma-redes-sociales {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.ieoma-red-social-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease;
}

.ieoma-red-social-link:hover,
.ieoma-red-social-link:focus {
	background: var(--ieoma-color-accent);
	color: #1b3a1e;
	text-decoration: none;
}

.ieoma-red-social-icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	color: var(--ieoma-color-footer-bg, #1b3a1e);
	flex-shrink: 0;
}

.ieoma-red-social-icono svg {
	width: 15px;
	height: 15px;
}

.ieoma-red-social-texto {
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.ieoma-footer-menu {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ieoma-footer-legal {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 16px 0 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.ieoma-legal-lista {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 0.85rem;
}

.ieoma-copyright {
	font-size: 0.8rem;
	opacity: 0.85;
	margin: 0;
}

/* ==========================================================
   BARRA DE MARCA PAÍS (antes del copyright, dentro del footer)
   ========================================================== */
.ieoma-marca-pais-bar {
	background: var(--ieoma-topbar-bg);
	padding: 10px 0;
}

.ieoma-marca-pais-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ieoma-marca-pais-govco {
	color: #ffffff;
	font-weight: 700;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.ieoma-marca-pais-divider {
	width: 1px;
	height: 26px;
	background: rgba(255, 255, 255, 0.4);
	display: inline-block;
}

.ieoma-marca-pais-logo-link {
	display: inline-flex;
	align-items: center;
}

.ieoma-marca-pais-logo {
	max-height: 32px;
	width: auto;
	display: block;
}

/* ==========================================================
   MAPA DEL SITIO (shortcode [mapa_del_sitio])
   ========================================================== */
.ieoma-mapa-sitio {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	margin: 24px 0;
}

.ieoma-mapa-sitio-bloque h2 {
	color: var(--ieoma-color-primary);
	border-bottom: 2px solid var(--ieoma-color-accent);
	padding-bottom: 8px;
	font-size: 1.1rem;
}

.ieoma-mapa-sitio-bloque ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ieoma-mapa-sitio-bloque ul ul {
	margin-left: 16px;
}

.ieoma-mapa-sitio-bloque li {
	margin-bottom: 8px;
}

.ieoma-mapa-sitio-bloque a {
	color: var(--ieoma-color-text);
}

.ieoma-mapa-sitio-bloque a:hover {
	color: var(--ieoma-color-primary);
}
